Sandra Renaud [
https://community.jboss.org/people/joploya] created the discussion
"Re: How to set a process variable from java code ?"
To view the discussion, visit:
https://community.jboss.org/message/804260#804260
--------------------------------------------------------------
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
[
https://community.jboss.org/message/804260#804260]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]