cancel
Showing results for 
Search instead for 
Did you mean: 

User task - complete vs discard

jdev_hari
Champ in-the-making
Champ in-the-making
The following is scenario of my workflow

- a service task is executed (which includes connecting to a webservice)
- In case of exception an user task is created
- user task must allow the user either to
                    - discard the user task (ignore the failure and proceed on)
                    - complete the user task (retry the service task)

I checked the documentation, I couldn't see any possibility of discarding an user task and a subsequent flow control based on it. Any suggestion on how to implement this.

Thanks.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
You can have a form on the user-task that has a form-field with "Discard" or "End" (or complete the user-taks passing in a variable containing the choice if you're using your own UI-technology).

After the user-taks, you can have an exclusive-gateway which flows back to the service-task in case the variable has a certain value.

jbarrez
Star Contributor
Star Contributor
Why do you want to discard? Simply give the option in the form for the usertask 'discard' and have a sequence flow going to the next step.