hooks/workflow.py
changeset 3675 5d143781a604
parent 3674 387d51af966d
child 3739 817e96eeac5c
equal deleted inserted replaced
3674:387d51af966d 3675:5d143781a604
   104                 msg = self.session._("can't have multiple exits on the same state")
   104                 msg = self.session._("can't have multiple exits on the same state")
   105                 raise ValidationError(self.treid, {'subworkflow_exit': msg})
   105                 raise ValidationError(self.treid, {'subworkflow_exit': msg})
   106             outputs.add(ep.subwf_state.eid)
   106             outputs.add(ep.subwf_state.eid)
   107 
   107 
   108 
   108 
   109 class _SubWorkflowExitOp(PreCommitOperation):
   109 class _SubWorkflowExitOp(hook.Operation):
   110 
   110 
   111     def precommit_event(self):
   111     def precommit_event(self):
   112         session = self.session
   112         session = self.session
   113         forentity = self.forentity
   113         forentity = self.forentity
   114         trinfo = self.trinfo
   114         trinfo = self.trinfo