For Each
This activity helps you iterate a sequence for each item in a specified values collection.
Figure 1
Activity Name |
Picture |
For Each |
|
Figure 1.1
|
S.no |
Description |
1 |
Display Name property shows the action that the activity performs in the workflow |
|
2 |
Specify the type argument (datatype) |
|
3 |
Specify the collection of items to iterate over the loop. |
Condition should be specified as Boolean.
Assume you want to close an active application when the count of the iteration is 5.
Activity: The While activity executes the sequence of activities in the body once the specified condition is evaluated to be true.
Step 1 Drag a While activity and specify the condition in the properties section.
- Define a variable count that holds the value of the iterations performed, which can be incremented using an assign activity
- Drag a close application activity and select the application that needs to be closed if the validated condition is evaluated as true.
Figure 1.2
Figure 1.3