Getting started with RPA
New to RPA? Visit the overview page to get familiar with Robotic Process Automation (RPA) capabilities.
Create your first scriptโ
In Camunda Modeler 5.33.1, the RPA editor is enabled only if the --no-disable-rpa
flag is set. Visit the Modeler documentation to learn about setting flags.
To get started with RPA, you first need to write an RPA script. Camunda Modeler offers an interface for editing and testing your scripts:
- Download Camunda Modeler: Download the latest version of Camunda Modeler from the Camunda website. As RPA scripts are run locally on your machine, the RPA editor is only available in Desktop Modeler.
- Open the RPA script editor: Open Desktop Modeler and navigate to the RPA script editor under Testing.
- Start writing your RPA script using Robot Framework: Use the interface provided to write your first RPA script. Scripts use the Robot Framework syntax.
Test your scriptโ
Once you have written your script, you can test it on a local RPA worker.
-
Start the RPA worker:
- Download the latest version of the RPA worker.
- Create a new file named
rpa-worker.properties
in the same directory as the RPA worker. This is the configuration file for this worker. - Add
camunda.client.zeebe.enabled=false
torpa-worker.properties
. This disables connection to Zeebe and allows you to test scripts locally. - Start the worker by running the executable.
-
Check Desktop Modeler: Ensure the RPA worker is now connected to Desktop Modeler. The worker should automatically connect. If not, ensure the connection URL is correct.
-
Test the script:
- Click the test tube (๐งช) icon in the footer of Desktop Modeler to open the run dialog. You can add any variables you expect from the process in JSON format. Once you start the execution, the execution tab will open.
- Review the execution log and the variables created during the script execution within Modeler.
Automate executionโ
Once you are happy with your script and have tested it locally, you can start automating it with Camunda.
Link RPA task to BPMNโ
-
Deploy the RPA file:
- If you haven't already, set up client connection credentials for your Modeler.
- Deploy your RPA script file by clicking on the rocket (๐) icon in Modeler.
- Note the ID of your RPA script. You will need this in the next step.
-
Add RPA to your process:
- In Camunda Modeler, create a new BPMN file or open an existing one.
- Add a new task and change it to an "RPA Connector".
- Configure the task with the script ID from the previous step. Add any input mappings required for your script to work.
-
Deploy and run the process:
- Deploy the BPMN model with the configured RPA task.
- Start an instance of your process.
Connect worker to Zeebeโ
The last step is to configure the RPA worker to pick up the jobs from Camunda.
-
Create credentials for the worker:
- Create the necessary worker credentials in Console. You can follow the same steps as for the Modeler credentials. Give your new client the scopes
Zeebe
andSecrets
. - Save the generated credentials in a file named
rpa-worker.properties
in the same directory as your RPA worker executable. - Add
camunda.client.zeebe.enabled=true
torpa-worker.properties
to start fetching jobs from Zeebe.
- Create the necessary worker credentials in Console. You can follow the same steps as for the Modeler credentials. Give your new client the scopes
-
Restart the worker: If your worker is still running, restart it to apply the new credentials. The RPA worker should now be connected and ready to execute scripts from Zeebe.