I am trying to create a rest service that is domain specific. It accepts orders in domain format and calls some jbpm6 processes. Lets assume, all the processes called on behalf of a customer order are supposed to run inside same JTA transaction.
In a standalone application, it is straightforward to embed jbpm6 engine inside my rest service.
But I want the process instance visualisation offered by jbpm-console. So I have to build a kjar and deploy it inside kie web.
Now how do I start and manipulate multiple processes deployed inside kie from within my own rest service? Everything has to be in same JTA transaction.