|
发表于 2008-6-19 11:34:06
|
显示全部楼层
楼主,试试这个:
procedure TMAINFORM.FlowBroker1CreateFlowOutFlowTasks(Sender: TObject; Command: TFlowOutCommand);
var
lSubFlowTask,lFlowTask: TFlowTask;
lOrgSytem: TOrgSystem;
begin
lFlowTask := Command.FlowTasks.FindFlowTask('ZLC');
lSubFlowTask := lFlowTask.Children.FindFlowTask('ZLCRKGN');
lOrgSytem := TOrgSystem.Create;
try
lSubFlowTask.AllowExecutors.Clear;
if Assigned(lSubFlowTask) then
lOrgSytem.GetOrgURLsByOrgExpr('OrgKey('+'BM1'+','+'GW1'+','+ 'ZS'+')',lSubFlowTask.AllowExecutors);
finally
lOrgSytem.Free;
end; |
|