You are viewing limited content. For full access, please sign in.

Question

Question

Is there a way to automate the completion of a user task?

asked on August 31, 2023

I have created a process for leave requests.  Everything works great, now I'm trying to figure out a way to let people modify their leave requests after they've been approved.  One idea I had was to create a Modify Leave Request user task and assign it to the employee requesting the leave.  If they don't decide to modify the request,  I want the user task to auto-complete once the leave end date has passed. 

1. Anyone know how to auto complete a task?

2. Anyone have a better idea on how to allow modifications of leave requests?

Thanks

0 0

Replies

replied on August 31, 2023

You can use Signal Catch Events and/or Timer Catch Events

For time-based expiration, attach a Timer Catch Event directly to the user task and set it to interrupt the activity so the task will end automatically.

For signal events, you create a signal throw and name a signal, then attach a signal catch to the user tasks so it will react whenever that signal is thrown.

The Signal Event is more important than the Timer event because if the leave request is approved or rejected, you want that modification task to go away immediately otherwise it would keep the instance active until the timer elapses.

If you don't have a time limit on modifications, for example if they can make changes at any point up until the request is approved/rejected, then you don't really need the timer at all.

In the following example

  1. User submits the form
  2. Approval and Modify tasks are created in parallel
    • If time expires, or the approval is completed, the modify task is cancelled
    • If a modification is submitted, the existing approval is cancelled and a new approval task is created with the updated values

Just make sure that you configure your timer/signal catches to interrupt the attached task.

0 0
replied on August 31, 2023

Thank you!  I'm going to give it a try!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.