Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Do While

This activity executes the activity contained in its body at least once, until the specified condition evaluates to false.

Activity Parameters

The Do While activity has only one parameter and it can be provided by manually inserted values or via IN arguments or variables:

...

25-01-2016 04:19:06getElementFromCollectionExecuting
25-01-2016 04:19:06getElementFromCollectionCollection Count: 4
25-01-2016 04:19:06getElementFromCollectionElement: 192.168.0.10
25-01-2016 04:19:06getElementFromCollectionCSV String: 192.168.0.10,192.168.0.12,192.168.0.13,192.168.0.14,

 

ForEach

This activity executes the activities in its body for each element found in a collection/array.

Activity Parameters

The ForEach activity properties can be provided via manually inserted values or via IN arguments or variables:

...

This activity runs a set of child activities based on a single defined ordering. 

Activity Parameters

The Sequence activity has no paramaters except the its DisplayName which can be customized for easier usability. 

 

Switch

This activity selects one choice from a number of activities to execute, based on the value of a given expression.

Activity Parameters

The Do WhileSwitch activity has only one parameter and it can be provided by manually inserted values or via IN arguments or variables:

Image RemovedImage Added

Parameters:

  • ConditionExpression (text box editor type) (type: booleandepending on the Type that was selected when adding the activity to the workflow): the condition that must be met expression/variable/IN argument that will be evaluated in order to execute the activity in the body of the Do While. It can be either an explicit condition input directly in the Condition field (as seen in the example above), or via a Boolean variable/IN argument.decide which child activity will be executed.
    Image Added 


Example:

The following basic example will remove all instances of an IP (192.168.0.11) from a previously defined collection of IPv4 IPs (where it appears twice):
Image Removed
This time, the condition will be provided via a boolean variable (IPexists), which dictates the Do While activity to loop until the the IP is not found in the collection anymore. It has been initialized to True to make sure it enters the Do While sequence at least once

Image Removed

The two getElementFromCollection activities have been added to the workflow to compare the contents of the Collection before and after the Do While activity run.

Before:

25-01-2016 04:19:06getElementFromCollectionExecuting
25-01-2016 04:19:06getElementFromCollectionCollection Count: 6
25-01-2016 04:19:06getElementFromCollectionElement: 192.168.0.10
25-01-2016 04:19:06getElementFromCollectionCSV String: 192.168.0.10,192.168.0.11,192.168.0.12,192.168.0.13,192.168.0.14,192.168.0.11,

After:

...

retrieve the Int32 switchInput IN argument (pictured above) and return whether it's a negative or positive (null included) integer value. Being an IN argument, it will be input in the Flowster Studio Portal.

Image AddedImage Added

switchOutput is a string OUT parameter which can be further used in various activities or displayed in Flowster Studio Portal.