Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. To handle routing (for example approval conditions), use Routes in combination with workflow variables. To create a workflow variable, click on Design Process to access the Process Builder. Double click on the process name in the Navigator to bring up the process dialog. Click on the first small icon under the Workflow variable heading, and key in the ID of the variable e.g. status.


    Thai

    ในการจัดการการจัดเส้นทาง (ตัวอย่างเช่นเงื่อนไขการอนุมัติ) ให้ใช้ Routes ร่วมกับตัวแปรเวิร์กโฟลว์ ในการสร้างตัวแปรเวิร์กโฟลว์คลิกที่ Design Process เพื่อเข้าถึง Process Builder ดับเบิลคลิกที่ชื่อกระบวนการใน Navigator เพื่อเปิดกล่องโต้ตอบกระบวนการ คลิกที่ไอคอนเล็ก ๆ แรกใต้ส่วนหัวตัวแปร Workflow และพิมพ์ ID ของตัวแปรเช่น สถานะ.

    Info
    titleRoutes

    Learn more about  Process Routes .

    Thai

    เรียนรู้เพิ่มเติมเกี่ยวกับ Process Routes .



  2. Once a workflow variable has been defined, get back to the Process Mapper. By clicking on a Route it will open up the Map Routes to Plugins.


    Thai

    เมื่อตัวแปรเวิร์กโฟลว์ถูกกำหนดแล้วให้กลับไปที่ Process Mapper โดยคลิกที่เส้นทางมันจะเปิดเส้น Map Routes to Plugins


     

  3. In Map Routes to Plugins, you can map routes defined in the process to plugins. Select the Simple Rules Decision plugin. 


    Thai

    ใน Map Routes to Plugins คุณสามารถแมปเส้นทางที่กำหนดไว้ในกระบวนการเพื่อปลั๊กอิน เลือกปลั๊กอิน Simple Rules Decision




  4. In the plugin configuration,click on Add Rule and then click Add Condition. Set the Variable field to status and set the Value field to Approved. The variable status is referring to the workflow variable


    Thai

    ในการกำหนดค่าปลั๊กอินให้คลิกที่ Add Rule แล้วคลิก Add Condition ตั้งค่าฟิลด์ตัวแปรเป็นสถานะและตั้งค่าฟิลด์เป็นอนุมัติ สถานะตัวแปรอ้างถึงตัวแปรเวิร์กโฟลว์




  5. In the THEN rule, click on Add Action and set Type to Transition  and set Transition to transition3 (Send Approved Email). This means that this transition will occur if the value of status is "Approved".


    Thai

    จากนั้นคลิกที่ Add Action และตั้งค่า Type เป็น Transition และการตั้งค่า Transition ไปสู่ transition3 (ส่งอีเมลที่ได้รับอนุมัติ) ซึ่งหมายความว่าการเปลี่ยนแปลงนี้จะเกิดขึ้นหากค่าสถานะเป็น "อนุมัติ"


     

  6. In the ELSE THEN rule, Set the Type to Transition and set Transition to transition4 (Send Rejected Email) to indicate that it is the default path to take when other conditions are not met. An example of a simple routing process is as shown below:


    Thai

    ในกฎ ELSE THEN ให้ตั้งค่า Type เป็น Transition และตั้งค่า Transition เป็น transition4 (ส่งอีเมลที่ถูกปฏิเสธ) เพื่อระบุว่าเป็นเส้นทางเริ่มต้นที่จะใช้เมื่อไม่ตรงตามเงื่อนไขอื่น ๆ ตัวอย่างของกระบวนการผลิตอย่างง่ายดังแสดงด้านล่าง:


...