Automatically end or cancel a process
Hi,
I have a travel approval process and for many reason there are quite a few requests that aren't handled after being opened.
I wold like to automatically cancel all processes that have a date beyond the travel date in the form.
Any ideas ?
Tnx
David.
-
Try adding a new branch to your process that sets a cancel date and waits for that cancel date. If the cancel date arrives, you then use the AgilePoint API to cancel the process. This new branch would join back together with the main process using an "Or" shape. So that way the process can still complete normally before the timer expires,
In the new branch you would use the "Add Date Time" activity to set a cancel date and then add a timer activity to wait for the cancel date. If the time expires before the process ends, use a REST API call to call the AgilePoint API for cancelling the process.

For instance if you wanted to cancel the process one day after the travel date (Date1 in this example), you would configure the Add Date Time activity like this:

The Output field "CancelDate" is a process field I defined.
Then set you timer activity to wait for the new "CancelDate" to arrive:

When the timer expires the process will then execute the REST API call using Advanced Configuration:

You will need to make sure that you have a variable defined for the AgilePoint REST URL and setup an access token for the service:

請登入寫評論。
評論
2 條評論