Description of problem: When I call start REST API operation to create a process instance, I will receive just this response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response> <status>SUCCESS</status> <url>/business-central/rest/runtime/org.jboss:integration:1.0.0.Final/process/integration.src.main.resources.remotekbase.ScriptTask/start</url> </response> There should be some information about the process instance identifier to get more details about the process instance, I created. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Well, to support it ... the response should be same as JMS, which returns JaxbProcessInstanceResponse.
Hi Ivo, I disagree with comparing the JMS and the REST api with each other -- they are not interchangeable and have different purposes, I think. The JMS api only really provides a "execute" interface, to which commands can be sent. It also has much less interactivity (and is smaller) than the REST api. If you interface with the JMS api, then the results are determined by which (drools/jbpm) command you call, or if you're using the programmatic client api, which (ksession) method you call. I agree with you that more details should be provided, though. I disagree with returning the ProcessInstance: there are other operations for that, including the /process/instance/{id}. I'll make sure to add more info to the reply.
Hi Marco, which commands? Is it any command which implements the GenericCommand<T> interface? Thanks! @M
Ivo: I've modified the process/instance/{id}/start method so that it will respond with a JaxbProcessInstance entity.
I've seen the changes in source code already, so thank you.
Verified in JBoss BPMS 6.0.0.DR6