JBoss Community

Re: How to get a list of process variable (name and value) from the processInstance object?

created by Maciej Swiderski in jBPM - View the full discussion

Try with following code:

 

VariableScopeInstance variableScope = (VariableScopeInstance) processInstance.getContextInstance(VariableScope.VARIABLE_SCOPE);
Map<String, Object> variables = variableScope.getVariables();

 

just make sure that process instance is of type org.jbpm.process.instance.ProcessInstance

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community