|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.workflow.impl.SynchronizedWorkflowInstancesImpl
public class SynchronizedWorkflowInstancesImpl
An object of this class encapsulates a set of synchronized workflow instances.
Constructor Summary | |
---|---|
SynchronizedWorkflowInstancesImpl()
Ctor. |
|
SynchronizedWorkflowInstancesImpl(WorkflowInstance[] instances,
WorkflowInstance mainInstance)
Ctor. |
Method Summary | |
---|---|
Event[] |
getExecutableEvents(Situation situation)
Returns all executable events. |
WorkflowInstance[] |
getInstances()
|
void |
invoke(Situation situation,
Event event)
Invokes an event on all documents. |
void |
setInstances(WorkflowInstance[] instances)
|
void |
setMainInstance(WorkflowInstance mainInstance)
Sets the main workflow instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronizedWorkflowInstancesImpl()
public SynchronizedWorkflowInstancesImpl(WorkflowInstance[] instances, WorkflowInstance mainInstance)
instances
- The set of workflow instances to synchronize.mainInstance
- The main workflow instance to invoke for non-synchronized transitions.Method Detail |
---|
public void setMainInstance(WorkflowInstance mainInstance)
mainInstance
- The main workflow instance to invoke for non-synchronized transitions.public void setInstances(WorkflowInstance[] instances)
public WorkflowInstance[] getInstances()
public Event[] getExecutableEvents(Situation situation) throws WorkflowException
getExecutableEvents
in interface SynchronizedWorkflowInstances
WorkflowException
WorkflowInstance.getExecutableEvents(org.apache.lenya.workflow.Situation)
public void invoke(Situation situation, Event event) throws WorkflowException
invoke
in interface SynchronizedWorkflowInstances
WorkflowException
WorkflowInstance.invoke(org.apache.lenya.workflow.Situation, org.apache.lenya.workflow.Event)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |