[jboss-user] [jBPM] - Process instance migration problem

HuiSheng Xu do-not-reply at jboss.com
Mon May 10 21:14:55 EDT 2010

HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"Process instance migration problem"

To view the discussion, visit: http://community.jboss.org/message/542156#542156

Hi Sergey,

After migrate processinstance to a new processDefinition,  you should update the modifed processInstance to database.  Otherwise database couldn't know the processInstance has changed.  So it seems the migration operation has no effect.

You could use Command to do this:

processEngine.execute(new Command() {
            public Object execute(Environment env) {
                new DefaultMigrationHandler().migrateInstance(pd,
                    pi, new MigrationDescriptor());
                return null;

I attached the testcase.  Please have a try.  Thank you.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

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

More information about the jboss-user mailing list