流程代碼前,代碼后的處理
在審批流程中,加入處理前和處理后的數(shù)據(jù)處理,可以將審批流程外的業(yè)務(wù)處理或是流程額外程序出來分離出來。放在代碼前,代碼后處理。
public WfActivity assignComplete(WfTranstion wfTrans,String procId, String activityId,
String touserId,String memo,HttpServletRequest request)throws WfException {
WfActivity wfAct = null;
try {
CodeFormula.parseBeforeCode(wfTrans.getConnection(),procId,activityId,CodeFormula.apply_code,request);
CheckAgree.execute(wfTrans,procId, activityId, new WfUser(uname, pwd),流程自己處理的方法
touserId,memo);
CodeFormula.parseAfterCode(wfTrans.getConnection(),procId,activityId,CodeFormula.apply_code,request);
} catch (WfException e) {
wfAct = null;
throw e;
}
return wfAct;
}
posted on 2007-06-28 19:38 imcb 閱讀(310) 評(píng)論(0) 編輯 收藏