Mozart.Task.Rule (Mozart v0.1.10)
Used to model a Mozart run task. Called a Business Rule in BPMN2. Uses the Elixir rule_table library.
Example:
%ProcessModel{
name: :load_approval,
tasks: [
%Decision{
name: :loan_decision,
input_fields: [:income],
rule_table:
Tablex.new("""
F income || status
1 > 50000 || approved
2 <= 49999 || declined
"""),
},
],
initial_task: :loan_decision
}