我测试了一下, 下面的代码是不会发生错误的.
lFlowTask := Command.FlowTasks.FindFlowTask('ZJHJA'); //下一个流程环节的ID
if(lFlowTask <> nil)then
begin
lFlowTask.Executors.Clear();
OrgUrl := TOrgURL.Create('BM1','GW1','ZS');
lFlowTask.Executors.Add(OrgUrl);
for i := 0 to lFlowTask.Executors.Count - 1 do
Dialogs.ShowMessage(lFlowTask.Executors.BizURL.URL); //如果有值,说明获得到了URL
如果发生错误,说明 TOrgURL.Create('BM1','GW1','ZS')不能定位到URL . |