redhat-bpm

Proper way to set or update JBPM6 Process Variables

蓝咒 提交于 2019-12-02 14:31:03
问题 I am trying to set the process variable but getting below error java.lang.IllegalStateException: Process instance 10[SampleBusinessProcess] is disconnected. at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:100) at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setVariable(WorkflowProcessInstanceImpl.java:343) Here is my code - ProcessInstance processInstance = runtimeEngine.getKieSession().getProcessInstance(processInstanceId); (

Proper way to set or update JBPM6 Process Variables

被刻印的时光 ゝ 提交于 2019-12-02 12:02:10
I am trying to set the process variable but getting below error java.lang.IllegalStateException: Process instance 10[SampleBusinessProcess] is disconnected. at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:100) at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setVariable(WorkflowProcessInstanceImpl.java:343) Here is my code - ProcessInstance processInstance = runtimeEngine.getKieSession().getProcessInstance(processInstanceId); ((WorkflowProcessInstanceImpl) processInstance).setVariable("myvariable", "myvalue"); Please help me with the best