Example for GetHierarchy Activity

This example returns the hierarchy objects from the workflow input document specified for the HIERARCHY ID and VERSION parameters.

<Activity Name="GetHierarchyData">		
<Action>GetHierarchy</Action>		
<Description lang="en">Get hierarchy data</Description>		
<Parameter direction="in" name="InDocument" type="document" eval="variable">workDoc</Parameter>		
<Parameter direction="in" type="string" eval="constant" name="eventState">GETHIERARCHY</Parameter>		
<Parameter direction="in" eval="xpath" type="long" name="HIERARCHY_ID" source="/Message/Body/Document/BusinessDocument/HierarchyAction[last()]/HierarchyActionHeader/Hierarchy/RevisionID/DBID/text()">inDoc</Parameter>		
<Parameter direction="in" eval="xpath" type="long" name="HIERARCHY_VERSION" source="/Message/Body/Document/BusinessDocument/HierarchyAction[last()]/HierarchyActionHeader/Hierarchy/RevisionID/Version/text()">inDoc</Parameter>		<!-- Hierarchy (display) Name -->		
<Parameter direction="out" eval="variable" type="string" name="HIERARCHY">HIERARCHY</Parameter>		
<Parameter direction="out" eval="variable" type="document" name="OutDocument">workDoc</Parameter>
</Activity>