studio
2024.10
true
UiPath logo, featuring letters U and I in white

Studio User Guide

Last updated Dec 19, 2024

Invoking coded automations inside low-code workflow

This section of the tutorial shows you how to invoke coded automations, specifically the Random and IncrementProxy workflows, within a low-code workflow by utilizing the Invoke Workflow File activity. This action will generate a random value, increment it, and display the final result in the console.
Note: This tutorial and sample project are created using a Cross-platform project in Studio. It is important to remember that within Cross-platform projects, the Invoke Workflow File activity automatically imports arguments for the invoked workflow as fields of the activity. For Windows projects, you must click Arguments and manually add the arguments.

Steps

  1. In the Main workflow, add an Invoke Workflow File activity.
    1. Select the Random workflow from the Workflow File Name dropdown.
      Because we are working inside a Cross-platform project, the arguments from the Random workflow (min and max) are automatically imported as fields in the activity.
      Note: For Windows projects: In the Invoke Workflow File activity, select Browse for File and change the file extensions you're browsing for, from Workflow Files (*.xaml, *.uiwf) to All Files (*.*). This allows you to view all files, including .cs.
    2. Specify values for the min and max fields, between which determine the range within which the random value is generated.
    3. In the Output field of the activity, create an Int32 variable named result, to store the generated value.
  2. Add another Invoke Workflow File.
    1. This time select the IncrementProxy workflow from the Workflow File Name dropdown.
    2. Specify the output result variable in the Random field.
    3. In the Output field of the activity, create an Int32 variable named inc_result, to store the incremented random value.
  3. Finally, add a Log Message activity and specify the inc_result variable in the Message field, to print out the final value to the console.
  • Steps

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.