public interface TemplateInstanceRule extends Rule, BusinessRuleValidateable, BusinessRuleChangeDetector, java.io.Serializable
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.
RuleTemplate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
ParameterValue |
getParameterValue(java.lang.String parameterName)
Get the value of the template parameter with the specified name.
|
java.util.List<ParameterValue> |
getParameterValues()
Get the values of all template parameters for this template instance rule.
|
RuleTemplate |
getRuleTemplate()
Get the template from which this rule was defined.
|
getDescription, getDisplayName, getExpandedUserPresentation, getName, getUserPresentation, isDisplayNameSynchronizedToName, setDescription, setDisplayName, setDisplayNameIsSynchronizedToName
validate
hasChanges
static final java.lang.String COPYRIGHT
RuleTemplate getRuleTemplate()
RuleTemplate
object that was used to define this Rule
.java.util.List<ParameterValue> getParameterValues()
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.ParameterValue getParameterValue(java.lang.String parameterName)
parameterName
- The parameter name.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.