Package ch.ivyteam.ivy.rule.engine.api
Class Rules
java.lang.Object
ch.ivyteam.ivy.rule.engine.api.Rules
This class provides the Java API to access all the features of the Rule
engine. It is the equivalent for the
rules environment variable
in IvyScript.
Example:
ivy.rules.create()
.namespace("namespace.of.rules")
.executor()
.execute(data);
- API:
- This is a public API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IRuleEngineDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the internal rule executor cache.static IRuleExecutorBuildercreate()Creates a newIRuleExecutorBuilderfor building anIRuleExecutorto execute rules on data objects.static IRuleEngineengine()Deprecated, for removal: This API element is subject to removal in a future version.usecreate()
-
Field Details
-
engine
Deprecated, for removal: This API element is subject to removal in a future version.usecreate()Provides access to theIRuleEngine.- API:
- This public API is available in Java.
-
-
Method Details
-
engine
Deprecated, for removal: This API element is subject to removal in a future version.usecreate()Provides access to theIRuleEngine.- Returns:
- the
IRuleEngine - API:
- This public API is available in Java.
-
create
Creates a newIRuleExecutorBuilderfor building anIRuleExecutorto 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 Java.
-
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 Java.
-
create()