Restituisce l'elenco di transizioni esistente tra due stati.
L'elenco di transizioni non viene restituito in un ordine specifico. È necessario esaminare ogni voce dell'array fino a quando non si individua il nome dell'azione desiderato.
VBScript
entitydef.DoesTransitionExist sourceState, destState
Perl
$entitydef->DoesTransitionExist(sourceState, destState);
Per Perl, se esiste almeno una transizione tra i due stati, questo metodo restituisce un riferimento ad un array di stringhe.
VBScript
set sessionObj = GetSession
set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName())
transitions = entityDefObj.DoesTransitionExist("open", "resolved")
If transitions <> Empty Then
' Simply initiate an action using the first entry.
sessionObj.EditEntity entity, transitions(0)
' ...
End If
Perl
$sessionObj = $entity->GetSession();
$entityDefObj = $sessionObj->GetEntityDef($entity->GetEntityDefName());
$transitions = $entityDefObj->DoesTransitionExist("open",
"resolved");
if (@$transitions)
{
# Simply initiate an action using the first entry.
$sessionObj->EditEntity($entity, @$transitions[0]);
}