add - 添加新版的 JSON 转 BPMN 功能

This commit is contained in:
wangli 2023-10-18 14:30:07 +08:00
parent aa11ed3933
commit 20319c48b8
7 changed files with 25 additions and 7 deletions

View File

@ -5,7 +5,11 @@ import org.flowable.engine.delegate.event.impl.FlowableActivityEventImpl;
import org.springframework.core.Ordered;
/**
* 用户审批任务节点完成事件
* 用户审批任务节点完成事件, 供外部引入 jar 包方式使用的钩子
* <p>
* BpmTaskEventListener 的区别: 一个 Activity 可以有多个 Task, Task 有多个实例; 而本接口是针对这个节点的, 就算该审批节点是多人审批, 只有一次该节点的生命周期事件
* <p>
* 微服版本使用, 统一在 Server module 中进行实现扩展, 不在该 module 中实现
*
* @author wangli
* @since 2023/7/24 17:27

View File

@ -6,7 +6,9 @@ import org.flowable.engine.delegate.event.FlowableProcessStartedEvent;
import org.springframework.core.Ordered;
/**
* 流程实例相关事件
* 流程实例相关事件, 供外部引入 jar 包方式使用的钩子
* <p>
* 微服版本使用, 统一在 Server module 中进行实现扩展, 不在该 module 中实现
*/
public interface BpmProcessEventListener extends Ordered {

View File

@ -4,6 +4,10 @@ import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.core.Ordered;
/**
* 流程审批任务相关事件, 供外部引入 jar 包方式使用的钩子
* <p>
* 微服版本使用, 统一在 Server module 中进行实现扩展, 不在该 module 中实现
*
* @author shao_hua
*/
public interface BpmTaskEventListener extends Ordered {

View File

@ -15,10 +15,12 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import static org.flowable.common.engine.api.delegate.event.FlowableEngineEventType.*;
import static org.flowable.common.engine.api.delegate.event.FlowableEngineEventType.ACTIVITY_COMPLETED;
import static org.flowable.common.engine.api.delegate.event.FlowableEngineEventType.MULTI_INSTANCE_ACTIVITY_COMPLETED;
import static org.flowable.common.engine.api.delegate.event.FlowableEngineEventType.MULTI_INSTANCE_ACTIVITY_COMPLETED_WITH_CONDITION;
/**
* 任务节点完成事件
* 任务节点完成事件(枢智使用)
*
* @author wangli
* @since 2023/7/24 17:36

View File

@ -26,7 +26,7 @@ import static cn.axzo.workflow.common.constant.BpmConstants.INTERNAL_TASK_RELATI
/**
* 每一个任务节点创建 Execution 时执行的监听
* 每一个任务节点创建 Execution 时执行的监听, 用于 BPMN 文件中为节点设置指定类型监听
* <p>
* 在当前工程中,主要是在这里设置审批人
*/

View File

@ -22,11 +22,15 @@ import java.util.List;
import java.util.Objects;
import java.util.Set;
import static cn.axzo.workflow.common.constant.BpmConstants.*;
import static cn.axzo.workflow.common.constant.BpmConstants.INTERNAL_DELETE_PROCESS_FLAG;
import static cn.axzo.workflow.common.constant.BpmConstants.INTERNAL_PROCESS_TYPE_CANCEL;
import static cn.axzo.workflow.common.constant.BpmConstants.INTERNAL_PROCESS_TYPE_REJECT;
import static cn.axzo.workflow.common.enums.BpmProcessInstanceResultEnum.CANCELLED;
import static cn.axzo.workflow.common.enums.BpmProcessInstanceResultEnum.REJECTED;
/**
* 引擎全局的流程实例事件监听
*/
@Slf4j
@Component
public class EngineProcessInstanceEventListener extends AbstractFlowableEngineEventListener {

View File

@ -15,6 +15,8 @@ import java.util.ArrayList;
import java.util.List;
/**
* 引擎用户任务事件监听, 用于 BPMN 文件中为节点设置指定类型监听
*
* @author wangli
*/
@Slf4j