cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering the Task Based on User Action

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,

Assume i have a Workflow
Start -> UserTask1 -> UserTask 2 -> UserTask3 -> End

Now i am in UserTask2 waiting for an approval from the User to execute the business logic.
In the GUI, user will say "Run IT", then i should execute my logic and finish the task

What is the event i have to use in my UserTask to perform the above action ?
Is it "complete event " of Tasklistener ?
How to achieve this ? Can you give some bit of code snippet

Regards,
Chandan
1 REPLY 1

hari
Star Contributor
Star Contributor
Hi Chandan,

The complete task listener fires after the task is completed. So if you want something to happen before that, then write your logic before you complete the task. And if some exception occurs, you may just throw it and don't complete the task.