feat: 办理人节点
This commit is contained in:
parent
129e9868fb
commit
0085b42518
|
@ -25,6 +25,7 @@ public enum BpmSimpleModelNodeTypeEnum implements ArrayValuable<Integer> {
|
||||||
START_USER_NODE(10, "发起人", "userTask"), // 发起人节点。前端的开始节点,Id 固定
|
START_USER_NODE(10, "发起人", "userTask"), // 发起人节点。前端的开始节点,Id 固定
|
||||||
APPROVE_NODE(11, "审批人", "userTask"),
|
APPROVE_NODE(11, "审批人", "userTask"),
|
||||||
COPY_NODE(12, "抄送人", "serviceTask"),
|
COPY_NODE(12, "抄送人", "serviceTask"),
|
||||||
|
TRANSACTOR_NODE(13, "办理人", "userTask"),
|
||||||
|
|
||||||
DELAY_TIMER_NODE(14, "延迟器", "receiveTask"),
|
DELAY_TIMER_NODE(14, "延迟器", "receiveTask"),
|
||||||
TRIGGER_NODE(15, "触发器", "serviceTask"),
|
TRIGGER_NODE(15, "触发器", "serviceTask"),
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class SimpleModelUtils {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
List<NodeConvert> converts = asList(new StartNodeConvert(), new EndNodeConvert(),
|
List<NodeConvert> converts = asList(new StartNodeConvert(), new EndNodeConvert(),
|
||||||
new StartUserNodeConvert(), new ApproveNodeConvert(), new CopyNodeConvert(),
|
new StartUserNodeConvert(), new ApproveNodeConvert(), new CopyNodeConvert(), new TransactorNodeConvert(),
|
||||||
new DelayTimerNodeConvert(), new TriggerNodeConvert(),
|
new DelayTimerNodeConvert(), new TriggerNodeConvert(),
|
||||||
new ConditionBranchNodeConvert(), new ParallelBranchNodeConvert(), new InclusiveBranchNodeConvert(), new RouteBranchNodeConvert());
|
new ConditionBranchNodeConvert(), new ParallelBranchNodeConvert(), new InclusiveBranchNodeConvert(), new RouteBranchNodeConvert());
|
||||||
converts.forEach(convert -> NODE_CONVERTS.put(convert.getType(), convert));
|
converts.forEach(convert -> NODE_CONVERTS.put(convert.getType(), convert));
|
||||||
|
@ -514,6 +514,13 @@ public class SimpleModelUtils {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static class TransactorNodeConvert extends ApproveNodeConvert {
|
||||||
|
@Override
|
||||||
|
public BpmSimpleModelNodeTypeEnum getType() {
|
||||||
|
return BpmSimpleModelNodeTypeEnum.TRANSACTOR_NODE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static class CopyNodeConvert implements NodeConvert {
|
private static class CopyNodeConvert implements NodeConvert {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue