The UiPath example solution showcases how you can use your Teneo bot for Robotic Process Automation (RPA) with UiPath. The solution contains an integration with UiPath and example flows to start a job and retrieve the status of jobs in UiPath.
The solution contains a UiPath backend integration with the following methods:
The methods make use of a class called UiPathHelper. You can find the UiPathHelper.groovy file with the source code in the resource file manager of the solution. This allows you to easily modify or extend the class if needed.
Note: you can edit the class straight from Teneo by selecting the UiPathHelper.groovy file and clicking 'Open'. See: Opening and editing files in an external editor for more details.
For each core method in the UiPath integration, the solution contains a corresponding example flow:
The solution contains a subflow called 'Subflow: Get UiPath Access Token' to authenticate with the UiPath Cloud API. The flow checks if an access token is available for the session, and if not, retrieves one. This subflow should be used in each flow that interacts with UiPath.
To be able to ineract with the UiPath Orchestrator API some keys and tokens need to be stored in the solution. Follow the instructions in the Consuming Cloud API section in the UiPath Orchestrator API Guide to find the following keys:
Store them in the corresponding global variables in your UiPath solution in Teneo:
Make sure you hit 'Save' in the top right corner each time you update a global variable field.
The example flow 'Start UiPath Job' is used to start a job for a process in UiPath. To specify which process should be started when this flow is triggered, proceed as follows:
The Start UiPath Job flow is a basic example flow that can be used as a starting point. Most use cases require extending this flow to collect the details required to start a job.
After you have added the details above, you can try it out as follows:
User: Start job
Bot: Started job with ID: 829939.User: Get jobs
Bot: Details for jobs started this session: [{id=829939, releaseName=MyProcessName_Test Environment, state=Successful, info=Job completed, inputArguments=null}]
Was this page helpful?