Class StateExpressionJob

All Implemented Interfaces:
Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resettable, Stateful

public class StateExpressionJob extends SimpleJob

Description

Evaluate a state expression and become COMPLETE if it is true or INCOMPLETE otherwise.

Can be useful with an IfJob. The expression is the same as that described in StateExpressionType.

  • Constructor Details

    • StateExpressionJob

      public StateExpressionJob()
  • Method Details

    • execute

      protected int execute() throws Throwable
      Description copied from class: SimpleJob
      Execute this job.
      Specified by:
      execute in class SimpleJob
      Returns:
      0 if the job is complete, anything else otherwise.
      Throws:
      Throwable
    • getExpression

      public String getExpression()
    • setExpression

      public void setExpression(String expression)
    • getEvaluation

      public InstantEvent<Boolean> getEvaluation()