JBoss Community

Any WorkflowProcessInstanceUpgrader working example

created by tmag in jBPM - View the full discussion

Anyone have a working example on WorkflowProcessInstanceUpgrader ?

 

As per jBPM 5.3 documentation - when we tried upgradeProcessInstance()  -


  •      without a user transaction - its giving NullPointerException

 

Exception in thread "main" java.lang.NullPointerException

    at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:68)

    at org.jbpm.workflow.instance.WorkflowProcessInstanceUpgrader.upgradeProcessInstance(WorkflowProcessInstanceUpgrader.java:57)

 

  •      Within a user transaction - its giving ClassCastException

java.lang.ClassCastException: org.drools.command.impl.CommandBasedStatefulKnowledgeSession cannot be cast to org.drools.common.InternalKnowledgeRuntime

    at org.jbpm.workflow.instance.WorkflowProcessInstanceUpgrader.upgradeProcessInstance(WorkflowProcessInstanceUpgrader.java:61)

Reply to this message by going to Community

Start a new discussion in jBPM at Community