Hi everyone! I want to duplicate all information of the process instance. Is there any api to do it or I need to handle my self by query & insert DB? Thank for your help
Hi trademak! In my app, I have a batch Object related to 1 process instance. This Object has many child object. When split some child objects from parent, I need each object related to 1 new process instance same as original instance. Sorry for my English. Thanks!
I happened to this too, Like MES I need to Split Order in process runtime. In detail: there is 10 set machine need to product, when the flow goes to product, some exceptions occured, so we need to split one order to several part,such as 2,3,5 set in each order,so it will generate 3 orders ,also the history is same,but the part follows is not the same. so the first idea in my mind is to clone the running process to 3 , and modify some info,and save to db, treat them like 3 process. If you solve the problem or some idea to this ,welcome to communicate. email:[email protected]
No, there is no way to 'clone' a process instance at the moment. If it is only related to variables, though, simply fetch the variables map from the original process instance and pass it through
I think you should reconsider your process design.
What about a process definition with a sub-process started by a parallel activity for each object in your batch? Then you could track the sub-processes (for each object) and still have a reference to and history of the whole batch (object) in the parent process.
I happened to this too, Like MES I need to Split Order in process runtime. In detail: there is 10 set machine need to product, when the flow goes to product, some exceptions occured, so we need to split one order to several part,such as 2,3,5 set in each order,so it will generate 3 orders ,also the history is same,but the part follows is not the same. so the first idea in my mind is to clone the running process to 3 , and modify some info,and save to db, treat them like 3 process. If you solve the problem or some idea to this ,welcome to communicate. email:[email protected]