Commit 0f47b796 by 焦凯

修改工作流问题

parent 499ed7fd
......@@ -121,7 +121,7 @@ public class ContractConfiguration {
}
@Bean
@Bean(ContractConstant.CONTRACT_LISTENER)
public ContractProcessEventListener createContractProcessEventListener() {
return new ContractProcessEventListener();
}
......
......@@ -31,9 +31,15 @@ public class ContractProcessEventListener implements InzBizProcessEventListener
@Override
public void afterProcessCompleted(InzBizProcessEvent event) {
//自动新增合同预警条目
if(event.getInzBizProcess().getWorkflowState() == BizProcessState.DONE_WITH_AGREE.getValue()){
contractService.afterApprovedForInsert(event.getInzBizProcess().getBizDataObject());
if(event.getInzBizProcess().getTriggerAction().equals("SUBMIT")){
//自动新增合同预警条目
if(event.getInzBizProcess().getWorkflowState() == BizProcessState.DONE_WITH_AGREE.getValue()){
contractService.afterApprovedForInsert(event.getInzBizProcess().getBizDataObject());
}
}else if(event.getInzBizProcess().getTriggerAction().equals("CHANGE")){
if(event.getInzBizProcess().getWorkflowState() == BizProcessState.DONE_WITH_AGREE.getValue()){
contractService.afterApprovedForUpdate(event.getInzBizProcess().getBizDataObject());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment