Multiple Instances and Data Animator

 


DOCUMENTS

Animating Multiple Instances in BPMN Collaborations: from Formal Semantics to Tool Support

Submitted Manuscript
Appendix

DESCRIPTION

MIDA (Multiple Instances and Data Animator) is a BPMN animator based on the Camunda bpmn.io web modeller. MIDA integrates our BPMN formal semantics into the bpmn.io token simulation plug-in. We have enriched this plug-in with a wider set of BPMN elements and redefined their semantics. Moreover, we have implemented data objects, data-driven gateways, pattern-matching for messages and correlation. The result is a complete tool for animating BPMN models in collaborative, multi-instance and data-based contexts. MIDA web application is written in JavaScript. It embeds BPMN models into personal browsers without using any server backend. The graphical interface of MIDA presents to users a modelling environment. Here, users can create BPMN models using all the facilities of the Camunda modeller. When the animation mode is activated, by clicking the corresponding button, one or more instances of the desired process can be fired.

MIDA is freely available here:  [TRY IT!!!]

For users convenience we provide a list of BPMN example models that can be ran on MIDA – [.bpmn files are available here].

MIDA source code is available [here]

 

 

HOW TO USE MIDA

Step-by-Step video

Step-by-Step guide

To access MIDA tool open this link http://pros.unicam.it:8080/Mida/modeler.html. The interface provides a example model for showing the MIDA capabilities.

Anyway, users can design theBPMN models (including data) using the element palette on the left, or load their own model by uploading the .bpmn file already defined. Moreover, additional element informations can be accessed via Property Panel.

Modelling Multiple Instances and Data.

To define multiple instance pool modellers have to double click the desired pool and choose the desired participant multiplicity.

To define multiple instance activities modellers have to click on the element for opening its palette, then click on the wrench and choose one of the activity and fill the filed with an integer value.multiple instance marker. Now open the Property Panel selecting the multiple instance activity and fill the loop cardinality filed with an integer value.

 

 

 

 

 

To define  data and express conditions modellers can define variables, assign values and compare them using Java Script syntax.

Define: "var x;"
Assing: "x = 9;"
Compare: "x >= 2"

To specify variables into data objects we use the element documentation tag. It can be accessed via property panel. Here, users can define variables also with an initial value. Each definition has to be separated by semicolon. User can define any kind of variable handled by Js, even data structures like array.

Guards and the assignments can be specified in the same way inside the documentation field of the activity. Them are simulated using an if statement where the condition is a concatenation of guards expressions and the body is the sequence of assignments.


if(!field & field2 != 0){//guard
field3 = field; //expressions
fiels2 ++;
}

Data can be related to particular instance by using the predefined keyword instance inside data objects or data. This variable represents dynamically the unique identifier of the instance that is performing the operation.

Condition expressions for the data driven gateways have to be defined into the property panel of each outgoing sequence flows. From condition type select Expression and specify a boolean expression.