--- 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'))