Class: RailsWorkflow::Operation

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
OperationStatus, RailsWorkflow::Operations::Assignments, RailsWorkflow::Operations::DefaultRunner, RailsWorkflow::Operations::Dependencies
Defined in:
app/models/rails_workflow/operation.rb

Direct Known Subclasses

UserByGroupOperation, UserByRoleOperation

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 Method Summary collapse

Instance Method Details

#instructionObject



22
23
24
# File 'app/models/rails_workflow/operation.rb', line 22

def instruction
  self.template.instruction
end

#managerObject



26
27
28
# File 'app/models/rails_workflow/operation.rb', line 26

def manager
  @manager ||= process.manager
end

#manager=(manager) ⇒ Object



30
31
32
# File 'app/models/rails_workflow/operation.rb', line 30

def manager= manager
  @manager = manager
end