TinyRuleKit
Required Tokens
Required tokens let a rule document declare engine capabilities before rules are compiled.
Capability Tokens
JSON
{
"requires": [
"EXPRESSIONS_ENABLED",
"ACTION_RESOLVER_CONFIGURED"
],
"rules": []
}
Available tokens:
EXPRESSIONS_ENABLEDCONDITION_RESOLVER_CONFIGUREDACTION_RESOLVER_CONFIGURED
Framework Version
JSON
{
"requires": [
{
"frameworkVersion": {
"min": "0.2.0",
"max": "1.2.0"
}
}
],
"rules": []
}
Only min, only max, or both are valid. If both bounds are present,
min must be less than or equal to max.
Accepted versions use a dotted numeric core, with optional - or + suffix:
JSON
{
"requires": [
{
"frameworkVersion": {
"min": "1.0.0"
}
}
],
"rules": []
}
Comparison uses the numeric core, so 1.0.0-beta compares as 1.0.0.
The current framework version is resolved only when frameworkVersion is present. Resolution
checks the system property override, package/manifest metadata, module metadata, TinyRuleKit's
generated version resource, Maven pom.properties, and JAR file name metadata.