java.lang.Object
org.apache.lenya.workflow.impl.SynchronizedWorkflowInstancesImpl
- All Implemented Interfaces:
- org.apache.lenya.workflow.SynchronizedWorkflowInstances
- public class SynchronizedWorkflowInstancesImpl
- extends java.lang.Object
- implements org.apache.lenya.workflow.SynchronizedWorkflowInstances
An object of this class encapsulates a set of synchronized
workflow instances.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.log4j.Category log
instances
private org.apache.lenya.workflow.WorkflowInstance[] instances
mainInstance
private org.apache.lenya.workflow.WorkflowInstance mainInstance
SynchronizedWorkflowInstancesImpl
public SynchronizedWorkflowInstancesImpl()
- Ctor.
SynchronizedWorkflowInstancesImpl
public SynchronizedWorkflowInstancesImpl(org.apache.lenya.workflow.WorkflowInstance[] instances,
org.apache.lenya.workflow.WorkflowInstance mainInstance)
- Ctor.
setMainInstance
public void setMainInstance(org.apache.lenya.workflow.WorkflowInstance mainInstance)
- Sets the main workflow instance.
setInstances
public void setInstances(org.apache.lenya.workflow.WorkflowInstance[] instances)
getInstances
public org.apache.lenya.workflow.WorkflowInstance[] getInstances()
getExecutableEvents
public org.apache.lenya.workflow.Event[] getExecutableEvents(org.apache.lenya.workflow.Situation situation)
throws org.apache.lenya.workflow.WorkflowException
- Returns all executable events.
- Specified by:
getExecutableEvents in interface org.apache.lenya.workflow.SynchronizedWorkflowInstances
invoke
public void invoke(org.apache.lenya.workflow.Situation situation,
org.apache.lenya.workflow.Event event)
throws org.apache.lenya.workflow.WorkflowException
- Invokes an event on all documents.
- Specified by:
invoke in interface org.apache.lenya.workflow.SynchronizedWorkflowInstances