Class: EdiDiscontinueFlowWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/edi_discontinue_flow_worker.rb

Overview

Sidekiq worker: edi discontinue flow.

Instance Method Summary collapse

Instance Method Details

#perform(options = {}) ⇒ Object

Parameters:

  • options (Hash) (defaults to: {})

    job options (string keys)

Options Hash (options):

  • orchestrator_name (String)

    restrict the flow to one orchestrator class

  • partner (String)

    restrict the flow to one partner



14
15
16
17
18
# File 'app/workers/edi_discontinue_flow_worker.rb', line 14

def perform(options = {})
  orchestrator_name = options['orchestrator_name'].presence
  partner = options['partner'].presence
  Edi::BaseOrchestrator.execute_flow(:execute_discontinue_flow, orchestrator_name: orchestrator_name, partner: partner)
end