10-11-2018 08:12 AM
I have a simple process with three task first task(t1) has save and complete button second task has a form with two fileds f1 and f2 where f1 is mandatory. I have two outcomes on this form submit and cancel, submit will take me to the next task(t3) where as cancel should take me to task(t1). When i am trying to click cancel i dont want the current form to be submitted but token should move back to task(t1).
Bassam Al-Sarori, Ciju Joseph, Mauricio Salatino Need your help on the above issue. This can be a general task cancel issue.
10-17-2018 03:38 AM
Just add a gateway to deal with that logic, "moving the token" back is more like a hack, do it in the BPMN way.
10-17-2018 05:32 AM
As Mauricio said you can use a gateway and 2 conditions flow based on the outcomes.
Task 3 condition flow
Task 1 condition flow
10-17-2018 07:07 AM
Hi Maurizio Vitale,
Thanks But if you see my orignal post where i am mentioning that task if task(t2) has mandatory fields it will throw error that form has mandatory fileds. since task(t2) will try to submit the form(and is same for all the task where on any outcome button it will try to submit the form). Ideally we should have some cancel outcome button same as 'Save' and 'Complete' default out come button.
Please correct my understanding if i am wrong.
10-17-2018 09:26 AM
I see your point. You are not able to click on the cancel button if there are required fields not filled out.
Honestly, I don't know if this is considered a bug or something to improve on the activiti side (Bassam Al-Sarori Mauricio Salatino) but once the required fields are filled out you are able to click on the cancel button to go back to the previous task
Explore our Alfresco products with the links below. Use labels to filter content by product module.