AS

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?

 

by Dilcarina Duarte
Posted on Mon, 12/12/2016 - 19:19

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

0
by M. Zschuckelt
Posted on Mon, 12/12/2016 - 20:24

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

0
by Ana Sequeira Author
Posted on Tue, 12/13/2016 - 11:24

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

 

Thank you very much.

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock