Integrating applications by using rule connector elements
To add connectors in a rule
- Log in to BMC Helix Innovation Studioand navigate to the Workspace tab.
- Select the application in which your rule exists.
- In the application, click Rules.
- Click the rule name where you want to add connectors.
The system opens the Rule designer and displays the process diagram on the canvas. - Drag the Connector element to the canvas and place the connector where you want to add the connector in the rule and provide the input and output connections.
Select the Connector element and enter the values for the following properties:
Property
Description
GENERAL
Label
Enter the label for the Connector element.
Connection Name
Enter the same name as entered for the Connection tab for this connection.
INPUT MAP
Connection
Select the name from the list.
The list includes all the connectors that are configured in Connector Configurations from the Administration tab.
Use as alias
Enable this option if you want to use the connector element as an alias. For more information about processes related to aliases, see Adding-connector-configurations and Mapping-an-alias-to-connector-configuration.
Action
Select one of the following actions that you want to perform for the Connector element:
- Action—To create or update an event or a task in your target application, select the action
.
- Query—To fetch data from your target application, use a query expression
.
OUTPUT MAP
Name
Select the process output from the list and map it with the action output. The process output is already created as a part of the process.
Source
Enter the value based on the action you choose in the INPUT MAP. The value in this field varies depending upon the action you select.
- Action—To create or update an event or a task in your target application, select the action
- Enter the values for the parameters of the selected action.
For example, enter a value for Issue Type. By default, only the required parameters are displayed. You can add the optional parameters by using the Add/Remove Parameters property. - Click Save.
Example: Rule to create a JIRA issue by using JIRA connector
The following rule integrates an application with JIRA services. The rule uses the JIRA connector to create a JIRA issue when a new record instance for a record definition is created. The record definition is a regular definition that consists of a text field JIRA Issue Key, along with the default fields. To store the issue key of the JIRA issue that is created by using the rule, the JIRA Issue Key field is mapped to the connector output.
When a new instance of the record definition is created (On Create record event), the rule is triggered and performs the following tasks:
- The connector gets input from the Description field of the record instance.
- The connector creates a new issue in JIRA and the JIRA issue is populated with the details of the Description field of the record instance.
- The connector provides the new JIRA issue key as an output and the JIRA issue key is stored in the JIRA Issue Key field of the record instance.
General properties sample values
The following table illustrates sample values for the General properties in the rule example:
Property | Sample value |
---|---|
GENERAL | |
Name | Demo Rule |
Description | Example—Rule to create a JIRA issue |
Enabled | Selected |
RECORD DEFINITIONS | |
Add/Remove Record Definitions | Demo Record (primary record definition) |
Rule Applies To | Demo Record |
Trigger sample values
The following table illustrates sample values for the Trigger element in the rule example:
Property | Sample value |
---|---|
GENERAL | |
Trigger Type | Record event |
Record Event | On Create |
OPTIONS | |
Execution Order | 500 |
Connector sample values
The following table illustrates sample values for the Connector element in the rule example:
Property | Sample value |
---|---|
GENERAL | |
Label | Connector |
Connection Name | JIRA Configuration |
INPUT MAP | |
Connection | JIRA Configuration |
Action |
|
OUTPUT MAP | |
Name | JIRA Issue Key |
Source | Issue Key |