flux
Interface Condition

All Superinterfaces:
java.io.Serializable

public interface Condition
extends java.io.Serializable

Represents an idempotent (no side-effect) expression that is evaluated to determine whether a particular flow in a flow chart should be followed.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Method Summary
 java.lang.String getExpression()
          Returns this conditional expression.
 boolean isElse()
          Indicates whether this conditional expression guides the flow chart into an else action.
 boolean isError()
          Indicates whether this conditional expression guides the flow chart into an error action via an error flow.
 boolean isErrorWithoutRollback()
          Indicates whether this conditional expression guides the flow chart into an error action via an error flow without rolling back the current transaction.
 boolean isErrorWithRollback()
          Indicates whether this conditional expression guides the flow chart into an error action via an error flow while rolling back the current transaction.
 boolean isTrue()
          Indicates whether this expression is an unconditional "true" expression.
 boolean isTrue(FlowContext flowContext)
          Evaluates this condition's expression.
 

Method Detail

getExpression

java.lang.String getExpression()
Returns this conditional expression.

Returns:
This conditional expression.

isElse

boolean isElse()
Indicates whether this conditional expression guides the flow chart into an else action.

Returns:
Whether this conditional expression guides the flow chart into an else action.

isError

boolean isError()
Indicates whether this conditional expression guides the flow chart into an error action via an error flow. This method delegates to (isErrorWithRollback() || isErrorWithoutRollback()).

Returns:
Whether this conditional expression guides the flow chart into an error action via an error flow.

isErrorWithoutRollback

boolean isErrorWithoutRollback()
Indicates whether this conditional expression guides the flow chart into an error action via an error flow without rolling back the current transaction.

Returns:
Whether this conditional expression guides the flow chart into an error action via an error flow without rolling back the current transaction.

isErrorWithRollback

boolean isErrorWithRollback()
Indicates whether this conditional expression guides the flow chart into an error action via an error flow while rolling back the current transaction.

Returns:
Whether this conditional expression guides the flow chart into an error action via an error flow while rolling back the current transaction.

isTrue

boolean isTrue()
Indicates whether this expression is an unconditional "true" expression. Such an expression is always satisfied.

Returns:
Whether this expression is an unconditional "true" expression.

isTrue

boolean isTrue(FlowContext flowContext)
               throws EngineException
Evaluates this condition's expression.

Parameters:
flowContext - The context in which to evaluate this expression.
Returns:
If the expression is true.
Throws:
EngineException - if the expression cannot be evaluated.


© 2014 Flux Corporation. All rights reserved.