Get bot activity for Mule flows
Use the Get Bot Activity palette option that is part of the RPA Bots for Mule 4 connector to monitor bot activity.
- Install MuleSoft Anypoint Studio.
- Install RPA Bots for Mule 4 connector.
- Create MuleSoft Anypoint Studio flow project.
Add Get Bot Activity to Mule integration flow to collect data from the bot deployment. The Get Bot Activity works together with the On Bot Result in a Mule Flow.
With your configuration file selected, in the Flow panel, drag the
Get Bot Activity activity into your flow. For
example, after an HTTP Listener activity.
The Mule Properties panel displays the Get Bot Activity configuration options.
Configure the connection to the Control Room.
In the Basic Settings area, next to the Connector configuration field, click Plus to add a connection.
In the Automation Anywhere Config dialog box, select an
existing connector configuration or create a new configuration and enter the
corresponding connection information:
- Basic Authentication Connection – Enter Control Room URL, user name, and password.
API Key Authentication Connection – Enter the Control Room URL, user name, and API Key.
- In the Source tab, select the default HTTP listener config or the Custom HTTP Listener created from the drop-down list.
- Click Test Connection. When the connection is successful, click OK to close the Test connection box, and then click OK to close the Automation Anywhere Config dialog box.
Select the General tab, and enter the following
- Deployment id
- Required: Uses the
deploymentIdcollected from the .
- Toggle the Expression check box.
- Enter #[payload.deploymentId]
From the Advanced tab, select or enter the General
information, including the following:
- Optional: Set the reconnection strategy type to reconnect to the Control Room for data transfer in the event of a
This can occur when multiple users are connecting to the Control Room at the same time and bandwidth is exceeded.
- Select Standard for the Reconnection strategy.
- Enter 2000 for Frequency (ms) to specify 2 seconds.
- Enter 2 for Reconnection
The recommended number of attempts is 2 - 5.