Class: RailsWorkflow::DefaultImporterPreprocessor

Inherits:
Object
  • Object
show all
Defined in:
app/services/rails_workflow/default_importer_preprocessor.rb

Instance Method Summary collapse

Instance Method Details

#prepare(json) ⇒ Object



5
6
7
8
9
10
11
12
# File 'app/services/rails_workflow/default_importer_preprocessor.rb', line 5

def prepare(json)
  if json['operations']
    json['process_template']['operations'] = json['operations']
    json['process_template'].delete('operation_ids')
  end

  json
end