What I can't figure out is, how to send back "data" to the REST client that started the process? I've looked at output parameters, which my process has, but when the process is started and completes, the client doesn't "see" anything other than something like the following:
{
"id": "testWorkflow:4:72ef13ac-baea-aBcD-b8d7-43k1fb437723",
"key": "testWorkflow",
"category": "http://activiti.org/bpmn",
"description": "This is a test workflow",
"name": "Test Workflow",
"version": 4,
"resource": "bpmn/testWorkflow.bpmn",
"deploymentId": "72ef13ac-baea-aBcD-b8d7-43k1fb437723",
"diagram": "bpmn/testWorkflow.png",
"suspended": false
}
Within the process, I get responses from services that are stored in variables like soapResponse. I want to send the value of soapResponse back to the REST client.
How do I do this?
Thanks.
<camunda:inputOutput>
<camunda:outputParameter name="soapResponse">${wsResponse} </camunda:inputOutput>
I thought it would help for you to know what I was doing now so that you could correct my ignorance.
I'd rather avoid the overhead of getting the process ID, querying history, etc.
Can't the process or one of its Java delegate classes simply emit what I want sent back to the REST client?
I'm ignorant about a lot the technology behind Camunda, so don't hesitate to "dumb it down".
Thanks.