tmag [
https://community.jboss.org/people/tmag] created the discussion
"Re: Any WorkflowProcessInstanceUpgrader working example"
To view the discussion, visit:
https://community.jboss.org/message/777264#777264
--------------------------------------------------------------
GenericCommand worked :
*+....................+*
*+final ProcessInstance processInstance =
ksession.startProcess("com.sample.bpmn.v1", null);+*
*+................+*
*+GenericCommand<Void> genericCommand = new GenericCommand<Void>() {+*
*+ public Void execute(Context context) {+*
*+ StatefulKnowledgeSession ksession = ((KnowledgeCommandContext)
context).getStatefulKnowledgesession();+*
*+ ProcessInstance processInstance =
ksession.getProcessInstance(processInstance.getId());+*
*+ WorkflowProcessInstanceUpgrader.upgradeProcessInstance(ksession,
processInstance.getId(), "com.sample.bpmn.v2", mapping);+*
*+ return null;+*
*+ }+*
*+ };+*
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/777264#777264]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]