지금 Entity 오브젝트를 수정할 수 있는 경우 True를 리턴합니다.
Entity 오브젝트를 편집하려면 BuildEntity를 사용하여 새 오브젝트를 작성하거나 EditEntity를 사용하여 편집할 기존의 오브젝트를 열어야 합니다. Entity 오브젝트는 Commit 메소드를 사용하여 변경사항을 확약하거나 Revert 메소드를 사용하여 Entity 오브젝트를 되돌릴 때까지 편집 가능한 상태로 남아 있습니다.
VBScript
set sessionObj = GetSession set entityToEdit = sessionObj.GetEntity("defect", "BUGID00000042") sessionObj.EditEntity entityToEdit, "modify" ' Verify that the entity object was opened for editing. If Not entityToEdit.IsEditable Then OutputDebugString "Error - the entity object could not be edited." End If
Perl
$sessionObj = $entity->GetSession(); $entityToEdit = $sessionObj->GetEntity("defect", "BUGID00000042"); $sessionObj->EditEntity($entityToEdit, "modify"); # Verify that the entity object was opened for editing. if (!$entityToEdit->IsEditable()) { $session->OutputDebugString("Error - the entity object could not be edited."); }