Freemarker + businessKey

Hi,

Id like to use a freemarker template to build a json payload inside a connector. In particular, Id like to use the businessKey as a parameter. Hence how can I get the businessKey inside freemarker template?

For example, assume I am calling the start process REST API from a connector, my freemarker may look something like;

{“variables”:
{“SUBJECT” : {“value” : “${SUBJECT}”, “type”: “json”}},
“businessKey” : “${businessKey}”
}

However ${businessKey} obviously wont resolve to the business key…

regards

Rob

Hi Rob,

maybe use an input mapping, which fetches the business key from the execution and sets it as a variable?

Cheers,
Sebastian

What about ${execution.processBusinessKey}?

Thanks Thorben,

Thats what I was looking for. I think Ive got the rules now - when configuring the request I can use ‘execution’, when processing the response, I need to use ‘connector’

regards

Rob