Versions Compared

Key

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

About Deadlines

 

Tip
iconfalse

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.

...

  • 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 Image Added


Setting Deadlines - A Step-by-Step Guideline

...

  • 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 the Admin Bar > General Settings > System SetupTimer Settings.
  • 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 Edit the activity 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  tab. Add a new row and 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 deadlinesave your deadline configuration. You can continue adding multiple deadlinesas many deadlines as you require.

Setting Transition as Exception Flow

...

Warning
titleDeadline Checker Interval

Remember to turn on Deadline Checker Interval in General Settings so that Deadlines will be triggered.

Warning
titleDeadline Checker Interval

When an activity assignment is created, any associated deadline(s) is also created at that instance and ready to be executed upon its set deadline duration. Because of this, deadlines will also store the values of workflow variables at the time of creation of such activity.

Hence, any modification to the workflow variables after the creation of the deadline(s) will not take into effect (e.g: changing workflow variable values in the Process Monitor), while the old values will.

  • You can set multiple deadlines in an activity. They As an example, you 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.