Hi, I created a task and flow is shown in the attachment.
Start –> UserTask —> ServiceTask1 —> ServiceTask2 —>ServiceTask3 –> End
After the build was successfull for the above task and generated the bar file I deployed it from activiti probe. Now when I start the process its executing upto ServiceTask1 and its saying Task was successfully completed. I need all the tasks to be executed sequentially one after another up to end. I am not seeing any exceptions in the logs. Please let me know if I missed any thing for the complete process to be completed from the below code snippet.
When an exception occurs when execution the process, the transaction will be rolled back to the last wait-state (or start of process is canceled if process is started). How do you check if only servicetask 1 has been executed? You are using the same activiti:class for all 3 the tasks.
What is the state of the process in the DB (ACT_RU_EXECUTION) after executing the process?
Hi, Thank you for your response. I am using same class for all the service tasks but with different arguments as shown in the XML file(I modified the original arguments which I am using in my original task). When I check the log file… ServiceTask1 logs are printing on the log file and it seems its not moving to ServiceTask2. But on UI its displaying "Task was successfully completed". I am expecting to see ServiceTask2 and ServiceTask3 logs on log file.
I checked act_ru_execution table and IS_ACTIVE_ is showing as 1 for this task.
What interface is your class implementing? If its ActivityBehavior, then you will need to continue the process yourself. It is more preferred to use the JavaDelegate interface instead, as described in the userguide. The ActivityBehavior is only intended for users that 100% know what they're doing, and get more powerful features that way.