Collection

The Collection component is a generic component that allows users to manipulate collection-type data. It can carry out the following tasks:

#Release Stage

Alpha

#Configuration

The component definition and tasks are defined in the definition.json and tasks.json files respectively.

#Supported Tasks

#Assign

Assign the data.

InputIDTypeDescription
Task ID (required)taskstringTASK_ASSIGN
Data (required)dataanySpecify the data you want to assign.
OutputIDTypeDescription
DatadataanyThe data you assign.

#Append

Add data to the end of an array.

InputIDTypeDescription
Task ID (required)taskstringTASK_APPEND
Array (required)arrayarraySpecify the array you want to append to.
Data (required)elementanySpecify the data you want to append.
OutputIDTypeDescription
ArrayarrayarrayA updated array with the specified data appended to the end of it.

#Union

Find the union of the sets

InputIDTypeDescription
Task ID (required)taskstringTASK_UNION
Array (required)setsarraySpecify the sets you want to union.
OutputIDTypeDescription
ArraysetarrayThe union set.

#Intersection

Find the intersection of the sets

InputIDTypeDescription
Task ID (required)taskstringTASK_INTERSECTION
Array (required)setsarraySpecify the sets you want to intersect.
OutputIDTypeDescription
ArraysetarrayThe intersection set.

#Difference

Find the difference between the two sets, i.e. set-a \ set-b, identifying the elements that are in set-a but not in set-b.

InputIDTypeDescription
Task ID (required)taskstringTASK_DIFFERENCE
Array (required)set-aarraySpecify the set-a.
Array (required)set-barraySpecify the set-b.
OutputIDTypeDescription
ArraysetarrayThe difference set.