I have a custom application which need to integrate with jboss fuse and jbpm. My custom application is deployed on one server whereas jboss bpm on another server. Can anyone please provide a simple java ee sample on how my custom application can call to bpm by using jboss fuse as middleware. Another question is if my custom application throw and exception after i successfully make a call to jbpm to complete a task? Example, if i make a rest call to complete Task A and after success call to BPM, Task A will be routed to Task B but if my custom application throw an exception, how can i rollback Task B to Task A? Could anyone please provide a simple sample on how can i perform a rollback in this situation?
You have to use REST endpoint exposed by business-central to start BPMN process. It not possible to rollback process execution from TaskB to TaskA. If you want to execute TaskA again then you need to use gateway.