Accessing process variables

5 posts / 0 new
Last post
Frauke
Offline
Last seen: 1 hour 43 min ago
Joined: 10/01/2010 - 09:43
Posts: 68
Accessing process variables

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

frederikheremans
frederikheremans's picture
Offline
Last seen: 1 month 1 week ago
Joined: 08/26/2010 - 06:59
Posts: 3087

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

Activiti Core Developer

dgalichet
Offline
Last seen: 3 years 11 months ago
Joined: 10/05/2010 - 15:43
Posts: 3

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
jbarrez's picture
Offline
Last seen: 2 days 22 hours ago
Joined: 05/16/2010 - 12:14
Posts: 3712

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

Activiti Core Developer
My Blog: http://www.jorambarrez.com

dgalichet
Offline
Last seen: 3 years 11 months ago
Joined: 10/05/2010 - 15:43
Posts: 3

jbarrez wrote:
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.