-
1. Re: how can I get all variables in process?
swiderski.maciej Oct 8, 2013 2:27 AM (in response to wangtrash) -
2. Re: how can I get all variables in process?
wangtrash Oct 8, 2013 7:46 AM (in response to swiderski.maciej)well, I think that interface is introduced from version 5.4. however, I use the jbpm5.2 now. Is that mean I must upgrade to 5.4 or get the variables' defination list from the .bpmn file?
-
3. Re: how can I get all variables in process?
swiderski.maciej Oct 9, 2013 1:47 AM (in response to wangtrash)I don't think the interface was added in 5.4 it was only documented in 5.4 but the usage in 5.2 should be exactly the same.
HTH
-
4. Re: how can I get all variables in process?
josdel Oct 9, 2013 4:51 AM (in response to swiderski.maciej)I think there is no class named VariableScopeInstance in jbpm5.2.
Try this code to get variables from .bpmn file.
variable = ((WorkflowProcessInstance) proc).getVariable("variableName");
-
5. Re: how can I get all variables in process?
swiderski.maciej Oct 10, 2013 1:28 AM (in response to josdel)Looking at the class VariableScopeInstance it was there from the very beginning - was created like 3 years ago and I can see it in 5.2.x branch on github too.
-
6. Re: how can I get all variables in process?
josdel Oct 11, 2013 2:02 AM (in response to swiderski.maciej)Sorry Maciej, i couldn't able to find the class VariableScopeInstance in 5.2 javadoc Knowledge API 5.3.1.Final API.
But the class exists in jbpm-flow-5.2.0.Final.jar file.
@ trash wang , u just add jbpm-flow-5.2.0.Final.jar file in ur class path , u get all the variables list in the process using VariableScopeInstance class