137 class SubWorkflowExitPoint(EntityType): |
137 class SubWorkflowExitPoint(EntityType): |
138 """define how we get out from a sub-workflow""" |
138 """define how we get out from a sub-workflow""" |
139 subworkflow_state = SubjectRelation( |
139 subworkflow_state = SubjectRelation( |
140 'State', cardinality='1*', |
140 'State', cardinality='1*', |
141 constraints=[RQLConstraint('T subworkflow_exit S, T subworkflow WF, O state_of WF', |
141 constraints=[RQLConstraint('T subworkflow_exit S, T subworkflow WF, O state_of WF', |
142 msg=_('exit state must a subworkflow state'))], |
142 msg=_('exit state must be a subworkflow state'))], |
143 description=_('subworkflow state')) |
143 description=_('subworkflow state')) |
144 destination_state = SubjectRelation( |
144 destination_state = SubjectRelation( |
145 'State', cardinality='?*', |
145 'State', cardinality='?*', |
146 constraints=[RQLConstraint('T subworkflow_exit S, T transition_of WF, O state_of WF', |
146 constraints=[RQLConstraint('T subworkflow_exit S, T transition_of WF, O state_of WF', |
147 msg=_('destination state must be in the same workflow as our parent transition'))], |
147 msg=_('destination state must be in the same workflow as our parent transition'))], |