EntityDef のタイプ (状態 ありまたは状態なし) を戻します。
EntityDef オブジェクトの他の部分と同様に、EntityDef オブジェクトのタイプは対応するレコード タイプによって判別されます。このレコード タイプは管理者によって Rational ClearQuest Designer を使用して設定されます。タイプは、API から直接には設定できません。
VBScript
entitydef.GetType
Perl
$entitydef->GetType();
VBScript
set sessionObj = GetSession set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName()) If entityDefObj.GetType = AD_REQ_ENTITY Then sessionObj.OutputDebugString "States of record type: " & _ entityDefObj.GetName() ' List the possible states of the record nameList = entityDefObj.GetStateDefNames() For Each stateName in nameList sessionObj.OutputDebugString stateName Next End If
Perl
$sessionObj = $entity->GetSession(); $entityDefObj = $sessionObj->GetEntityDef($entity->GetEntityDefName()); if ($entityDefObj->GetType() eq $CQPerlExt::CQ_REQ_ENTITY) { $sessionObj->OutputDebugString("States of record type: ".$ entityDefObj->GetName()); # List the possible states of the record $nameList = $entityDefObj->GetStateDefNames(); foreach $statename (@$nameList) { $sessionobj->OutputDebugString($statename); } }