Class: ApplicationWorkflow
- Inherits:
-
Ask::Graph
- Object
- Ask::Graph
- ApplicationWorkflow
- Defined in:
- lib/generators/ask/install/templates/application_workflow.rb
Overview
Base class for your application's workflows.
Subclass this to define workflows:
module OrderFulfillment
class Workflow < ApplicationWorkflow
step ValidatePayment
step NotifyCustomer
step ShipOrder
end
end
Then run:
result = OrderFulfillment::Workflow.call({ order: order })