Jump of Branch Node in Workflow
As shown in the following figure: when the contract countersignature is in circulation, each approval node has three opinions and conclusions: agree, disagree, and suspend; when you choose not to agree, the approver fills in the corresponding opinions, the process is automatically transferred to the "QEO modification" node, and the executor of the node modifies the corresponding content of the contract; then return to the previous node to continue the flow.
To achieve this, we can write the code shown in the following figure in the node execution code of each approval node:
The figure above shows that when the executor of the approval node chooses "disagree", the next step of the process will be automatically transferred to the "equipment Office modification" node.
We can see that when the process flows to the "Capital equipment Office modify" node, the node executor modifies the corresponding content and transfers the process downwards, it is a branch node. if the executor of the "equipment Office modify" node is set to manually select where to move next, it seems that the process is not automatic enough.
How can you automatically return the process to the previous execution node?
First of all, we can define a variable of jdid when the form is just entering the process:
Then in each approval node of the process, the variable JDid is assigned to the node ID; of the current node, as shown in the following figure:
Finally, we get the value of JDid at the "equipment Office modify" node:
Flow effect picture:
Original address: http://bbs.delit.cn/thread-909-1-1.html
Please indicate the source of the reprint:
Written by: measurement Technology http://www.delit.cn