Other Rule Attributes

Each advice context rule class should also define a field for every page parameter that will be passed in from the page. For example, if the AdviceContext is related to the PersonHome page, then the page parameter is the concernRoleID. In order to produce advice that is relevant to a specific person, the rule set must have the concern role id available to it during processing.

This is achieved by creating a rule attribute of type NumberParameter with the name of the page parameter on the advice context rule class. Provided the attribute has the same name as the page parameter, the Cúram Advisor infrastructure will automatically detect the presence of the attribute and populate it with the correct value at run time.