index.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { jnpfConfigBpmnContextPad } from '../../../contextPad';
  2. import { bpmnParallel, typeParallel } from '../../../variableName';
  3. const { approver } = jnpfConfigBpmnContextPad;
  4. const jnpfParallelConfig = {
  5. name: typeParallel,
  6. shapeType: bpmnParallel,
  7. element: {
  8. label: 'Task',
  9. actionName: 'replace-with-task',
  10. className: 'bpmn-icon-task',
  11. target: {
  12. type: typeParallel,
  13. },
  14. },
  15. palette: {
  16. name: 'create.jnpf-task',
  17. group: 'model',
  18. className: 'icon-jnpf-create icon-jnpf-task',
  19. title: '创建一个类型为jnpf-task的任务节点',
  20. },
  21. renderer: {
  22. icon: 'icon-ym icon-ym-flow-node-approve',
  23. iconColor: '#1DACEB',
  24. titleColor: '#C0EDF8',
  25. background: '#ffffff',
  26. attr: { x: 0, y: 0, width: 90, rx: 16, height: 32 },
  27. rendererName: '并行分支',
  28. bodyDefaultText: '请设置审批人',
  29. },
  30. contextPad: {
  31. default: false,
  32. customization: { approver },
  33. },
  34. properties: {},
  35. };
  36. export { jnpfParallelConfig };