schemas/workflow.py
branchstable
changeset 4644 021035b9a7ab
parent 4589 cc3ec1423ead
child 4719 aaed3f813ef8
--- a/schemas/workflow.py	Fri Feb 19 09:34:14 2010 +0100
+++ b/schemas/workflow.py	Fri Feb 19 09:36:26 2010 +0100
@@ -97,12 +97,13 @@
 
 class Transition(BaseTransition):
     """use to define a transition from one or multiple states to a destination
-    states in workflow's definitions.
+    states in workflow's definitions. Transition without destination state will
+    go back to the state from which we arrived to the current state.
     """
     __specializes_schema__ = True
 
     destination_state = SubjectRelation(
-        'State', cardinality='1*',
+        'State', cardinality='?*',
         constraints=[RQLConstraint('S transition_of WF, O state_of WF',
                                    msg=_('state and transition don\'t belong the the same workflow'))],
         description=_('destination state for this transition'))