Class: Sipity::Workflow
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Sipity::Workflow
- Defined in:
- app/models/sipity/workflow.rb
Overview
A named workflow for processing an entity. Originally I had thought of calling this a Type, but once I extracted the Processing submodule, type felt to much of a noun, not conveying potentiality. Workflow conveys “things will happen” because of this.
Constant Summary collapse
- DEFAULT_INITIAL_WORKFLOW_STATE =
'new'.freeze
Instance Method Summary collapse
Instance Method Details
#initial_workflow_state ⇒ Object
15 16 17 |
# File 'app/models/sipity/workflow.rb', line 15 def initial_workflow_state workflow_states.find_or_create_by!(name: DEFAULT_INITIAL_WORKFLOW_STATE) end |