This article covers the steps to configure and use the Execute Decision Component in your Process Automation process models.
Configuring the Execute Decision component
To prepare for configuration, first navigate to Provisioned Resources and locate the Execution resource. You will need the API Key and the URI.
Make sure to include the “APIKEY” Authorization code.
Next, configure the settings in your Process Automation Space. In Process Automation under the space settings, select the Execute Decision component from the Business components list and input the authorization code and execution service base URL from the previous step. In the next steps, you will add the Execute Decision component to a process model.
Process Model Setup
There is an extra step necessary for Trial Users to gain access to Process Automation processes from irAuthor.
Trial Users Only
Add the InRule service account to your process. Open the process settings and select permissions to add the InRule Service account to your process. Select Add new user/group and search for the “InRule Service” account. Under Process permissions, select Full control.
Licensed Customers Only
Ensure an API Key exists for your space, which can be found in the integration section of the space settings. This will be used when configuring your process automation environment in irAuthor.
Adding the Execute Decision Component to your Process
3. Find the Execute Decision component in the Components tab of your process editor under Services.
Drag the component into the process and add the desired data object as an input to the Execute Decision component.
Any forms and corresponding data objects used as rule or decision inputs with the Execute Decision component will need to be added as entities in irAuthor. Information on adding Process Automation forms to irAuthor can be found in the Using the Barium Live extension for irAuthor article.
Edit the component settings to point to your desired Rule App, Rule Set, or Decision. Additionally, if you wish to use notifications, you can specify the form field to which the notifications will be written to.
Using the Execute Decision component
Once the Execute Decision component has been configured and added to a process model, it is now available to call a Rule Set or Decision when executed. After starting a process, the form data will be sent to the execution service which will perform any changes and return them to Process Automation to update the form. For example, a rule application that contains a simple decision that modifies input and writes notifications, the form may start like this:
When the decision executes it will update the form accordingly. Below is an example of the form displaying the output from the Execute Decision component after the process has completed.