cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing process variables

frauke
Champ in-the-making
Champ in-the-making
Hi everybody,

is there any possibility to access the process variables after process execution has finished?
I am thinking about setting or updating variables in the map during process execution. But as I learned, the variables are only visible inside the current scope of the execution.

Is there anything planned on how Activiti processes persist their variables or pass them somehow to the "outside world"?

Frauke
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
This feature is indeed planned, the variables will be part of the history. You can track this here: http://jira.codehaus.org/browse/ACT-120

dgalichet
Champ in-the-making
Champ in-the-making
Hi all,

regarding process variables, is there a way to access them in a (Java) serviceTask injected as a spring bean (using activiti:method-expr="#{myService.doSomething}") ?

I can inject the runtimeService but I need the scopeInstanceId to access a variable (and it seems that it's not available).

Thanks & regards,

David.

jbarrez
Star Contributor
Star Contributor
Not in beta2, but for RC1 that is already implemented: you can now do things like #{myBean.myMethod(execution, myVariable}

dgalichet
Champ in-the-making
Champ in-the-making
Not in beta2, but for RC1 that is already implemented: you can now do things like #{myBean.myMethod(execution, myVariable}

That sounds perfect !

Thanks a lot,

David.