刘光辉
11 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { bpmnSubFlow, typeSubFlow } from '../../variableName';
 
const jnpfSubFlowConfig: any = {
  name: typeSubFlow,
  shapeType: bpmnSubFlow,
  element: {
    label: 'subProcess',
    actionName: 'replace-with-task',
    className: 'bpmn-icon-task',
    target: {
      type: bpmnSubFlow,
    },
  },
  palette: {
    name: 'create.jnpf-task',
    group: 'model',
    className: 'icon-jnpf-create icon-jnpf-task',
    title: '创建一个类型为jnpf-task的任务节点',
  },
  renderer: {
    icon: 'icon-ym icon-ym-flow-node-subFlow',
    iconColor: '#F0962D',
    titleColor: 'linear-gradient(90deg, #FFDFC1 0%, #FDDAA7 100%)',
    background: '#ffffff',
    attr: { x: 0, y: 0, width: 200, height: 88, background: '#e6f4ff' },
    rendererName: '子流程',
    bodyDefaultText: '请设置发起人',
  },
  contextPad: {
    default: false, // contextPad 中的元素使用默认 否则遵循自定义
  },
  properties: {},
};
 
export { jnpfSubFlowConfig };