When instance tasks are run or instance events are fired, the value of .data is passed in as the processData parameter.
A common use for this object are to store process-specific settings, for example you might have two processes with identical tasks, but different settings stored in the data object.
To clear the data object during an event or task, update the process instance's .data property directly rather than the processData parameter: