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?
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've discovered that "Constants.ST_BPMN_POOL" is not valid - So the symbol number of the pool is 1530.
Greetings,
Dilcarina Duarte