com.ibm.wbiserver.brules.mgmt

Interface TemplateInstanceRule

All Superinterfaces:
BusinessRuleChangeDetector, BusinessRuleValidateable, Rule, java.io.Serializable
All known subinterfaces:
DecisionTableTemplateInstanceRule, RuleSetTemplateInstanceRule

  1. public interface TemplateInstanceRule
  2. extends Rule, BusinessRuleValidateable, BusinessRuleChangeDetector, java.io.Serializable
This interface represents a rule within either a ruleset or a decision table that is based on a rule template.

An existing template instance rule can be modified by changing its associated parameter values. This can be done by using the getParameterValues method to get the list of parameter values and then changing the values on the appropriate ParameterValue object using its setValue method.

See Also:
RuleTemplate

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Method Summary

Modifier and Type Method and Description
  1. ParameterValue
getParameterValue(java.lang.String parameterName)
Get the value of the template parameter with the specified name.
  1. java.util.List<ParameterValue>
getParameterValues()
Get the values of all template parameters for this template instance rule.
  1. RuleTemplate
getRuleTemplate()
Get the template from which this rule was defined.
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.Rule
getDescription, getDisplayName, getExpandedUserPresentation, getName, getUserPresentation, isDisplayNameSynchronizedToName, setDescription, setDisplayName, setDisplayNameIsSynchronizedToName
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleValidateable
validate
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleChangeDetector
hasChanges

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

getRuleTemplate

  1. RuleTemplate getRuleTemplate()
Get the template from which this rule was defined.
Returns:
The RuleTemplate object that was used to define this Rule.

getParameterValues

  1. java.util.List<ParameterValue> getParameterValues( )
Get the values of all template parameters for this template instance rule.
Returns:
A List of ParameterValue objects, each of which represents the value of one template parameter. The list itself is unmodifiable. The value of an individual parameter can be changed by using the setValue method on the appropriate ParameterValue object.

getParameterValue

  1. ParameterValue getParameterValue( java.lang.String parameterName)
Get the value of the template parameter with the specified name. Returns null if there is no parameter with the specified name.
Parameters:
parameterName - The parameter name.
Returns:
The ParameterValue object representing the value for the specified parameter. null is returned if there is no parameter with the specified name. The value for the parameter can be changed using the setValue method on the returned object.