When we fetch camunda events and write them to event based process instances, there is a possibility that activities have been imported and fetched before we have their variable updates. In these cases, it would be possible for events to not have their variables attached. Even worse, if the data source is correlated by a particular variable, it would result in us not being able to obtain a trace ID for it.
ATs:
- We make sure that events that we read will always have their variable updates imported, if they exist