setVariables(String executionId, Map<String,? extends Object> variables),what is execution id?

In RutimeService there is method setVariables(String executionId, Map<String,? extends Object> variables)-
what is the execution id here and how to get this execution id .

Hi,

The execution id can be a process instance id or the execution id of a scoped execution in the process instance. For each active token in the process instance, an execution is present in the ACT_RU_EXECUTION table. In most cases you just want to use the process instance id.

Best regards,

Tijs