Create a bot to test the custom package

Use the actions in Automation 360 to create a bot and test the custom package.

Prerequisites

Ensure you have the following to build the bot:

  • Access to the Control Room.
  • Credentials with AAE_Basic permission or with a custom role to build a bot.
  • Your workstation is a registered device in the Control Room.
  • Your package MetricToImperial-1.0.0.jar is available in the Control Room.

Procedure

  1. Log in to the Control Room.
  2. On the left pane, click Automation.
    A list of available bots and forms is displayed.
  3. Click the Create a bot icon.
  4. In the Name field, enter MetricToImperialTest.
  5. Click Create & Edit.
  6. In the Actions pane, find Metric to Imperial and drag Convert centimeters to inches into the bot flow.
    1. In the CM to Convert field, enter 1.
    2. Click Create variable (next to the Output field) to create a new number variable.
    3. In Create Variable, enter nInchesOutput and click Create & Select.
    4. Click Apply.
  7. In the Actions pane, find the Number package and drag the To String command below Convert centimeters to inches.
    1. In the Enter a number field, enter F2 and select nInchesOutput.
    2. In the Enter number of digits after decimal field, enter 5.
    3. In the Assign the output to variable field, select prompt-assignment - String from the drop-down list.
    4. Click Apply.
  8. From the Actions pane, drag Message box, click F2 and insert the prompt-assignment variable.
  9. In the Enter the message to display field, click F2 and select the prompt-assignment variable.
  10. Click Apply and Save.
  11. Click Run.
    The bot displays the 0.39370 message, which is a successful build.