和
var
mFlowTask:TFlowTask;
begin
mFlowTask := Command.FlowTasks.FindFlowTask('orhj');//根据环节找任务
if mFlowTask <> nil then
Dialogs.ShowMessage('1')
else
Dialogs.ShowMessage('0');
var
i :integer;
mFlowTask :TFlowTask;
begin
for i :=0 to FlowBroker1.FlowControl.CurrentProcUnit.SuccedentUnitCount-1 do
begin
mFlowTask := Command.FlowTasks.FindFlowTask(FlowBroker1.FlowControl.CurrentProcUnit.SuccedentUnits[0].SuccedentUnits.ID);
if mFlowTask<>nil then
begin
Dialogs.ShowMessage(FlowBroker1.FlowControl.CurrentProcUnit.SuccedentUnits[0].SuccedentUnits.DisplayName);
end;
end;
end;
---------------------------------
是这样吗?
我这样写了,结果还是一样
类似于这样
for i := 0 to Command.FlowControl.CurrentProcUnit.SuccedentUnitCount - 1 do
begin
if Command.FlowControl.CurrentProcUnit.SuccedentUnits.ID = 'OR' then //这里判断一下,是否逻辑环节
begin
for j := 0 to Command.FlowControl.CurrentProcUnit.SuccedentUnits.SuccedentUnitCount - 1 do
begin
//根据环节找任务 ....
回28楼:
for i :=0 to Command.FlowControl.CurrentProcUnit.SuccedentUnitCount-1 do
begin
if Command.FlowControl.CurrentProcUnit.SuccedentUnits.ID = 'OR1' then
begin
for j:=0 to Command.FlowControl.CurrentProcUnit.SuccedentUnits.SuccedentUnitCount-1 do
begin
mFlowTask := Command.FlowTasks.FindFlowTask(FlowBroker1.FlowControl.CurrentProcUnit.SuccedentUnits[0].SuccedentUnits[j].ID);
if mFlowTask<>nil then
begin
Dialogs.ShowMessage(FlowBroker1.FlowControl.CurrentProcUnit.SuccedentUnits[0].SuccedentUnits[j].DisplayName);
end;
end;
end;
end;