What is the relevance of the Condition property in the Parallel activity

What is the relevance of the 'Condition' property in the 'Parallel' activity?

A Parallel activity operates by simultaneously scheduling each Activity in its Branches collection at the start. It completes when one of the following conditions is met:

  1. When all of its Branches complete
  2. When its CompletionCondition evaluates to True.

While all the Activity objects run asynchronously, they do not execute on separate threads, so each successive activity only executes when the previously scheduled activity completes or goes idle. If none of the child activities of this activity go idle, this activity execute in the same way that a Sequence activity does.

In UiPath Studio, the property 'Condition' corresponds to the 'CompletionCondition' property .

If this property evaluates to True, then the other scheduled elements in the Branches collection are cancelled. If this property evaluates to False, the next Activity object is executed and the value of 'Condition' property is checked again upon completion. This is done till the value evaluates to True or all sequences get executed. If the value of 'Condition' property is not set then all Activity objects in the Branches collection execute until completion.

If a parallel activity has 2 sequences A and B, then the value of 'Condition' is checked after the execution of sequence A. If the value of 'Condition' evaluates to True, then the execution of 'B' is cancelled and the execution of the parallel activity completes. If the property evaluates to False or is not set, then sequence B is executed.


If a Parallel activity has N sequences, the value of 'Condition' property is checked after the execution of each sequence. If the value of 'Condition' property evaluates to True after the execution of B sequences (B < N), then the execution of the remaining N-B sequences is cancelled and the execution of the Parallel activity completes. If the value evaluates to False, then the next sequence is executed and the value of 'Condition' property is checked upon completion. This is done till the value evaluates to 'True' or all sequences are executed. If the value of 'Condition' property is not set, then all remaining sequences are executed until completion.