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

Quick Search    Search Deep

org.apache.lenya.workflow
Interface SynchronizedWorkflowInstances  view SynchronizedWorkflowInstances download SynchronizedWorkflowInstances.java


public interface SynchronizedWorkflowInstances

Synchronized workflow instances.

A set of workflow instances with the same workflow schema can be synchronized. If a transition in this schema is marked as synchronized, it can only be invoked on all instances in the set at the same time.

When a workflow event is invoked on a set of synchronized workflow instances, the transition is invoked only if

Then the transition is invoked for all instances in the set.

A common usecase of this concept is the simultaneous publishing of a set of documents (all language versions of a document, a section, ...).


Method Summary
 Event[] getExecutableEvents(Situation situation)
          Returns all executable events.
 void invoke(Situation situation, Event event)
          Invokes an event on all documents.
 

Method Detail

getExecutableEvents

public Event[] getExecutableEvents(Situation situation)
                            throws WorkflowException
Returns all executable events.


invoke

public void invoke(Situation situation,
                   Event event)
            throws WorkflowException
Invokes an event on all documents.