Versions Compared

Key

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

在本文中,我们将向您展示如何使用最后期限的条件  重复循环。

通常情况下,我们会在预期的活动中设置截止日期,如下图所示。

Image Added
 

图1:在“批准离开”活动中设置的异步截止时间为“发送提醒”

 

这是一个非常简单直接的设计,但是可能需要不止一次发出提醒。因此,我们可能会像下面这样设计我们的工作流程。

 

Image Added
 

图2:使用等待活动“等待超时”重复触发“发送提醒”

 

通过使用等待/虚拟活动,我们可以将其循环并添加条件转换以触发/停止发送提醒。

 

In this article, we will attempt to show you on how to introduce a conditional repetitive loop on using Deadlines.

Typically, we would have a Deadline set at the intended activity itself like the following diagram.

Image Removed
Figure 1: Asynchronous deadline set at "Approve Leave" activity to "Send Reminder"

It is a very simple and straight forward design we got above but there may be a need to send out reminder at an interval, not just once. Therefore, we may design our workflow in such a manner like the one below.

Image Removed
Figure 2: Repetitively triggering "Send Reminder" using a waiting activity "Wait for Timeout"

By using a waiting/dummy activity, we can then loop it around and add a conditional transition to trigger/stop sending reminder.