EntityDef 오브젝트에 정의된 상태 이름을 리턴합니다.
EntityDef 오브젝트의 다른 부분처럼, 관리자는 Rational® ClearQuest® Designer를 사용하여 정의된 상태를 설정합니다. API에서 직접 설정할 수 없습니다.
VBScript
entitydef.GetStateDefNames
Perl
$entitydef->GetStateDefNames();
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)
}
}