Ladder v0.1.0 Ladder View Source
Sample Task list
task_list = %{
task1: {Ladder.TestHelper, :task_exec, [1]},
task2: {Ladder.TestHelper, :task_exec, [2], [4, 6, 8]},
task3: {Ladder.TestHelper, :task_exec, [:ladder_resp]},
task4: {Ladder.TestHelper, :task_exec, [4]},
task5: {Ladder.TestHelper, :task_exec, [5]},
task6: {Ladder.TestHelper, :task_exec, [6]},
task7: {Ladder.TestHelper, :task_exec, [7]},
task8: {Ladder.TestHelper, :task_exec, [8]}
}
fourth element in the task tuple is optional and can contain the positive outcomes of task the children tasks will only be executed if the result of this task matches one of the values in this list
Sample rule
rule = %{
task1: %{
task6: :task8,
},
task4: :task5,
task2: [:task7, :task3]
}
To execute:
Ladder.climb(task_list, rule)
Link to this section Summary
Link to this section Functions
Link to this function