|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
Event[] getExecutableEvents(Situation situation) throws WorkflowException
WorkflowException
WorkflowInstance.getExecutableEvents(org.apache.lenya.workflow.Situation)
void invoke(Situation situation, Event event) throws WorkflowException
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 |