BPM, Workflow, and Case

 View Only
  • 1.  Is timer triggering dynamic when attached to a task?

    Posted Tue June 07, 2022 05:53 AM
    Hi All,

    If there is a terminating timer attached to a task with the following parameters


    and if we change the due date of the task (by setting the dueDate property of the task object) after the the task is started or claimed, the timer will follow the change, or not? With other words, when gets evaluated the triggering date? When the task is created, or dynamically when the event manager checks whether there is a task with a timer?

    For example the original due date is say 2022.07.01, the autoCancelDelay in days is 2, so originally the task will terminate on 2022.07.03.
    When we change the due date of the task to say 2022.06.15 - after the token arrived to the task, or even the task is claimed by a user -, the timer will terminate the taks on 2022.06.17 (two days after the new due date), or modifying the due date has no effect on the timer?

    thx,

    ------------------------------
    Laszlo
    ------------------------------


  • 2.  RE: Is timer triggering dynamic when attached to a task?

    IBM Champion
    Posted Tue June 07, 2022 06:34 AM
    Hi Laszlo,

    Yes, the intermediate timer event will take the new due date dynamically.




    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: Is timer triggering dynamic when attached to a task?

    Posted Tue June 07, 2022 06:38 AM
    That's great!
    Thanks Atanu!

    ------------------------------
    Laszlo
    ------------------------------



  • 4.  RE: Is timer triggering dynamic when attached to a task?

    Posted Tue June 07, 2022 06:51 AM
    A question yet Atanu...

    Should we change the dueDate property of the task, or modifying the variable used in "Before or after diference" configuration flield is enough? Will BAW re-read this variable when checks for triggering the event?

    Thx,

    ------------------------------
    Laszlo
    ------------------------------



  • 5.  RE: Is timer triggering dynamic when attached to a task?

    IBM Champion
    Posted Tue June 07, 2022 08:45 AM
    Hi Laszlo,

    It would be difficult for me to answer your question in a proper way as I don't know the requirement.
    Technically, changing the due date dynamically handles the time execution time but changing other variables programmatically which are associated with the timer would not change the execution time of the timer. You have to trigger the timer execution using  - tw.system.rescheduleTimer JS API where you need to pass the timer id and the new time of execution. Timer id can be stored in a variable in the pre-execution of the timer.

    But, if this is a design question, then I would probably have used event gateway where with a combination of a timer event and an IME. The event gateway will flow if either event occurs. You could then call the UCA programmatically to trigger the IME based on your need.


    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 6.  RE: Is timer triggering dynamic when attached to a task?

    Posted Tue June 07, 2022 08:55 AM
    Okay, thanks!

    ------------------------------
    Laszlo
    ------------------------------