BMC Remedy AR System workflow for TrueSight Orchestration integration
To integrate an AR System application with TrueSight Orchestration, use Developer Studio to create an AR System form or forms to hold the input and output data for each process, and a filter or escalation to exchange information with TrueSight Orchestration.
In the AR System filter or escalation, you select the TrueSight Orchestration processes and the operation to perform. The workflow can be designed to carry out either synchronous or asynchronous TrueSight Orchestration operations. With synchronous execution, BMC Remedy AR System waits for the operation to complete before returning a result to the workflow action. With asynchronous execution, the operation returns a job ID. In this case, you use the job ID in subsequent workflow actions to determine the status of the operation, or to cancel it.
Before you define the application form and filter, or escalation, you must import the TrueSight Orchestration certificate into AR Java trust store.
To import the TrueSight Orchestration certificate
Locate the conf directory in your Content Distribution Peer folder.
For example,[root]# cd /opt/bmc/BAO/CDP/tomcat/conf
[root]# pwd /opt/bmc/BAO/CDP/tomcat/confRun the keytool command to view the certificates.
The default keystore password is changeit.
For example,[root]# /opt/bmc/BAO/CDP/jvm/bin/keytool -list -keystore .keystore
Enter keystore password:Export the certificate that is stored in the <tomcat.crt> file.
For example,[root@tsi-bao2 conf]# /opt/bmc/BAO/CDP/jvm/bin/keytool -export -keystore .keystore -alias tomcat -file tomcat.crt
Enter keystore password:From Developer Studio installation folder, open the devstudio.ini file to identify the JRE used by the Developer Studio.
Refer to the example below:-vm
C:/Program Files/Java/<Java_Home_Folder>/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-vmargs
-Xms512m
-Xmx2048m
-XX:MaxMetaspaceSize=128mOpen the command prompt on the computer where Developer Studio is installed and import the tomcat.crt file to the java folder identified in the above step 4.
Refer to the following example:C:\> cd C:\Program Files\Java\<Java_Home_Folder>\lib\security
keytool -import -trustcacerts -alias tomcat -file d:\temp\tomcat.crt -keystore cacertsFor more information, see the knowledge article Configuring Developer Studio / AR System to connect to BMC Atrium Orchestrator using SSL.
The certificate file is imported. Perform the same steps as mentioned above to add the same public certificate to the AR System Server. You must restart the AR System Server for the new public certificate.
Refer to the example below:
root 2432 1 0 Jun30 ? 00:03:46 /usr/java/default/bin/java -Xmx512m -Djava.lib.path=. -classpath .:/opt/bmc/ARSystem/bin/arapi-91_build001.jar:/opt/bmc/ARSystem/bin/log4j-1.2.17.jar:/opt/bmc/ARSystem/bin/armonitor-9.1.00-SNAPSHOT.jar com.bmc.arsys.armonitor.ARMonitorDaemon
root 2453 2432 0 Jun30 ? 00:03:32 /usr/java/default/bin/java -jar /opt/bmc/ARSystem/bin/arserver.jar -s tsi-itsm2 -i /opt/bmc/ARSystem -l /etc/arsystem/tsi-itsm2
From this we can see Java is under /usr/java/default. We again use keytool to import the certificate.[root@tsi-itsm2 ~]# /usr/java/default/bin/keytool -import -trustcacerts -alias tomcat -file /root/tomcat.crt -keystore cacerts
Enter keystore password:
Certificate was added to keystore
If you do not want to modify the default JRE cacert file, configure the server to use the Custom Truststore parameter. For more information, see Configuring-to-consume-over-SSL-or-with-client-certificates.
For example,
To define the application form
- Create a regular form, and add the appropriate fields to hold the input and output data for the Set Fields action.
The input and output fields on the form depend on the operation and process type. You can create one form that will hold the data for all process integrations, or separate forms for each process. - Save the form and assign a form name.
To define the filter or escalation
- Create a new filter or escalation.
- In the Associated Forms panel, associate the form to the filter or escalation by selecting the form you created in step 1.
- Select the appropriate Execution Options and enter a Run If qualification that is appropriate for the application.
- In the If Actions panel, add a Set Fields action with the following settings:
- As the Data Source, select BMC ATRIUM ORCHESTRATOR.
In the Configuration Name field, select a configuration from the list.
BMC Remedy Developer Studio obtains the list of available configurations from the entries in the AR System Orchestrator Configuration form. When you select a configuration, Developer Studio retrieves the values for the Service URL and Grid Name, and populates those fields.- In the Operation field, select an operation from the list.
The available operation types are:Synchronous Execution — BMC Remedy AR System waits until the process is complete, and then returns the process result. If the process fails to execute, TrueSight Orchestration returns a SOAP fault and the AR System server reports an error in the filter or escalation.
- Asynchronous Execution — BMC Remedy AR System returns without waiting for the process to complete. An asynchronous execution operation always returns the Job ID.
- Cancel Execution — Cancels the operation identified by the Job ID.
The time in which you can cancel an operation is limited, based on when the operation started. This is configurable in TrueSight Orchestration. See the TrueSight Orchestration documentation.
Valid input values for this operation are WITH_COMPENSATION and WITHOUT_COMPENSATION. If you use WITHOUT_COMPENSATION, TrueSight Orchestration returns the job status ABORTED. If you use WITH_COMPENSATION, or if you use an invalid or empty input value, TrueSight Orchestration returns the job status COMPENSATED. - Get Job Status — Returns the current status of the job identified by the Job ID. See Obtaining job status for asynchronous execution operations.
- To add a TrueSight Orchestration process to the Process table, click Add.
- In the Add Process dialog box, select a Module from the drop-down list in the Module field.
A list of TrueSight Orchestration processes appears in the Process list of the Add Process dialog box. - Scroll through the list of processes and select the appropriate one, then click OK.
Developer Studio enters the process in the Process table, and populates the Input Mapping and Output Mapping tables with the appropriate TrueSight Orchestration data elements. - In the Input Mapping table, map each TrueSight Orchestration data element to a field or a static value:
- To map a field from the associated form, click in the Field/Value column, and then click the ellipsis button. In the Field Selector dialog box, select the field to map to the TrueSight Orchestration data item, and then click OK.
- To enter a static value, type the value in the Field/Value column.
To override the Username and Password stored in the configuration form, map these elements to fields in the associated form, as shown in the following figure, or enter a different static value.
When you enter a static password value, the plain text password appears in the Field/Value cell until the cell loses focus. From then on, the password value is displayed as a string of asterisks whether or not the cell has focus.Mapping Username and Password to fields
In the Output Mapping table, map each TrueSight Orchestration data element to a field on the associated form.