Dear Community,
I am currently trying to analyze BPMN models and would like to receive all successors to an object (occurence), which are connected to the current object with a sequence flow. In the documentation I found the getBpmnSuccessors function of the Bpmn2ReportServices class, but I don't know how to access it. So my question is: How do I get an instance of the Bpmn2ReportServices class in a report?
Thanks in advance!
Dear Community,
Thanks to the nice support from Software AG, I was able to solve the problem:
var model = ArisData.getSelectedModels()[0];
var arrStartOccs = model.ObjOccListBySymbol([Constants.ST_BPMN_START_EVENT]);
var firstStart = arrStartOccs[0]
var designer = Context.getComponent("Designer");
var bpmnSupport = designer.getBPMNSupport(mdlCurrent);
var arrSucc = bpmnSupport.getBpmnSuccessors(firstStart);
In this example code, all successors of the first start element are saved in the variable arrSucc.
I hope that this will also help others :)
best regards
Petar