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

Compare with Current View Page History

« Previous Version 5 Next »

This article shows on how one can set up a Deadline that will be triggered on a specific date value set in a Form.

บทความนี้แสดงวิธีการตั้งค่า Deadline ที่จะถูกเรียกใช้ในค่าวันที่ที่กำหนดในแบบฟอร์ม


Figure 1:  Workflow Design with an activity "Deadline Triggered" that will be invoked when the Deadline is triggered

รูปที่ 1: การออกแบบเวิร์กโฟลว์ที่มีกิจกรรม "Deadline Triggered" ที่จะถูกเรียกใช้เมื่อกำหนดเวลาถูกเรียก



Figure 2:  Setting up the Deadline parameter

รูปที่ 2: การตั้งค่าพารามิเตอร์กำหนดเวลา


Edit the first activity, "Do not complete to trigger deadline" to add a Deadline as shown in the figure above. Set the "Duration unit" to "Date (dd/MM/yyyy)" and "Deadline limit" to the name of Workflow Variable. In this example, the Workflow Variable is named as "workflowVariable".

แก้ไขกิจกรรมแรก "อย่าทำให้หมดกำหนด" เพื่อเพิ่มกำหนดเวลาตามที่แสดงในภาพด้านบน ตั้ง "หน่วยระยะเวลา" เป็น "วันที่ (dd / MM / yyyy)" และ "ขีด จำกัด วันครบกำหนด" เป็นชื่อของตัวแปรเวิร์กโฟลว์ ในตัวอย่างนี้ตัวแปรของกระแสงานมีชื่อเป็น "workflowVariable"

Please note that when using non workflow variable value in "Deadline limit" for date type format of "Duration unit", you will be required to quote the value.

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

Eg.

  • "12/12/2017"
  • "#form.test.deadline#"


Figure 3:  Setting up the Transition as Exception

รูปที่ 3: การตั้งค่าการเปลี่ยนผ่านเป็นข้อยกเว้น


On the transition leading out of the first activity, edit it's properties by matching the Exception name of the Deadline set earlier with the "Expression" field.

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

Figure 4:  Create a Workflow Variable in the process's properties

รูปที่ 4: สร้าง Workflow Variable ในคุณสมบัติของกระบวนการ


Figure 5:  Create a Form with a Date Picker element to set a date value to workflow variable.

รูปที่ 5: สร้างแบบฟอร์มที่มีองค์ประกอบตัวใช้เลือกวันที่เพื่อตั้งค่าวันที่ให้เป็นตัวแปรเวิร์กโฟลว์


Figure 6: Edit the date picker's properties and set "Data Format" to "dd/MM/yyyy"

รูปที่ 6: แก้ไขคุณสมบัติตัวใช้เลือกวันที่และตั้งค่า "รูปแบบข้อมูล" เป็น "dd / MM / yyyy"


Figure 7:  Map the Date Picker's value to the Workflow Variable

รูปที่ 7: แมปค่าตัวใช้เลือกวันที่กับตัวแปรเวิร์กโฟลว์


Important Note:

โน๊ตสำคัญ:

  1. The value of "workflowVariable" can be changed/manipulated as many times as needed to reflect the use case of your process design so long that the deadline has NOT been executed before.

    ค่าของ "workflowVariable" สามารถเปลี่ยนแปลง / จัดการได้หลายครั้งตามที่จำเป็นเพื่อสะท้อนถึงกรณีการใช้งานของการออกแบบกระบวนการของคุณตราบใดที่กำหนดไม่ได้ดำเนินการมาก่อน


Sample App:

แอปตัวอย่าง:

APP_deadline_on_trigger_date.jwa


Related Articles

บทความที่เกี่ยวข้อง



  • No labels