Devuelve el tipo (basado en estado o sin estado) de la entidad.
No puede cambiar el tipo de un objeto Entity utilizando la API. El tipo de registro determina el tipo de un registro correspondiente, y lo debe establecer el administrador utilizando 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.");
}