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.
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.
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.
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.
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.