Introduction
A task refers to a single unit of work to be performed in a process.
The following tasks are supported:
- Send tasks
- Script tasks
- Service tasks
Creating send tasks
To create a send task:
- Drag and drop the create task icon onto the canvas.
- Click the settings icon and select Send Task.
- Double-click on the task to open its Properties panel.
- Provide a name for the task.
- Enter $ symbol in the Input field and select the required element ID.
- Enter dot (.) against the element ID and select the value appearing in the drop-down list.
- Click Add/Modify to select the message recipients.
- Select the notification template from the drop-down list.
Note: The list displays only those templates that you have added as a prerequisite. - Select the notification priority from the drop-down list.
Note: The notification is sent to the user via the notification channel configured in the Notification Preferences..
Creating script tasks
Before creating a script task, ensure the following prerequisites are met:
- Ansible control node deployed in the client environment.
- Ansible Playbook integration installed. Add the Playbooks as events in the integration and then you can add the events to the Process automation workflow.
- RBA Script created in OpsRamp.
- Credentials configured in the client account.
To create a script task:
- Drag and drop the create task icon on to the canvas.
- Click the settings icon and select Script Task.
- Double-click on the task to open its Properties panel.
- Provide a name for the task.
- From the Configuration section, select one of the following options:
- Agent: Select this option to run a script on Agent installed devices. The metrics are gathered by the Agent running on Windows or Linux devices.
- Agentless: Select this option to run a script on standalone devices via Ansible control node.
- If you select Agent, configure the following fields:
- From the Script Name, select the RBA scripts created as a prerequisite.
- From the Resource ID field, enter $ symbol, select the element ID that you want to use as input, enter a period symbol (.), select the values, and then enter uuid.
Example: $StartEvent_1ddiudw.alert.resource.uuid
- Select either Default User or Other User as the authorization access for running the script.
- From the Script Name, select the RBA scripts created as a prerequisite.
- If you select Agent, configure the following fields:
- From the Script Name, select the RBA scripts created as a prerequisite.
- From the Resource ID field, enter $ symbol, select the element ID that you want to use as input, enter a period symbol (.), select the values, and then enter uuid.
Example: $StartEvent_1ddiudw.alert.resource.uuid
- Select either Default User or Other User as the authorization access for running the script.
- From the Script Name, select the RBA scripts created as a prerequisite.
- If you select Agentless, select the name of Ansible Integration and the Playbook from the drop-down list. The input configured for the selected Playbook appears. If required, you can also modify the Input.
- Verify the Preview.
Creating service tasks
A service task is used to perform a service. The service can either be a service provided by OpsRamp or an external service.
Before you begin, create a custom integration for calling an external service via API or for performing an external integration.
To create a service task:
- Drag and drop the create task icon onto the canvas.
- Click the settings icon and select Service Task.
- Double-click on the task to open its Properties panel.
- Provide a name for the task.
- From the Service drop-down menu, select either Platform Service or REST Web Service.
- Configure the properties for the respective services.