[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowImportExport.py:1.1.2.1 IWorkflowParticipantLookup.py:1.1.2.1 IWorkflowToolAgent.py:1.1.2.1

Vincenzo Di Somma e.disomma@icube.it
Tue, 3 Dec 2002 11:15:53 -0500


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

Added Files:
      Tag: sprintathon-wf-branch
	IWorkflowImportExport.py IWorkflowParticipantLookup.py 
	IWorkflowToolAgent.py 
Log Message:
added new interfaces IWorkflowToolAgent.py IWorkflowImportExport.py IWorkflowParticipantLookup.py 

=== Added File Zope3/lib/python/Zope/App/Workflow/IWorkflowImportExport.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: IWorkflowImportExport.py,v 1.1.2.1 2002/12/03 16:15:52 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/IWorkflowParticipantLookup.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 Participant Lookup Tool
$Id: IWorkflowParticipantLookup.py,v 1.1.2.1 2002/12/03 16:15:52 vds Exp $
"""

from Interface import Interface


class IWorkflowParticipantLookup(Interface):
    """
    Base interface for Participant Lookup Tool
    """

    def getParticipantNames():
        """Return a sequence of participants
        """

    def getParticipantData(principal_id):
        """Get data associated to the specified principal
        """

    def setParticipantData(principal, data):
        """Set the data associated to a principal
        """


=== Added File Zope3/lib/python/Zope/App/Workflow/IWorkflowToolAgent.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 Tool Agent
$Id: IWorkflowToolAgent.py,v 1.1.2.1 2002/12/03 16:15:52 vds Exp $
"""

from Interface import Interface


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

    def getToolNames():
        """Return a sequence of tool names
        """

    def getToolURL(tool_id):
        """Get the URL of a given tool
        """

    def getParameters(enviroment):
        """Get Parameter given a specified environment
        """

    def callTool(tool_id, parameters)
    """Run the tool code with the given paramenter
    """