I have an http-connector in a service task which calls an external rest service, and I am able to build a json request with process variables collected by previous tasks, as in:
{
"someId": "${someId}"
}
Now I want to send not only process variables, but also the processInstanceId. This fails, obviously the processInstanceId is not visible to the expression language as a variable:
{
"someId": "${someId}",
"processInstanceId": "${processInstanceId}"
}
How can I send the processInstanceId with http-connector, without using a JavaDelegate?