com.ibm.wbiserver.brules.mgmt.ruleset

Interface RuleSet

All Superinterfaces:
BusinessRule, BusinessRuleChangeDetector, BusinessRuleValidateable, java.io.Serializable

  1. public interface RuleSet
  2. extends BusinessRule
This interface represents a ruleset. A ruleset consists of a rule block and 0 or more rule templates. The rule block contains the rule instances (both hard-coded and teamplatized) that are executed at runtime to perform the ruleset's function. The rule templates, if any, are used to create rule instances whose parameters can be changed at runtime. These new rule instances can be added to the rule block for this ruleset.

A new ruleset based on this one can be created using the createCopy method. The new ruleset is automatically added to the list of available targets for the operation that this ruleset is associated with. It can then be added as a default target or a date-qualified target for the operation.


Field Summary

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

Method Summary

Modifier and Type Method and Description
  1. RuleBlock
getFirstRuleBlock()
Get the first rule block within this ruleset.
  1. java.util.List<RuleBlock>
getRuleBlocks()
Get all rule blocks contained within this ruleset.
  1. java.util.List<RuleSetRuleTemplate>
getRuleTemplates()
Get all rule templates contained within this ruleset.
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRule
createCopy, getAssociatedOperation, getDescription, getDisplayName, getName, getProperties, getProperty, getPropertyValue, getRuntimeID, getSaveDate, getTargetNameSpace, getType, isDisplayNameSynchronizedToName, setDescription, setDisplayName, setDisplayNameIsSynchronizedToName, setPropertyValue
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

getRuleBlocks

  1. java.util.List<RuleBlock> getRuleBlocks( )
Get all rule blocks contained within this ruleset. In the current implementation only one rule block is allowed per ruleset.
Returns:
A List of RuleBlock objects representing the rule blocks for this ruleset. The returned List is unmodifiable.

getFirstRuleBlock

  1. RuleBlock getFirstRuleBlock()
Get the first rule block within this ruleset. This is a convenience method that can be used to get the single rule block that is allowed in the ruleset in the current implementation.
Returns:
The first RuleBlock object in the list of RuleBlocks for this ruleset.

getRuleTemplates

  1. java.util.List<RuleSetRuleTemplate> getRuleTemplates( )
Get all rule templates contained within this ruleset.
Returns:
A List of RuleSetRuleTemplate objects representing the rule templates for this ruleset. The returned List is unmodifiable.