panel.d.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. declare module 'bpmnDesign' {
  2. import { AllocationTypeEnum, SpecifyDescEnum, MultiInstanceTypeEnum } from '@/enums/bpmn/IndexEnums';
  3. export interface ParamVO {
  4. type: string;
  5. name: string;
  6. value: string;
  7. }
  8. export interface TaskListenerVO {
  9. event: string;
  10. type: string;
  11. name: string;
  12. className: string;
  13. params: ParamVO[];
  14. }
  15. export interface ExecutionListenerVO {
  16. event: string;
  17. type: string;
  18. className: string;
  19. params: ParamVO[];
  20. }
  21. interface BasePanel {
  22. id: string;
  23. name: string;
  24. }
  25. export interface ProcessPanel extends BasePanel {}
  26. export interface TaskPanel extends BasePanel {
  27. allocationType: AllocationTypeEnum;
  28. specifyDesc: SpecifyDescEnum;
  29. multiInstanceType: MultiInstanceTypeEnum;
  30. async?: boolean;
  31. priority?: number;
  32. skipExpression?: string;
  33. isForCompensation?: boolean;
  34. triggerServiceTask?: boolean;
  35. autoStoreVariables?: boolean;
  36. ruleVariablesInput?: string;
  37. excludeTaskListener?: boolean;
  38. exclude?: boolean;
  39. class?: string;
  40. dueDate?: string;
  41. fixedAssignee?: string;
  42. candidateUsers?: string;
  43. assignee?: string;
  44. candidateGroups?: string;
  45. collection?: string;
  46. elementVariable?: string;
  47. completionCondition?: string;
  48. isSequential?: boolean;
  49. loopCharacteristics?: {
  50. collection: string;
  51. elementVariable: string;
  52. isSequential: boolean;
  53. completionCondition: {
  54. body: string;
  55. };
  56. };
  57. }
  58. export interface StartEndPanel extends BasePanel {}
  59. export interface GatewayPanel extends BasePanel {}
  60. export interface SequenceFlowPanel extends BasePanel {
  61. conditionExpression: {
  62. body: string;
  63. };
  64. conditionExpressionValue: string;
  65. skipExpression: string;
  66. }
  67. }