A Union groups the result of several inbound activities in a single target. The target is created with all results received: all prior activities must therefore be finished for the union to be executed.
For more on configuring and using the Union activity, refer to this page.
In the following example, the results from two queries have been combined in order to update the list. The two queries target the recipients. The results are therefore based on the same table.
Insert a Union -type activity straight after the two queries and before an update-type activity of the list then open it.
You may enter a label.
Select the Keys only reconciliation method since, in this example, the population resulting from queries contains consistent data.
If you have added additional data for the queries, you can decide to keep only the data that is shared.
If you wish to limit the size of the final population, check the Limit size of generated population option.
Specify this final number by entering the maximum number of recipients and by selecting the query whose population will take priority.
Approve the Union activity then configure the List update activity.
Start the workflow. The number of results is displayed and the list defined in the list update activity is created or updated. This list contains the set of recipients for both queries or, where applicable, the number defined at the previous step.
Each inbound event must specify a target defined by these parameters.
This set of three values identifies the target resulting from the union. tableName is the name of the table that records the target identifiers, schema is the schema of the population (usually nms:recipient) and recCount is the number of elements in the table.