cancel
Showing results for 
Search instead for 
Did you mean: 

Process Instance ID runtime viarable

jaco1
Confirmed Champ
Confirmed Champ

Hi. Is there a variable I can use that holds the process instance id that I can pass during runtime to a rest call in the payload ?

Like this

{
 "itemkey": "${id}"
}

1 ACCEPTED ANSWER

Hi Jaco,

That should work. If this approach does not work, you can have a global variable at the process level and update them at every step and you can access directly activiti_ru_variable . It also depends on if your process is synchronous/asynchronous and make sure the Rest call gets the right process id before it moves to the next step. 

In one of my use cases I use global variable to maintain the status of every task .That should definitely work .

View answer in original post

11 REPLIES 11

Hi. Sorry what should I use ?

sarveshmvm
Confirmed Champ
Confirmed Champ

You can use whichever as long as it works Smiley Happy