Correlations are unnecessarily restrictive #1033
Labels
Prio: Should
This feature should be implemented.
Type: breaking
This is a breaking change. Take care while migrating.
Type: enhancement
New feature or request
Milestone
Scenario
Current Behaviour
Currently correlations are represented as a
CorrelationMap
in the task and data entry events and domain models. ThisCorrelationMap
is an alias for aVariableMap
and represents pairs ofEntryType
toEntryId
. Since this is a map, the key has to be unique, which makes it impossible to represent multiple correlations for the sameEntryType
even though this should be possible.In the
ProcessVariablesCorrelator
it is the other way around. AProcessVariableCorrelation
for example, has global correlations as a map fromEntryId
or "Variable" toEntryType
. This does not allow correlating the same variable to multiple entry types even though this should also be possible.Apart from the mismatch of these two sides, using a map to represent the correlations is unnecessarily restrictive. Only the combination of
EntryType
andEntryId
needs to be unique, so a Set of some data type that holds these two values would be good.Wanted Behaviour
Correlations should be allowed for every unique tuple of
EntryType
andEntryId
Possible Workarounds
Since the correlations are overwritten with a task or data entry update it is also not possible to create these correlations using multiple events. So I don't think there is a workaround currently.
The text was updated successfully, but these errors were encountered: