You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 ให้ประโยชน์ดังต่อไปนี้:

  • Reusability and reduced development time.

    สามารถนำมาใช้ใหม่และลดเวลาในการพัฒนา

  • Consistency and increased maintainability of your similar flows (consider a subflow as analogous to a programming macro, or to inline code that is written once but used in many places).

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

  • Flexibility to tailor a subflow to a specific context (for example, by updating the output queue or data source information).

    กระบวนการย่อยแบบอะซิงโครนัสสามารถทำงานที่ต้องใช้เวลามากเช่นการเขียนข้อมูลไปยังฐานข้อมูลภายนอกหรือส่งข้อความทางอีเมลโดยไม่ต้องหยุดการไหลของข้อมูลหลักกระแสการไหลที่ก่อให้เกิดการดำเนินการ

  • Asynchronous subflow can perform time-consuming tasks, such as writing data to an external database or emailing a message, without stalling main flow, the flow that triggered its execution.

    กระบวนการย่อยแบบอะซิงโครนัสสามารถทำงานที่ต้องใช้เวลามากเช่นการเขียนข้อมูลไปยังฐานข้อมูลภายนอกหรือส่งข้อความทางอีเมลโดยไม่ต้องหยุดการไหลของข้อมูลหลักกระแสการไหลที่ก่อให้เกิดการดำเนินการ

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 เดียวกันที่ใช้โดยหลาย ๆ กระแส



  • No labels