Hello ARIS Community,
I'm working on a JavaScript report in ARIS 10 SR21 with the following goals, but I'm running into some roadblocks. Would anyone be able to provide guidance or insights?
Context:
My report works with "Manual Function" objects within ARIS models.
Desired Functionality:
Diagram Creation: For each selected Manual Function:
Create a new Business Control Diagram with the same name as the Manual Function.
Assign the newly created diagram as an object directly connected to the Manual Function.
Place the diagram within a "Risks" subgroup, which should be located under the same parent group as the original model containing the Manual Function.
Challenges and Considerations:
Subgroup Creation: If the "Risks" subgroup doesn't exist, the report should create it.
Diagram Naming: Ensure no naming conflicts arise if existing diagrams share the same name as the Manual Functions.
If you have any experience with similar ARIS scripting tasks, I'd greatly appreciate your advice on:
Recommended scripting approach: Best practices or methods to use.
Code Snippets: Examples of handling object selection, diagram creation and assignment and placement within the ARIS database structure.
Thank you in advance for any assistance!