このメソッドを使用すると、状態ありまたは状態なしレコード タイプのいずれかの EntityDef オブジェクトを取得できます。スキーマ内のすべての EntityDef 名のリストを取得するには、GetEntityDefNames メソッドを呼び出します。Session の他のメソッドを呼び出すと、特定の EntityDef サブセットの名前を戻すことができます。ファミリーに属する EntityDef を取得して、特にファミリー用のメソッドを使用します (下記の参照に示してあります)。
VBScript
set sessionObj = GetSession ' Get the list of names of the state-based record types. entityDefNames = sessionObj.GetEntityDefNames ' Iterate over the state-based record types for each name in entityDefNames set entityDefObj = sessionObj.GetEntityDef(name) ' Do something with the EntityDef object Next
Perl
my($session, $nameList, $field, $entityDefObj, $actionName); $session = $entity->GetSession(); $entityDefObj = $session->GetEntityDef( $entity->GetEntityDefName()); $session->OutputDebugString("##> Action names for " . $entityDefObj->GetName() . "¥n"); $nameList = $entityDefObj->GetActionDefNames(); foreach $actionName(@$nameList) { $session->OutputDebugString("¥t##> $actionName¥n"); }