|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Condition
A condition can prevent a transition from firing, based on the current situation. Examples:
Method Summary | |
---|---|
boolean |
isComplied(Workflow workflow,
Workflowable workflowable)
Returns if the condition is complied in a certain situation. |
void |
setExpression(java.lang.String expression)
Sets the expression for this condition. |
Method Detail |
---|
boolean isComplied(Workflow workflow, Workflowable workflowable) throws WorkflowException
workflow
- The workflow to use.workflowable
- The workflowable to check the condition on.
WorkflowException
- when the expression could not be evaluated.void setExpression(java.lang.String expression) throws WorkflowException
expression
- The expression.
WorkflowException
- when the expression is not valid.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |