Engine.invokeRule()

Signature

Object[] invokeRule(String uri, Object[] inputSet, boolean dirtyRead)

Domain

action

Description

Find all the matched tuples of a rule given partial input set. And for each tuple, execute the rule action.

Parameters

NameTypeDescription
uriStringThe URI of the rule to invoke.
inputSetObject[]The input set. Input has to be specified in corresponding order of the rule declaration in the array. Leave the position to null for finding the matches. (Current implementation only support one input in the array.)
dirtyReadbooleanIf true, it won't synchronize the working memory during the read when calling from preprocessor

Returns

TypeDescription
Object[]The result Set, each element in the Object[] is a result tuple which is another Object[].

Cautions

none