|
发表于 2007-2-1 14:36:06
|
显示全部楼层
系统空间\用户界面基础\界面\系统接口\流转窗体
TFLOWOUTFORM.btnOKClick(Sender: TObject); 方法
// 检查选中的任务有没有分配执行者
if lNode.Selected and (lFlowTask.Executors.Count = 0) then
raise Exception.CreateFmt(SNoExecutors, [lNode.DisplayName]);
{新增逻辑:检查异步环节有没有分配执行者}
if (TProcActivity(lNode.ProcUnit).IsAsynchronous) and (not lNode.Selected)
and (lFlowTask.Executors.Count = 0) then
raise Exception.CreateFmt('没有为异步环节指定执行者!', [lNode.DisplayName]); |
|