1 17 18 19 20 package org.apache.lenya.workflow; 21 22 29 public interface WorkflowInstance { 30 34 Workflow getWorkflow(); 35 36 41 State getCurrentState(); 42 43 49 Event[] getExecutableEvents(Situation situation) throws WorkflowException; 50 51 58 void invoke(Situation situation, Event event) throws WorkflowException; 59 60 66 boolean getValue(String variableName) throws WorkflowException; 67 68 72 void addWorkflowListener(WorkflowListener listener); 73 74 78 void removeWorkflowListener(WorkflowListener listener); 79 80 85 boolean isSynchronized(Event event) throws WorkflowException; 86 } 87 | Popular Tags |