suspended.rb 401 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::Case::Skip::Suspended < Sequencer::Unit::Base
  3. uses :resource
  4. provides :action
  5. def process
  6. return if resource['state'] != 'SUSPENDED'
  7. logger.info { "Skipping. Kayako Case ID '#{resource['id']}' is in 'SUSPENDED' state." }
  8. state.provide(:action, :skipped)
  9. end
  10. end