DD

Hello Everyone,

I have been working on a report where there is a need to fetch list of assigned objects for a specific objet type.

The connection details is as follows:

Original active name : is process-oriented superior

Original passive name : is process-oriented subordinate

As per the requirement i need to list down the assigned objects with the passive connection.

I have tried to get the list using the below code snippet:

var arrChildProcessesObjList = processObject.getConnectedObjs([Constants.FUNC], Constants.EDGES_ASSIGN, [Constants.CT_IS_PRCS_ORNT_SUPER]);

But it is giving me the list of objects in the active connection assignment, not the passive.

As per the scripting manual :

"Constants.EDGES_ASSIGN: Only returns assignment relationships. A link of this constant with EDGES_IN and EDGES_OUT via OR is possible. (Default: Link with EDGES_OUT)."

But i am syntacticaly unable to perform the OR with EDGES_IN.

Kindly guide me on the syntax part. In case you think i can achieve the same output by some different approach as well, kindly suggest that.

Thanks in advance to you all 

by Kay Fischbach
Posted on Tue, 05/21/2019 - 09:55

While I don't fully understand the situation, because I'm unable to comprehend what exactly EDGES_ASSIGN are (in which situation they occur), I think I do know how to link those constants.

Try adding them with the "+" operator

Constants.EDGES_ASSIGN + Constants.EDGES_IN

This should work. I'm basing this on my experiences I've made while answering in this thread:

search Objects in a macro.

0
by Torsten Haase
Posted on Tue, 05/21/2019 - 11:21

Hi,

you can use or operator ( | ) here:

var arrChildProcessesObjList = processObject.getConnectedObjs([Constants.FUNC], Constants.EDGES_ASSIGN | Constants.EDGES_IN, [Constants.CT_IS_PRCS_ORNT_SUPER]);

 

0
by Debapriyo Dasgupta Author
Posted on Tue, 05/21/2019 - 19:13

In reply to by thaase

Hi,

Thanks it worked fine for me. Served my purpose.

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