# Match Object
# callback
- Type:
string
- required
- Can be one of:
match_any
- Gives a fixed rank for each message. In case there is no better match for another workflow, match_any will execute.
exact_match
- Compares the value of the incoming message with the value received in the input, and looks for a perfect match. In case found, this workflow will execute.
match_by_regex
- Compares the value of the incoming message with the regex received in the input, and looks for a match. In case found, this workflow will execute.
match_by_opreation_key
- Compares the value of the incoming message with the key of the operation, and looks for a match. In case found, this workflow will execute.
contains
- Compares the value of the incoming message with the array received in the input, and looks for whether one of the values is in the array. In case found, this workflow will execute.
Callback means the method by which the rank function will give the ranking.
# input
- Type:
Array.<string>|string|number
- Default:
undefined
Input means the values to which the incoming message will compare, in relation to the method defined in the callback.
In cases where the method selected in the callback does not require a match against values (for example: match_any
), there is no need to provide input, and its default value will be undefined.
# weigth
- Type:
Number
- Default: 1
Weight means that in cases where we want to override another workflow run, we can set it to a higher weight assuming the message meets the conditions of callback and input