[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowProcessInstance.py:1.1.2.1 WorkflowProcessInstance.py:1.1.2.1
Vincenzo Di Somma
e.disomma@icube.it
Tue, 5 Mar 2002 13:39:34 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv21994
Added Files:
Tag: Zope-3x-branch
IWorkflowProcessInstance.py WorkflowProcessInstance.py
Log Message:
added Workflow Process Instance.
=== Added File Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessInstance.py ===
"""
Interfaces for Workflow Process Definition.
"""
from Interface import Interface
class IWorkflowProcessInstance( Interface ):
"""
Interface for workflow process definition.
"""
def getStatus():
"""
Report the status
"""
pass
def setActive():
"""
Change the status to Active according to the state machine
"""
pass
def setCompleted():
"""
Change the status to Completed according to the state machine
"""
pass
def listWorkitems():
"""
List all contained workitems
"""
pass
def listActiveWorkitems():
"""
List contained Active workitems
"""
pass
def listFailedWorkitems():
"""
List contained Failed workitem
"""
pass
=== Added File Zope3/lib/python/Zope/App/Workflow/WorkflowProcessInstance.py ===
from Zope.App.Workflow.IWorkflowProcessInstance import IWorkflowProcessInstance
class WorkflowProcessInstance:
__implements__ = IWorkflowProcessInstance
############################################################
# Implementation methods for interface
# Zope.App.Workflow.IWorkflowProcessInstance.IWorkflowProcessInstance
def listActiveWorkitems(self):
'''See interface IWorkflowProcessInstance'''
def setActive(self):
'''See interface IWorkflowProcessInstance'''
def listWorkitems(self):
'''See interface IWorkflowProcessInstance'''
def listFailedWorkitems(self):
'''See interface IWorkflowProcessInstance'''
def getStatus(self):
'''See interface IWorkflowProcessInstance'''
def setCompleted(self):
'''See interface IWorkflowProcessInstance'''
#
############################################################