-
Language:
English
-
Language:
English
13.46. Unification for Derivation Queries
JBoss Rules supports unification for derivation queries. This means that arguments are optional. It is possible to call queries from Java leaving arguments unspecified using the static field org.drools.runtime.rule.Variable.v. (You must use 'v' and not an alternative instance of Variable.) These are referred to as 'out' arguments.
Note
The query itself does not declare at compile time whether an argument is in or an out. This can be defined purely at runtime on each use.