Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.lenya.workflow.impl
Class SynchronizedWorkflowInstancesImpl  view SynchronizedWorkflowInstancesImpl download SynchronizedWorkflowInstancesImpl.java

java.lang.Object
  extended byorg.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.


Field Summary
private  org.apache.lenya.workflow.WorkflowInstance[] instances
           
private static org.apache.log4j.Category log
           
private  org.apache.lenya.workflow.WorkflowInstance mainInstance
           
 
Constructor Summary
SynchronizedWorkflowInstancesImpl()
          Ctor.
SynchronizedWorkflowInstancesImpl(org.apache.lenya.workflow.WorkflowInstance[] instances, org.apache.lenya.workflow.WorkflowInstance mainInstance)
          Ctor.
 
Method Summary
 org.apache.lenya.workflow.Event[] getExecutableEvents(org.apache.lenya.workflow.Situation situation)
          Returns all executable events.
 org.apache.lenya.workflow.WorkflowInstance[] getInstances()
           
 void invoke(org.apache.lenya.workflow.Situation situation, org.apache.lenya.workflow.Event event)
          Invokes an event on all documents.
 void setInstances(org.apache.lenya.workflow.WorkflowInstance[] instances)
           
 void setMainInstance(org.apache.lenya.workflow.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
 

Field Detail

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
Constructor Detail

SynchronizedWorkflowInstancesImpl

public SynchronizedWorkflowInstancesImpl()
Ctor.


SynchronizedWorkflowInstancesImpl

public SynchronizedWorkflowInstancesImpl(org.apache.lenya.workflow.WorkflowInstance[] instances,
                                         org.apache.lenya.workflow.WorkflowInstance mainInstance)
Ctor.

Method Detail

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