Example for UpdateHierarchyState Activity
The following example updates the hierarchy state as CONFIRMED.
<Activity Name="UpdateHierarchyStateAsApproved"> <Action>UpdateHierarchyState</Action> <Description lang="en">Set the hierarchy status as confirmed</Description> <Parameter direction="in" type="string" eval="constant" name="eventState">UPDATEHIERARCHY</Parameter> <Parameter direction="in" name="Status" type="string" eval="constant">CONFIRMED</Parameter> <Parameter direction="in" name="InDocument" type="document" eval="variable">workDoc</Parameter> <Parameter direction="out" eval="variable" type="document" name="OutDocument">workDoc</Parameter> </Activity>
The following example updates the hierarchy state as REJECTED.
<Activity Name="UpdateHierarchyStateAsRejected"> <Action>UpdateHierarchyState</Action> <Description lang="en">Set the hierarchy status as REJECTED</Description> <Parameter direction="in" type="string" eval="constant" name="eventState">UPDATEHIERARCHY</Parameter> <Parameter name="RejectedNodes" type="string" eval="xpath" source="/Message/Body/Document/BusinessDocument/HierarchyAction[last()]/HierarchyActionHeader/HierarchyActionHeaderAck/NodeRejections/text()" direction="in">workDoc</Parameter> <Parameter direction="in" name="Status" type="string" eval="constant">REJECTED</Parameter> <Parameter direction="in" name="InDocument" type="document" eval="variable">workDoc</Parameter> <Parameter direction="out" eval="variable" type="document" name="OutDocument">workDoc</Parameter> </Activity>
Copyright © Cloud Software Group, Inc. All rights reserved.