Context:
In Optimize we use the user operations log to find out if a process instance has been suspended or not. However, when I suspend a process definition the user log does not contain if the user wanted to include the running process instances to the suspension or not. Therefore, an additional event should be emitted to be sure to reconstruct all operations of the user.
AT:
- when the user suspends a process definition an additional user operations log entry is emitted which reveals if the user has included the process instances or not
- the new event belongs to the same operation as the suspension
- the described behavior holds for the process suspension by KEY as well as by ID
Hint:
It would make sense to emit an additional user operations log entry to the suspension operation which has the property includeProcessInstances and the newValue field set to what the user decided (true or false).