How to simulate processInstance

Hi,
How to simulate process instance after a process instance start. I need to show the prediction flow.

Hi,

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?

Martin

Hi, Maritin
This is my model picture
image_2

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:
image_1

Hi Clinan,

there are several ways how to achieve that:

  1. 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.
  2. 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.
  3. 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).

Regards
Martin

1 Like