EntityDef オブジェクトに定義されたアクション名を戻します。
アクションのリストは順不同で戻されます。求めているアクションの名前を検出するまで、配列の各項目を調べる必要があります。
EntityDef オブジェクトの他の部分と同様に、管理者が Rational ClearQuest Designer を使用して定義済みアクションを設定します。 これらは、API から直接には設定できません。
VBScript
set sessionObj = GetSession set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName()) sessionObj.OutputDebugString "Action names for " & entityDefObj.GetName() nameList = entityDefObj.GetActionDefNames() For Each actionName in nameList sessionObj.OutputDebugString actionName Next
Perl
$sessionObj = $entity->GetSession(); $sessionObj->GetEntityDef($entity->GetEntityDefName()); $sessionObj->OutputDebugString("Action names for "$entityDefObj->GetName()); $nameList = $entityDefObj->GetActionDefNames(); foreach $actionName(@$nameList) { $sessionObj->OutputDebugString($actionName); }