com.ibm.wbiserver.brules.mgmt.ruleset

Interface RuleSet

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


    public interface RuleSet
    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.

    • Method Detail

      • getRuleBlocks

        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

        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

        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.
IBM Business Process ManagerTM
Release 8