relu-bpmn
Version:
RELU快速开发平台bpmn组件
31 lines (30 loc) • 1.13 kB
JavaScript
import { bpmnTask, bpmnWebhook, typeWebhookTrigger } from '../../../variableName';
import { reluConfigBpmnContextPad } from '../../../contextPad';
const { getData, addData, updateData, delData, interfaceData, message, launch, schedule, connect, del } = reluConfigBpmnContextPad;
const reluWebhookConfig = {
name: typeWebhookTrigger,
shapeType: bpmnWebhook,
element: {
label: 'Task',
actionName: 'replace-with-task',
className: 'bpmn-icon-task',
target: {
type: bpmnTask,
},
},
renderer: {
icon: 'icon-ym icon-ym-flow-trigger-webhook',
iconColor: '#4DCE62',
titleColor: 'linear-gradient(90deg, #BFEBC6 0%, #A4EBAF 100%)',
background: '#ffffff',
attr: { x: 0, y: 0, rx: 8, width: 200, height: 88 },
rendererName: 'webhook触发',
bodyDefaultText: '请设置触发事件',
},
contextPad: {
default: false,
customization: { getData, addData, updateData, delData, interfaceData, message, launch, schedule, connect, del },
},
properties: {},
};
export { reluWebhookConfig };