Trigger Deadline based on specific Date value

Introduction

This article explains how to set up a Deadline in Joget that is triggered based on a specific date value set in a form. By configuring a deadline in this way, you can ensure that your process is executed or transitioned according to a specified date.

How does it work?

  1. Add an activity to your workflow that will be triggered when the deadline is reached.
  2. Edit the activity in which the deadline is to be set. Configure the Duration Unit to Date (dd/MM/yyyy) and set the Deadline Limit to the name of the workflow variable.
    If using a workflow variable, name it appropriately (e.g., workflowVariable).

    Note that when using a nonworkflow variable value in the Deadline limit for the date type format of the Duration unit, you will be required to quote the value.
    Example:
    • 12/12/2017
    • #formulario.prueba.fecha límite#
  3.  Set up a transition from the activity to handle the deadline. Match the Exception Name in the Deadline configuration with the Expression field of the transition.
  4. Define a workflow variable in the process's properties to store the date value.
  5. Create a form with a Date Picker element to allow users to set a date value for the workflow variable.
  6. Set the Data Format of the Date Picker to dd/MM/yyyy to match the format used in the deadline parameter.
  7. Link the Date Picker's value to the workflow variable.

Important:
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.

Video tutorial

Download sample app

Download the demo app for Trigger Deadline based on specific Date value:
Created by Julieth Last modified by Aadrian on Dec 13, 2024