Let’s say that I have modeled a process like this one:
All tasks are ServiceTasks with JavaDelegate code. Is it possible, through Java, to make Camunda execute only Task2, passing parameters through the execution input and validating the parameters in the execution output?
“Process instance modification can be very useful in JUnit Tests. You can skip the long part to run through the process from the start to the point you want to test and jump directly to the activity or gateway to test”
I am playing around with a service embedded Camunda design. I’m using Java Delegate as communication between Camunda and Java code. With this level of integration, it seems to me that Unit Tests should be at the Task level. I know it is possible to start a process at a specified Task with specific input parameters using Process Modification, but that would solve half the problem if I just want to execute one Task. How would I terminate the process and verify the output just after the Task execution?
I have been thinking about using the camunda-bpm-reactor, registering a listener to the end event of the Task, and cancelling it when the said event is thrown. Is that the best approach?