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:


โฟลว์จัดเตรียมลำดับทั่วไปของกิจกรรมที่จะใช้โดยโฟลว์หลาย ๆ คุณสามารถรวมโฟลว์ย่อยในโฟลว์ของคุณได้เช่นเดียวกับที่รวมกิจกรรมและเครื่องมือ นอกจากนี้คุณยังสามารถเชื่อมต่อกระแสย่อยกับโหนดอื่น ๆ ในลักษณะเดียวกัน

subflow ให้ประโยชน์ดังต่อไปนี้:

Types of Subflow

ประเภทของ Subflow

1. Synchronous

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.

1. ซิงโครนัส


โฟลว์รันพร้อมกัน (เทียบกับโฟลว์ที่เรียกการทำงาน) และสืบทอดทั้งกลยุทธ์การประมวลผลและกลยุทธ์ข้อยกเว้นที่ใช้โดยโฟลว์ทริกเกอร์ ขณะที่โฟลว์กำลังทำงานอยู่การประมวลผลบนโฟลว์ทริกเกอร์จะหยุดชั่วคราวจากนั้นจะกลับมาทำงานต่อหลังจากที่โฟลว์นั้นประมวลผลเสร็จและส่งข้อความกลับไปยังโฟลว์ทริกเกอร์



Case 1: Standard synchronous subflow

กรณีที่ 1: subflow แบบซิงโครนัสมาตรฐาน



Case 2: Using Subflow multiple times in a flow.

กรณีที่ 2: การใช้ Subflow หลายครั้งในโฟลว์



Case 3: Same subflow used by multiple flows

กรณีที่ 3: subflow เดียวกันที่ใช้โดยหลาย flow

2. Asynchronous

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.

2. แบบอะซิงโครนัส


การไหลแบบอะซิงโครนัสทำงานพร้อมกันและแบบอะซิงโครนัสแบบขนานกับโฟลว์ที่เรียกการทำงาน เมื่อโฟลว์ทริกเกอร์โฟลว์แบบอะซิงโครนัสจึงเรียกการทำงานของมันโฟลว์จะไหลไปยังตัวประมวลผลกิจกรรมถัดไปในโฟลว์ของตัวเอง ดังนั้นทั้งสองกระแส - เรียกและเรียก - ดำเนินการพร้อมกันและเป็นอิสระแต่ละจบด้วยตัวเอง โฟลว์ชนิดนี้ไม่สืบทอดการประมวลผลหรือกลยุทธ์การยกเว้นจากโฟลว์ทริกเกอร์



Case 1: Standard asynchronous subflow

กรณีที่ 1: การย่อยแบบอะซิงโครนัสมาตรฐาน



Case 2: Same subflow used by multiple flows

กรณีที่ 2: subflow เดียวกันที่ใช้โดยหลาย ๆ กระแส