This use case shows how to automatically import all Alfabet objects to ARIS and start Alfabet synchronization. This keeps your database up to date.
Scenario
You write two report scripts to be executed by scheduled reports. The first one imports Alfabet objects, the second one starts the synchronization.
Prerequisite
The database is connected with Alfabet.
You have the Report automation function privilege for the related database.
You require knowledge of ARIS Method and of the JavaScript and ARIS Script programming languages.
You are script administrator for this tenant.
Required options for the Alfabet synchronization are specified.
Procedure
This procedure is part of the use case.
To import Alfabet objects and start the synchronization automatically, write the two report scripts.
Prerequisite
You require knowledge of ARIS Method and of the JavaScript and ARIS Script programming languages.
You are script administrator for this tenant.
Procedure
In ARIS Architect, click ARIS > Administration.
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 Alfabet as defined in the interface configuration 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 result = alfaIntegration.doImport(ArisData.getSelectedGroups()[0], null)
Save the script and write the second report, for example, Synchronize Alfabet objects:
This report will synchronize already imported Alfabet objects.
Select Database as context for the report to be started
Use this code as example:
var alfaIntegration = Context.getComponent("AlfabetIntegration");v
var result = alfaIntegration.doSynchronize(ArisData.getActiveDatabase(), 3);
Now you have two reports that will be started by scheduled reports.
This procedure is part of the use case.
To import Alfabet assets and start the synchronization automatically ,create two scheduled reports for your two reports to be execute automatically.
Prerequisite
You have the Report automation function privilege for the related database.
Procedure
Click ARIS > Administration or ARIS > Explorer. The Administration or Explorer tab opens.
Log in to the database.
Click Navigation in the bar panel if the Navigation bar is not activated yet.
In the Explorer tree, click the folder Scheduled reports.
To create a schedule, click New >
Create scheduled report. The Report Automation Wizard opens.
Specify the name of the first schedule, e. g, Import Alfabet assets daily.
Specify the password of the current user, and click Next.
Select the Import all Alfabet assets report that you have created earlier, and click Next.
Select the database group for the Alfabet assets to be saved in, and click Next.
Specify when and how often the report should be executed, and click Finish.
Create the second schedule for the Synchronize Alfabet assets report to be executed. The steps to be carried out are similar. In this case, select the database as start context.
The reports will be executed as defined. If the first execution is in the future, the report is automatically active and runs as soon as the defined point in time is reached.