Deploying Code

Appian RPA robotic processes are powered by Java code contained in a central repository. As you create or modify code, you'll need to deploy your changes for the updates to appear in the Appian RPA Console. Since you cannot directly access the source code stored in the central repository, it's recommended to use a version control system like Git to manage your Java code.

This page describes the steps you need to take to deploy code. Refer to specific guidance on how to deploy libraries. You'll need to add the workflow library definition in the Appian RPA console prior to using a workflow library in a robotic process.

Configuration in Appian RPA Console

Administrators can find repository configuration settings through the Appian RPA Console.

  1. Click Settings > Configuration
  2. In the Tools configuration section, you'll find these fields related to your repository:
    • Default repository
    • Default repository username
    • Default repository password

These fields are automatically populated for your environment and shouldn't need to be changed. If you change these values, robotic process executions may fail because the source code won't be accessible from the resources.

Compile and deploy the project in Eclipse

For a given method or library, you'll need to deploy the code's binary file to the repository for updates to appear in the console.

When you're ready to deploy, you'll need to compile, package and deploy the Maven project as robot binaries, using the utilities provided by Maven and Eclipse.

We are going to create a "Maven Build" configuration:

  1. Open the Run menu.
  2. Click Run Configurations.
  3. Right click on Maven Build and select the option New.
  4. A window then appears in which we must complete the information:
    • Name: robot-tutorial.build
    • Base directory: Select Workspace and select the project directory.
    • Goals: clean deploy
    • User settings: The default file will appear as ${user.home}/.m2/settings.xml, the one we configured previously. 2235158.png
  5. With this configuration, press the Run button to compile the project.
  6. After downloading all the dependencies and compiling the Java file, the result should appear as follows: 2235157.png
  7. Once finished, the binary deployed to the repository and is ready to be used in the Appian RPA Console.

Deploy using IntelliJ

If you're using IntelliJ, click Clean and then click deploy in the Maven menu to deploy the changes. Maven will auto-push to the repository using the credentials stored in your settings.xml file.

Note: If you prefer, you can deploy using the command line. Navigate to your robotic process folder and run the command mvn clean deploy to push the binaries.

Open in Github

On This Page

FEEDBACK