AR System workflow for TrueSight Orchestration integration
To integrate a application with TrueSight Orchestration, use to create a 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 filter or escalation, you select the TrueSight Orchestration processes and the operation to perform. The workflow can be designed to carry out synchronous or asynchronous TrueSight Orchestration operations. With synchronous execution, 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.
You must use a separate Set Fields action for each TrueSight Orchestration process.
Before you define the application form and filter (or escalation), import the TrueSight Orchestration certificate into AR Java trust store as described in the following procedure.
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 installation folder, open the devstudio.ini file to identify the JRE used by the .
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 is installed and import the tomcat.crt file to the java folder identified in the above step 4.
C:\> cd C:\Program Files\Java\<Java_Home_Folder>\lib\security
keytool -import -trustcacerts -alias tomcat -file d:\temp\tomcat.crt -keystore cacertsThe certificate file is imported.
- Repeat the steps to add the same public certificate to the .
You must restart the for the new public certificate. Refer to the example below
[root@tsi-itsm2 ~]# ps -ef | fgrep -i ars
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/arlogger-9.1.11-SNAPSHOT.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 keystoreIf you do not want to modify the default JRE cacert file, configure the server to use the Custom Truststore parameter, for example:
-Djavax.net.ssl.trustStore=/usr/share/tomcat/conf/certificates.p12 -Djavax.net.ssl.trustStorePassword=0nbmcc3rts -Djavax.net.ssl.trustStoreType=pkcs12"For more information, see Configuring-to-consume-over-SSL-or-with-client-certificates.
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.
- On the Associated Forms panel, associate the form to the filter or escalation by selecting the form you created in the previous procedure.
- Select the appropriate Execution Options and enter a Run If qualification that is appropriate for the application.
- On the If Actions panel, add a Set Fields action with the following settings:
- As the Data Source, select BMC ATRIUM ORCHESTRATOR.
From the Configuration Name list, select a configuration.
obtains the list of available configurations from the entries in the AR System Orchestrator Configuration form. When you select a configuration, 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— 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 reports an error in the filter or escalation.
Processes that take longer than 40 seconds to complete cannot be executed in Synchronous Execution mode. If this occurs, reports error 8939: The AR System Plug-In server is not responding. For longer processes, use Asynchronous Execution mode instead.
- Asynchronous Execution— 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. You can configure this in TrueSight Orchestration.
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 Module list.
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, and click OK.
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 click OK.
- To enter a static value, type the value in the Field/Value column.
To override the user name 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 the cell has focus.The Username and Password from the configuration form are stored in these elements as the default attribute, and will be used if the mapped fields are NULL at runtime. If you want to prevent this, delete them from the Field/Value column before you map the fields. Also, automatically sets the attributes arUsername: true and arPassword: true in these elements. This causes the filter or escalation to use the current user name and password at runtime, if no other value is available. You cannot change these attributes.
Mapping Username and Password to fields
In the Output Mapping table, map each TrueSight Orchestration data element to a field on the associated form.
Output parameters returned to consist of the value only. XML tags that TrueSight Orchestration generates are stripped from the returned value.