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:

...

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:

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:

...

  • CompletionCondition (text box editor type) (type: boolean): the optional condition that decides when the parallel activity is completed. If left blank, the activity is marked as completed when all its branches are completed.

Parallel ForEach With Body Factory

This activity iterates a collection of elements of the same type and executes all child activities simultaneously and asynchronously per each element. It completes when all its child activities are completed or when the completion condition is met.

Activity Parameters

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

...

  • CompletionCondition (text box editor type) (type: boolean): the optional condition that decides when the parallel activity is completed. If left blank, the activity is marked as completed when all its branches are completed.
  • TypeArgument (ComboBox type): the type of the elements in the collection/array that the activity will iterate.
  • Values (text box editor type) (type: dependant on TypeArgument): the collection/array that the activity will iterate. On each iteration, the body of the ForEach ParallelForEachWithBodyFactory activity will be executed.

...

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 Switch activity has only one parameter and it can be provided by manually inserted values or via IN arguments or variables:

...

This activity repeatedly executes a contained activity while a condition evaluates to true. The difference between While and Do While is that the Do While activity first executes the activities and then evaluates the condition, whereas While first evaluates the condition and only runs the child activities if the result is true.

...

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:

27-01-2016 05:58:52getElementFromCollectionBeforeExecuting
27-01-2016 05:58:52getElementFromCollectionBeforeCollection Count: 6
27-01-2016 05:58:52getElementFromCollectionBeforeElement: 192.168.0.10
27-01-2016 05:58:52getElementFromCollectionBeforeCSV 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:

27-01-2016 05:58:52getElementFromCollectionAfterExecuting
27-01-2016 05:58:52getElementFromCollectionAfterCollection Count: 4
27-01-2016 05:58:52getElementFromCollectionAfterElement: 192.168.0.10
27-01-2016 05:58:52getElementFromCollectionAfterCSV String: 192.168.0.10,192.168.0.12,192.168.0.13,192.168.0.14,