[jboss-user] [jBPM] - Re: Any WorkflowProcessInstanceUpgrader working example

tmag do-not-reply at jboss.com
Mon Nov 19 16:25:15 EST 2012


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121119/32d83e00/attachment.html 


More information about the jboss-user mailing list