DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Mastering Multi-Cloud Integration: SAFe 5.0, MuleSoft, and AWS - A Personal Journey
  • Revolutionize Your MuleSoft Deployments With GitOps
  • MuleSoft Integrate With ServiceNow
  • Migrating AnypointMQ-Based Mulesoft Service to Serverless World

Trending

  • Using Middleware in LangChain: Recovering From Tool Failures
  • Testing Asynchronous Systems, Part 1: Mapping the System and Classifying Its Asynchrony
  • Spring AI on Local LLMs
  • How to Migrate From C/C++ to Rust: A Practical Guide for Embedded IoT Systems

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Integration With MuleSoft 4 and Automation Anywhere (RPA Tool)

Integration With MuleSoft 4 and Automation Anywhere (RPA Tool)

MuleSoft has released MuleSoft Connector for Automation Anywhere tool — learn how to use it in this tutorial!

By 
Sadik Ali
·
Oct. 28, 20 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
8.1K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

MuleSoft has released  MuleSoft Connector for Automation Anywhere tool.

MuleSoft Automation Connector

Adhere to the below steps to configure AA for MuleSoft:

1.  Create admin, Bot creator, Bot runner, and MuleSoft user with custom roles in RPA.  create admin

2.  The Bot creator should have a provision to bot check-in/check-out bot permission.  bot creator

3. If the Device pool is not configured then the bot runner should be associated with the boot client on the device.  my devices

4.  Create a sample bot by bot create user. In this bot, we are just executing messages in the message box.

testone

5.  Next, develop a MuleSoft flow in Anypoint Studio with Automation Anywhere MuleSoft connector with configuration highlighted below screenshot...automation anywhere

  1. The source section needs to be configured with an HTTP listener configuration with an available port on deployment. 
  2. Once the connection is successful but is available with 'public' status will populate in the drop-down in "BOT" and Device (Device ID connected).
  3. Below would be the final demo MuleSoft application.           error handling 
XML
 




x


 
1
<?xml version="1.0" encoding="UTF-8"?>
2

          
3
<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns:automationanywhere="http://www.mulesoft.org/schema/mule/automationanywhere"
4
    xmlns:http="http://www.mulesoft.org/schema/mule/http"
5
    xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
6
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
7
http://www.mulesoft.org/schema/mule/automationanywhere http://www.mulesoft.org/schema/mule/automationanywhere/current/mule-automationanywhere.xsd
8
http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">
9
    <automationanywhere:config name="Automation_Anywhere_Config" doc:name="Automation Anywhere Config" doc:id="555fe5b5-3bbe-497f-b6d5-d657124cb61f" listenerConfig="HTTP_Listener_config1">
10
        <automationanywhere:basic-auth-connection controlRoomUrl="http://192.168.1.32:80/" username="mulesoftuser" password="${mpassord}" >
11
            <reconnection />
12
        </automationanywhere:basic-auth-connection>
13
    </automationanywhere:config>
14
    <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="9234b1b5-b5b6-429b-84a6-fe9e6cf6313b" >
15
        <http:listener-connection host="0.0.0.0" port="8081" />
16
    </http:listener-config>
17
    <http:listener-config name="HTTP_Listener_config1" doc:name="HTTP Listener config" doc:id="cfe9e868-60ed-45d4-b156-25c4d5d17c83" >
18
        <http:listener-connection host="localhost" port="9085" />
19
    </http:listener-config>
20
    <flow name="rpa-oneFlow" doc:id="dc65ce61-a198-46cb-b8b4-e5fa13542128" >
21
        <http:listener doc:name="Listener" doc:id="8766661a-8e03-43e0-89ae-370337ee382c" config-ref="HTTP_Listener_config" path="/Test"/>
22
        <automationanywhere:run-bot-async doc:name="Run Bot Async" doc:id="6a92bdf7-63ba-481d-87f6-1f9fc616da04" config-ref="Automation_Anywhere_Config" runAsUserId="botrunner: Picked at run time (4)" botId="20" callbackKey="sadikali"/>
23
        <ee:transform doc:name="Transform Message" doc:id="b8997b4e-21e2-4b37-bc21-9209f597faca" >
24
            <ee:message >
25
                <ee:set-payload ><![CDATA[%dw 2.0
26
output application/json
27
---
28
payload]]></ee:set-payload>
29
            </ee:message>
30
        </ee:transform>
31
        <logger level="INFO" doc:name="Logger" doc:id="d610aa23-ef96-4c7d-8aa6-17ff7dda6a01" message="----------------------#[payload]"/>
32
        <automationanywhere:get-bot-activity doc:name="Get Bot Activity" doc:id="188ed1f7-044d-4d8e-9bab-3292dd4877ca" config-ref="Automation_Anywhere_Config" deploymentId="#[payload.deploymentId]"/>
33
        <logger level="INFO" doc:name="Logger" doc:id="6258445a-6659-4a8e-af21-7be466d8c20f" message="Second ------------------#[payload]"/>
34
        <ee:transform doc:name="Transform Message" doc:id="0637fc25-b326-47ac-920c-1829fc9dc68f" >
35
            <ee:message >
36
                <ee:set-payload ><![CDATA[%dw 2.0
37
output application/json
38
---
39
payload]]></ee:set-payload>
40
            </ee:message>
41
        </ee:transform>
42
    </flow>
43
  </mule>



With the above configuration, we are ready to prefer the first integration with MuleSoft Connector for Automation Anywhere.

Let's start the MuleSoft application and make requests.

Below is the ID which we receive in response which help s us to validate the state of bot execution.

deploymentId

Bot's execution can be monitored on the device on which Bot Runner is associated.

message from bot


Now we know the steps and configuration to integrate with MuleSoft Connector and Automation Anywhere.

MuleSoft Robotic process automation Integration

Opinions expressed by DZone contributors are their own.

Related

  • Mastering Multi-Cloud Integration: SAFe 5.0, MuleSoft, and AWS - A Personal Journey
  • Revolutionize Your MuleSoft Deployments With GitOps
  • MuleSoft Integrate With ServiceNow
  • Migrating AnypointMQ-Based Mulesoft Service to Serverless World

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook