Back to Fuji EIPCBR, or Fuji EIPCBR Info
| At line 24 changed 1 line. |
| [when [ value | condition-identifier inline-rules-definition] to route-name ]* |
| [when [ value | condition-identifier inline-rules-definition] to [route-name | service-name] ]* |
| At line 40 changed 2 lines. |
| \\ |
| There exists one configuration parameter: firstMatch. Default value is true. If set to false, the condition based rule matching will only trigger if a single rule is found to match. Otherwise if multiple rules match, or no rules match, the else clause will be selected. |
| \\ \\ |
| There exists one configuration parameter: {{{match=first|last|unique}}}. Default value is {{{first}}}. In this case the first condition based rule that matches will trigger. If set to {{{last}}}, the last condition based rule that matches will trigger. If set to {{{unique}}}, the condition based rule matching will trigger only if a single rule is found to match. Otherwise, if multiple rules match, or no rules match, the else clause will be selected. |
| At line 47 added 1 line. |
| email "exception-service" |
| At line 53 changed 1 line. |
| else to "other-transaction" |
| else to "exception-service" |
| At line 59 added 1 line. |
| email "other-service" |
| At line 62 changed 1 line. |
| when "false" to "other-transaction |
| when "false" to "other-service" |
| At line 112 added 14 lines. |
| Another useful feature is a new property that controls the selection policy. By default, the selection policy is first match. Also, rules can be grouped and ordered within groups to control the evaluation order. The selection policy can be changed to either last match or unique match. When last match is used, the last matching rule triggers, or the else if there is no match. When unique match is used, a rule triggers only if it is the only rule that matches. In the case of multiple matches, the else clause will be selected if it exists. Otherwise, an error is returned. |
| Example of match property: |
| {{{ |
| select any ("match=unique") do |
| when xpath "/Value=5" to "service-a" |
| when xpath "/Time=now" to "service=b" |
| else to "service-c" |
| end |
| }}} |
| If Value==5 and Time==now then the else clause will be triggered. |
| If, in the above case, match is set to first then "service-a" would be invoked, and if match is set to last then "service-b" would be invoked. |
| At line 278 changed 1 line. |
| Where '{name}' is the named ruleset as defined in the IFL. If the named rule set has a default value it will be located in the cbr/{name}/-default-.yml. The default value comes from any condition based when clauses present in the IFL source. Additional rules can be added dynamically. The priority for the default rule group is 10.0. |
| Where '{name}' is the named ruleset as defined in the IFL. If the named rule set has a default value it will be located in the cbr/{name}/-default-.yml. The default value comes from any condition based when clauses present in the IFL source. Additional rules can be added dynamically. The priority for the default rule group is 100.0. |