Class: RailsWorkflow::OperationTemplate
Constant Summary
Constants included
from Status
Status::CANCELED, Status::DONE, Status::ERROR, Status::IN_PROGRESS, Status::NOT_STARTED, Status::ROLLBACK, Status::SKIPPED, Status::WAITING
Class Method Summary
collapse
Instance Method Summary
collapse
#build_operation, #build_operation!
Methods included from Uuid
#generate_guid
Class Method Details
.types ⇒ Object
24
25
26
|
# File 'app/models/rails_workflow/operation_template.rb', line 24
def types
RailsWorkflow.config.operation_types
end
|
Instance Method Details
#default_type ⇒ Object
35
36
37
|
# File 'app/models/rails_workflow/operation_template.rb', line 35
def default_type
RailsWorkflow.config.default_operation_template_type
end
|
#operation_class ⇒ Object
31
32
33
|
# File 'app/models/rails_workflow/operation_template.rb', line 31
def operation_class
get_class(:operation_class, default_class(kind.to_sym))
end
|
#other_operations ⇒ Object
18
19
20
|
# File 'app/models/rails_workflow/operation_template.rb', line 18
def other_operations
OperationTemplate.other_operations(self.process_template_id, self.id)
end
|