Exists In Collection

Reports whether a collection holds an item, and its position.

Behaviour

Risk: None · Idempotent: Yes · Safe to retry: Yes · Recovery: Not replayed after a crash

Package System activities VeloPhex.System.Activities 0.7.1-rc.12 · Supported (Core profile) · type id velophex.system.existsInCollection

Properties#

Input#

Collection#

Collection · IEnumerable · Required · Default: Not specified in package metadata

The collection to search: a list, an array or any other sequence.

Item#

Item · Object · Optional · Default: Not specified in package metadata

The item to look for, compared with Equals.

Output#

Exists#

Exists · Boolean · Output

Whether the item is in the collection.

Index#

Index · Int32 · Output

The zero-based position of its first occurrence, or -1.

Retry and risk#

This activity is safe to retry: running it again after a transient failure does not repeat a side effect. If a run is interrupted and the outcome of a step is unknown, the step is never retried automatically (what to do). How activities declare this: characteristics, retries and risk.

Every activity also has the engine's common properties: Timeout and Continue On Error.

Generated from VeloPhex.System.Activities 0.7.1-rc.12. Category: Collection. Keywords: collection, list, contains, exists, find, index, array.

Properties

Input

Output

Retry and risk

Related activities