org.apache.lenya.cms.workflow
Class WorkflowDocument

java.lang.Object
  extended by org.apache.lenya.workflow.impl.WorkflowInstanceImpl
      extended by org.apache.lenya.cms.workflow.WorkflowDocument
All Implemented Interfaces:
WorkflowInstance

public class WorkflowDocument
extends WorkflowInstanceImpl


Constructor Summary
protected WorkflowDocument(Document document)
          Create a new WorkflowDocument
 
Method Summary
 Document getDocument()
          Returns the document of this WorkflowDocument object.
protected  WorkflowImpl getWorkflow(java.lang.String workflowName)
          (non-Javadoc)
 void invoke(Situation situation, java.lang.String eventName)
          DOCUMENT ME!
 
Methods inherited from class org.apache.lenya.workflow.impl.WorkflowInstanceImpl
addWorkflowListener, fire, getCurrentState, getExecutableEvents, getNextTransition, getState, getValue, getVariableInstance, getWorkflow, getWorkflowImpl, initVariableInstances, invoke, isSynchronized, removeWorkflowListener, setCurrentState, setValue, setWorkflow, setWorkflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowDocument

protected WorkflowDocument(Document document)
                    throws WorkflowException
Create a new WorkflowDocument

Parameters:
document - the document
Throws:
WorkflowException - if an error occurs
Method Detail

getDocument

public Document getDocument()
Returns the document of this WorkflowDocument object.

Returns:
A document object.

invoke

public void invoke(Situation situation,
                   java.lang.String eventName)
            throws WorkflowException
DOCUMENT ME!

Parameters:
situation - DOCUMENT ME!
eventName - DOCUMENT ME!
Throws:
WorkflowException - DOCUMENT ME!

getWorkflow

protected WorkflowImpl getWorkflow(java.lang.String workflowName)
                            throws WorkflowException
(non-Javadoc)

Specified by:
getWorkflow in class WorkflowInstanceImpl
Parameters:
workflowName - The workflow identifier.
Returns:
A workflow object.
Throws:
WorkflowException - when the workflow could not be created.
See Also:
WorkflowInstanceImpl.getWorkflow(java.lang.String)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.