Versions Compared

Key

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

关于截止日期

  • 最后期限是一个定时器,当一个指定的持续时间已经过去的时候,触发异常转移到另一个活动。可以为每个活动设定截止日期。
  • 我们设置每个活动的时间限制,这将触发一个异常(在这种情况下,一个特定的字符串变量)。当条件设置为“exception”的匹配转换匹配此字符串值时,将会调用转换。

截止日期的类型

  • 截止日期执行可以是  同步的  或  异步的
  • 对于同步执行,当最后期限被触发时,当前活动将不再有效。这用于审批升级等情况。
  • 对于异步执行,下一个活动将在当前活动仍在等待时执行。这用于发送提醒等情况。
  • 每个活动都支持多个截止日期。
    Image Added

设置截止日期 - 分步指南

激活截止日期检查器

  • 活动截止日期检查器默认是禁用的。要允许通过Joget Workflow进行活动截止日期检查,您必须将进程截止时间检查器间隔设置为非零值。将其设置为合适的值,取决于您的需要。
  • 要启用最后期限检查,请转到设置>系统设置。
  • 将“处理截止时间检查器间隔”的值更改为非零值,即30(秒)。使用的单位是秒。

在活动中设定最后期限

  • 打开您希望为其设置截止日期的活动的属性对话框,然后单击截止时间”区域中的创建新元素”按钮; 会弹出一个Deadline属性对话框。为“执行”,“持续时间单位”和“截止日期限制”输入适当的值。  
  • 在“ 例外名称”字段中键入例外名称(例如TIMEOUT)。异常名称区分大小写。确保它匹配给过渡的异常名称。
  • 点击“确定”确认创建截止日期。您可以继续添加多个截止日期。

设置转换为例外流程

  • 如果触发了截止日期,并且异常名称与为转换设置的日期名称相匹配,那么流程将沿着该转换执行到工作流程中的下一个元素。
  • 从活动添加异常类型转换到下一个(即发送提醒)。
  • 将条件类型设置为“例外”。
  • 在表达式文本区域中输入一个例外名称(例如TIMEOUT)。
  • 确认并关闭转换的属性窗口。

提示

About Deadlines

  • Deadlines act as a timer which triggers an exception transition to another activity when a specified duration has elapsed. Deadlines can be set for each activity.
  • We set time limits on each activity, which will trigger an exception (in this case, a specific string variable). When a matching transition that has the condition set to 'exception' matches this string value, the transition will be invoked.

Types of Deadlines

  • Deadline execution can be synchronous or asynchronous.
  • For synchronous execution, the current activity will no longer be active when the deadline is triggered.  This is used in cases such as an approval escalation.
  • For asynchronous execution, the next activity will be executed while the current activity is still waiting.  This is used in cases such as sending reminders.
  • Multiple deadlines are supported for each activity.
    Image Removed

Setting Deadlines - A Step-by-Step Guideline

Activating Deadline Checker

  • The activity deadline checker is disabled by default. To allow activity deadline checking by Joget Workflow, you will have to set the Process Deadline Checker Interval to a non-zero value. Set it to a suitable value, depending on your need.
  • To enable deadline checking, go to Settings > System Setup.
  • Change the value for 'Process Deadline Checker Interval' to a non-zero value, i.e. 30 (seconds). The unit used is seconds.

Setting Deadlines in Activities

  • Open the properties dialog of the activity you wish to set a deadline for, then click on the Create New Element button in the Deadlines area; a Deadline properties dialog box will pop up. Enter appropriate values for 'Execution', 'Duration Unit' and 'Deadline Limit'.
  • Type the exception name in the Exception name field (e.g., TIMEOUT). Exception names are case sensitive. Make sure this matches the exception name given to the transition.
  • Click on 'OK' to confirm the creation of this deadline. You can continue adding multiple deadlines.

Setting Transition as Exception Flow

  • When a deadline is triggered, and where the exception name matches the one set for a transition, the flow will execute along that transition to the next element along the workflow.
  • Add an Exception-type transition from the activity to the next (i.e., Send Reminder).
  • Set the type of condition to 'Exception'.
  • Enter an Exception name (e.g., TIMEOUT) in the Expression text area.
  • Confirm and close the properties window for the transition.

...

Warning
titleDeadline Checker Interval

Remember to turn on 请记住常规设置中打开Deadline Checker Interval in 常规设置 so that Deadlines will be triggered.以便触发Deadline。  

  • 您可以在活动中设置多个截止日期。它们可以包括一级提醒(异步),如果活动尚未在时间限制内完成,则会提示升级(同步)。
  • 请记住匹配例外名称。如果他们不匹配,什么都不会发生。
  • You can set multiple deadlines in an activity. They can include a first-level reminder (asynchronous) which is then followed by an escalation (synchronous) if the activity has not been completed within the time limit.
  • Remember to match the exception names. If they do not match, nothing will happen.