Hi All,
We want to create one custom method filter which will have more permissions than Default and less than entire method.
However, to create these filters its taking too much time to select each attribute , object symbols etc.
We have list of type numbers for object and functions .
Is there way we can create filters using script with the details we have ?
If there are any alternative way if you can recommends to carry out this task ?
It is usually recommended that you create a new ARIS database, log into that with the entire method and then create all the content your filter is supposed to contain (create obj definitions, model types, maintain all the attributes you need, place object occurrences to make specific symbol types usable, create the connections between obj occurrences, ...).
Then, when starting to create a new filter, you can just tell ARIS to auto generate a filter based on the content of this newly created database.
The way in which you initially fill this new database, is up to you. If you have a complete list of type numbers, you can probably write a custom script that auto creates database content.
1. How to auto generate filters based on database content:
Second step in the Filter wizard just select "Create automatically". This will change the workflow on the left side from being all those dialogue pages about which you complained, to just a single third page where you're asked which database you want to base your filter on. Btw if you edit an existing filter, you can do the exact same thing and the third page will even give you an additional option whether you just want to add all the newly identified things to the existing filter, or make the filter content only the things defined in the database.
2. How to write script(s)
Those tutorials
https://www.ariscommunity.com/users/eva-klein/2010-04-27-aris-scripting-tutorials
are somewhat old, but that's what I started with (especially those that talk about the scripting - the what-you-see-is-what-you-get editor is certainly a nice to have tool, that I use sometimes to build an output skeleton, but where the real fun begins is in all the things you do with JavaScript/ArisScript).
Before I started with the tutorials I had nothing but Java knowledge (note: no Javascript knowledge), so I had to get used to JavaScript alongside ArisScript. After I grasped the basics of how all the scripting works, it's just really learning about all the available methods you can find in the Aris Script help (ARIS script help => Questionmark in the top right corner of your ARIS Architect software - on the opening website select "ARIS Script") - that's a continues learning process.
Scripting skills improve by solving problems your organization has (e.g. the problem you have where you want to "transform" a list of object numbers into ARIS content). If you have time to spare, feel free to take a look at the Reports & Marcros subsection of the ARIS community forum
https://www.ariscommunity.com/forums/reports-macros-aris
you may find approaches that interest you, ideas that benefit your organization, as well as good example problems that you can try solving (also feel free to share your solution for those problems). You can of course also ask your own questions.
I'd say once you reach the point where you're excited about ARIS updates because a new ARIS version certainly comes with new ArisScript methods, you've got a solid understanding of how the scripting works.