Executing a workflow
To add the Execute workflow action to a policy
- In the BMC Helix Intelligent Automation console, click Policies and the click Create Automation Policy.
- In the Policy Information section, enter a unique name and an optional description for the policy.
- Select Manual or Automatic depending upon whether you want to execute the policy manually or automatically based on the incoming events.
- In the Trigger section, click Browse and perform one of the following steps to select an event:
- From the Select Event Type tab, select an existing event type, and click Done.
On the Paste Event JSON tab, enter event in the JSON format, and click Done.
Sample service down event{
"id": "<Id>",
"name": "Operations Management: Remediate Windows Service Down",
"type": "system",
"description": "This policy triggers the plugin to remediate a Windows service down event",
"trigger_condition_expression": "$ ? ($.event.event_type == \"tso_service_down\")",
"checksum": "3c0692cd9c9c2592a086de0deb715e62a0e0d7bc1cd02b7b68a4e80129820ac2",
"is_active": true,
"actions": {
"process_event": {
"plugin_type": "remote_plugin",
"credential": {
"type": "tso_key",
"account_id": "TSO123456"
},
"remote_plugin": {
"name": "AutomationDonotDelete"
},
"continue_on_failure": false,
"action": {
"server": "https://hostname.com:38080",
"/baocdp/rest/process/%3ABMC-SA-Event_Orchestration%3AProcess Event/Execute": {
"post": {
"parameters": [
{
"in": "headers",
"Authorization": "auth"
}
],
"requestBody": {
"content": {
"application/json": {
"inputParameters": [
{
"name": "event data",
"value": "$.event"
},
{
"name": "action id",
"value": "BMC_Helix_Monitor-ServiceDown-1"
}
]
}
}
}
}
}
}
}
}
}
In the Trigger Condition text box, use the expression builder to build the following conditional expression to match the trigger condition to the event:
( event.CLASS == PPM_SM_EV ) && ( event.severity == CRITICAL ) && ( event.Status == OPEN )- To add system or custom tags to the policy, perform the following steps:
- System tags: Select one or more tags from the list of available system tags.
Based on the event, some system tags are displayed. - Custom tags: In the Tags (Optional) section, enter a key-value pair.
Tag key should start with an alphabet and end with an alphanumeric character. Key supports alphanumeric characters and periods, dashes, and underscores.
- System tags: Select one or more tags from the list of available system tags.
- To add action to the policy, click Add Action and perform the following steps by using the action wizard:
- From the Pick an automation tool section, click the connector name.
Only configured connectors are displayed here. The wizard takes you to the next step to select an action. - Click Sync Actions.
All workflows in the modules enabled on the TrueSight Orchestration Grid Manager appear. - Click Select against the :BMC-SA-Event_Orchestration:Process Event action.
The wizard takes you to the next step to configure an action. Enter a name for the action.
- In the Input Parameters section, provide the values for all the input parameters displayed for the workflow.
When you select an action, the workflow description appears and the tooltips describe the input parameters required for this action. - Click Done.
The added action appears in the Action Configuration section on the Create Automation Policies page.
- From the Pick an automation tool section, click the connector name.
- In the Estimated Savings section, enter an approximate time (in minutes) and money (in USD) that you may save by automating this action.
- Select Publish Policy and click Save to publish the policy.