Whenever an operation is executed which creates an user operation log, the user operation log is always written also then when the operation has not been executed by a user.
- User operation log is only written when a user executes an operation (CommandContext#getAuthenticatedUserId != null)
- There exists a process engine configuration flag which enables the behavior < 7.4: user operation log is also written when the operation is not executed by a user
Be aware of the following scenario:
- User completes an User Task
- After the User Task a Service Task with a custom java delegate is executed, which calls for example RuntimeService#setVariables()
Only the completion of the User Task is logged. Since setting the variables has not been executed by the user explicitly, this operation is not logged in the user operation log.