Send Process Variables to an External REST using http connector

Hi
i have a service task with http connector. i can send some static POST parameters as payload for my REST API.
but what should i do if i want to send the camunda process_instance_id to the REST API?
is there any pre-defined variable such as ${camunda_process_instance_id} or something like that?

thanks

https://docs.camunda.org/javadoc/camunda-bpm-platform/7.7/org/camunda/bpm/engine/delegate/DelegateExecution.html#getProcessInstanceId()

${execution.getProcessInstaceId()}

or use a script such as javascript

var myVar = execution.getProcessInstaceId();

1 Like