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 l'utilizzo di 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."); }