Book a Demo

Author Topic: BPMN Sim - How to incorporate Message Flows?  (Read 4420 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
BPMN Sim - How to incorporate Message Flows?
« on: October 19, 2022, 12:37:55 pm »
My (somewhat limited - I haven't been a serious practitioner in the past) understanding of BPMN was that you had to use Message Flows when transferring control between flow items in different Pools.  We built a non-trivial business process that followed this rule.  However, when we tried to run the simulation engine over that process, it would not get past the first Message Flow.

  • Is my understanding correct?  (You should use Message Flows and Not Sequence Flows between pools)
  • Why will the simulation work only if we convert ALL the Message Flows to Sequence Flows?
What is the best practice here?

TIA,
Paolo
« Last Edit: October 31, 2022, 03:44:14 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: BPMN Sim - How to incorporate Message Flows?
« Reply #1 on: October 31, 2022, 03:44:49 pm »
Anyone? ???

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: BPMN Sim - How to incorporate Message Flows?
« Reply #2 on: November 01, 2022, 09:59:23 pm »
You're right Paolo - no Sequence flows between pools, only Message Flows. (I had to look back into my own BPMN course to make sure...)
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: BPMN Sim - How to incorporate Message Flows?
« Reply #3 on: November 01, 2022, 11:57:16 pm »
Hi Paulo

Does this help?

https://sparxsystems.com/resources/user-guides/16.0/simulation/business-process-simulation-bpsim.pdf

Page 92 onwards.

It may help to work through the example listed here which uses message flow. Apparently, some kind of parameter configuration is required to get Message Flows to work. Have not tried this example myself, but it may get you nearer to a solution.

All the best

Phil
Models are great!
Correct models are even greater!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: BPMN Sim - How to incorporate Message Flows?
« Reply #4 on: November 02, 2022, 02:12:42 pm »
Hi Paolo

Does this help?

https://sparxsystems.com/resources/user-guides/16.0/simulation/business-process-simulation-bpsim.pdf

Page 92 onwards.

It may help to work through the example that uses message flow.  Apparently, some kind of parameter configuration is required to get Message Flows to work.  I have not tried this example myself, but it may get you closer to a solution.

All the best

Phil
Thanks, Phil,
yes, I have tried this exact example, but the UI no longer matches the instructions from page 93.  Also, it's unclear to me why we need to use BPSim instead of the more straightforward BPMN simulation when we use messages unless you can't handle parallel execution in simple BPMN simulation.  So we must use the more powerful BPSim in those circumstances.  That seems reasonable, but I haven't encountered it in any discussion.  Thoughts?

I would really like some Sparxians; after all, they wrote the stuff to explain more the why and how this works.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: BPMN Sim - How to incorporate Message Flows?
« Reply #5 on: November 02, 2022, 02:16:56 pm »
You're right, Paolo - no Sequence flows between pools, only Message Flows.  (I had to look back into my own BPMN course to make sure...)
Hi Ian,
Interestingly, if I break the rule (which I have to to get my BPMN Sim scenario simulations working), validating the package DOESN'T show any errors (for the Sequence Flows crossing Pool boundaries).  I do disable strict connector syntax, but I would have thought that would not invalidate the validation process (pun intended!).


Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!