Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.1.0.Beta4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.kie.api.runtime.rule
Interface RuleContext

All Superinterfaces:
  KieContext

    public interface RuleContext

extends KieContext

Method Summary
`void` | `blockMatch(Match match)` This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.
`void` | `cancelMatch(Match match)` This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.
`Match` | `getMatch()` Returns the current Match for the current context
`Rule` | `getRule()` Returns the active Rule for the current context
`void` | `insertLogical(Object object)` Logically inserts a fact into the KnowledgeSession, justified by the current rule context.
`void` | `insertLogical(Object object, Object value)` Logically inserts a fact into the KnowledgeSession, justified by the current rule context.
`void` | `unblockAllMatches(Match match)` This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.

Methods inherited from interface org.kie.api.runtime.KieContext
`getKieRuntime, getKnowledgeRuntime`

Method Detail

### getRule

    Rule getRule()

  Returns the active Rule for the current context

  Returns:

### getMatch

    Match getMatch()

  Returns the current Match for the current context

  Returns:

### insertLogical

    void insertLogical(Object object)

  Logically inserts a fact into the KnowledgeSession, justified by the current rule context.

  Parameters:
    `object` - the fact to insert into the knowledge session

### insertLogical

    void insertLogical(Object object,
                       Object value)

  Logically inserts a fact into the KnowledgeSession, justified by the current rule context.

  Parameters:
    `object` - the fact to insert into the knowledge session

### blockMatch

    void blockMatch(Match match)

  This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.

  Parameters:
    `match` -

### unblockAllMatches

    void unblockAllMatches(Match match)

  This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.

  Parameters:
    `match` -

### cancelMatch

    void cancelMatch(Match match)

  This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.

  Parameters:
    `match` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.1.0.Beta4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.