Get current task ID

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisites: None

This component retrieves the current task ID.

2. Inputs

Note

For information about the input parameters, see the help text for the component in the application flow editor.

3. Outputs

Note

For information about the output parameters, see the help text for the component in the application flow editor.

4. Component usage example

4.1. Component configuration example

  1. Leave the advanced options at their default values.

4.2. Example execution result

None

5. Example flow

Setup flow

  1. Use the Get current task ID component to retrieve the ID of the task that the robot is currently running.

    Note

    When you run this component in the editor, it returns an empty value. To retrieve the task ID, you must publish the flow to the cloud and run it using a robot.

  2. Use the Record log component to print the value of a specified variable.

    image

Execution result

As shown in the following figure, after the flow runs successfully, the process automatically prints the value of the Get current task ID output to the log panel.