mirror of
https://github.com/ditkrg/workflower.git
synced 2026-01-22 14:17:11 +00:00
23 lines
378 B
Ruby
23 lines
378 B
Ruby
class WorkflowSource
|
|
def initialize
|
|
@workflows = {
|
|
"1": [
|
|
{
|
|
state: "saved",
|
|
transition_into: "submitted",
|
|
event: "submit",
|
|
sequence: 1
|
|
}
|
|
].flatten
|
|
}
|
|
end
|
|
|
|
def get_workflows
|
|
@workflows
|
|
end
|
|
|
|
def get_workflows_for_workflow_id(workflow_id)
|
|
get_workflows[workflow_id.to_s.to_sym]
|
|
end
|
|
end
|