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
| import { bpmnTask, bpmnEvent, typeEventTrigger } from '../../../variableName';
| import { jnpfConfigBpmnContextPad } from '../../../contextPad';
| const { getData, addData, updateData, delData, interfaceData, message, launch, schedule, connect, del } = jnpfConfigBpmnContextPad;
| const jnpfEventConfig: any = {
| name: typeEventTrigger,
| shapeType: bpmnEvent,
| element: {
| label: 'Task',
| actionName: 'replace-with-task',
| className: 'bpmn-icon-task',
| target: {
| type: bpmnTask,
| },
| },
| renderer: {
| icon: 'icon-ym icon-ym-flow-trigger-event',
| iconColor: '#4DCE62',
| titleColor: 'linear-gradient(90deg, #BFEBC6 0%, #A4EBAF 100%)',
| background: '#ffffff',
| attr: { x: 0, y: 0, rx: 8, width: 200, height: 88 },
| rendererName: '事件触发',
| bodyDefaultText: '请设置触发事件',
| },
| contextPad: {
| default: false, // contextPad 中的元素使用默认 否则遵循自定义
| customization: { getData, addData, updateData, delData, interfaceData, message, launch, schedule, connect, del },
| },
| properties: {},
| };
|
| export { jnpfEventConfig };
|
|