|
|||||||||
| Home >> All >> org >> apache >> lenya >> [ workflow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.lenya.workflow
Interface SynchronizedWorkflowInstances

- 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
- all instances are in the source state of the transition, and
- all conditions of the transition are complied for all instances.
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.
|
|||||||||
| Home >> All >> org >> apache >> lenya >> [ workflow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC