JBoss Community

Re: How to set a process variable from java code ?

created by Sandra Renaud in jBPM - View the full discussion

Hello,

 

You need to retrieve the WorkflowProcessInstance : (WorkflowProcessInstance)kSession.getProcessInstance(processInstanceId);

Then :  workflowProcessInstance.setVariable("formValid", formValid);

 

But after server restart workflowProcessInstance can be null and I don't find how to solve this problem.

Reply to this message by going to Community

Start a new discussion in jBPM at Community