Commit 0085b42518898b1d06aeb87a050976928fe97a6b
1 parent
129e9868
feat: 办理人节点
Showing
2 changed files
with
9 additions
and
1 deletions
yudao-module-bpm/yudao-module-bpm-api/src/main/java/cn/iocoder/yudao/module/bpm/enums/definition/BpmSimpleModelNodeTypeEnum.java
| ... | ... | @@ -25,6 +25,7 @@ public enum BpmSimpleModelNodeTypeEnum implements ArrayValuable<Integer> { |
| 25 | 25 | START_USER_NODE(10, "发起人", "userTask"), // 发起人节点。前端的开始节点,Id 固定 |
| 26 | 26 | APPROVE_NODE(11, "审批人", "userTask"), |
| 27 | 27 | COPY_NODE(12, "抄送人", "serviceTask"), |
| 28 | + TRANSACTOR_NODE(13, "办理人", "userTask"), | |
| 28 | 29 | |
| 29 | 30 | DELAY_TIMER_NODE(14, "延迟器", "receiveTask"), |
| 30 | 31 | TRIGGER_NODE(15, "触发器", "serviceTask"), | ... | ... |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/SimpleModelUtils.java
| ... | ... | @@ -40,7 +40,7 @@ public class SimpleModelUtils { |
| 40 | 40 | |
| 41 | 41 | static { |
| 42 | 42 | List<NodeConvert> converts = asList(new StartNodeConvert(), new EndNodeConvert(), |
| 43 | - new StartUserNodeConvert(), new ApproveNodeConvert(), new CopyNodeConvert(), | |
| 43 | + new StartUserNodeConvert(), new ApproveNodeConvert(), new CopyNodeConvert(), new TransactorNodeConvert(), | |
| 44 | 44 | new DelayTimerNodeConvert(), new TriggerNodeConvert(), |
| 45 | 45 | new ConditionBranchNodeConvert(), new ParallelBranchNodeConvert(), new InclusiveBranchNodeConvert(), new RouteBranchNodeConvert()); |
| 46 | 46 | converts.forEach(convert -> NODE_CONVERTS.put(convert.getType(), convert)); |
| ... | ... | @@ -514,6 +514,13 @@ public class SimpleModelUtils { |
| 514 | 514 | |
| 515 | 515 | } |
| 516 | 516 | |
| 517 | + private static class TransactorNodeConvert extends ApproveNodeConvert { | |
| 518 | + @Override | |
| 519 | + public BpmSimpleModelNodeTypeEnum getType() { | |
| 520 | + return BpmSimpleModelNodeTypeEnum.TRANSACTOR_NODE; | |
| 521 | + } | |
| 522 | + } | |
| 523 | + | |
| 517 | 524 | private static class CopyNodeConvert implements NodeConvert { |
| 518 | 525 | |
| 519 | 526 | @Override | ... | ... |