[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/workflow - stateful.py:1.4

Ulrich Eck ueck@net-labs.de
Thu, 6 Feb 2003 10:02:34 -0500


Update of /cvs-repository/Zope3/src/zope/app/interfaces/workflow
In directory cvs.zope.org:/tmp/cvs-serv23258

Modified Files:
	stateful.py 
Log Message:
small enhancements on StatefulWorkflowInterfaces:
- Schema-support for ProcessDefinitions
- Relevant-data for ProcessInstances
- some comments


=== Zope3/src/zope/app/interfaces/workflow/stateful.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interfaces/workflow/stateful.py:1.3	Wed Feb  5 20:03:51 2003
+++ Zope3/src/zope/app/interfaces/workflow/stateful.py	Thu Feb  6 10:02:33 2003
@@ -47,8 +47,8 @@
     condition = Attribute("""The condition that is evaluated to decide if \
                              the condition is fired or not.""")
     # more attributes/methods to come
-    # permission
-    # description
+    # permission = Attribute("Permission for this Transition.")
+    # description = Attribute("Description for this Transition.")
 
 
 class IStatefulTransitionsContainer(IProcessDefinitionElementContainer):
@@ -62,16 +62,13 @@
     """Interface for stateful workflow process definition.
     """
 
-    # more attributes to come
-    # relevantDataSchema (persistent schema)
-    # relevantDataPermissions (checker)
+    # more methods/attributes to come
+    # relevantData - Permissions (checker)
 
     states = Attribute("State objects container.")
 
     transitions = Attribute("Transition objects container.")
 
-
-
     def addState(name, state):
         """Add a IState to the process definition.
         """
@@ -110,6 +107,13 @@
         """Get the transition names.
         """
 
+    def setSchema(schema):
+        """Set the Schema for RelevantData.
+        """
+
+    def getSchema():
+        """Return the Schema for RelevantData.
+        """
 
 
 
@@ -120,10 +124,7 @@
     StatefulProcessDefinition.
     """
 
-    # more attributes to come
-    # relevantData (an object with attributes
-    #               with permissions and schema)
-
+    data = Attribute("Relevant Data object.")
 
     def initialize():
         """Initialize the ProcessInstance.