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
Methods included from Uuid
#generate_guid
Class Method Details
.types ⇒ Object
37
38
39
|
# File 'app/models/rails_workflow/operation_template.rb', line 37
def types
RailsWorkflow.config.operation_types
end
|
Instance Method Details
#default_type ⇒ Object
46
47
48
|
# File 'app/models/rails_workflow/operation_template.rb', line 46
def default_type
RailsWorkflow.config.default_operation_template_type
end
|
#multiple=(value) ⇒ Object
25
26
27
28
|
# File 'app/models/rails_workflow/operation_template.rb', line 25
def multiple=(value)
self.source ||= {}
source[:multiple] = value == 'true'
end
|
#multiple? ⇒ Boolean
Also known as:
multiple
30
31
32
|
# File 'app/models/rails_workflow/operation_template.rb', line 30
def multiple?
(source || {})['multiple'] == true
end
|
#operation_class ⇒ Object
42
43
44
|
# File 'app/models/rails_workflow/operation_template.rb', line 42
def operation_class
get_class(:operation_class, default_class(kind.to_sym))
end
|
#other_operations ⇒ Object
21
22
23
|
# File 'app/models/rails_workflow/operation_template.rb', line 21
def other_operations
OperationTemplate.other_operations(process_template_id, id)
end
|