RB

Hello,

i want to create a small dialog in a macro, where the user can search for objects like the original search function from ARIS.

The problem of the function searchObjects ( Group p_StartGroup, String p_sName, int p_iOptions ) is, that the function only search in the parameter group, but not in the childs of the group. 

The function has to search in all lower levels of the start group.

 

Is there a way to search in all lower levels of the start group? or to use the original search function from ARIS in a macro?

 

Thanks!

 

 

 

 

by Kay Fischbach
Posted on Tue, 04/09/2019 - 10:38

Hm, the last parameter of searchObjects(...) allows you to set options, and the script help says you can put

Constants.SEARCH_OPTION_RECURSIVE

there to search the group recursively. Isn't that exactly what you are looking for?

Maybe look into this? (I haven't tested it, but that seems to be the most logical solution)

0
by Kay Fischbach
Posted on Tue, 04/09/2019 - 11:48

In reply to by rocks1996

Try

Constants.SEARCH_OPTION_RECURSIVE + Constants.SEARCH_OPTION_MATCH_PATTERN

where it expects the option parameter.

It's all described in the script help.

p_iOptions

A bit mask, in which the bits are defined by the following constants:

You're dealing with a bit mask, practically a chain of 0s and 1s. You can combine individual options with the "+" symbol, to stack their effects.

0
by Rene Broll Author
Posted on Tue, 04/09/2019 - 15:18

In reply to by Kay Fischbach

Thank you again Kai! I dont know it, that you can add the Constants with a "+"

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