Wiki源代码5 Approval Node

由用户 liuqing01 在 2025/07/21 02:36 保存的版本 10.1

隐藏最后作者
liuqing01 10.1 1 === 1、Feature Overview ===
yufei li 2.1 2
liuqing01 10.1 3 Sub-process nodes that can call other processes to run under the current process.
yufei li 2.1 4
liuqing01 10.1 5 When the business process is more complex, the process can be split into a parent process and one or more sub-processes to execute. When the parent process to a part of the process will begin to enter the sub-process approval flow, sub-process flow is completed and back to the parent process to complete the acceptance of the entire business.
yufei li 2.1 6
liuqing01 10.1 7 ps: child process is also a complete self-executing process.
yufei li 2.1 8
liuqing01 10.1 9 === 2、**Use Cases** ===
yufei li 2.1 10
liuqing01 10.1 11 Scenarios such as: employees need to return the relevant equipment when leaving, in the exit process can call the “return of equipment” process, will leave the employee's equipment for the return.
yufei li 2.1 12
liuqing01 10.1 13 === 3、**Design Approach:** ===
liuqing01 6.1 14
liuqing01 10.1 15 [[image:1753064871834-492.png]]
liuqing01 6.1 16
liuqing01 10.1 17 ==== 1 Select Process ====
liuqing01 9.1 18
liuqing01 10.1 19 Select the process within the authority, only one can be selected.
liuqing01 6.1 20
liuqing01 10.1 21 [[image:1753064891433-308.png]]
yufei li 2.1 22
liuqing01 10.1 23 ==== 2 Participant ====
liuqing01 6.1 24
liuqing01 10.1 25 Sub-processes are automatically initiated, you need to select the participant of the sub-process, and the participant  acts as the initiator of the process;
yufei li 2.1 26
liuqing01 10.1 27 The participant can select one or more, and if you select more than one, there will be more than one sub-process running.
yufei li 2.1 28
29
liuqing01 10.1 30 ==== 3  Run Mode ====
liuqing01 9.1 31
liuqing01 10.1 32 Set the running relationship between the parent process and the child process;
yufei li 3.1 33
liuqing01 10.1 34 * Synchronization: enter the next node after the end of the child process; the parent process will continue to flow down only after the end of the child process flow (the end of the child process flow contains the flow status of flow completion and manual end). If there are multiple sub-processes, all sub-processes will end before completion.
35 * Asynchronous: the child process is initiated to the next node; the flow state of the parent process is not affected by the child process, i.e., after the process flows to the child process, the parent process continues to flow down the line.
yufei li 3.1 36
liuqing01 10.1 37 The default is synchronous.
yufei li 3.1 38
liuqing01 7.1 39
liuqing01 10.1 40 ==== 4 Automatically submit after the sub-process is initiated ====
liuqing01 7.1 41
liuqing01 10.1 42 If it is turned on and the sub-process is automatically submitted after it is initiated, the sub-process is automatically created for the Participant, and it is submitted directly to the next node of the order making, and goes to the subsequent approval node.
liuqing01 7.1 43
liuqing01 10.1 44 If it is not enabled, only the sub-process form data is created, and a pending process is created for the Participant to stay in the order node, and the sub-process needs to be submitted manually by the Participant.
liuqing01 9.1 45
yufei li 3.1 46
liuqing01 10.1 47 ==== 5 Data transfer ====
yufei li 3.1 48
liuqing01 10.1 49 Sets the data transfer rules between processes when the parent process and the child process are running.
liuqing01 7.1 50
liuqing01 10.1 51 * Parent process →Sub-process: When the parent process flows to the sub-process node, the following parent process field values will be assigned to the corresponding sub-process fields
liuqing01 7.1 52 * (((
liuqing01 10.1 53 Sub-process→ parent process: When the sub-process flow is completed, the following sub-process field values will be assigned to the corresponding parent process fields
liuqing01 7.1 54 )))
55
liuqing01 10.1 56 [[image:1753065148807-206.png]]
yufei li 3.1 57
liuqing01 10.1 58 Data transfer rules:
yufei li 3.1 59
liuqing01 10.1 60 * Support [master-master], [child-child] two kinds of assignment relationship;
61 * field type filtering the new data of the same data service;
62 * and can only be assigned by business fields, system fields to business fields;
63 * each field can only be selected once;
64 * when assigning values between sub-tables, a sub-table can only be assigned by the same sub-table; e.g., the parent process has sub-tables A and B, and the sub-processes have sub-tables C and D. Sub-tables A can be;
65 * assigned to the sub-processes' child table C, child table D, but can not assign both child table A, child table B to child table C;
yufei li 3.1 66
liuqing01 7.1 67
liuqing01 10.1 68 ==== 6 Sub-process operation rules ====
yufei li 3.1 69
70
liuqing01 10.1 71 When a sub-process is executed asynchronously, if the last node of the parent process also passes, the status of the parent process becomes “completed” regardless of whether the status of the sub-process is completed or not.
yufei li 3.1 72
liuqing01 10.1 73 When there are multiple sub-processes, the values will be passed according to the completion time of the sub-processes, and the sub-processes completed first will pass the values first, and the sub-processes completed later will overwrite the previous data.
yufei li 3.1 74
liuqing01 10.1 75 When the sub-process is executed asynchronously, when the sub-process is completed, if the parent process is completed, it still needs to pass the value, and the order of passing the value is the same as above.
yufei li 3.1 76
liuqing01 10.1 77 Dismissal rule of approval node in parent process: If “Dismiss to previous approval node” is set, if the previous approval node is on top of the child process node, it will be dismissed to the previous approval node normally and the child process node will be skipped.
liuqing01 7.1 78
79
liuqing01 10.1 80 Parent process dismissal (child process subsequent nodes dismissed to the node in front of the child process), the impact on the operation of the child process
yufei li 3.1 81
liuqing01 10.1 82 * synchronized: does not affect the operation of the sub-process;
83 * asynchronous :
84 ** If the dismissal to the node in front of the sub-process, and the node is submitted and runs normally according to the process, the running sub-process is discarded, and when you go to the node of the sub-process again, the sub-process activates a new process;
85 ** If the dismissal to the node in front of the sub-process and the node is submitted and goes directly to the node that is dismissed, the running sub-process is unaffected and runs normally.
yufei li 3.1 86
liuqing01 9.1 87
liuqing01 10.1 88 When the parent process run is discarded, the child process data is also nullified. When the parent process run is terminated, the child process is discarded.