core_workflow.rb 336 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sessions::Event::CoreWorkflow < Sessions::Event::Base
  3. database_connection_required
  4. def run
  5. return if !valid_session?
  6. {
  7. event: 'core_workflow',
  8. data: CoreWorkflow.perform(payload: @payload, user: current_user)
  9. }
  10. end
  11. end