diff -r 921737d2e3a8 -r 021035b9a7ab schemas/workflow.py --- 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'))