|

楼主 |
发表于 2008-6-2 18:46:38
|
显示全部楼层
procedure TQJSQZCT.UserStartFlow(AFlowUrl,ADept,ARole,APerson,AStartProc,AFlowID,ASubject,ADescription:string);
var
lBizURL: TBizURL;
lFlowValue: TFlowValue;
lFlowControl: TFlowControl;
lExecutor: TOrgURL;
begin
lBizURL := TBizURL.Create;
lFlowValue := TFlowValue.Create;
lFlowControl := TFlowControl.Create(Self.Context);
lExecutor := TOrgURL.Create(ADept, ARole, APerson);
lBizURL.URL := AFlowUrl;
try
lFlowValue.IDs.Add(AFlowID); //流程ID
lFlowValue.Subject := ASubject; //流程主题
lFlowValue.Description := ADescription; //流程描述
lExecutor := TOrgURL.Create(ADept,ARole,APerson); //传入发起者的部门、岗位、人员
lFlowValue.StartupTo := lExecutor;
lFlowControl.StartupFlow(lBizURL, AStartProc, lExecutor, lFlowValue);
lFlowControl.FlowRunnerbyIndex[0].CurrentTask.SaveToDB;
finally
lFlowControl.Free;
lFlowValue.Free;
lBizURL.Free;
lExecutor .Free;
end;
end;
1.上面这个应该是流转的吧?
2.我在窗体上按上面写了
但是在BitBtn2Click流转事件调用它,self.UserStartFlow();
但是提示错误Not enough actual parameters,不知道它参数怎么写
3。AFlowUrl,ADept,ARole,APerson,AStartProc,AFlowID,ASubject,ADescription这些我要手动给它们赋值么?要在哪赋值? |
|