flowable与activiti 的跳转,加签可以通过以下方式处理
1
executionEntity.setCurrentFlowElement(targetFlowElement);
commandContext.getCurrentEngineConfiguration()
.getEventDispatcher()
.dispatchEvent(FlowableEventBuilder.createEntityEvent(FlowableEngineEventType.TASK_COMPLETED, task));
CommandContextUtil.getAgenda().planContinueProcessInCompensation(executionEntity);
2 通过改变源节点的顺序流指向,指向已存在的节点,实现任意节点跳转;指向新建节点实现加签
跳转后源节点要出发complete事件
3 调用框架自带你的api接口
flowable 中的ChangeActivityStateBuilder中的方法,DynamicBpmnService
activity中的executionEntity.executeActivity,
4 多实例加签要修改实例数
5 bpmnjs,alibaba/butterfly