[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowProcessDefinitionImportExport.py:1.1.2.1 IWorkflowProcessInstanceControl.py:1.1.2.1 WorkflowProcessInstanceControl.py:1.1.2.1 IWorkflowProcessDefinition.py:1.1.2.4 IWorkflowService.py:1.2.24.4 IWorkflowTransition.py:1.1.2.2 IWorkflowWorkitem.py:1.2.24.3 IWorkflowWorklistHandler.py:1.1.2.3 IWorkflowEngine.py:NONE IWorkflowHistoryStorage.py:NONE IWorkflowImportExport.py:NONE IWorkflowNode.py:NONE IWorkflowParticipantLookup.py:NONE IWorkflowProcessInstanceStorage.py:NONE IWorkflowToolAgent.py:NONE IWorkflowWorkitemStorage.py:NONE WorkflowEngine.py:NONE

Vincenzo Di Somma e.disomma@icube.it
Wed, 4 Dec 2002 11:53:19 -0500


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

Modified Files:
      Tag: sprintathon-wf-branch
	IWorkflowProcessDefinition.py IWorkflowService.py 
	IWorkflowTransition.py IWorkflowWorkitem.py 
	IWorkflowWorklistHandler.py 
Added Files:
      Tag: sprintathon-wf-branch
	IWorkflowProcessDefinitionImportExport.py 
	IWorkflowProcessInstanceControl.py 
	WorkflowProcessInstanceControl.py 
Removed Files:
      Tag: sprintathon-wf-branch
	IWorkflowEngine.py IWorkflowHistoryStorage.py 
	IWorkflowImportExport.py IWorkflowNode.py 
	IWorkflowParticipantLookup.py 
	IWorkflowProcessInstanceStorage.py IWorkflowToolAgent.py 
	IWorkflowWorkitemStorage.py WorkflowEngine.py 
Log Message:
useful interfaces cleaned and unuseful interfaces deleted

=== Added File Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessDefinitionImportExport.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""
Interface for Import Export Tool
$Id: IWorkflowProcessDefinitionImportExport.py,v 1.1.2.1 2002/12/04 16:53:18 vds Exp $
"""

from Interface import Interface


class IWorkflowImportExport(Interface):
    """
    Base interface for Tool Agent
    """

    def importProcessDefinition(process_definition):
        """Import a Process Definition
        """

    def exportProcessDefinition(pd_id):
        """Export a Process Definition
        """


=== Added File Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessInstanceControl.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################

"""Interfaces for workflow process engine.

An engine is a way to execute a process instance.

$Id: IWorkflowProcessInstanceControl.py,v 1.1.2.1 2002/12/04 16:53:18 vds Exp $
"""

from Interface import Interface
from Interface.Attribute import Attribute


class IWorkflowProcessInstanceControl(Interface):
    """Interface to interact with a process instance."""

    def start():
        """Start a process instance."""

    def finish():
        """Finish a process instance."""


=== Added File Zope3/lib/python/Zope/App/Workflow/WorkflowProcessInstanceControl.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
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'''
    #
    ############################################################


=== Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessDefinition.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessDefinition.py:1.1.2.3	Wed Dec  4 06:15:27 2002
+++ Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessDefinition.py	Wed Dec  4 11:53:18 2002
@@ -22,11 +22,13 @@
 
 
 class IWorkflowProcessDefinition(Interface):
-    """Workflow process definition."""
+    """Interface for workflow process definition."""
+
+    name = Attribute("""The name of the ProcessDefinition""")
 
-    name = Attribute("The name of the workflow process definition.")
 
     def createProcessInstance():
         """Create a new process instance for this process definition.
 
         Returns an IWorkflowProcessInstance."""
+


=== Zope3/lib/python/Zope/App/Workflow/IWorkflowService.py 1.2.24.3 => 1.2.24.4 ===
--- Zope3/lib/python/Zope/App/Workflow/IWorkflowService.py:1.2.24.3	Wed Dec  4 06:15:27 2002
+++ Zope3/lib/python/Zope/App/Workflow/IWorkflowService.py	Wed Dec  4 11:53:18 2002
@@ -13,6 +13,7 @@
 ##############################################################################
 
 """Interfaces for workflow service.
+$Id$
 """
 
 from Interface import Interface


=== Zope3/lib/python/Zope/App/Workflow/IWorkflowTransition.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/lib/python/Zope/App/Workflow/IWorkflowTransition.py:1.1.2.1	Tue Dec  3 10:35:47 2002
+++ Zope3/lib/python/Zope/App/Workflow/IWorkflowTransition.py	Wed Dec  4 11:53:18 2002
@@ -25,30 +25,7 @@
     """
 
     name = Attribute("name of Transition")
-    originating_node = Attribute("""The originating node""")
-    destination_node = Attribute("""The destination node""")
     condition = Attribute("""The condition that has evaluated to decide if \
     fire the condition or not""")
     processDefinition = Attribute("ref to PD the activity belongs to")
 
-    def setOriginatingNode(node_id):
-        """Set originating node"""
-
-    def setDestinationNode(node_id):
-        """Set destination node"""
-        
-    def setCondition(condition):
-        """Set the condition"""
-
-    def getOriginatingNode(condition):
-        """Get the originating node"""
-
-    def getDestinationNode(condition):
-        """Get the condition"""
-
-    def getCondition(condition):
-        """Get the condition"""
-
-    def getProcessDefinition():
-        """Get the process definition
-        """


=== Zope3/lib/python/Zope/App/Workflow/IWorkflowWorkitem.py 1.2.24.2 => 1.2.24.3 ===
--- Zope3/lib/python/Zope/App/Workflow/IWorkflowWorkitem.py:1.2.24.2	Wed Dec  4 04:05:11 2002
+++ Zope3/lib/python/Zope/App/Workflow/IWorkflowWorkitem.py	Wed Dec  4 11:53:18 2002
@@ -20,26 +20,11 @@
 
 
 class IWorkflowWorkitem(Interface):
-    """
-    Base interface for workitems.
-    """
+    """Base interface for workitems."""
 
-    # XXX Stay with Attributes only ???
     assignee = Attribute("""The user in charge of accomplish the task""")
-    status = Attibute("""The state in which the workitem is""")
-
+    process_instance = Attribute("""The process instance the workitme is included in""")
     
-    def setAssignee(assignee):
-        """
-        Set the assignee.
-        """
-
-    def getProcessInstance():
-        """
-        Get the process instance this workitem is about.
-        Returns a IWorkflowProcessInstance.
-        """
-
     def start():
         """Starts work on a workitem."""
 
@@ -48,14 +33,3 @@
 
     def abort():
         """Aborts work on a workitem."""
-
-    def getStatus():
-        """
-        Get the internal state of the workitem.
-        """
-
-    def getAssignee():
-        """
-        Get the assignee.
-        Returns a IPrincipal or None.
-        """


=== Zope3/lib/python/Zope/App/Workflow/IWorkflowWorklistHandler.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/lib/python/Zope/App/Workflow/IWorkflowWorklistHandler.py:1.1.2.2	Wed Dec  4 04:05:11 2002
+++ Zope3/lib/python/Zope/App/Workflow/IWorkflowWorklistHandler.py	Wed Dec  4 11:53:18 2002
@@ -20,11 +20,7 @@
 
 
 class IWorkflowWorklistHandler(Interface):
-    """
-    Base interface for Worklist Handler.
-    """
+    """Base interface for Worklist Handler."""
 
-    # XXX getWorkitems ?? (names might not be unique!!)
-
-    def getWorkitemNames(filter):
+    def getWorkitem():
         """Return a sequence of workitem"""

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowEngine.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowHistoryStorage.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowImportExport.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowNode.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowParticipantLookup.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessInstanceStorage.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowToolAgent.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/IWorkflowWorkitemStorage.py ===

=== Removed File Zope3/lib/python/Zope/App/Workflow/WorkflowEngine.py ===