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
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.