Wait for the end of several robots Version 2 (Java)

Action group: Robot management


Description

The action waits for the end of several robots

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Robot IDsRobot IDs colectionRobin.Collection
Yes
Timeout, msThe maximum time to wait for a response from the agent about the completion of the work of the robots. Measured in milliseconds. If «-1» is specified, the action waits for a response from the agent indefinitely.Robin.Numeric
Yes

Special conditions of use

If the robot and/or robots have not completed within the specified wait time, display an error that includes the robot IDs and names.

Example of use

Task

Wait for the end of several robots running locally and, afterwards, display a dialog box with the message "The robots have completed their work".

Solution

Use the "Start robot", "Add object", "Wait for the end of several robots", "Show message" actions.

Implementation

  1. Assemble a robot scheme with the actions.

    2. Set the "Start robot" (first robot) action parameters.

    3. Set the "Start robot" (second robot) action parameters.

    4. Set the "Add object" (first robot) action parameters.

    5. Set the "Add object" (second robot) action parameters.

    6. Set the "Wait for the end of several robots" action parameters.

    7. Set the "Show message" action parameters.

    8. Click "Start" in the top panel.

Result

The program robot completed successfully.

A dialog box about robot completion is displayed.

  • Нет меток