Getting the ID process Instance in the process variable

Hi all.
How can I get ID process Instance in a process variable ?

Hi,
there is an execution interface which provides method getId() or getProcessInstanceId().
If you want to store the PID in some process variable you can create execution listener on start event.
Here is a sample process (3.1 KB) for you (it is executable so you can try it).


Hope this helps.
Cheers,
Lukas

3 Likes