|
|
|
|
@ -19,13 +19,25 @@ public class FlowConfig {
|
|
|
|
|
ThreeSigneFlow threeSigneFlow, |
|
|
|
|
ThreeContactWriterFlow threeContactWriterFlow, |
|
|
|
|
ThreeInterviewWriterFlow threeInterviewWriterFlow, |
|
|
|
|
ThreeVerifyFlow threeVerifyFlow) { |
|
|
|
|
ThreeVerifyFlow threeVerifyFlow, |
|
|
|
|
ThreeLeaderApprovalFlow threeLeaderApprovalFlow) { |
|
|
|
|
List<FlowNode> flowNodes = flowNodeService.list(); |
|
|
|
|
// 所有操作
|
|
|
|
|
Action signAction = Action.of("sign", "确认签收", "primary", false); |
|
|
|
|
Action distributeAction = Action.of("distribute", "下发信件", "primary", false); |
|
|
|
|
Action returnAction = Action.of("return", "信件退回", "danger", true); |
|
|
|
|
Action saveAction = Action.of("sign", "确认保存", "primary", false); |
|
|
|
|
Action signAction = Action.of("sign", "确认签收", "primary", false, "已签收"); |
|
|
|
|
Action distributeAction = Action.of("distribute", "下发信件", "primary", false, "已下发"); |
|
|
|
|
Action returnAction = Action.of("return", "信件退回", "danger", true, ""); |
|
|
|
|
Action contactSaveAction = Action.of("save", "确认保存", "primary", false, "联系群众"); |
|
|
|
|
Action interviewSaveAction = Action.of("save", "确认保存", "primary", false, "接访群众"); |
|
|
|
|
|
|
|
|
|
Action saveAction = Action.of("save", "确认保存", "primary", false, ""); |
|
|
|
|
|
|
|
|
|
Action secondSaveAction = Action.of("save", "确认保存", "primary", true, ""); |
|
|
|
|
|
|
|
|
|
// 申请办结
|
|
|
|
|
Action applicationCompletedAction = Action.of("applicationCompleted", "申请办结", "primary", false, ""); |
|
|
|
|
|
|
|
|
|
Action applyExtensionAction = Action.of("applyExtension", "申请延期", "primary", true, ""); |
|
|
|
|
|
|
|
|
|
// 市局专班签收
|
|
|
|
|
firstSignFlow |
|
|
|
|
.setFlowNode(getFlowNode(flowNodes, FlowNodeEnum.FIRST_SIGN)) |
|
|
|
|
@ -62,23 +74,30 @@ public class FlowConfig {
|
|
|
|
|
// 三级机构联系群众
|
|
|
|
|
threeContactWriterFlow |
|
|
|
|
.setFlowNode(getFlowNode(flowNodes, FlowNodeEnum.CONTACT_WRITER)) |
|
|
|
|
.setActions(Arrays.asList(returnAction, saveAction)) |
|
|
|
|
.next(saveAction.getKey(), threeInterviewWriterFlow) |
|
|
|
|
.setActions(Arrays.asList(returnAction, contactSaveAction)) |
|
|
|
|
.next(contactSaveAction.getKey(), threeInterviewWriterFlow) |
|
|
|
|
.next(returnAction.getKey(), secondDistributeFlow); |
|
|
|
|
|
|
|
|
|
// 三级机构接访群众
|
|
|
|
|
threeInterviewWriterFlow |
|
|
|
|
.setFlowNode(getFlowNode(flowNodes, FlowNodeEnum.INTERVIEW_WRITER)) |
|
|
|
|
.setActions(Arrays.asList(returnAction, saveAction)) |
|
|
|
|
.next(saveAction.getKey(), threeVerifyFlow) |
|
|
|
|
.setActions(Arrays.asList(returnAction, interviewSaveAction)) |
|
|
|
|
.next(interviewSaveAction.getKey(), threeVerifyFlow) |
|
|
|
|
.next(returnAction.getKey(), secondDistributeFlow); |
|
|
|
|
|
|
|
|
|
// 三级机构核查办理
|
|
|
|
|
threeVerifyFlow |
|
|
|
|
.setFlowNode(getFlowNode(flowNodes, FlowNodeEnum.VERIFY)) |
|
|
|
|
.setActions(Arrays.asList(returnAction, saveAction)) |
|
|
|
|
.setActions(Arrays.asList(applyExtensionAction, secondSaveAction, applicationCompletedAction)) |
|
|
|
|
.next(applyExtensionAction.getKey(), null) |
|
|
|
|
// 线上申请办结
|
|
|
|
|
.next("online", threeLeaderApprovalFlow) |
|
|
|
|
// 线下申请办结
|
|
|
|
|
.next("offline", threeLeaderApprovalFlow); |
|
|
|
|
|
|
|
|
|
.next(returnAction.getKey(), secondDistributeFlow); |
|
|
|
|
// 三级机构核查办理
|
|
|
|
|
threeLeaderApprovalFlow |
|
|
|
|
.setFlowNode(getFlowNode(flowNodes, FlowNodeEnum.THREE_LEADER_APPROVAL)); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|