Example for CheckHierarchyState Activity

The following example locks hierarchy for the current user and event.
<Activity Name="LockHierarchy">		
<Action>CheckHierarchyState</Action>		
<Description lang="en">Lock Hierarchy for current User and Event</Description>		
<Parameter direction="in" type="string" eval="constant" name="eventState">LOCKHIERARCHY</Parameter>		
<Parameter direction="in" name="InDocument" type="document" eval="variable">workDoc</Parameter>	
<!-- CheckHierarchyState: CheckLockState/LockHierarchy. Default - CheckLockState -->		
<Parameter direction="in" name="CheckHierarchyState" type="string" eval="constant">LockHierarchy</Parameter>		
<!-- The owner of Hierarchy lock is Participant User in case of Rejection. -->		
<Parameter direction="out" eval="variable" type="long" name="RejectionParticipantID">RejectionParticipantID</Parameter>		
<Parameter direction="out" eval="variable" type="document" name="OutDocument">workDoc</Parameter>	
</Activity>

The following example checks if hierarchy lock is owned by current the user and event.

<Activity Name="CheckHierarchyState">		
<Action>CheckHierarchyState</Action>		
<Description lang="en">Check (lock) state of the hierarchy</Description>		
<Parameter direction="in" type="string" eval="constant" name="eventState">CHECKHIERARCHYSTATE</Parameter>		
<Parameter direction="in" name="InDocument" type="document" eval="variable">workDoc</Parameter>		
<!-- CheckHierarchyState: CheckLockState/LockHierarchy Default - CheckLockState -->		
<Parameter direction="in" name="CheckHierarchyState" type="string" eval="constant">CheckLockState</Parameter>		
<!-- The owner of Hierarchy lock is Participant User in case of Rejection. -->		
<Parameter direction="out" eval="variable" type="long" name="RejectionParticipantID">RejectionParticipantID</Parameter>		
<Parameter direction="out" eval="variable" type="document" name="OutDocument">workDoc</Parameter>	
</Activity>