Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateExpression ¶
EvaluateExpression try evaluating an expression,if expression is a static value,vars should nil.
Expressions always start with an equals sign (=). For example, = order.amount > 100. The text following the equal sign is the actual expression. For example, order.amount > 100 checks if the amount of the order is greater than 100.
If the element does not start with the prefix, it is used as a static value. A static value is used either as a string (e.g. job type) or as a number (e.g. job retries). A string value must not be enclosed in quotes.
Types ¶
type DefaultConverter ¶
type DefaultConverter struct { }
DefaultConverter use expr as evaluate expression engine
func NewDefaultConverter ¶
func NewDefaultConverter() *DefaultConverter
func (*DefaultConverter) ConvertDecisionTable ¶
func (d *DefaultConverter) ConvertDecisionTable(decisionID string, dt *dmn.DecisionTable) ([]string, error)
Click to show internal directories.
Click to hide internal directories.