"Retry Scope" activity

Created by akaBot Support, Modified on Thu, 14 Nov, 2024 at 5:16 PM by akaBot Support

Retry Scope Activity for Retrying Execution in Case of Errors


TABLE OF CONTENTS



1. Activity program name


RCA.Activities.Core.RetryScope


2. Description

  • Studio Version ~2.0.2.0
    Quick Access: "Toolbox" > "Core" > "Retry Scope"

  • Studio Version 2.0.3.0~
    Quick Access: "Toolbox" > "System" > "Control Flow" > "Retry Scope"

The "Retry Scope" activity retries the activity contained in "Action" when conditions are not met, or an error is thrown. If the specified number of retries is reached and an error still occurs, the activity throws an error. The behavior upon throwing an error depends on the value set in the "Continue on Error" property in the Properties panel.

Note: Confirmed Studio version with tested operation: 2.0.1.6
Note: Terminology may vary depending on the version.

3. Properties


Property Section

Property Name

Input Field

Description

Other

Public

Checkbox

Logs the variables and arguments within the activity to the log file and pushes them to Center. (See "Public Property" for more details.)

Display Name

Enter Value (String)

Reflects the activity name in the Designer panel.

General

Continue on Error

Enter Value (Boolean)

Specifies the behavior for workflow continuation when an error occurs. If True, workflow processing moves to the next action after the retry scope even if an error occurs. Default is False.

Input

NumberOfRetries

Enter Value (Int32)

Specifies the number of times to retry the action.

Retry Interval

Enter Value (TimeSpan)

Specifies the interval between each retry (in seconds).


4. Usage


Drag and drop the activity "Core > Retry Scope" from the Toolbox to the Designer panel.

Set the number of retries and the retry interval. In this example, we set the interval to retry every 5 seconds, a total of 3 times. Specify the retry count as "3" in the Properties panel under "Input > NumberOfRetries." Set the retry interval as "00:00:05" under "Input > Retry Interval."

Describe the process to retry upon error within "Action." Drag and drop the "Core > Delete" activity from the Toolbox to the Designer panel.

In the Properties panel for "Input > Target Path," specify the variable name containing the file name to delete, such as "C:\Users\VanTT20\Desktop\big-image.png"

Click "Home > Start" or press the "F5" key to execute.

Execution Result:
Since the target file does not exist, it performs execution every 5 seconds, up to 3 times.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article