Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
English
This article shows on how one can set up a Deadline that will be triggered on a specific date value set in a Form.
Thai

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

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

Thai

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


Image AddedImage Removed
Figure 2:  Setting up the Deadline parameter

Thai

รูปที่ 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".

Thai

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

Info

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.

Thai

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

Eg.

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


 Image Added

Image Removed

Figure 3:  Setting up the Transition as Exception

Thai

รูปที่ 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.Image Removed

Thai

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


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

Thai

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


Image AddedImage Removed

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

Thai

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


Image AddedImage Removed

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

Thai

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


Image RemovedImage Added

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

Thai

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


Important Note:

Thai

โน๊ตสำคัญ:

  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.

...

  1. Thai

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


Sample App:

Thai

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

APP_deadline_on_trigger_date.jwa

 

Related Articles

Thai

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


Widget Connector
urlhttps://www.youtube.com/watch?v=7L_NFQxc2-s