The
Nmrf
parameter sets a dynamic business rule filter for the
navigation query.
Parameter |
|
Name |
Merchandising Rule Filter |
Java setter method |
|
.NET setter property |
|
Type |
This filter can include strings, integers, separator characters, Boolean operators, wildcard operators, and Oracle Commerce property values. |
Description |
This parameter can be used to specify a rule filter that restricts the results of a navigation query to only the records that can be promoted by rules that match the filter. |
Object |
|
Dependency |
|
Example 116. Examples
/controller.php?N=0&Nmrf=or(state:pending,state:approved) /controller.php?N=0&Nmrf=or(1,5,8)
When Nmrf is present in the query, all rules that successfully triggered for that nav state, even if INACTIVE, are returned. If you do not use an Nmrf filter, the ACTIVE/INACTIVE property on the rules is honored, and INACTIVE rules do not get returned.
The workaround is to append a filter for the ACTIVE state in the Nmrf filter to prevent inactive rules from being applied; for example:
Nmrf=AND(endeca.internal.workflow.state:ACTIVE,16)
The filter above returns only the rule with a state of ACTIVE and a rule ID of 16.