How to move the legacy/old orders in the system to new process definition of flowable engine

Hi,

I have some orders already in the system. I am deploying workflow engine newly and creating a process definition. All new orders will follow the new process definition. So my question is how to bring or migrate the old orders into the new process definition.

Is there any API to initialize a process and move directly to some state.

Consider I have

“New Order”, “Order Processing”, “Order Modified” ,“Oder Delivered”.

Some old orders are already in “Order Modified” state, how do I create a process and move directly to “Order Modified”.

Any help is appreciated.

Regards,
Aradhya

Hi,

Is this what you’re looking for:
https://www.flowable.org/docs/javadocs/org/flowable/engine/runtime/ChangeActivityStateBuilder.html

It was improved in 6.2.1, but I’d suggest using 6.3.0 anyway because of all the other goodness in that release.

Cheers
Paul.

1 Like