From 3f857a240abf72ee59a7a7ff6de88619e06f23b6 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Mon, 25 Jul 2022 18:06:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=8F=B7=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...blishExecuteListenerInterfaceCreateNo.java | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishExecuteListenerInterfaceCreateNo.java diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishExecuteListenerInterfaceCreateNo.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishExecuteListenerInterfaceCreateNo.java new file mode 100644 index 00000000..a78e4b48 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishExecuteListenerInterfaceCreateNo.java @@ -0,0 +1,46 @@ +package com.actionsoft.apps.coe.pal.publisher.event; + +import com.actionsoft.apps.coe.pal.pal.manage.publish.dao.PublishHistory; +import com.actionsoft.apps.coe.pal.pal.manage.publish.dao.PublishListHistory; +import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishHistoryModel; +import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishListHistoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepository; +import com.actionsoft.apps.coe.pal.publisher.client.util.ProcesNumberUtil; +import com.actionsoft.apps.coe.pal.publisher.constant.PublisherConstant; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListener; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListenerInterface; +import com.actionsoft.bpms.util.UUIDGener; +import com.actionsoft.sdk.local.SDK; + +import java.sql.Timestamp; +import java.util.List; + +public class PublishExecuteListenerInterfaceCreateNo extends ExecuteListener implements ExecuteListenerInterface { + + @Override + public String getDescription() { + return "将发布信息保存至CoE中。"; + } + + @Override + public String getProvider() { + return "aws-coe"; + } + + @Override + public String getVersion() { + return "V6.0"; + } + + @Override + public void execute(ProcessExecutionContext param) throws Exception { + PublishHistoryModel model = new PublishHistoryModel(); + String processInstId = param.getProcessInstance().getId(); + //by bzp 测试编号生成 + new ProcesNumberUtil().getNumber(processInstId); + + } + +}