Entity의 유형(State-based 또는 Stateless)을 리턴합니다.
API를 사용해서는 Entity 오브젝트의 유형을 변경할 수 없습니다. 레코드의 유형은 해당 레코드 유형에 의해 판별되며 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."); }