|
|||||||||
| Home >> All >> org >> apache >> lenya >> [ workflow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.lenya.workflow
Interface Condition

- public interface Condition
A condition can prevent a transition from firing, based on the current situation. Examples:
- Does the current user have a certain role on the current URL?
- Does a certain state variable have a certain value (e.g., is the document published)? (BooleanVariableCondition)
- Is the sun shining? (e.g., if the weather report may only be published on sunny days)
| 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.
|
|||||||||
| Home >> All >> org >> apache >> lenya >> [ workflow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC