|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
1,nc.bs.pub.action.N_PM01_APPROVE 中进行扩展;
2,覆写类:nc.bs.pub.action.N_PM01_APPROVE.beforeProcess(PfParameterVO)
3,参数中包含了审批流的相关信息,也包含了单据的相关信息。具体可调试时,看其内容。
4,代码示例如下:
protected void beforeProcess(PfParameterVO paraVo) {
super.beforeProcess(paraVo);
/**
* added by zhouyl on 20210311
* 审批驳回时,将驳回环节的描述,写入自定义字段(驳回标志)15
* 相当于单据上记录下驳回的环节,以便审批流配置驳回环节的分支,从财务直接跳转到驳回环节
*/
AggPricedHeadVO clientVo = (AggPricedHeadVO) paraVo.m_preValueVo;
WorkflownoteVO worknoteVO = paraVo.m_workFlow;
if (clientVo != null && worknoteVO != null) {
if ((worknoteVO != null) && (worknoteVO.getTaskInfo() != null)
&& (worknoteVO.getTaskInfo().getTask() != null)) {
WFTask task = worknoteVO.getTaskInfo().getTask();
if (task.getTaskType() == WfTaskType.Backward.getIntValue()) {
try {
WorkflowProcess wp = PfDataCache
.getWorkflowProcess(task.getWfProcessDefPK());
Activity activity = wp.findActivityByID(task.getActivityID());
clientVo.getParentVO().setHdef15(activity.getDescription());
} catch (XPDLParserException | BusinessException e) {
}
}
}
}
}
|
|