Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to access a process instance id from within the instance? (jbpm)

Tags:

jbpm

bpmn

We're hoping to put a running instance id into context within our jbpm workflow so we can use it along with the remote queries to pull data back about our running application.

Anyone know if this is possible? And if so how is it done?

like image 295
Cdn_Dev Avatar asked Oct 15 '25 17:10

Cdn_Dev


1 Answers

¿Where are you planing to do that? On a "Script Task" you can access to a running process Instance with:

System.out.println("processInstanceId = "+kcontext.getProcessInstance().getId());
like image 187
antmendoza Avatar answered Oct 18 '25 22:10

antmendoza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!