Class ConditionExpression

  • All Implemented Interfaces:
    ComponentLifecycle, Condition

    @ComponentProfile(summary="Tests a static algorithm for a boolean result.",
                      tag="condition")
    public class ConditionExpression
    extends ConditionImpl

    This Condition allows you to specify a boolean evaluated expression, with static values and resolved metadata values.

    If your expression evaluates to "true", then this condition passes.

    Static values mixed with metadata values allow you to create boolean expressions, such as;

    Example description Example Expression
    Is the metadata value identified by key "myKey" equal to the value 1 %message{myKey} == 1
    Is the metadata value identified by key "myKey" equal to the metadata item "myOtherKey" %message{myKey} == %message{myOtherKey}
    Is the metadata value identified by key "myKey" greater than "myOtherKey" plus 100 %message{myKey} > (%message{myOtherKey} + 100)

    In the adapter configuration file this class is aliased as expression which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • ConditionExpression

        public ConditionExpression()
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(java.lang.String algorithm)