JBoss Community

Migration jbpm 3 to jbpm5

created by y lab in jBPM - View the full discussion

Hi,

I must migrate a code integration . in JBPM3 i have :

             

              JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();

              JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();

 

              GraphSession graphSession = jbpmContext.getGraphSession();

              ProcessDefinition definition = graphSession.findLatestProcessDefinition(processDefinitionName);

              ProcessInstance instance = new ProcessInstance(definition);

              ...

              instance.getContextInstance().setTransientVariable(IntegrationInfo.INTEGRATION_INFO,var);

              instance.signal();

              ...

              jbpmContext.save(instance);

             

             jbpmContext.close();

 

i am new in jbpm5 and i demand what is the effecient equivalent migration of this code in jbpm5.

 

Thanks for your helps.

Reply to this message by going to Community

Start a new discussion in jBPM at Community