Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.lenya.workflow
Interface Condition  view Condition download Condition.java


public interface Condition

A condition can prevent a transition from firing, based on the current situation. Examples:


Method Summary
 boolean isComplied(Situation situation, WorkflowInstance instance)
          Returns if the condition is complied in a certain situation.
 void setExpression(java.lang.String expression)
          Sets the expression for this condition.
 

Method Detail

isComplied

public boolean isComplied(Situation situation,
                          WorkflowInstance instance)
                   throws WorkflowException
Returns if the condition is complied in a certain situation.


setExpression

public void setExpression(java.lang.String expression)
                   throws WorkflowException
Sets the expression for this condition.