Accessing arguments from maestro

Hi all
I am new to maestro.
I have an RPA workflow , which has two input arguments and which gives a Boolean out argument .
In the maestro I have invoked this workflow, based on the out argument I need to decide the next step.

I can see the input arguments I have created in the in maestro but not the output arguments.

Could someone help me to understand this please.

Thank you
Rajeena

Hi @Raj_esh ,

  1. In UiPath Studio: Open your RPA workflow and ensure the Boolean output argument is correctly defined with an Out direction.
  2. In Maestro:
  • Add a Service Task: Include a Service Task element in your Maestro process and configure it to Start and wait for RPA Workflow (or similar, depending on the activity).
  • Select the RPA Workflow: Choose the RPA workflow you want to invoke.
  • Map Inputs (if applicable): Configure the input arguments for the RPA workflow as needed.
  • Map Outputs: In the Output section of the Service Task properties, add a new variable within Maestro (e.g., ProcessResult) and map the output Boolean argument from your RPA workflow to this Maestro variable.
  • Add an Exclusive Gateway: After the Service Task, add an Exclusive Gateway element to your Maestro process.
  • Define Conditional Flows:
    • Flow 1 (True): Create a flow from the Gateway to the next desired step. In the properties of this flow, set the Condition to vars.ProcessResult == True.
    • Flow 2 (False): Create another flow from the Gateway to a different step. Set the Condition for this flow to vars.ProcessResult == False.

Now, when your Maestro process executes the RPA workflow, the Boolean output will be stored in the ProcessResult variable, and the Gateway will use this variable’s value to decide the next step, allowing you to implement your desired conditional logic.

Please try these steps and let us know your outcome.

If this answers to your query kindly mark it as solution to close this case.

Happy Automation!

@Raj_esh

In the subsequent activites if you use the activity name with dot notation you would see the out argument which

For example runflow.outargument

Cheers

In the map output step , I am not able to fine the out argument . I have created the argument in the web studio as out direction . The arguments which are in direction I can see in the maestro

  1. Verify Argument Direction and Usage
  • In Web Studio, confirm the argument is marked as Out.
  • Ensure the argument is assigned a value before the workflow ends.
  1. Publish the Workflow to Orchestrator
  • Make sure the workflow is published and available in the Maestro agent list.
  1. Configure the Service Task Properly in Maestro
  • Use “Start and wait for RPA Workflow” in the Service Task.
  • In the Output Mapping section, manually create a Maestro variable (e.g., ProcessResult) and map it to the output argument.
  1. Refresh or Reopen Maestro
  • Sometimes Maestro UI doesn’t refresh immediately. Try closing and reopening the process or refreshing the browser.
  1. Use Debug Logs
  • Add a Log Message activity in your RPA workflow to confirm the output value is being set.


Here I have created the out argument in the web studio , then another one in maestro. But for mapping I am not able find the out argument when mapping
@Tapas_Kumar_Pattnaik

these two are in my in argument , which I can see in the orchestrator

Issue resolved after deleting and reinserting the task. The arguments got refreshed after re inserting

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.