Set a timer for 3 days after date variable for approvals in workflow

gnunez
Kilo Guru

Hello all,

I posted another question similar to this, but I thought I'd make its own thread. I have a workflow with 5 approvals that are triggered simultaneously. I also have a date field on the form called (Testing completion date). My requirement is to have a timer on the workflow where the approvals need to be approved by the testing completion date, which will most likely be 2-3 days after form submission. After the timer a task should be triggered. I know people suggested manual approvals or a timer workflow activity, but I'm not too sure on how to achieve this.

any recommendations? 

Thanks in advance!

Grace

1 ACCEPTED SOLUTION

asifnoor
Kilo Patron

In the timer based on dropdown, you have the option to choose either script or "A date/time or duration field".

If you select "A date/time or duration field". option, then you can choose the field based on which you want to set the timer.

If you select script option, then you can query and get the value of the variable something like

return current.variables.your_variable_name

or write a script and query if its some other value from DB.

Mark the comment as a correct answer and helpful if it answers your question.

View solution in original post

16 REPLIES 16

Hi Dhananjay,

Thanks for the response! When the workflow is paused, are the approvals still triggered?

Also, I want it to be paused until the "Testing completion date" that is specified on the catalog item. Is that possible?

Thanks,

Grace

asifnoor
Kilo Patron

Hi,

In your workflow, go to activity and drag the timer activity in the Workflow. In the time, you can mention the no. of days or hours or seconds. mention the days as per your need. 

Add this activity and link create task activity after the timer. So once the timer activity is finished, a task gets created.

Mark the comment as a correct answer and helpful if it helps.

Thanks for the response! Can I specify the timer based on my catalog variable?

If you want to set timer based on some value of variable, then yes. You need to add if activity and check the value of variable there and add timer accordingly. If you want to set timer value as per variable value, it is not possible. Mark the comment as a correct answer and helpful if it answers your question.

asifnoor
Kilo Patron

In the timer based on dropdown, you have the option to choose either script or "A date/time or duration field".

If you select "A date/time or duration field". option, then you can choose the field based on which you want to set the timer.

If you select script option, then you can query and get the value of the variable something like

return current.variables.your_variable_name

or write a script and query if its some other value from DB.

Mark the comment as a correct answer and helpful if it answers your question.