-
1. Re: how can I get all variables in process?
Maciej Swiderski Oct 8, 2013 2:27 AM (in response to trash wang) -
2. Re: how can I get all variables in process?
trash wang Oct 8, 2013 7:46 AM (in response to Maciej Swiderski)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?
Maciej Swiderski Oct 9, 2013 1:47 AM (in response to trash wang)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?
Josny Delson Oct 9, 2013 4:51 AM (in response to Maciej Swiderski)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?
Maciej Swiderski Oct 10, 2013 1:28 AM (in response to Josny Delson)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?
Josny Delson Oct 11, 2013 2:02 AM (in response to Maciej Swiderski)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