|

楼主 |
发表于 2009-2-11 11:06:49
|
显示全部楼层
procedure TMainForm.FlowBroker1CreateFlowOutFlowTasks(Sender: TObject; Command: TFlowOutCommand);
var
lFlowTask:TFlowTask;
Os:Business.Model.Org.TOrgSystem;
olist:Business.Model.Org.TOrgURLs;
lBizURL : TBizURL;
lOrgURL: TOrgURL;
begin
lFlowTask := Command.FlowTasks.FindFlowTask('MATREQAPP');
if lFlowTask <> nil then
begin
lFlowTask.Executors.Clear;
os:=Business.Model.Org.TOrgSystem.Create;
// os.GetOrgURLsByOrgExpr('OrgChildren(OrgParent(OrgKey(''KFB'', '''', ''''),'
// + 'OrgCondition(''*.DPT'', '''', ''''), true, true),'
// + 'OrgCondition(''*.psm'','''',''''),true,true)', olist);
lBizURL := TBizURL.Create;
lBizURL.URL :='Org:ROOTTQM.OGNGS.OGNMJWL.DPTKGY.PTMWJK.psm';// olist[0].BizURL.URL;//这里就是需要上面获得的那个list
lOrgURL:=TOrgURL.Create(lBizURL);
lFlowTask.AllowExecutors.Add(lOrgURL);
//lFlowTask.Executors.Add();//默认执行者,允许执行者用:AllowExecutors
lBizURL.Free;
end;
os.free;
olist.free;
end;
代码中设置了一个人 为什么流程流转的时候 点击添加还是可以选择很多人
|
-
-
2.jpg
72.14 KB, 下载次数: 160
|