Drools 语法

Rules file structure

drools reference.png

Keywords

Table 1. Hard keywords

true

false

null

Table 2. Soft keywords

lock-on-active

date-effective

date-expires

no-loop

auto-focus

activation-group

agenda-group

ruleflow-group

entry-point

duration

package

import

dialect

salience

enabled

attributes

rule

extend

when

then

template

query

declare

function

global

eval

not

in

or

and

exists

forall

accumulate

collect

from

action

reverse

result

end

over

Comments

Single line comment
// this is a single line comment
Multi-line comment
/*
this is a multi-line comment
*/

results matching ""

    No results matching ""