You have selected the appropriate perspective in the Perspective Wizard so that all relevant folders are displayed on the Administration tab.
You have selected the Configuration & Administration working environment in the Perspective Wizard.
You have the required privileges for the different tasks. The various privileges are listed in the procedure descriptions below.
Click Navigation in the bar panel if the Navigation bar is not activated yet.
In the Explorer tree, double-click the Evaluations folder.
Double-click the Reports folder. The report categories are displayed.
Right-click the category to which you want to assign the report script or create a new category.
Click New > Report. The Script Wizard opens.
For the first example specify the Name and Description in the required languages, for example, the name Import all Alfabet objects and the description Imports all objects from APPLICATION table as defined in ARIS - ALFABET-integration.xml into selected database groups.
Click Next.
Select the Group as context for the report to be started, and click Next.
Deactivate the Generate output file check box and navigate to the Restrict access page.
Restrict the access for the report to be executed.
Click Finish. Script Editor opens.
Write the code, for example:
var alfaIntegration = Context.getComponent("AlfabetIntegration")
var config = alfaIntegration.importTables(ArisData.getSelectedGroups()[0], ["APPLICATION"])
Save the script and write the second report, for example, Synchronize Alfabet objects:
This report will synchronize already imported Alfabet objects according to the ARIS - ALFABET-integration.xml configuration file.
Select Database as context for the report to be started
Use this code as example:
var alfaIntegration = Context.getComponent("AlfabetIntegration")
alfaIntegration.synchronize(ArisData.getActiveDatabase(), 1) //options: 0: leave untouched, 1:remove the link to alfabet asset, 2:delete in Aris