Technologies and Tools Used
The following technologies have been used to achieve the expected output.
- JavaScript
- Oracle Apex
- Uipath
Use Case
Assume that we have created an Uipath Bot using an UiPath studio. We know the created bot can be run directly using Uipath studio. Suppose we want to run a bot from an apex then this document explains how to achieve this requirement.
Architecture
The following steps explain in detail,
Step 1. Upload the given JS file application static files in the shared components.
https://download.uipath.com/js/1.2.9/UiPathRobot.js
Step 2. Create a region and then a button to call the bot
Step 3. Create a Dynamic action on the button Click. Select Execute Java script in the true action
UiPathRobot.init(10);
UiPathRobot.getProcesses().then(processes =>
{
let process = processes.find(p => p.name.includes(TestBotName));
process.start().then(result =>
{
alert(“Completed”);
}, err => {
alert(err);
})
}, err => {
alert(err);
});
Step 4. Click Save and Run
The below “Bot Started” message is from the UiPath bot.