@Documented @Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface SkipActionsInPredicates
Test
and TestNot
)
Action
s can be used to perform user defined operations, which can
include, for instance, setting values into beans etc. For instance:
Rule myRule() { return Sequence(someRule(), storeSomeValue()); }
The problem is that you may also use such rules in a Test
or
TestNot
rule such as in:
Rule otherRule() { return Sequence(TestNot(myRule()), someOtherRule()); }
In this case, you may not want storeSomeValue()
to be executed in
that particular context. This annotation helps with that.
You can either use it at the rule level or at the class level. If at the class level, it will affect all rules with defined actions.
If at the class level, you can also use the DontSkipActionsInPredicates
annotation on a rule to override this
annotation.
Action
,
ContextAware