KS

Hi ,

I am developing a script to create BPMN Models from a excel document.

I am able to create a Pool object but facing error while creating a Lane object . My script is ,

var newBPMNModel = selectedGroup.CreateModel(BPMNModelType, "MyBPMNModel", locle);

//Create Pool & Lane

var objPoolDef = selectedGroup.CreateObjDef(Constants.OT_BPMN_POOL, "MyPool", locle);

var newPool = newBPMNModel.createObjOcc(1530, objPoolDef , 1,1);

//Create Lane << Here I am facing issue

var newLane = newBPMNModel.createLane(Constants.OT_BPMN_LANE,Constants.LANE_HORIZONTAL);

Also need to know how we place this Lane inside the Pool .

Please Help,

Kartik Sarangi

by Kay Fischbach
Posted on Mon, 02/11/2019 - 11:30

Hi there,

it seems like you misunderstood a part of the Model.createLane(...) method. The first argument is supposed to be a lane type number, you put an object type number there. When you open your script help (click the question mark in your ARIS Architect software in the top right corner, then pick "ARIS Script" on the website that opens itself) in the "Contents" tab, go to "ARIS Script" > "Methods for reports and semantic checks" > "Constants" > "Metamodel constants" > "Lane types" and you should get a list of all permitted lane type constants on the right side.

For your specific model type you can also use the method

ArisData.ActiveFilter().LaneTypes(BPMNModelType, Constants.LANE_HORIZONTAL);

to get an array with all permitted Lane type numbers for your model.

Sadly there seems to be no list within ARIS that lists which Lane type constant corresponds to which integer value, therefore you can't easily take the result from the method mentioned above and tell which constant to use.

Should you get 9999 in the result-array of the method above, that would correspond to Constants.LT_DEFAULT - maybe that's what you need.

 

I'm not really familiar with BPMN, therefore I can't help you any further, but maybe you can figure out the rest.

 

 

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

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