Var
AFlowUrl:string;
ADept:string; ARole:string;
APerson:string;
AStartProc:string;
AFlowID:string;
ASubject:string;
ADescription:string;
lContextCurrent: TContextCurrent;
Quest : Integer ;
begin
Quest := JSDialogs.QuestionBox('获取流程轨迹失败前提下进行此操作,确认进行重发流程操作吗?' ,'提示',2);
if Quest = 6 then
begin
lContextCurrent := TContextCurrent.Create(Self.Context);
try
ADept := lContextCurrent.Dept.ID;
APerson := lContextCurrent.Operator.ID;
ARole := lContextCurrent.PositionMember.ID;
finally
lContextCurrent.Free;
end;
AFlowUrl :='Biz:\DMISXT\ZDH_CZSBJXQXSBLCT.Proc'; //Biz:\DMISXT\SQTB.FUNC
//ADept :='FJPT_SLDJZZ';
//ARole := 'FJPT_ZDHZZ' ;
//APerson := 'PT_DDS_CXY' ;
AStartProc :='ZDHJXSQTX';
AFlowID:=DataSetBroker1.DataSet.FieldByName('Inst_Id').AsString;
ASubject:='厂站自动化设备检修、缺陷上报流程';
ADescription:='申请填写';
UserStartFlow(AFlowUrl,ADept,ARole,APerson,AStartProc,AFlowID,ASubject,ADescription);
Jsdialogs.showmsg('重发流程成功!','提示');
end;
if Quest = 2 then
SysUtils.Abort;
end;
以上为流程重发的代码,请问流程流转,回退,终止代码如何编写?谢谢 |