PJ

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!

by Petar Juric Author
Posted on Thu, 02/27/2020 - 08:08

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

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