cancel
Showing results for 
Search instead for 
Did you mean: 

How can i Achieve backward flow

himabindu_v
Confirmed Champ
Confirmed Champ

For ex:

User Task is consider as level1 and level2 , if level1 is approved then it goes to level2.if level2 is rejected i have to forward user task to level 1.

How can i achieve this scenario, could you please let me know. 

1 ACCEPTED ANSWER

Thank you Ryan Dawson, for giving suggestions to me. I am added one variable for flow for backward and forward.Now it's working fine.

View answer in original post

17 REPLIES 17

ryandawson
Elite Collaborator
Elite Collaborator

It sounds like you need an exclusive gateway after level1. The level1 task should set a variable of approved/rejected. The outgoing sequence flows of the exclusive gateway can have conditions of approved, which should go to level2, or rejected, which should go back to level1.

himabindu_v
Confirmed Champ
Confirmed Champ

Yes i need exclusive gateway if you had any examples on this requirement could you please let me know

himabindu_v
Confirmed Champ
Confirmed Champ

Actually my intention was the level1 task approved, which should go to level 2. when level2 task rejected it will again go back to level1 task. that is the scenario, if you had any solution on this scenario could you please let me know.

mdtabrezmca
Star Contributor
Star Contributor

you can refer this example act activiti source code Activiti/ExclusiveGatewayTest.testDecisionFunctionality.bpmn20.xml at 6.x · Activiti/Activiti · GitH...  if you are uisng activiti. Just import this xml file using activiti-processes-> import process from your activiti 6 designer.

i am implementing the above scenario using Spring frame work with activiti. if you had any solution for this scenario,could you please let me know.

Below scenario i want to achieve using Spring framework with Activiti, Any one did the same scenario like this could you please share your examples to me.

Do you mean you're using the full activiti 6 app in tomcat like in http://www.baeldung.com/activiti-kickstart-and-rest-apps ? Or perhaps you're using v5 and the Activiti explorer (in which case the book Activiti in Action is probably the best reference)?

Or are you embedding activiti in a spring boot app like in Getting started with Activiti and Spring Boot  ? 

If you're embedding activiti then you'll need to add your own UI. If you're using the v6 app or the v5 explorer app then you should have a task-processing UI available and you'd just need to import your process.

i am embedding activiti in a spring frame work, i am created BPMN file like below file.I am uploading the Bpmn file for this scenario. level1 approved successfully and level2 rejected the task, then task again will go to level1 it is not happened thorugh Spring with activiti. 

What you describe in words and what you've shown in your diagram do not match as far as I can seen. From your description I would expect something like this:

Perhaps you need to review your diagram?