Mozart.Task.Rule (Mozart v0.2.6)

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,
          inputs: [:income],
          rule_table:
            Tablex.new("""
            F     income      || status
            1     > 50000     || approved
            2     <= 49999    || declined
            """),
        },
      ],
      initial_task: :loan_decision
    }