Book a Demo

Author Topic: BPMN Simulation  (Read 4724 times)

Hieu Phan

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
BPMN Simulation
« on: May 01, 2013, 06:30:26 pm »
Hi all,

Anyone used the Simulator for BPMN business proceses. I'm struggling using this when the process has gateways in it. I don't know how to specify condition expressions so that the simulation goes through a gateway, it works fine for BPMN diagrams without gateways (both BPMN1.1 and BPMN2.0). I tried specify conditions for incoming and outgoing sequence flows, but don't know how to declare a variable (the simulation error message is that "the variable is not defined"... Any help would be appreciated.

Cheers,
Hieu Phan.

pr1smiley

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • EOD is a Blast!
    • View Profile
Re: BPMN Simulation
« Reply #1 on: May 02, 2013, 05:16:08 am »
Hieu,

you can declare a variable in the following context if using JavaScript (check if JavaScript is enabled on guards and effects)

sim.<myvariable> or this.<myvariable>


HTH

Hieu Phan

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: BPMN Simulation
« Reply #2 on: May 02, 2013, 01:32:20 pm »
Thanks so much HTH, you advice really helps. Now I can set a variable and let the outcoming sequence flow of the gateway evaluate the variable's value to go through.

I have another question. As the simulation scripts only apply at the package level, how can we set it to run only for a specific diagram. It seems that I can't specify the 'Entry Point' for BPMN simulation (I tried to point to a Start Event but it didn't allow me).

Thanks,
Hieu.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: BPMN Simulation
« Reply #3 on: May 02, 2013, 03:35:14 pm »
I don't know if this will help you, but have a look at the Learning center:

(Alt+F1) | Simulation | Simulation | BPMN Interpreted Simulation and
(Alt+F1) | Simulation | Simulation | BPMN Manual Simulation

I have not worked in that area for a long time, so I am not familiar with the detailed steps for setting up and running a BPMN Simulation, but you might glean something from the process.

HTH, by the way, is an abbreviation for 'Hope That Helps'. pr1Smiley didn't use a signature.
« Last Edit: May 02, 2013, 03:36:02 pm by RoyC »
Best Regards, Roy

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: BPMN Simulation
« Reply #4 on: May 02, 2013, 03:41:22 pm »
If you are using an Execution Analyser script - then yes this will apply at the Package level rather than specific diagram level.

If you want to set a variable in the Elements on a diagram - select the first Action  - set it's TaskType to "Script", then add in the "Script" Tagged Value some script initiating a varaible E.g.:
  sim.loan = false;
You can then reference this varaible in Condition Expression elsewhere.

Hieu Phan

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: BPMN Simulation
« Reply #5 on: May 02, 2013, 06:46:31 pm »
Thanks Dermot and RoyC and pr1smiley,

You answers helped me a lot. Now I can set the variables in the Activity itself (using the Script tagged value). But when I run Simulation on diagram 1, it starts running on diagram 2 instead (I have 2 BPMN diagrams under the same package). Although I didn't open diagram 2 but it still come up (I guess the simulator is confused which Start Event to start from).
How can I specify which Start Event (or which diagram) to start?

Thanks,
Hieu.