How to simulate process instance after a process instance start. I need to show the prediction flow.
It really depends on what do you want to simulate.
Following link covers one use case https://gromar01.wordpress.com/2017/11/07/will-we-meet-our-kpis/
Could you provide more details?
This is my model picture
Next time, a user submit a bussiness form and start a process instance. I can get all neassary variables from this bussiness form. After this it need simulate a flow and return to web page, the flow like this:
there are several ways how to achieve that:
- use flowable-crystalball to execute simulation (in your case just execution one process execution with complete tasks) and from the history fetch the path which it took.
- start second (virtual) engine with h2 as a storage. Change process engine configuration to skip user tasks, service tasks (if you use them) and allow history. Deploy your process model. When you start this process instance on virtual process engine, you get your path in the history.
- generate an image from the input variables without process model - it seems easier, but you have to maintain logic in two places (image generator and process model).