View Source Tablex.Decider (tablex v0.1.1-alpha.3)

Decision engine module responsible for applying a set of rules to input data and returning the output according to the hit policy.

Link to this section Summary

Functions

Run the decision process on the given table, arguments, and options.

Link to this section Types

@type options() :: []

Link to this section Functions

Link to this function

decide(table, args, opts \\ [])

View Source
@spec decide(Tablex.Table.t(), keyword(), options()) ::
  map() | {:error, :hit_policy_not_implemented}

Run the decision process on the given table, arguments, and options.

examples

Examples

iex> decide(table, args)
output
Link to this function

match_expect?(expect, value)

View Source
Link to this function

match_rule?(condition, context)

View Source