I've setup a Service Task and used the rest http-connector to send the service task to PHP. We define a parameter called payload to send some data to the script and we can map it's output to a process variable with the response parameter.
This works fine for a simple payload like this:
${
execution.id}
But we want to send a json, so we tried this:
{"id":"${
execution.id}"}
This doesn't work, and the string is send without parsing. Actually, as soon as the line doesn't start with a $, it's not parsed. This should be improved.
id: ${
execution.id}
also doesn't work.
We've found a workaround however:
${null}{"id":"${
execution.id}"}
It seems that the parameter is only parsed when it starts with a $, IMO, this should be fixed and it should always be parsed.
Is this a bug? I've reported this as CAM-3893.