Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
子流程提供了几个流程要使用的通用活动序列。您可以像包含活动和工具一样将子流程包括在流中。您也可以用相同的方法将子流程连接到其他节点。
子流程提供了以下好处:
子流程同步运行(相对于触发其执行的流),并始终继承触发流所采用的处理策略和异常策略。子流程正在运行时,触发流程的处理暂停,只有在子流程完成处理后才能恢复,并将消息传递回触发流程。
情况1:标准同步子流程
情况2:在流程中多次使用子流程。
情况3:多个流使用相同的子流
异步流程与触发其执行的流程同时并行异步运行。当一个流程触发一个异步流程,从而触发它的执行时,它将同时流入到它自己的流程中的下一个活动处理器。因此,两个流程 - 触发和触发 - 同时独立执行,各自完成。这种类型的流程不会从触发流程中继承处理或异常策略。
情况1:标准异步子流程
情况2:多个流程使用相同的子流程
A subflow provide a common sequence of activities to be used by several flows. You can include subflows in your flows in the same way as you include activity and tool. You can also connect subflows to other nodes in the same way.
A subflow provides the following benefits:
A subflow run synchronously (relative to the flow that triggered its execution) and always inherits both the processing strategy and exception strategy employed by the triggering flow. While a subflow is running, processing on the triggering flow pauses, then resumes only after the subflow completes its processing and hands the message back to the triggering flow.
Case 1: Standard synchronous subflow
Case 2: Using Subflow multiple times in a flow.
Case 3: Same subflow used by multiple flows
An asynchronous flow run simultaneously and asynchronously in parallel to the flow that triggered its execution. When a flow trigger an asynchronous flow, thus triggering its execution, it simultaneously flow to the next activity processor in its own flow. Thus, the two flows – triggering and triggered – execute simultaneously and independently, each finishing on its own. This type of flow does not inherit processing or exception strategies from the triggering flow.
Case 1: Standard asynchronous subflow
Case 2: Same subflow used by multiple flows