if ACommand.Accept and ACommand.ApplyUpdatesInvolved and (lTransHandle.ActiveCount <> 0) then
Transaction.Commit(lTransHandle);
// 注意在流程运行的过程中有可能往FFlowRunners里面加流程(合并流程、子流程)
// 所以不能用 (ACommand.CompoundFlowRunner.Count >= FlowRunnerCount)
if ACommand.Accept and ACommand.FuncTerminate and (not DoHaveNeedProcess) then
FuncTerminate;
lAborted := False;
finally
if not ACommand.Accept or lAborted then
begin
ACommand.CompoundFlowRunner.Reset;
if ACommand.ApplyUpdatesInvolved and (lTransHandle.ActiveCount <> 0) then
begin
lRollBacked := True;
Transaction.Rollback(lTransHandle);
end;
end;
end;