[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowEngine.py:1.1.2.1 WorkflowEngine.py:1.1.2.1

Paul Everitt paul@zope.com
Wed, 6 Mar 2002 05:49:01 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv4113

Added Files:
      Tag: Zope-3x-branch
	IWorkflowEngine.py WorkflowEngine.py 
Log Message:
workflow engine interface and implementation.

=== Added File Zope3/lib/python/Zope/App/Workflow/IWorkflowEngine.py ===
from Interface import Interface


class IWorkflowEngine(Interface):
    """
    Base interface for workflow engine.
    """

    def getProcessInstance (process_id):
        """
        """

    def listProcessInstances ():
        """
        """

    def getWorklist (user, process_instance = None):
        """
        """


class IOpenflowEngine(IWorkflowEngine):
    """
    Interface for activity-based workflow engine.
    """

    def getProcessDefinition(process_definition_id):
        """
        """




        
    


=== Added File Zope3/lib/python/Zope/App/Workflow/WorkflowEngine.py ===
from IWorkflowEngine import IWorkflowEngine

class WorkflowEngine:

    __implements__ =  IWorkflowEngine

    ############################################################
    # Implementation methods for interface
    # Zope.App.Workflow.IWorkflowEngine

    def getProcessInstance(self, process_id):
        '''See interface IWorkflowEngine'''

    def getWorklist(self, user, process_instance=None):
        '''See interface IWorkflowEngine'''

    def listProcessInstances(self):
        '''See interface IWorkflowEngine'''
    #
    ############################################################