Class: RailsWorkflow::EventOperation

Inherits:
Operation
  • Object
show all
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

#manager

Instance Method Summary collapse

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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


6
7
8
# File 'app/models/rails_workflow/event_operation.rb', line 6

def can_start?
  false
end