schemas/workflow.py
branchstable
changeset 6109 47d9c0e0f7b7
parent 5424 8ecbcbff9777
child 6757 bc878ec35794
equal deleted inserted replaced
6108:c459ffa5fa6f 6109:47d9c0e0f7b7
   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'))],