|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeAction
This interface represents one action within a decision tree action node. Each of these actions
assigns a value to a variable (referred to as the "term"). Each TreeAction
contains the following:
The value for each tree action is either a hard-coded expression or is defined by a template instance. The hard-coded expression cannot be obtained using the API. If the value is a hard-coded expression, then the value user presentation string should be used to determine how to present the value to the user. If the value is defined by a template instance, then the associated template, along with the parameter values from the template instance, should be used to determine how to present the value to the user.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
java.util.List<TreeActionValueTemplate> |
getAvailableValueTemplates()
Get the value templates available for use by this action. |
TreeActionTermDefinition |
getTermDefinition()
Get the definition of the term of this tree action. |
TemplateInstanceExpression |
getValueTemplateInstance()
Get the template instance defining the value for this action. |
java.lang.String |
getValueUserPresentation()
Get the user presentation string for the value for this tree action. |
boolean |
isValueNotApplicable()
Determine whether or not the value is "not applicable". |
void |
setValueTemplateInstance(TemplateInstanceExpression valueTemplateInstance)
Set the template instance defining the value for this action. |
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleValidateable |
---|
validate |
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleChangeDetector |
---|
hasChanges |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
TreeActionTermDefinition getTermDefinition()
boolean isValueNotApplicable()
TemplateInstanceExpression getValueTemplateInstance()
void setValueTemplateInstance(TemplateInstanceExpression valueTemplateInstance) throws ValidationException, java.lang.IllegalArgumentException
getValueTemplateInstance
method to get the current template instance, get the ParameterValue
objects from the returned TemplateInstanceExpression
and change the value
for the desired parameters.
A new TemplateInstanceExpression
can be created by from one of the
value templates defined for this action. The value templates for this action can be
obtained using the getAvailableValueTemplates
method on this object. They
can also be obtained by using the getTermDefinition
method on this object
to get the TreeActionTermDefinition
for this action and then using the
getValueTemplates
to get the value templates. These two methods are
equivalent.
If the value template instance for this object is currently null, then it is not
allowed to set the value template instance to a non-null value. In other words, the
API does not allow the action to be changed from a hard-coded action to one defined
by a template. If this is attempted, a ValidationException
is thrown.
valueTemplateInstance
- The new template instance defining the value for this
action. The passed in TemplateInstanceExpression
is checked to ensure
that the template it is derived from is one of the templates available for this
action, i.e. that it is one of the templates returned by the
getAvailableValueTemplates
on this object. If it is not, then a
ValidationException
is thrown. If the current value of the value
template instance field is not null, then this parameter must be non-null.
Otherwise an IllegalArgumentException
is thrown.
ValidationException
- if either of the following is true:
TemplateInstanceExpression
is not null.
java.lang.IllegalArgumentException
- if the current value of the value template instance
field is not null and the passed in value is null.
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.java.util.List<TreeActionValueTemplate> getAvailableValueTemplates()
TemplateInstanceExpressions
for this action.
This is a convenience method and is equivalent to performing the following sequence of
method calls on this object: getTermDefinition().getValueTemplates()
.
List
is unmodifiable.java.lang.String getValueUserPresentation()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |