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
23
24
25
|
# File 'app/models/rails_workflow/operation_template.rb', line 23
def types
RailsWorkflow.config.operation_types
end
|
Instance Method Details
#default_type ⇒ Object
32
33
34
|
# File 'app/models/rails_workflow/operation_template.rb', line 32
def default_type
RailsWorkflow.config.default_operation_template_type
end
|
#operation_class ⇒ Object
28
29
30
|
# File 'app/models/rails_workflow/operation_template.rb', line 28
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(process_template_id, id)
end
|