JBoss Community

how to setVariable

created by johennes fan in jBPM - View the full discussion

Hello,

After the process was started,I wan't to change the variable.

Then I use this code:

((WorkflowProcessInstanceImpl) ksession.getProcessInstance(processid)).setVariable("aa", "bb")

But it always call "java.lang.NullPointerException",I don't know why.  The code "getVariable()" works well.

 

 

Anyone can help me ?

Reply to this message by going to Community

Start a new discussion in jBPM at Community