org.kie.internal.definition.rule

## Interface InternalRule

- All Superinterfaces:
    org.kie.api.definition.KieDefinition, org.kie.api.definition.rule.Rule

      public interface InternalRule
      extends org.kie.api.definition.rule.Rule

  Internal Rule interface for runtime rule inspection.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.kie.api.definition.KieDefinition

      `org.kie.api.definition.KieDefinition.KnowledgeType`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getActivationGroup()` Returns the `activation-group` rule property.
    `String` | `getAgendaGroup()` Returns the `agenda-group` rule property.
    `boolean` | `getAutoFocus()` Returns the `auto-focus` rule property.
    `Calendar` | `getDateEffective()` Returns the `date-effective` rule property as a `Calendar`.
    `Calendar` | `getDateExpires()` Returns the `date-expires` rule property as a `Calendar`.
    `String` | `getDialect()` Returns the dialect property of this rule.
    `org.kie.api.io.Resource` | `getResource()` Returns the `Resource` of this rule.
    `String` | `getRuleFlowGroup()` Returns the `ruleflow-group` rule property.
    `int` | `getSalienceValue()` Returns the value of the `salience` attribute.
    `boolean` | `isLockOnActive()` Returns the `lock-on-active` rule property.
    `boolean` | `isNoLoop()` Returns the `no-loop` rule property.
    `boolean` | `isSalienceDynamic()` Returns `true` if the rule uses dynamic salience, `false` otherwise.
    `boolean` | `isValid()` Determine if this rule is internally consistent and valid.

    - ### Methods inherited from interface org.kie.api.definition.rule.Rule

      `getMetaData, getName, getPackageName`

    - ### Methods inherited from interface org.kie.api.definition.KieDefinition

      `getId, getKnowledgeType, getNamespace`

- - ### Method Detail

    - #### getResource

          org.kie.api.io.Resource getResource()

      Returns the `Resource` of this rule.
      Returns:
        the `Resource`.

    - #### getDialect

          String getDialect()

      Returns the dialect property of this rule.
      Returns:
        the dialect.

    - #### isValid

          boolean isValid()

      Determine if this rule is internally consistent and valid. This will include checks to make sure the rules semantic components (actions and predicates) are valid. No exception is thrown.

      A `Rule` must include at least one parameter declaration and one condition.

      Returns:
        `true` if this rule is valid, else `false`.

    - #### getSalienceValue

          int getSalienceValue()

      Returns the value of the `salience` attribute.
      Returns:
        the `salience` property value.

    - #### isSalienceDynamic

          boolean isSalienceDynamic()

      Returns `true` if the rule uses dynamic salience, `false` otherwise.
      Returns:
        `true` if the rule uses dynamic salience, else `false`.

    - #### getAgendaGroup

          String getAgendaGroup()

      Returns the `agenda-group` rule property.
      Returns:
        the `agenda-group` property value.

    - #### isNoLoop

          boolean isNoLoop()

      Returns the `no-loop` rule property.
      Returns:
        the `no-loop` property value.

    - #### getAutoFocus

          boolean getAutoFocus()

      Returns the `auto-focus` rule property.
      Returns:
        the `auto-focus` property value.

    - #### getActivationGroup

          String getActivationGroup()

      Returns the `activation-group` rule property.
      Returns:
        the `activation-group` property value.

    - #### getRuleFlowGroup

          String getRuleFlowGroup()

      Returns the `ruleflow-group` rule property.
      Returns:
        the `ruleflow-group` property value.

    - #### isLockOnActive

          boolean isLockOnActive()

      Returns the `lock-on-active` rule property.
      Returns:
        the `lock-on-active` property value.

    - #### getDateEffective

          Calendar getDateEffective()

      Returns the `date-effective` rule property as a `Calendar`.
      Returns:
        the `date-effective` property value.

    - #### getDateExpires

          Calendar getDateExpires()

      Returns the `date-expires` rule property as a `Calendar`.
      Returns:
        the `date-expires` property value.

Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.