Class: RemoteExportTask
- Inherits:
-
ActiveSaga::Task
- Object
- ActiveSaga::Task
- RemoteExportTask
- Defined in:
- lib/generators/active_saga/install/templates/sample_workflow.rb
Instance Attribute Summary
Attributes inherited from ActiveSaga::Task
Instance Method Summary collapse
Methods inherited from ActiveSaga::Task
async!, async_options, #initialize
Constructor Details
This class inherits a constructor from ActiveSaga::Task
Instance Method Details
#call(ctx) ⇒ Object
22 23 24 |
# File 'lib/generators/active_saga/install/templates/sample_workflow.rb', line 22 def call(ctx) ExternalExporter.request!(ctx[:reference]).slice(:job_id, :correlation_id) end |
#compensate(ctx, result: nil) ⇒ Object
26 27 28 |
# File 'lib/generators/active_saga/install/templates/sample_workflow.rb', line 26 def compensate(ctx, result: nil) ExternalExporter.cancel!(result[:job_id]) if result end |