Returns the type (state-based or stateless) of the Entity.
You cannot change the type of an Entity object using the API. The type of a record is determined by the corresponding record type and must be set by the administrator using Rational ClearQuest Designer.
VBScript
entity.GetType
Perl
$entity->GetType();
VBScript
recordType = GetType
If recordType = AD_REQ_ENTITY Then
OutputDebugString "This record is a state-based record."
Else
OutputDebugString "This record is a stateless record."
End If
Perl
$recordtype = $entity->GetType();
if ($recordtype eq $CQPerlExt::CQ_REQ_ENTITY)
{
$session->OutputDebugString("This record is a state-based
record.");
}
else
{
$session->OutputDebugString("This record is a stateless record.");
}