ARIS Community - We Love BPM

How to create a Participant and add it to a BPMN Model with a script?

Ana CSequeira's picture
by Ana Sequeira in Professional ARIS posted on 2016-12-12

Hello, I am trying to create a participant/another pool with a script and use a message to connect it to a regular start event of a BPMN.

My goal is to run this script on BPMN models and make them more complete like this:

i am trying to use the function:

                     var poolNova = oGroup.CreateObjDef(Constants.OT_BPMN_POOL, "Pool Nova", num); 
                     var newPool = oModel.createObjOcc(Constants.ST_BPMN_POOL, poolNova , 1,1, true);

I run this and i see the "Pool Nova" getting created but I don't see any diference in the BPMN graphic

How can I do this?


Sorry there are no tags
There are no attachments
Dilcarina Duarte posted on 2016-12-12

Hello Ana!

What you have to do is:

var poolNova = oGroup.CreateObjDef(Constants.OT_BPMN_POOL, "Pool Nova", num); 
var newPool = oModel.createObjOcc(1530, poolNova , 1,1);  // Put the pool (poolNova) in the model

Debugging the code I discovered that "Constants.ST_BPMN_POOL" is not valid - So the symbol number of the pool is 1530.


Dilcarina Duarte

M. Zschuckelt posted on 2016-12-12

Hi, as far as I can tell the API name of Symbol 1530 is ST_BPMN_POOL_1. ST_BPMN_POOL is used in BPMN process diagram (BPMN 1.x).

Regards, M. Zschuckelt

Ana Sequeira posted on 2016-12-13

So 1530  (ST_BPMN_POOL_1) is used in BPMN 2.x and that's why it was'nt working.


Thank you very much.