Package ch.ivyteam.ivy.rule.engine.api
Class Rules
- java.lang.Object
-
- ch.ivyteam.ivy.rule.engine.api.Rules
-
public final class Rules extends Object
This class provides the Java API to access all the features of the Rule engine. It is the equivalent for therules
environment variable in IvyScript. Example:ivy.rules.create() .namespace("namespace.of.rules") .executor() .execute(data);
- API:
- This is a public API.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearCache()
Clears the internal rule executor cache.static IRuleExecutorBuilder
create()
Creates a newIRuleExecutorBuilder
for building anIRuleExecutor
to execute rules on data objects.
-
-
-
Method Detail
-
create
public static IRuleExecutorBuilder create()
Creates a newIRuleExecutorBuilder
for building anIRuleExecutor
to execute rules on data objects.Example:
ivy.rules.create() .namespace("namespace.of.rules") .executor() .execute(data);
- Returns:
IRuleExecutorBuilder
- Since:
- 9.2
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
clearCache
public static void clearCache()
Clears the internal rule executor cache. Normally the cache does not need to be invalidated manually. It is automatically invalidated, for example when new rules are deployed.- Since:
- 9.2
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-