com.ibm.wbiserver.brules.mgmt
Interface Template
- public interface Template
- extends java.io.Serializable
The main purpose of a template is to allow a piece of a ruleset or a decision table to be changed dynamically at runtime without having to completely redeploy the application. There are two aspects to this. First, an existing template instance can be changed by updating the parameter values associated with it. This will cause that template instance to be executed with the new values the next time the ruleset or decision table is run. Second, a new template instance can be created dynamically to allow new pieces of logic to be added to a ruleset or a decision table. For example, a new template instance rule can be created and added dynamically to a ruleset without having to redeploy the entire application.
A template has a list of parameters that define the values that can be changed at runtime for this template. The values for these parameters are specified in the template instances created from the template. A template also has a user presentation string which specifies how the template should be presented to the end user.
Field Summary
Modifier and Type | Field and Description |
---|---|
|
COPYRIGHT
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getDescription()
Get the description for this template.
|
|
getDisplayName()
Get the display name for this template.
|
|
getId()
Get the system-assigned ID of this template.
|
|
getName()
Get the name of this template.
|
getParameter(java.lang.String parameterName)
Get the parameter with the specified name from this template.
|
|
|
getParameters()
Get the parameters for this template
|
|
getUserPresentation()
Get the user presentation string for this template.
|
Field Detail
COPYRIGHT
- static final java.lang.String COPYRIGHT
Method Detail
getName
- java.lang.String getName()
getId
- java.lang.String getId()
getUserPresentation
- java.lang.String getUserPresentation( )
getDescription
- java.lang.String getDescription( )
getDisplayName
- java.lang.String getDisplayName( )
getParameters
- java.util.List<Parameter> getParameters( )
List
of Parameter
objects representing the parameters
for this template. The returned List
is unmodifiable. getParameter
- Parameter getParameter(java.lang.String parameterName)
parameterName
- The parameter name to search for. java.lang.IllegalArgumentException
- If parameterName is null