Restituisce il tipo (basato sullo stato o stateless) di Entity.
Non è possibile modificare il tipo di un oggetto Entity utilizzando l'API. Il tipo di un record viene determinato dal tipo di record corrispondente e deve essere impostato dall'amministratore tramite 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.");
}