Description
When variables are updated in Zeebe, Optimize should import the relevant record(s), and convert and store the data as Optimize variable data.
Note that the scope can be ignored, so regardless of whether or not the update should be propagated, we want the corresponding variables to be updated (we need to confirm that we get updates for each level of propagation - if not, we must determine which records need updating as part of the propagation too)
ATs:
- Zeebe variable record updates are imported and the values saved as part of the Optimize process instances
- If necessary, propagated updates update all the required variables in Optimize
Hint:
- There are two variable related records. We might need to get the variable-document records for updates, as they contain the values in their real form (with which we can derive types), whereas the variable records appear to store all values as Strings.
- Propagation will be harder unless there are variable-document records for each level of the propagation. We should verify this up front
- Zeebe is currently configured to not export variable data at all, so both records need configuring