这篇文章展示了如何设置一个截止日期,这个截止日期将在表单中设置的特定日期值上触发。
图1:工作流程设计的活动“截止时间触发”,当截止时间被触发时将被调用
图2:设置截止时间参数
编辑第一个活动,“不要完成以触发截止日期”添加一个Deadline,如上图所示。将“ 持续时间单位 ”设置为“ 日期(年/月/日) ”和“ 截止日期限制 ” 作为工作流程变量的名称。在这个例子中,工作流变量被命名为“ workflowVariable ”。
图3:将转换设置为例外
在从第一个活动开始的转换中,通过将之前设置的截止日期的例外名称与“表达式”字段进行匹配来编辑它的属性。
图4:在流程的属性中创建一个工作流程变量
图5: 使用Date Picker元素创建一个表单,将日期值设置为工作流程变量。
图6:编辑日期选择器的属性并将“数据格式”设置为“dd / MM / yyyy”
图7:将日期选择器的值映射到工作流变量
重要的提示:
- “workflowVariable”的值可根据需要多次更改/操作,以反映过程设计的用例,只要截止日期之前没有执行过。
示例应用程序
This article shows on how one can set up a Deadline that will be triggered on a specific date value set in a Form.
Figure 1: Workflow Design with an activity "Deadline Triggered" that will be invoked when the Deadline is triggered
Figure 2: Setting up the Deadline parameter
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".
Figure 3: Setting up the Transition as Exception
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
Figure 5: Create a Form with a Date Picker element to set a date value to workflow variable.
Figure 6: Edit the date picker's properties and set "Data Format" to "dd/MM/yyyy"
Figure 7: Map the Date Picker's value to the Workflow Variable
Important Note:
- 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.
...
APP_deadline_sample-1-20130619113323.zip
Related Articles相关文章
Widget Connector url https://www.youtube.com/watch?v=7L_NFQxc2-s