Field merge integer array example
The following table shows the result of merging field values in arrays when there are multiple users at a step.
- The Workflow Properties columns show each field, its initial values, and the merge type.
- The Step_1 columns show what the three users entered for each field.
- The Step_2 column shows the contents of each field after the values have been merged.
See Merge types for a description of each merge type.
| Workflow Properties | Step_1 | Step_2 | ||||
|---|---|---|---|---|---|---|
| Field and initial value | Type | User_A | User_B | User_C | Resulting values | |
| int_add_0 = 0 | Add | 10 | 15 | 20 | 45 | Adds all values |
| int_add_10 = 10 | Add | 10 | 15 | 15 | 40 | Discards User_A entry - same as initial value |
| int_append = 10 | Append | 10 | 15 | 15 | 10 15 15 | Discards User_A entry - same as initial value |
| int_append_nodup = 10 | AppendNoDup | 10 | 15 | 15 | 10 15 | Discards User_A entry - same as initial value Discards User_C entry - same as User_B entry |
| int_default = 0 | Default | 10 | 15 | 20 | 0 | No change from initial value |
| int_override = 1 2 3 | Override | 10 nochange 30 | 15 20 15 | 20 nochange nochange | 20 2 3 | Each entry overrides all elements of the array. User_C is the last entry. |
| int_override_entry = 1 2 3 | Override entry | 10 nochange 30 | 15 20 15 | 20 nochange nochange | 20 20 15 | Each entry overrides only the changed elements. |
TIP
- For the merge types Add, Append, and AppendNoDup, the system discards all participant entries that match the initial value of the field. Therefore, to add all values entered by participants, use the Add merge type and leave the initial value set at zero.
- For merge type AppendNoDup, the system also discards any entry that is a duplicate of the value entered by another participant.