We will introduce the "Break" activity.
Tabel of contents
1. Program name of the activity
RCA.Activities.Core.Break
2. Description
Quick Access: System > Control Flow
> Break
Pause the running workflow.
*Tested akaBot Studio versions: 2.2.0.5
*Please note that wording and labels may vary slightly depending on the version.
3. Properties
Property category | Property name | Input field | Description |
Misc | Public | Checkbox | The variables and arguments within the activity are written to the log file and pushed to Center. (For details, refer to "About the 'Public' property item.") |
Display name | Any String | Reflected in the activity name on the Designer panel. |
4. How to use
Let's create a workflow that iterates through each row in the "Currency" column of a data table created using "Build Data Table", and pauses the process if the value is "KRW (Korea)".
Start by dragging and dropping "Build Data Table " from Core > Data Table into your workflow.
Next, in the Properties panel, go to Output > DataTable, and enter a variable of type DataTable
.
In this example, we’re using the variable
rateTable
created by the "Build Data Table" activity.
For more information on how to create variables, see "How to create variables".
Next, drag and drop "For Each Row" from Core > Data Table into the workflow.
In the Properties panel, under Input > DataTable, enter the DataTable
-type variable (in this example, rateTable
).
Next, drag and drop "If" from System > Control Flow into the workflow.
In the Properties panel, under Misc > Condition, enter a condition expression or a Boolean variable.
(In this example, use the expression: row("Currency").ToString = "KRW (Korea)"
)
Inside the Then branch of the If activity, drag and drop "Break" from System > Control Flow.
To verify the execution result, drag and drop "WriteLine" from System > Original into the Else branch of the If activity.
Then, in the Properties panel, under Misc > Text, enter a string or a String
-type variable.
(In this example: row("Currency").ToString
)
Click Home > Start or press F5 to run the workflow, then open the Output panel.
Since the process iterates through each row until it reaches "Korean Won", you should see the following three values displayed:
USD (America)
EUR (Europe)
GBP (UK)
[Reference: Execution result when using "Continue" instead of "Break"]
When the value matches "KRW (Korea)", the workflow skips to the next iteration and continues processing.
As a result, all values except "KRW (Korea)" will be displayed in the output.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article