Class: RailsWorkflow::EventOperation
- Defined in:
- app/models/rails_workflow/event_operation.rb
Overview
Event operation - waiting/listening for some event.
Constant Summary
Constants included from Status
Status::CANCELED, Status::DONE, Status::ERROR, Status::IN_PROGRESS, Status::NOT_STARTED, Status::ROLLBACK, Status::SKIPPED, Status::WAITING
Instance Attribute Summary
Attributes inherited from Operation
Instance Method Summary collapse
-
#can_be_assigned?(_user) ⇒ Boolean
TODO: check if redundant.
- #can_start? ⇒ Boolean
Methods inherited from Operation
#assigned_to?, #can_be_continued_by?, #can_be_started_by?, #completable?, #completed?, #execute, #instruction, #tag, #waiting?
Instance Method Details
#can_be_assigned?(_user) ⇒ Boolean
TODO: check if redundant
11 12 13 |
# File 'app/models/rails_workflow/event_operation.rb', line 11 def can_be_assigned?(_user) false # any user can complete operation end |
#can_start? ⇒ Boolean
6 7 8 |
# File 'app/models/rails_workflow/event_operation.rb', line 6 def can_start? false end |