Class JsonRule
LHS
when
- A series of grouped RuleCondition
s to which bitwise operations can be performed based on the
LogicGroup.operator
of each group. These are used to filter AttributeInfo
s
in the RuleEngine that this rule is loaded into to determine which Asset
s match;
if one or more assets match then the RHS then
will be triggered. Once a rule is triggered the
AttributeInfo
s that triggered the rule cannot trigger the rule again until it no longer
matches (within the context of the RuleCondition
i.e. an AttributeInfo
can
re-trigger a rule if it is matched by a different RuleCondition
)
The otherwise
RuleAction
s are applied to the Asset
s filtered by
the query that don't match the AssetQuery.attributes
predicates.
when
must evaluate to true and this condition must evaluate to true.
RHS
then
- Defines a series of RuleAction
s to perform when the bitwise result of applying all
RuleCondition
s in the when
is true.
otherwise
- Defines a series of RuleAction
s to perform when there is one or more asset that matched rule doesn't match the assets specified
in the when
. The list of assets this applies to is the assets filtered by applying the
when
but excluding the AssetQuery.attributes
predicates and excluding any assets that match
the entire when
. If the number of these assets is greater than 0 then these RuleAction
s will be
executed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
-
description
-
priority
public int priority -
when
-
then
-
otherwise
-
recurrence
-
onStart
-
onStop
-
-
Constructor Details
-
JsonRule
public JsonRule()
-