GetStopStatus

Estimated reading: 3 minutes 2129 views

The Get stop status activity can be employed in the workflow to terminate the process. It can be used in several preferred points in the workflow where we wish to halt the execution of the robot.

The “Stop” will be initiated only if the “GetStopStatus” activity is utilized in the workflow.

Properties

MISC

DisplayName: Displays the name of the activity. You can also customize the activity name to help in troubleshooting.

SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False.”
True: Continues to execute the workflow irrespective of any error thrown.
False: The workflow aborts if it throws any error.
None: If the option is specified as blank, by default the activity will perform as “False” action.
Version: It specifies the version of the Robility Manager feature in use.

OUTPUT

Output: It helps to view the output of the activity in a “Boolean” datatype.
True: Indicates that the workflow has been successfully stopped by the activity.
False: Indicates that the workflow has not been stopped by the activity and specifies the exception thrown.

Example

The following use case illustrates how we can utilize the “GetStopStatus” activity in a workflow, which facilitates to stop a workflow when it’s executed in the runner.

This Automation use case helps to read the mails and extract the report from the mailbox in a loop. Within the workflow, we are utilizing the “GetStopStatus” activity to “Terminate” the execution of the bot utilizing the “Stop” button in the “Manager.”

The output of the activity will terminate the workflow and moves the robot to “Idle” state in the “Manager.”

Steps to execute the bot 

1. Add a “GetStopStatus” activity and place it before the “ForEach” activity in the workflow.
a. Navigate to the “Status” in the properties of the activity and declare a variable to view the status of the activity.
b. There are two ways to create a variable-
     i. Method 1 – Click on the “Status” property within the “GetStopStatus” activity and enter the variable name. In this case, we are using ” Stop_bot.”  Then, press “Ctrl+Q,” which is a shortcut key to create a variable.
    ii. Method 2 – Click on the Variables pane and enter the name ” Stop_bot.” Then, in the “Variable Types” column, select “Boolean” from the dropdown menu.
2. Now, save the workflow and publish the workflow.
3. Once the workflow has been published, navigate to the “RobilityManager
”.
a. Login with your credentials to access the platform.
b. Select the “Tenant” name under which the project has been published.
c. Navigate to the “Projects” menu and click on “Go” button against the respective automation project.
d. Next navigate to the “Robot” menu and connect the “Machine” to execute  the Automation.
e. Once the robot has been connected, copy the “License key” available in  the Manager.
4. Lauch the “Runner” in your machine and paste the “License key” in the Runner.
5. Then, navigate to the “Robot” in RobilityManager and click on “Run” button to initiate the Automation.
6. When the Runner receives the “Request”, it will initiate to execute the workflow and the status in the “Manager” will be changed to “Run initiated”.
7. Now, the “Stop” button will be enabled to terminate the workflow through Manager.
a. Click on the “Stop” button on the “Manager”.
b. A request will be sent to the “RobilityRunner” to terminate the workflow.
c. The workflow will be aborted, and the robot moves to “ToCheck” status and gets back to “Idle” state.

Share this Doc

GetStopStatus

Or copy link

CONTENTS