Example for CreateWorkItem Activity for Hierarchy Approval
The following example evaluates participants based on the Hierarchy Create Approval business process rule and creates hierarchy approval work item for create hierarchy in the Inbox of those users.
<Activity Name="HierarchyMgmtCreateApproval"> <Action>CreateWorkItem</Action> <Description lang="en">Create workitem for approval of the creation of Hierarchy</Description> <Execution>SYNCHR</Execution> <Parameter direction="in" eval="constant" type="string" name="Intent">Approval</Parameter> <Parameter direction="in" type="string" eval="constant" name="eventState">HIERARCHYCREATEAPPROVAL</Parameter> <Parameter direction="in" eval="rule" source="Hierarchy Create Approval" type="long" name="ParticipantID">workDoc</Parameter> <Parameter direction="in" eval="rule" source="Hierarchy Create Approval" type="long" name="ParticipantType">workDoc</Parameter> <Parameter direction="in" eval="constant" type="string" name="FormPresentation">com.tibco.mdm.ui.workflow.engine.workitem.templates.HierarchyEditApprovalSummary</Parameter> <Parameter direction="in" eval="constant" type="string" name="Form">standard/forms/fm26ca.xml</Parameter> <Parameter direction="in" eval="constant" type="string" name="MailPresentation">com.tibco.mdm.ui.workflow.engine.emailtemplates.EmailHierarchyAddEditWorkItem</Parameter> <Parameter direction="in" eval="constant" type="string" name="TaskType">HIERARCHYAPPROVAL</Parameter> <Parameter direction="in" eval="variable" type="document" name="InDocument">workDoc</Parameter> <Parameter direction="out" eval="variable" type="document" name="OutDocument">wiDoc</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="WorkItemCreated">approvalFlag</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="MergedDocument">workDoc</Parameter> <Parameter direction="out" name="StepID" eval="variable" type="long">pl1</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryType">RELATIVE</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryDate">1:0:0:0</Parameter> </Activity>
The following example evaluates participants based on the Hierarchy Edit Approval business process rule and creates hierarchy approval work item for modify hierarchy and for split and merge operations in the Inbox of those users.
<Activity Name="HierarchyMgmtEditApproval"> <Action>CreateWorkItem</Action> <Description lang="en">Create workitem for approval of the modification of Hierarchy</Description> <Execution>SYNCHR</Execution> <Parameter direction="in" eval="constant" type="string" name="Intent">Approval</Parameter> <Parameter direction="in" type="string" eval="constant" name="eventState">HIERARCHYEDITAPPROVAL</Parameter> <Parameter direction="in" eval="rule" source="Hierarchy Edit Approval" type="long" name="ParticipantID">workDoc</Parameter> <Parameter direction="in" eval="constant" type="string" name="FormPresentation">com.tibco.mdm.ui.workflow.engine.workitem.templates.HierarchyEditApprovalSummary</Parameter> <Parameter direction="in" eval="constant" type="string" name="Form">standard/forms/fm26ca.xml</Parameter> <Parameter direction="in" eval="constant" type="string" name="MailPresentation">com.tibco.mdm.ui.workflow.engine.emailtemplates.EmailHierarchyAddEditWorkItem</Parameter> <Parameter direction="in" eval="constant" type="string" name="TaskType">HIERARCHYAPPROVAL</Parameter> <Parameter direction="in" eval="variable" type="document" name="InDocument">workDoc</Parameter> <Parameter direction="out" eval="variable" type="document" name="OutDocument">wiDoc</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="WorkItemCreated">approvalFlag</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="MergedDocument">workDoc</Parameter> <Parameter direction="out" name="StepID" eval="variable" type="long">pl1</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryType">RELATIVE</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryDate">1:0:0:0</Parameter> </Activity>
The following example evaluates participants based on the Hierarchy Link Approval business process rule and creates hierarchy approval work item for the link and unlink operation in the Inbox of those users.
<Activity Name="HierarchyMgmtLinkApproval"> <Action>CreateWorkItem</Action> <Description lang="en">Create workitem for approval of the hierarchy to record link operations</Description> <Execution>SYNCHR</Execution> <Parameter direction="in" eval="constant" type="string" name="Intent">Approval</Parameter> <Parameter direction="in" type="string" eval="constant" name="eventState">HIERARCHYLINKAPPROVAL</Parameter> <Parameter direction="in" eval="rule" source="Hierarchy Link Approval" type="long" name="ParticipantID">workDoc</Parameter> <Parameter direction="in" eval="constant" type="string" name="FormPresentation">com.tibco.mdm.ui.workflow.engine.workitem.templates.HierarchyEditApprovalSummary</Parameter> <Parameter direction="in" eval="constant" type="string" name="Form">standard/forms/fm26ca.xml</Parameter> <Parameter direction="in" eval="constant" type="string" name="MailPresentation">com.tibco.mdm.ui.workflow.engine.emailtemplates.EmailHierarchyAddEditWorkItem</Parameter> <Parameter direction="in" eval="constant" type="string" name="TaskType">HIERARCHYAPPROVAL</Parameter> <Parameter direction="in" eval="variable" type="document" name="InDocument">workDoc</Parameter> <Parameter direction="out" eval="variable" type="document" name="OutDocument">wiDoc</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="WorkItemCreated">approvalFlag</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="MergedDocument">workDoc</Parameter> <Parameter direction="out" name="StepID" eval="variable" type="long">pl1</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryType">RELATIVE</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryDate">1:0:0:0</Parameter> </Activity>
The following example evaluates participants based on the Hierarchy Delete Approval business process rule and creates hierarchy approval work item for the delete hierarchy in the Inbox of those users.
<Activity Name="HierarchyMgmtDeleteApproval"> <Action>CreateWorkItem</Action> <Description lang="en">Create workitem for approval of the deletion of Hierarchy</Description> <Execution>SYNCHR</Execution> <Parameter direction="in" name="Intent" eval="constant" type="string">Notify</Parameter> <Parameter direction="in" type="string" eval="constant" name="eventState">HIERARCHYDELETEAPPROVAL</Parameter> <Parameter direction="in" eval="rule" source="Hierarchy Delete Approval" type="long" name="ParticipantID">workDoc</Parameter> <Parameter direction="in" eval="constant" type="string" name="FormPresentation">com.tibco.mdm.ui.workflow.engine.workitem.templates.HierarchyDeleteApprovalSummary</Parameter> <Parameter direction="in" eval="constant" type="string" name="Form">standard/forms/fm26ca.xml</Parameter> <Parameter direction="in" eval="constant" type="string" name="MailPresentation">com.tibco.mdm.ui.workflow.engine.emailtemplates.EmailHierarchyDeleteWorkItem</Parameter> <Parameter direction="in" eval="constant" type="string" name="TaskType">HIERARCHYAPPROVAL</Parameter> <Parameter direction="in" eval="variable" type="document" name="InDocument">workDoc</Parameter> <Parameter direction="out" eval="variable" type="document" name="OutDocument">wiDoc</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="WorkItemCreated">approvalFlag</Parameter> <Parameter direction="out" eval="variable" type="boolean" name="MergedDocument">workDoc</Parameter> <Parameter direction="out" name="StepID" eval="variable" type="long">pl1</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryType">RELATIVE</Parameter> <Parameter direction="in" eval="constant" type="string" name="ExpiryDate">1:0:0:0</Parameter> </Activity>
Copyright © Cloud Software Group, Inc. All rights reserved.