bpmn-js 18.2.0 → 18.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/LICENSE +23 -23
  2. package/README.md +95 -95
  3. package/dist/assets/bpmn-js.css +145 -145
  4. package/dist/bpmn-modeler.development.js +38704 -38477
  5. package/dist/bpmn-modeler.production.min.js +11 -11
  6. package/dist/bpmn-navigated-viewer.development.js +21139 -21139
  7. package/dist/bpmn-navigated-viewer.production.min.js +1 -1
  8. package/dist/bpmn-viewer.development.js +21080 -21080
  9. package/dist/bpmn-viewer.production.min.js +1 -1
  10. package/lib/BaseModeler.d.ts +15 -15
  11. package/lib/BaseModeler.js +79 -79
  12. package/lib/BaseViewer.d.ts +352 -352
  13. package/lib/BaseViewer.js +858 -858
  14. package/lib/Modeler.d.ts +86 -86
  15. package/lib/Modeler.js +206 -206
  16. package/lib/NavigatedViewer.d.ts +11 -11
  17. package/lib/NavigatedViewer.js +37 -37
  18. package/lib/Viewer.d.ts +47 -47
  19. package/lib/Viewer.js +76 -76
  20. package/lib/core/index.d.ts +10 -10
  21. package/lib/core/index.js +8 -8
  22. package/lib/draw/BpmnRenderUtil.d.ts +123 -123
  23. package/lib/draw/BpmnRenderUtil.js +256 -256
  24. package/lib/draw/BpmnRenderer.d.ts +116 -116
  25. package/lib/draw/BpmnRenderer.js +2339 -2339
  26. package/lib/draw/PathMap.d.ts +330 -330
  27. package/lib/draw/PathMap.js +478 -478
  28. package/lib/draw/TextRenderer.d.ts +74 -74
  29. package/lib/draw/TextRenderer.js +136 -136
  30. package/lib/draw/index.d.ts +10 -10
  31. package/lib/draw/index.js +11 -11
  32. package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +32 -32
  33. package/lib/features/align-elements/AlignElementsContextPadProvider.js +105 -105
  34. package/lib/features/align-elements/AlignElementsIcons.d.ts +10 -10
  35. package/lib/features/align-elements/AlignElementsIcons.js +43 -43
  36. package/lib/features/align-elements/AlignElementsMenuProvider.d.ts +32 -32
  37. package/lib/features/align-elements/AlignElementsMenuProvider.js +100 -100
  38. package/lib/features/align-elements/BpmnAlignElements.d.ts +9 -9
  39. package/lib/features/align-elements/BpmnAlignElements.js +45 -45
  40. package/lib/features/align-elements/index.d.ts +11 -11
  41. package/lib/features/align-elements/index.js +23 -23
  42. package/lib/features/append-preview/AppendPreview.d.ts +36 -36
  43. package/lib/features/append-preview/AppendPreview.js +108 -108
  44. package/lib/features/append-preview/index.d.ts +16 -16
  45. package/lib/features/append-preview/index.js +15 -15
  46. package/lib/features/auto-place/BpmnAutoPlace.d.ts +15 -15
  47. package/lib/features/auto-place/BpmnAutoPlace.js +22 -22
  48. package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +52 -52
  49. package/lib/features/auto-place/BpmnAutoPlaceUtil.js +226 -226
  50. package/lib/features/auto-place/index.d.ts +7 -7
  51. package/lib/features/auto-place/index.js +8 -8
  52. package/lib/features/auto-resize/BpmnAutoResize.d.ts +25 -25
  53. package/lib/features/auto-resize/BpmnAutoResize.js +45 -45
  54. package/lib/features/auto-resize/BpmnAutoResizeProvider.d.ts +26 -26
  55. package/lib/features/auto-resize/BpmnAutoResizeProvider.js +69 -69
  56. package/lib/features/auto-resize/index.d.ts +8 -8
  57. package/lib/features/auto-resize/index.js +12 -12
  58. package/lib/features/context-pad/ContextPadProvider.d.ts +62 -62
  59. package/lib/features/context-pad/ContextPadProvider.js +582 -582
  60. package/lib/features/context-pad/index.d.ts +7 -7
  61. package/lib/features/context-pad/index.js +22 -22
  62. package/lib/features/copy-paste/BpmnCopyPaste.d.ts +17 -17
  63. package/lib/features/copy-paste/BpmnCopyPaste.js +192 -192
  64. package/lib/features/copy-paste/ModdleCopy.d.ts +45 -45
  65. package/lib/features/copy-paste/index.d.ts +9 -9
  66. package/lib/features/copy-paste/index.js +13 -13
  67. package/lib/features/di-ordering/BpmnDiOrdering.d.ts +11 -11
  68. package/lib/features/di-ordering/BpmnDiOrdering.js +48 -48
  69. package/lib/features/di-ordering/index.d.ts +6 -6
  70. package/lib/features/di-ordering/index.js +7 -7
  71. package/lib/features/distribute-elements/BpmnDistributeElements.d.ts +10 -10
  72. package/lib/features/distribute-elements/BpmnDistributeElements.js +60 -60
  73. package/lib/features/distribute-elements/DistributeElementsIcons.d.ts +5 -5
  74. package/lib/features/distribute-elements/DistributeElementsIcons.js +18 -18
  75. package/lib/features/distribute-elements/DistributeElementsMenuProvider.d.ts +32 -32
  76. package/lib/features/distribute-elements/DistributeElementsMenuProvider.js +92 -92
  77. package/lib/features/distribute-elements/index.d.ts +9 -9
  78. package/lib/features/distribute-elements/index.js +19 -19
  79. package/lib/features/drilldown/DrilldownBreadcrumbs.d.ts +19 -19
  80. package/lib/features/drilldown/DrilldownBreadcrumbs.js +138 -138
  81. package/lib/features/drilldown/DrilldownCentering.d.ts +17 -17
  82. package/lib/features/drilldown/DrilldownCentering.js +122 -122
  83. package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +20 -20
  84. package/lib/features/drilldown/DrilldownOverlayBehavior.js +218 -218
  85. package/lib/features/drilldown/SubprocessCompatibility.d.ts +21 -21
  86. package/lib/features/drilldown/SubprocessCompatibility.js +266 -266
  87. package/lib/features/drilldown/index.d.ts +13 -13
  88. package/lib/features/drilldown/index.js +16 -16
  89. package/lib/features/editor-actions/BpmnEditorActions.d.ts +13 -13
  90. package/lib/features/editor-actions/BpmnEditorActions.js +187 -187
  91. package/lib/features/editor-actions/index.d.ts +6 -6
  92. package/lib/features/editor-actions/index.js +10 -10
  93. package/lib/features/grid-snapping/BpmnGridSnapping.d.ts +9 -9
  94. package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +14 -14
  95. package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.d.ts +27 -27
  96. package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.js +155 -155
  97. package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.d.ts +13 -13
  98. package/lib/features/grid-snapping/behavior/index.d.ts +10 -10
  99. package/lib/features/grid-snapping/index.d.ts +11 -11
  100. package/lib/features/interaction-events/BpmnInteractionEvents.d.ts +18 -18
  101. package/lib/features/interaction-events/BpmnInteractionEvents.js +146 -146
  102. package/lib/features/interaction-events/index.d.ts +6 -6
  103. package/lib/features/interaction-events/index.js +5 -5
  104. package/lib/features/keyboard/BpmnKeyboardBindings.d.ts +15 -15
  105. package/lib/features/keyboard/BpmnKeyboardBindings.js +179 -179
  106. package/lib/features/keyboard/index.d.ts +7 -7
  107. package/lib/features/keyboard/index.js +11 -11
  108. package/lib/features/label-editing/LabelEditingPreview.d.ts +13 -13
  109. package/lib/features/label-editing/LabelEditingPreview.js +145 -145
  110. package/lib/features/label-editing/LabelEditingProvider.d.ts +62 -62
  111. package/lib/features/label-editing/LabelEditingProvider.js +519 -519
  112. package/lib/features/label-editing/LabelUtil.d.ts +1 -1
  113. package/lib/features/label-editing/LabelUtil.js +4 -4
  114. package/lib/features/label-editing/cmd/UpdateLabelHandler.d.ts +22 -22
  115. package/lib/features/label-editing/cmd/UpdateLabelHandler.js +149 -149
  116. package/lib/features/label-editing/index.d.ts +9 -9
  117. package/lib/features/label-editing/index.js +21 -21
  118. package/lib/features/modeling/BpmnFactory.d.ts +73 -73
  119. package/lib/features/modeling/BpmnFactory.js +180 -180
  120. package/lib/features/modeling/BpmnLayouter.d.ts +30 -30
  121. package/lib/features/modeling/BpmnLayouter.js +488 -488
  122. package/lib/features/modeling/BpmnUpdater.d.ts +90 -90
  123. package/lib/features/modeling/BpmnUpdater.js +818 -818
  124. package/lib/features/modeling/ElementFactory.d.ts +117 -117
  125. package/lib/features/modeling/ElementFactory.js +412 -412
  126. package/lib/features/modeling/ElementFactory.test.ts +132 -132
  127. package/lib/features/modeling/Modeling.d.ts +150 -150
  128. package/lib/features/modeling/Modeling.js +309 -309
  129. package/lib/features/modeling/Modeling.test.ts +147 -147
  130. package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.d.ts +19 -19
  131. package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.js +288 -288
  132. package/lib/features/modeling/behavior/AppendBehavior.d.ts +6 -6
  133. package/lib/features/modeling/behavior/AppendBehavior.js +42 -42
  134. package/lib/features/modeling/behavior/AssociationBehavior.d.ts +11 -11
  135. package/lib/features/modeling/behavior/AttachEventBehavior.d.ts +15 -15
  136. package/lib/features/modeling/behavior/AttachEventBehavior.js +106 -106
  137. package/lib/features/modeling/behavior/BoundaryEventBehavior.d.ts +15 -15
  138. package/lib/features/modeling/behavior/BoundaryEventBehavior.js +74 -74
  139. package/lib/features/modeling/behavior/CompensateBoundaryEventBehavior.d.ts +17 -17
  140. package/lib/features/modeling/behavior/CompensateBoundaryEventBehavior.js +222 -222
  141. package/lib/features/modeling/behavior/CreateBehavior.d.ts +9 -9
  142. package/lib/features/modeling/behavior/CreateBehavior.js +33 -33
  143. package/lib/features/modeling/behavior/CreateDataObjectBehavior.d.ts +15 -15
  144. package/lib/features/modeling/behavior/CreateDataObjectBehavior.js +43 -43
  145. package/lib/features/modeling/behavior/CreateParticipantBehavior.d.ts +19 -19
  146. package/lib/features/modeling/behavior/CreateParticipantBehavior.js +237 -237
  147. package/lib/features/modeling/behavior/DataInputAssociationBehavior.d.ts +21 -21
  148. package/lib/features/modeling/behavior/DataInputAssociationBehavior.js +162 -162
  149. package/lib/features/modeling/behavior/DataStoreBehavior.d.ts +19 -19
  150. package/lib/features/modeling/behavior/DeleteLaneBehavior.d.ts +15 -15
  151. package/lib/features/modeling/behavior/DeleteLaneBehavior.js +162 -162
  152. package/lib/features/modeling/behavior/DetachEventBehavior.d.ts +15 -15
  153. package/lib/features/modeling/behavior/DetachEventBehavior.js +101 -101
  154. package/lib/features/modeling/behavior/DropOnFlowBehavior.d.ts +13 -13
  155. package/lib/features/modeling/behavior/DropOnFlowBehavior.js +221 -221
  156. package/lib/features/modeling/behavior/EventBasedGatewayBehavior.d.ts +11 -11
  157. package/lib/features/modeling/behavior/EventBasedGatewayBehavior.js +110 -110
  158. package/lib/features/modeling/behavior/FixHoverBehavior.d.ts +17 -17
  159. package/lib/features/modeling/behavior/GroupBehavior.d.ts +26 -26
  160. package/lib/features/modeling/behavior/ImportDockingFix.d.ts +13 -13
  161. package/lib/features/modeling/behavior/ImportDockingFix.js +83 -83
  162. package/lib/features/modeling/behavior/IsHorizontalFix.d.ts +10 -10
  163. package/lib/features/modeling/behavior/IsHorizontalFix.js +54 -54
  164. package/lib/features/modeling/behavior/LabelBehavior.d.ts +56 -56
  165. package/lib/features/modeling/behavior/LabelBehavior.js +364 -364
  166. package/lib/features/modeling/behavior/LayoutConnectionBehavior.d.ts +16 -16
  167. package/lib/features/modeling/behavior/LayoutConnectionBehavior.js +121 -121
  168. package/lib/features/modeling/behavior/MessageFlowBehavior.d.ts +15 -15
  169. package/lib/features/modeling/behavior/NonInterruptingBehavior.d.ts +4 -4
  170. package/lib/features/modeling/behavior/NonInterruptingBehavior.js +41 -41
  171. package/lib/features/modeling/behavior/RemoveElementBehavior.d.ts +13 -13
  172. package/lib/features/modeling/behavior/RemoveElementBehavior.js +91 -91
  173. package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.d.ts +16 -16
  174. package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.js +41 -41
  175. package/lib/features/modeling/behavior/RemoveParticipantBehavior.d.ts +15 -15
  176. package/lib/features/modeling/behavior/RemoveParticipantBehavior.js +59 -59
  177. package/lib/features/modeling/behavior/ReplaceConnectionBehavior.d.ts +15 -15
  178. package/lib/features/modeling/behavior/ReplaceConnectionBehavior.js +194 -194
  179. package/lib/features/modeling/behavior/ReplaceElementBehaviour.d.ts +23 -23
  180. package/lib/features/modeling/behavior/ReplaceElementBehaviour.js +144 -144
  181. package/lib/features/modeling/behavior/ResizeBehavior.d.ts +64 -64
  182. package/lib/features/modeling/behavior/ResizeBehavior.js +265 -265
  183. package/lib/features/modeling/behavior/ResizeLaneBehavior.d.ts +16 -16
  184. package/lib/features/modeling/behavior/ResizeLaneBehavior.js +70 -70
  185. package/lib/features/modeling/behavior/RootElementReferenceBehavior.d.ts +25 -25
  186. package/lib/features/modeling/behavior/SetCompensationActivityAfterPasteBehavior.d.ts +16 -16
  187. package/lib/features/modeling/behavior/SetCompensationActivityAfterPasteBehavior.js +66 -66
  188. package/lib/features/modeling/behavior/SpaceToolBehavior.d.ts +10 -10
  189. package/lib/features/modeling/behavior/SpaceToolBehavior.js +207 -207
  190. package/lib/features/modeling/behavior/SubProcessPlaneBehavior.d.ts +28 -28
  191. package/lib/features/modeling/behavior/SubProcessPlaneBehavior.js +588 -588
  192. package/lib/features/modeling/behavior/SubProcessStartEventBehavior.d.ts +15 -15
  193. package/lib/features/modeling/behavior/SubProcessStartEventBehavior.js +55 -55
  194. package/lib/features/modeling/behavior/TextAnnotationBehavior.d.ts +6 -6
  195. package/lib/features/modeling/behavior/TextAnnotationBehavior.js +42 -42
  196. package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.d.ts +14 -14
  197. package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.js +87 -87
  198. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.d.ts +13 -13
  199. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +156 -156
  200. package/lib/features/modeling/behavior/UnclaimIdBehavior.d.ts +19 -19
  201. package/lib/features/modeling/behavior/UnclaimIdBehavior.js +64 -64
  202. package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.d.ts +16 -16
  203. package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.js +59 -59
  204. package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.d.ts +15 -15
  205. package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.js +157 -157
  206. package/lib/features/modeling/behavior/index.d.ts +2 -2
  207. package/lib/features/modeling/behavior/index.js +131 -131
  208. package/lib/features/modeling/behavior/util/CategoryUtil.d.ts +49 -49
  209. package/lib/features/modeling/behavior/util/CategoryUtil.js +86 -86
  210. package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.d.ts +19 -19
  211. package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.js +22 -22
  212. package/lib/features/modeling/behavior/util/GeometricUtil.d.ts +1 -1
  213. package/lib/features/modeling/behavior/util/LabelLayoutUtil.d.ts +32 -32
  214. package/lib/features/modeling/behavior/util/LabelLayoutUtil.js +41 -41
  215. package/lib/features/modeling/behavior/util/LayoutUtil.d.ts +48 -48
  216. package/lib/features/modeling/behavior/util/LayoutUtil.js +259 -259
  217. package/lib/features/modeling/behavior/util/LineAttachmentUtil.d.ts +37 -37
  218. package/lib/features/modeling/behavior/util/LineAttachmentUtil.js +241 -241
  219. package/lib/features/modeling/behavior/util/LineIntersect.d.ts +13 -13
  220. package/lib/features/modeling/behavior/util/LineIntersect.js +39 -39
  221. package/lib/features/modeling/behavior/util/NonInterruptingUtil.d.ts +3 -3
  222. package/lib/features/modeling/behavior/util/NonInterruptingUtil.js +32 -32
  223. package/lib/features/modeling/behavior/util/ResizeUtil.d.ts +1 -1
  224. package/lib/features/modeling/cmd/AddLaneHandler.d.ts +22 -22
  225. package/lib/features/modeling/cmd/AddLaneHandler.js +187 -187
  226. package/lib/features/modeling/cmd/IdClaimHandler.d.ts +22 -22
  227. package/lib/features/modeling/cmd/IdClaimHandler.js +51 -51
  228. package/lib/features/modeling/cmd/ResizeLaneHandler.d.ts +39 -39
  229. package/lib/features/modeling/cmd/ResizeLaneHandler.js +146 -146
  230. package/lib/features/modeling/cmd/SetColorHandler.d.ts +18 -18
  231. package/lib/features/modeling/cmd/SplitLaneHandler.d.ts +20 -20
  232. package/lib/features/modeling/cmd/SplitLaneHandler.js +99 -99
  233. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.d.ts +20 -20
  234. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +99 -99
  235. package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.d.ts +21 -21
  236. package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.js +218 -218
  237. package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.d.ts +20 -20
  238. package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js +107 -107
  239. package/lib/features/modeling/cmd/UpdatePropertiesHandler.d.ts +58 -58
  240. package/lib/features/modeling/cmd/UpdatePropertiesHandler.js +260 -260
  241. package/lib/features/modeling/cmd/UpdateSemanticParentHandler.d.ts +18 -18
  242. package/lib/features/modeling/index.d.ts +27 -27
  243. package/lib/features/modeling/index.js +45 -45
  244. package/lib/features/modeling/util/LaneUtil.d.ts +46 -46
  245. package/lib/features/modeling/util/LaneUtil.js +188 -188
  246. package/lib/features/modeling/util/ModelingUtil.d.ts +23 -23
  247. package/lib/features/modeling/util/ModelingUtil.js +88 -88
  248. package/lib/features/modeling-feedback/ModelingFeedback.d.ts +13 -13
  249. package/lib/features/modeling-feedback/ModelingFeedback.js +46 -46
  250. package/lib/features/modeling-feedback/index.d.ts +7 -7
  251. package/lib/features/modeling-feedback/index.js +12 -12
  252. package/lib/features/ordering/BpmnOrderingProvider.d.ts +19 -19
  253. package/lib/features/ordering/BpmnOrderingProvider.js +191 -191
  254. package/lib/features/ordering/index.d.ts +6 -6
  255. package/lib/features/ordering/index.js +5 -5
  256. package/lib/features/outline/OutlineProvider.d.ts +39 -39
  257. package/lib/features/outline/OutlineProvider.js +189 -189
  258. package/lib/features/outline/OutlineUtil.d.ts +23 -23
  259. package/lib/features/outline/OutlineUtil.js +35 -35
  260. package/lib/features/outline/index.d.ts +7 -7
  261. package/lib/features/outline/index.js +10 -10
  262. package/lib/features/palette/PaletteProvider.d.ts +34 -34
  263. package/lib/features/palette/PaletteProvider.js +214 -214
  264. package/lib/features/palette/index.d.ts +9 -9
  265. package/lib/features/palette/index.js +23 -23
  266. package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +52 -52
  267. package/lib/features/popup-menu/ReplaceMenuProvider.js +656 -629
  268. package/lib/features/popup-menu/index.d.ts +11 -11
  269. package/lib/features/popup-menu/index.js +16 -16
  270. package/lib/features/popup-menu/util/Icons.d.ts +5 -5
  271. package/lib/features/popup-menu/util/Icons.js +14 -14
  272. package/lib/features/popup-menu/util/TypeUtil.d.ts +14 -14
  273. package/lib/features/popup-menu/util/TypeUtil.js +52 -52
  274. package/lib/features/replace/BpmnReplace.d.ts +45 -45
  275. package/lib/features/replace/BpmnReplace.js +391 -391
  276. package/lib/features/replace/ReplaceOptions.d.ts +85 -79
  277. package/lib/features/replace/ReplaceOptions.js +1198 -998
  278. package/lib/features/replace/index.d.ts +9 -9
  279. package/lib/features/replace/index.js +14 -14
  280. package/lib/features/replace-preview/BpmnReplacePreview.d.ts +17 -17
  281. package/lib/features/replace-preview/BpmnReplacePreview.js +139 -139
  282. package/lib/features/replace-preview/index.d.ts +7 -7
  283. package/lib/features/replace-preview/index.js +11 -11
  284. package/lib/features/rules/BpmnRules.d.ts +181 -181
  285. package/lib/features/rules/BpmnRules.js +1191 -1191
  286. package/lib/features/rules/index.d.ts +7 -7
  287. package/lib/features/rules/index.js +11 -11
  288. package/lib/features/search/BpmnSearchProvider.d.ts +34 -34
  289. package/lib/features/search/BpmnSearchProvider.js +91 -91
  290. package/lib/features/search/index.d.ts +7 -7
  291. package/lib/features/search/index.js +14 -14
  292. package/lib/features/snapping/BpmnConnectSnapping.d.ts +17 -17
  293. package/lib/features/snapping/BpmnCreateMoveSnapping.d.ts +41 -41
  294. package/lib/features/snapping/BpmnCreateMoveSnapping.js +289 -289
  295. package/lib/features/snapping/BpmnSnappingUtil.d.ts +11 -11
  296. package/lib/features/snapping/index.d.ts +9 -9
  297. package/lib/features/snapping/index.js +12 -12
  298. package/lib/features/space-tool/BpmnSpaceTool.d.ts +21 -21
  299. package/lib/features/space-tool/BpmnSpaceTool.js +69 -69
  300. package/lib/features/space-tool/index.d.ts +6 -6
  301. package/lib/features/space-tool/index.js +7 -7
  302. package/lib/import/BpmnImporter.d.ts +51 -51
  303. package/lib/import/BpmnImporter.js +363 -363
  304. package/lib/import/BpmnTreeWalker.d.ts +20 -20
  305. package/lib/import/BpmnTreeWalker.js +453 -453
  306. package/lib/import/Importer.d.ts +25 -25
  307. package/lib/import/Importer.js +222 -222
  308. package/lib/import/Util.d.ts +1 -1
  309. package/lib/import/Util.js +6 -6
  310. package/lib/import/index.d.ts +6 -6
  311. package/lib/import/index.js +9 -9
  312. package/lib/index.d.ts +1 -1
  313. package/lib/index.js +2 -2
  314. package/lib/model/Types.d.ts +25 -25
  315. package/lib/model/Types.ts +40 -40
  316. package/lib/util/CompatibilityUtil.d.ts +8 -8
  317. package/lib/util/CompatibilityUtil.js +29 -29
  318. package/lib/util/DiUtil.d.ts +60 -60
  319. package/lib/util/DiUtil.js +122 -122
  320. package/lib/util/DrilldownUtil.d.ts +39 -39
  321. package/lib/util/DrilldownUtil.js +69 -69
  322. package/lib/util/LabelUtil.d.ts +83 -83
  323. package/lib/util/LabelUtil.js +266 -266
  324. package/lib/util/ModelUtil.d.ts +40 -40
  325. package/lib/util/ModelUtil.js +58 -58
  326. package/lib/util/PoweredByUtil.d.ts +8 -8
  327. package/lib/util/PoweredByUtil.js +99 -99
  328. package/lib/util/Types.js +4 -4
  329. package/lib/util/Types.ts +3 -3
  330. package/package.json +131 -131
  331. package/test/helper/TranslationCollector.js +15 -15
  332. package/test/helper/index.js +313 -313
  333. package/test/matchers/BoundsMatchers.js +252 -252
  334. package/test/matchers/ConnectionMatchers.js +165 -165
  335. package/test/matchers/JSONMatcher.js +19 -19
  336. package/test/util/KeyEvents.js +22 -22
  337. package/test/util/MockEvents.js +61 -61
  338. package/test/util/custom-rules/CustomRules.js +16 -16
  339. package/test/util/custom-rules/index.js +6 -6
@@ -1,998 +1,1198 @@
1
- /**
2
- * @typedef { () => string } LabelGetter
3
- *
4
- * @typedef { {
5
- * label: string | LabelGetter;
6
- * actionName: string;
7
- * className: string;
8
- * target?: {
9
- * type: string;
10
- * isExpanded?: boolean;
11
- * isInterrupting?: boolean;
12
- * triggeredByEvent?: boolean;
13
- * cancelActivity?: boolean;
14
- * eventDefinitionType?: string;
15
- * eventDefinitionAttrs?: Record<string, any>
16
- * };
17
- * } } ReplaceOption
18
- */
19
-
20
- /**
21
- * @type {ReplaceOption[]}
22
- */
23
- export var START_EVENT = [
24
- {
25
- label: 'Start event',
26
- actionName: 'replace-with-none-start',
27
- className: 'bpmn-icon-start-event-none',
28
- target: {
29
- type: 'bpmn:StartEvent'
30
- }
31
- },
32
- {
33
- label: 'Intermediate throw event',
34
- actionName: 'replace-with-none-intermediate-throwing',
35
- className: 'bpmn-icon-intermediate-event-none',
36
- target: {
37
- type: 'bpmn:IntermediateThrowEvent'
38
- }
39
- },
40
- {
41
- label: 'End event',
42
- actionName: 'replace-with-none-end',
43
- className: 'bpmn-icon-end-event-none',
44
- target: {
45
- type: 'bpmn:EndEvent'
46
- }
47
- },
48
- {
49
- label: 'Message start event',
50
- actionName: 'replace-with-message-start',
51
- className: 'bpmn-icon-start-event-message',
52
- target: {
53
- type: 'bpmn:StartEvent',
54
- eventDefinitionType: 'bpmn:MessageEventDefinition'
55
- }
56
- },
57
- {
58
- label: 'Timer start event',
59
- actionName: 'replace-with-timer-start',
60
- className: 'bpmn-icon-start-event-timer',
61
- target: {
62
- type: 'bpmn:StartEvent',
63
- eventDefinitionType: 'bpmn:TimerEventDefinition'
64
- }
65
- },
66
- {
67
- label: 'Conditional start event',
68
- actionName: 'replace-with-conditional-start',
69
- className: 'bpmn-icon-start-event-condition',
70
- target: {
71
- type: 'bpmn:StartEvent',
72
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
73
- }
74
- },
75
- {
76
- label: 'Signal start event',
77
- actionName: 'replace-with-signal-start',
78
- className: 'bpmn-icon-start-event-signal',
79
- target: {
80
- type: 'bpmn:StartEvent',
81
- eventDefinitionType: 'bpmn:SignalEventDefinition'
82
- }
83
- }
84
- ];
85
-
86
- /**
87
- * @type {ReplaceOption[]}
88
- */
89
- export var START_EVENT_SUB_PROCESS = [
90
- {
91
- label: 'Start event',
92
- actionName: 'replace-with-none-start',
93
- className: 'bpmn-icon-start-event-none',
94
- target: {
95
- type: 'bpmn:StartEvent'
96
- }
97
- },
98
- {
99
- label: 'Intermediate throw event',
100
- actionName: 'replace-with-none-intermediate-throwing',
101
- className: 'bpmn-icon-intermediate-event-none',
102
- target: {
103
- type: 'bpmn:IntermediateThrowEvent'
104
- }
105
- },
106
- {
107
- label: 'End event',
108
- actionName: 'replace-with-none-end',
109
- className: 'bpmn-icon-end-event-none',
110
- target: {
111
- type: 'bpmn:EndEvent'
112
- }
113
- }
114
- ];
115
-
116
- /**
117
- * @type {ReplaceOption[]}
118
- */
119
- export var INTERMEDIATE_EVENT = [
120
- {
121
- label: 'Start event',
122
- actionName: 'replace-with-none-start',
123
- className: 'bpmn-icon-start-event-none',
124
- target: {
125
- type: 'bpmn:StartEvent'
126
- }
127
- },
128
- {
129
- label: 'Intermediate throw event',
130
- actionName: 'replace-with-none-intermediate-throw',
131
- className: 'bpmn-icon-intermediate-event-none',
132
- target: {
133
- type: 'bpmn:IntermediateThrowEvent'
134
- }
135
- },
136
- {
137
- label: 'End event',
138
- actionName: 'replace-with-none-end',
139
- className: 'bpmn-icon-end-event-none',
140
- target: {
141
- type: 'bpmn:EndEvent'
142
- }
143
- },
144
- {
145
- label: 'Message intermediate catch event',
146
- actionName: 'replace-with-message-intermediate-catch',
147
- className: 'bpmn-icon-intermediate-event-catch-message',
148
- target: {
149
- type: 'bpmn:IntermediateCatchEvent',
150
- eventDefinitionType: 'bpmn:MessageEventDefinition'
151
- }
152
- },
153
- {
154
- label: 'Message intermediate throw event',
155
- actionName: 'replace-with-message-intermediate-throw',
156
- className: 'bpmn-icon-intermediate-event-throw-message',
157
- target: {
158
- type: 'bpmn:IntermediateThrowEvent',
159
- eventDefinitionType: 'bpmn:MessageEventDefinition'
160
- }
161
- },
162
- {
163
- label: 'Timer intermediate catch event',
164
- actionName: 'replace-with-timer-intermediate-catch',
165
- className: 'bpmn-icon-intermediate-event-catch-timer',
166
- target: {
167
- type: 'bpmn:IntermediateCatchEvent',
168
- eventDefinitionType: 'bpmn:TimerEventDefinition'
169
- }
170
- },
171
- {
172
- label: 'Escalation intermediate throw event',
173
- actionName: 'replace-with-escalation-intermediate-throw',
174
- className: 'bpmn-icon-intermediate-event-throw-escalation',
175
- target: {
176
- type: 'bpmn:IntermediateThrowEvent',
177
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
178
- }
179
- },
180
- {
181
- label: 'Conditional intermediate catch event',
182
- actionName: 'replace-with-conditional-intermediate-catch',
183
- className: 'bpmn-icon-intermediate-event-catch-condition',
184
- target: {
185
- type: 'bpmn:IntermediateCatchEvent',
186
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
187
- }
188
- },
189
- {
190
- label: 'Link intermediate catch event',
191
- actionName: 'replace-with-link-intermediate-catch',
192
- className: 'bpmn-icon-intermediate-event-catch-link',
193
- target: {
194
- type: 'bpmn:IntermediateCatchEvent',
195
- eventDefinitionType: 'bpmn:LinkEventDefinition',
196
- eventDefinitionAttrs: {
197
- name: ''
198
- }
199
- }
200
- },
201
- {
202
- label: 'Link intermediate throw event',
203
- actionName: 'replace-with-link-intermediate-throw',
204
- className: 'bpmn-icon-intermediate-event-throw-link',
205
- target: {
206
- type: 'bpmn:IntermediateThrowEvent',
207
- eventDefinitionType: 'bpmn:LinkEventDefinition',
208
- eventDefinitionAttrs: {
209
- name: ''
210
- }
211
- }
212
- },
213
- {
214
- label: 'Compensation intermediate throw event',
215
- actionName: 'replace-with-compensation-intermediate-throw',
216
- className: 'bpmn-icon-intermediate-event-throw-compensation',
217
- target: {
218
- type: 'bpmn:IntermediateThrowEvent',
219
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
220
- }
221
- },
222
- {
223
- label: 'Signal intermediate catch event',
224
- actionName: 'replace-with-signal-intermediate-catch',
225
- className: 'bpmn-icon-intermediate-event-catch-signal',
226
- target: {
227
- type: 'bpmn:IntermediateCatchEvent',
228
- eventDefinitionType: 'bpmn:SignalEventDefinition'
229
- }
230
- },
231
- {
232
- label: 'Signal intermediate throw event',
233
- actionName: 'replace-with-signal-intermediate-throw',
234
- className: 'bpmn-icon-intermediate-event-throw-signal',
235
- target: {
236
- type: 'bpmn:IntermediateThrowEvent',
237
- eventDefinitionType: 'bpmn:SignalEventDefinition'
238
- }
239
- }
240
- ];
241
-
242
- /**
243
- * @type {ReplaceOption[]}
244
- */
245
- export var END_EVENT = [
246
- {
247
- label: 'Start event',
248
- actionName: 'replace-with-none-start',
249
- className: 'bpmn-icon-start-event-none',
250
- target: {
251
- type: 'bpmn:StartEvent'
252
- }
253
- },
254
- {
255
- label: 'Intermediate throw event',
256
- actionName: 'replace-with-none-intermediate-throw',
257
- className: 'bpmn-icon-intermediate-event-none',
258
- target: {
259
- type: 'bpmn:IntermediateThrowEvent'
260
- }
261
- },
262
- {
263
- label: 'End event',
264
- actionName: 'replace-with-none-end',
265
- className: 'bpmn-icon-end-event-none',
266
- target: {
267
- type: 'bpmn:EndEvent'
268
- }
269
- },
270
- {
271
- label: 'Message end event',
272
- actionName: 'replace-with-message-end',
273
- className: 'bpmn-icon-end-event-message',
274
- target: {
275
- type: 'bpmn:EndEvent',
276
- eventDefinitionType: 'bpmn:MessageEventDefinition'
277
- }
278
- },
279
- {
280
- label: 'Escalation end event',
281
- actionName: 'replace-with-escalation-end',
282
- className: 'bpmn-icon-end-event-escalation',
283
- target: {
284
- type: 'bpmn:EndEvent',
285
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
286
- }
287
- },
288
- {
289
- label: 'Error end event',
290
- actionName: 'replace-with-error-end',
291
- className: 'bpmn-icon-end-event-error',
292
- target: {
293
- type: 'bpmn:EndEvent',
294
- eventDefinitionType: 'bpmn:ErrorEventDefinition'
295
- }
296
- },
297
- {
298
- label: 'Cancel end event',
299
- actionName: 'replace-with-cancel-end',
300
- className: 'bpmn-icon-end-event-cancel',
301
- target: {
302
- type: 'bpmn:EndEvent',
303
- eventDefinitionType: 'bpmn:CancelEventDefinition'
304
- }
305
- },
306
- {
307
- label: 'Compensation end event',
308
- actionName: 'replace-with-compensation-end',
309
- className: 'bpmn-icon-end-event-compensation',
310
- target: {
311
- type: 'bpmn:EndEvent',
312
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
313
- }
314
- },
315
- {
316
- label: 'Signal end event',
317
- actionName: 'replace-with-signal-end',
318
- className: 'bpmn-icon-end-event-signal',
319
- target: {
320
- type: 'bpmn:EndEvent',
321
- eventDefinitionType: 'bpmn:SignalEventDefinition'
322
- }
323
- },
324
- {
325
- label: 'Terminate end event',
326
- actionName: 'replace-with-terminate-end',
327
- className: 'bpmn-icon-end-event-terminate',
328
- target: {
329
- type: 'bpmn:EndEvent',
330
- eventDefinitionType: 'bpmn:TerminateEventDefinition'
331
- }
332
- }
333
- ];
334
-
335
- /**
336
- * @type {ReplaceOption[]}
337
- */
338
- export var GATEWAY = [
339
- {
340
- label: 'Exclusive gateway',
341
- actionName: 'replace-with-exclusive-gateway',
342
- className: 'bpmn-icon-gateway-xor',
343
- target: {
344
- type: 'bpmn:ExclusiveGateway'
345
- }
346
- },
347
- {
348
- label: 'Parallel gateway',
349
- actionName: 'replace-with-parallel-gateway',
350
- className: 'bpmn-icon-gateway-parallel',
351
- target: {
352
- type: 'bpmn:ParallelGateway'
353
- }
354
- },
355
- {
356
- label: 'Inclusive gateway',
357
- actionName: 'replace-with-inclusive-gateway',
358
- className: 'bpmn-icon-gateway-or',
359
- target: {
360
- type: 'bpmn:InclusiveGateway'
361
- }
362
- },
363
- {
364
- label: 'Complex gateway',
365
- actionName: 'replace-with-complex-gateway',
366
- className: 'bpmn-icon-gateway-complex',
367
- target: {
368
- type: 'bpmn:ComplexGateway'
369
- }
370
- },
371
- {
372
- label: 'Event-based gateway',
373
- actionName: 'replace-with-event-based-gateway',
374
- className: 'bpmn-icon-gateway-eventbased',
375
- target: {
376
- type: 'bpmn:EventBasedGateway',
377
- instantiate: false,
378
- eventGatewayType: 'Exclusive'
379
- }
380
- }
381
-
382
- // Gateways deactivated until https://github.com/bpmn-io/bpmn-js/issues/194
383
- // {
384
- // label: 'Event based instantiating Gateway',
385
- // actionName: 'replace-with-exclusive-event-based-gateway',
386
- // className: 'bpmn-icon-exclusive-event-based',
387
- // target: {
388
- // type: 'bpmn:EventBasedGateway'
389
- // },
390
- // options: {
391
- // businessObject: { instantiate: true, eventGatewayType: 'Exclusive' }
392
- // }
393
- // },
394
- // {
395
- // label: 'Parallel Event based instantiating Gateway',
396
- // actionName: 'replace-with-parallel-event-based-instantiate-gateway',
397
- // className: 'bpmn-icon-parallel-event-based-instantiate-gateway',
398
- // target: {
399
- // type: 'bpmn:EventBasedGateway'
400
- // },
401
- // options: {
402
- // businessObject: { instantiate: true, eventGatewayType: 'Parallel' }
403
- // }
404
- // }
405
- ];
406
-
407
- /**
408
- * @type {ReplaceOption[]}
409
- */
410
- export var SUBPROCESS_EXPANDED = [
411
- {
412
- label: 'Transaction',
413
- actionName: 'replace-with-transaction',
414
- className: 'bpmn-icon-transaction',
415
- target: {
416
- type: 'bpmn:Transaction',
417
- isExpanded: true
418
- }
419
- },
420
- {
421
- label: 'Event sub-process',
422
- actionName: 'replace-with-event-subprocess',
423
- className: 'bpmn-icon-event-subprocess-expanded',
424
- target: {
425
- type: 'bpmn:SubProcess',
426
- triggeredByEvent: true,
427
- isExpanded: true
428
- }
429
- },
430
- {
431
- label: 'Ad-hoc sub-process',
432
- actionName: 'replace-with-ad-hoc-subprocess',
433
- className: 'bpmn-icon-subprocess-expanded',
434
- target: {
435
- type: 'bpmn:AdHocSubProcess',
436
- isExpanded: true
437
- }
438
- },
439
- {
440
- label: 'Sub-process (collapsed)',
441
- actionName: 'replace-with-collapsed-subprocess',
442
- className: 'bpmn-icon-subprocess-collapsed',
443
- target: {
444
- type: 'bpmn:SubProcess',
445
- isExpanded: false
446
- }
447
- }
448
- ];
449
-
450
- /**
451
- * @type {ReplaceOption[]}
452
- */
453
- export var AD_HOC_SUBPROCESS_EXPANDED = [
454
- {
455
- label: 'Sub-process',
456
- actionName: 'replace-with-subprocess',
457
- className: 'bpmn-icon-subprocess-expanded',
458
- target: {
459
- type: 'bpmn:SubProcess',
460
- isExpanded: true
461
- }
462
- },
463
- {
464
- label: 'Transaction',
465
- actionName: 'replace-with-transaction',
466
- className: 'bpmn-icon-transaction',
467
- target: {
468
- type: 'bpmn:Transaction',
469
- isExpanded: true
470
- }
471
- },
472
- {
473
- label: 'Event sub-process',
474
- actionName: 'replace-with-event-subprocess',
475
- className: 'bpmn-icon-event-subprocess-expanded',
476
- target: {
477
- type: 'bpmn:SubProcess',
478
- triggeredByEvent: true,
479
- isExpanded: true
480
- }
481
- },
482
- {
483
- label: 'Ad-hoc sub-process (collapsed)',
484
- actionName: 'replace-with-collapsed-ad-hoc-subprocess',
485
- className: 'bpmn-icon-subprocess-collapsed',
486
- target: {
487
- type: 'bpmn:AdHocSubProcess',
488
- isExpanded: false
489
- }
490
- }
491
- ];
492
-
493
- /**
494
- * @type {ReplaceOption[]}
495
- */
496
- export var TRANSACTION = [
497
- {
498
- label: 'Transaction',
499
- actionName: 'replace-with-transaction',
500
- className: 'bpmn-icon-transaction',
501
- target: {
502
- type: 'bpmn:Transaction',
503
- isExpanded: true
504
- }
505
- },
506
- {
507
- label: 'Sub-process',
508
- actionName: 'replace-with-subprocess',
509
- className: 'bpmn-icon-subprocess-expanded',
510
- target: {
511
- type: 'bpmn:SubProcess',
512
- isExpanded: true
513
- }
514
- },
515
- {
516
- label: 'Ad-hoc sub-process',
517
- actionName: 'replace-with-ad-hoc-subprocess',
518
- className: 'bpmn-icon-subprocess-expanded',
519
- target: {
520
- type: 'bpmn:AdHocSubProcess',
521
- isExpanded: true
522
- }
523
- },
524
- {
525
- label: 'Event sub-process',
526
- actionName: 'replace-with-event-subprocess',
527
- className: 'bpmn-icon-event-subprocess-expanded',
528
- target: {
529
- type: 'bpmn:SubProcess',
530
- triggeredByEvent: true,
531
- isExpanded: true
532
- }
533
- }
534
- ];
535
-
536
- /**
537
- * @type {ReplaceOption[]}
538
- */
539
- export var EVENT_SUB_PROCESS = TRANSACTION;
540
-
541
- /**
542
- * @type {ReplaceOption[]}
543
- */
544
- export var TASK = [
545
- {
546
- label: 'Task',
547
- actionName: 'replace-with-task',
548
- className: 'bpmn-icon-task',
549
- target: {
550
- type: 'bpmn:Task'
551
- }
552
- },
553
- {
554
- label: 'User task',
555
- actionName: 'replace-with-user-task',
556
- className: 'bpmn-icon-user',
557
- target: {
558
- type: 'bpmn:UserTask'
559
- }
560
- },
561
- {
562
- label: 'Service task',
563
- actionName: 'replace-with-service-task',
564
- className: 'bpmn-icon-service',
565
- target: {
566
- type: 'bpmn:ServiceTask'
567
- }
568
- },
569
- {
570
- label: 'Send task',
571
- actionName: 'replace-with-send-task',
572
- className: 'bpmn-icon-send',
573
- target: {
574
- type: 'bpmn:SendTask'
575
- }
576
- },
577
- {
578
- label: 'Receive task',
579
- actionName: 'replace-with-receive-task',
580
- className: 'bpmn-icon-receive',
581
- target: {
582
- type: 'bpmn:ReceiveTask'
583
- }
584
- },
585
- {
586
- label: 'Manual task',
587
- actionName: 'replace-with-manual-task',
588
- className: 'bpmn-icon-manual',
589
- target: {
590
- type: 'bpmn:ManualTask'
591
- }
592
- },
593
- {
594
- label: 'Business rule task',
595
- actionName: 'replace-with-rule-task',
596
- className: 'bpmn-icon-business-rule',
597
- target: {
598
- type: 'bpmn:BusinessRuleTask'
599
- }
600
- },
601
- {
602
- label: 'Script task',
603
- actionName: 'replace-with-script-task',
604
- className: 'bpmn-icon-script',
605
- target: {
606
- type: 'bpmn:ScriptTask'
607
- }
608
- },
609
- {
610
- label: 'Call activity',
611
- actionName: 'replace-with-call-activity',
612
- className: 'bpmn-icon-call-activity',
613
- target: {
614
- type: 'bpmn:CallActivity'
615
- }
616
- },
617
- {
618
- label: 'Sub-process (collapsed)',
619
- actionName: 'replace-with-collapsed-subprocess',
620
- className: 'bpmn-icon-subprocess-collapsed',
621
- target: {
622
- type: 'bpmn:SubProcess',
623
- isExpanded: false
624
- }
625
- },
626
- {
627
- label: 'Sub-process (expanded)',
628
- actionName: 'replace-with-expanded-subprocess',
629
- className: 'bpmn-icon-subprocess-expanded',
630
- target: {
631
- type: 'bpmn:SubProcess',
632
- isExpanded: true
633
- }
634
- },
635
- {
636
- label: 'Ad-hoc sub-process (collapsed)',
637
- actionName: 'replace-with-collapsed-ad-hoc-subprocess',
638
- className: 'bpmn-icon-subprocess-collapsed',
639
- target: {
640
- type: 'bpmn:AdHocSubProcess',
641
- isExpanded: false
642
- }
643
- },
644
- {
645
- label: 'Ad-hoc sub-process (expanded)',
646
- actionName: 'replace-with-ad-hoc-subprocess',
647
- className: 'bpmn-icon-subprocess-expanded',
648
- target: {
649
- type: 'bpmn:AdHocSubProcess',
650
- isExpanded: true
651
- }
652
- }
653
- ];
654
-
655
- /**
656
- * @type {ReplaceOption[]}
657
- */
658
- export var DATA_OBJECT_REFERENCE = [
659
- {
660
- label: 'Data store reference',
661
- actionName: 'replace-with-data-store-reference',
662
- className: 'bpmn-icon-data-store',
663
- target: {
664
- type: 'bpmn:DataStoreReference'
665
- }
666
- }
667
- ];
668
-
669
- /**
670
- * @type {ReplaceOption[]}
671
- */
672
- export var DATA_STORE_REFERENCE = [
673
- {
674
- label: 'Data object reference',
675
- actionName: 'replace-with-data-object-reference',
676
- className: 'bpmn-icon-data-object',
677
- target: {
678
- type: 'bpmn:DataObjectReference'
679
- }
680
- }
681
- ];
682
-
683
- /**
684
- * @type {ReplaceOption[]}
685
- */
686
- export var BOUNDARY_EVENT = [
687
- {
688
- label: 'Message boundary event',
689
- actionName: 'replace-with-message-boundary',
690
- className: 'bpmn-icon-intermediate-event-catch-message',
691
- target: {
692
- type: 'bpmn:BoundaryEvent',
693
- eventDefinitionType: 'bpmn:MessageEventDefinition',
694
- cancelActivity: true
695
- }
696
- },
697
- {
698
- label: 'Timer boundary event',
699
- actionName: 'replace-with-timer-boundary',
700
- className: 'bpmn-icon-intermediate-event-catch-timer',
701
- target: {
702
- type: 'bpmn:BoundaryEvent',
703
- eventDefinitionType: 'bpmn:TimerEventDefinition',
704
- cancelActivity: true
705
- }
706
- },
707
- {
708
- label: 'Escalation boundary event',
709
- actionName: 'replace-with-escalation-boundary',
710
- className: 'bpmn-icon-intermediate-event-catch-escalation',
711
- target: {
712
- type: 'bpmn:BoundaryEvent',
713
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
714
- cancelActivity: true
715
- }
716
- },
717
- {
718
- label: 'Conditional boundary event',
719
- actionName: 'replace-with-conditional-boundary',
720
- className: 'bpmn-icon-intermediate-event-catch-condition',
721
- target: {
722
- type: 'bpmn:BoundaryEvent',
723
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
724
- cancelActivity: true
725
- }
726
- },
727
- {
728
- label: 'Error boundary event',
729
- actionName: 'replace-with-error-boundary',
730
- className: 'bpmn-icon-intermediate-event-catch-error',
731
- target: {
732
- type: 'bpmn:BoundaryEvent',
733
- eventDefinitionType: 'bpmn:ErrorEventDefinition',
734
- cancelActivity: true
735
- }
736
- },
737
- {
738
- label: 'Cancel boundary event',
739
- actionName: 'replace-with-cancel-boundary',
740
- className: 'bpmn-icon-intermediate-event-catch-cancel',
741
- target: {
742
- type: 'bpmn:BoundaryEvent',
743
- eventDefinitionType: 'bpmn:CancelEventDefinition',
744
- cancelActivity: true
745
- }
746
- },
747
- {
748
- label: 'Signal boundary event',
749
- actionName: 'replace-with-signal-boundary',
750
- className: 'bpmn-icon-intermediate-event-catch-signal',
751
- target: {
752
- type: 'bpmn:BoundaryEvent',
753
- eventDefinitionType: 'bpmn:SignalEventDefinition',
754
- cancelActivity: true
755
- }
756
- },
757
- {
758
- label: 'Compensation boundary event',
759
- actionName: 'replace-with-compensation-boundary',
760
- className: 'bpmn-icon-intermediate-event-catch-compensation',
761
- target: {
762
- type: 'bpmn:BoundaryEvent',
763
- eventDefinitionType: 'bpmn:CompensateEventDefinition',
764
- cancelActivity: true
765
- }
766
- },
767
- {
768
- label: 'Message boundary event (non-interrupting)',
769
- actionName: 'replace-with-non-interrupting-message-boundary',
770
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
771
- target: {
772
- type: 'bpmn:BoundaryEvent',
773
- eventDefinitionType: 'bpmn:MessageEventDefinition',
774
- cancelActivity: false
775
- }
776
- },
777
- {
778
- label: 'Timer boundary event (non-interrupting)',
779
- actionName: 'replace-with-non-interrupting-timer-boundary',
780
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
781
- target: {
782
- type: 'bpmn:BoundaryEvent',
783
- eventDefinitionType: 'bpmn:TimerEventDefinition',
784
- cancelActivity: false
785
- }
786
- },
787
- {
788
- label: 'Escalation boundary event (non-interrupting)',
789
- actionName: 'replace-with-non-interrupting-escalation-boundary',
790
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
791
- target: {
792
- type: 'bpmn:BoundaryEvent',
793
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
794
- cancelActivity: false
795
- }
796
- },
797
- {
798
- label: 'Conditional boundary event (non-interrupting)',
799
- actionName: 'replace-with-non-interrupting-conditional-boundary',
800
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
801
- target: {
802
- type: 'bpmn:BoundaryEvent',
803
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
804
- cancelActivity: false
805
- }
806
- },
807
- {
808
- label: 'Signal boundary event (non-interrupting)',
809
- actionName: 'replace-with-non-interrupting-signal-boundary',
810
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
811
- target: {
812
- type: 'bpmn:BoundaryEvent',
813
- eventDefinitionType: 'bpmn:SignalEventDefinition',
814
- cancelActivity: false
815
- }
816
- }
817
- ];
818
-
819
- /**
820
- * @type {ReplaceOption[]}
821
- */
822
- export var EVENT_SUB_PROCESS_START_EVENT = [
823
- {
824
- label: 'Message start event',
825
- actionName: 'replace-with-message-start',
826
- className: 'bpmn-icon-start-event-message',
827
- target: {
828
- type: 'bpmn:StartEvent',
829
- eventDefinitionType: 'bpmn:MessageEventDefinition',
830
- isInterrupting: true
831
- }
832
- },
833
- {
834
- label: 'Timer start event',
835
- actionName: 'replace-with-timer-start',
836
- className: 'bpmn-icon-start-event-timer',
837
- target: {
838
- type: 'bpmn:StartEvent',
839
- eventDefinitionType: 'bpmn:TimerEventDefinition',
840
- isInterrupting: true
841
- }
842
- },
843
- {
844
- label: 'Conditional start event',
845
- actionName: 'replace-with-conditional-start',
846
- className: 'bpmn-icon-start-event-condition',
847
- target: {
848
- type: 'bpmn:StartEvent',
849
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
850
- isInterrupting: true
851
- }
852
- },
853
- {
854
- label: 'Signal start event',
855
- actionName: 'replace-with-signal-start',
856
- className: 'bpmn-icon-start-event-signal',
857
- target: {
858
- type: 'bpmn:StartEvent',
859
- eventDefinitionType: 'bpmn:SignalEventDefinition',
860
- isInterrupting: true
861
- }
862
- },
863
- {
864
- label: 'Error start event',
865
- actionName: 'replace-with-error-start',
866
- className: 'bpmn-icon-start-event-error',
867
- target: {
868
- type: 'bpmn:StartEvent',
869
- eventDefinitionType: 'bpmn:ErrorEventDefinition',
870
- isInterrupting: true
871
- }
872
- },
873
- {
874
- label: 'Escalation start event',
875
- actionName: 'replace-with-escalation-start',
876
- className: 'bpmn-icon-start-event-escalation',
877
- target: {
878
- type: 'bpmn:StartEvent',
879
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
880
- isInterrupting: true
881
- }
882
- },
883
- {
884
- label: 'Compensation start event',
885
- actionName: 'replace-with-compensation-start',
886
- className: 'bpmn-icon-start-event-compensation',
887
- target: {
888
- type: 'bpmn:StartEvent',
889
- eventDefinitionType: 'bpmn:CompensateEventDefinition',
890
- isInterrupting: true
891
- }
892
- },
893
- {
894
- label: 'Message start event (non-interrupting)',
895
- actionName: 'replace-with-non-interrupting-message-start',
896
- className: 'bpmn-icon-start-event-non-interrupting-message',
897
- target: {
898
- type: 'bpmn:StartEvent',
899
- eventDefinitionType: 'bpmn:MessageEventDefinition',
900
- isInterrupting: false
901
- }
902
- },
903
- {
904
- label: 'Timer start event (non-interrupting)',
905
- actionName: 'replace-with-non-interrupting-timer-start',
906
- className: 'bpmn-icon-start-event-non-interrupting-timer',
907
- target: {
908
- type: 'bpmn:StartEvent',
909
- eventDefinitionType: 'bpmn:TimerEventDefinition',
910
- isInterrupting: false
911
- }
912
- },
913
- {
914
- label: 'Conditional start event (non-interrupting)',
915
- actionName: 'replace-with-non-interrupting-conditional-start',
916
- className: 'bpmn-icon-start-event-non-interrupting-condition',
917
- target: {
918
- type: 'bpmn:StartEvent',
919
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
920
- isInterrupting: false
921
- }
922
- },
923
- {
924
- label: 'Signal start event (non-interrupting)',
925
- actionName: 'replace-with-non-interrupting-signal-start',
926
- className: 'bpmn-icon-start-event-non-interrupting-signal',
927
- target: {
928
- type: 'bpmn:StartEvent',
929
- eventDefinitionType: 'bpmn:SignalEventDefinition',
930
- isInterrupting: false
931
- }
932
- },
933
- {
934
- label: 'Escalation start event (non-interrupting)',
935
- actionName: 'replace-with-non-interrupting-escalation-start',
936
- className: 'bpmn-icon-start-event-non-interrupting-escalation',
937
- target: {
938
- type: 'bpmn:StartEvent',
939
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
940
- isInterrupting: false
941
- }
942
- }
943
- ];
944
-
945
- /**
946
- * @type {ReplaceOption[]}
947
- */
948
- export var SEQUENCE_FLOW = [
949
- {
950
- label: 'Sequence flow',
951
- actionName: 'replace-with-sequence-flow',
952
- className: 'bpmn-icon-connection'
953
- },
954
- {
955
- label: 'Default flow',
956
- actionName: 'replace-with-default-flow',
957
- className: 'bpmn-icon-default-flow'
958
- },
959
- {
960
- label: 'Conditional flow',
961
- actionName: 'replace-with-conditional-flow',
962
- className: 'bpmn-icon-conditional-flow'
963
- }
964
- ];
965
-
966
- /**
967
- * @type {ReplaceOption[]}
968
- */
969
- export var PARTICIPANT = [
970
- {
971
- label: 'Expanded pool/participant',
972
- actionName: 'replace-with-expanded-pool',
973
- className: 'bpmn-icon-participant',
974
- target: {
975
- type: 'bpmn:Participant',
976
- isExpanded: true
977
- }
978
- },
979
- {
980
- label: function(element) {
981
- var label = 'Empty pool/participant';
982
-
983
- if (element.children && element.children.length) {
984
- label += ' (removes content)';
985
- }
986
-
987
- return label;
988
- },
989
- actionName: 'replace-with-collapsed-pool',
990
-
991
- // TODO(@janstuemmel): maybe design new icon
992
- className: 'bpmn-icon-lane',
993
- target: {
994
- type: 'bpmn:Participant',
995
- isExpanded: false
996
- }
997
- }
998
- ];
1
+ /**
2
+ * @typedef { () => string } LabelGetter
3
+ *
4
+ * @typedef { {
5
+ * label: string | LabelGetter;
6
+ * actionName: string;
7
+ * className: string;
8
+ * target?: {
9
+ * type: string;
10
+ * isExpanded?: boolean;
11
+ * isInterrupting?: boolean;
12
+ * triggeredByEvent?: boolean;
13
+ * cancelActivity?: boolean;
14
+ * eventDefinitionType?: string;
15
+ * eventDefinitionAttrs?: Record<string, any>
16
+ * };
17
+ * } } ReplaceOption
18
+ */
19
+
20
+ /**
21
+ * @type {ReplaceOption[]}
22
+ */
23
+ export var START_EVENT = [
24
+ {
25
+ label: 'Start event',
26
+ actionName: 'replace-with-none-start',
27
+ className: 'bpmn-icon-start-event-none',
28
+ target: {
29
+ type: 'bpmn:StartEvent'
30
+ }
31
+ },
32
+ {
33
+ label: 'Intermediate throw event',
34
+ actionName: 'replace-with-none-intermediate-throwing',
35
+ className: 'bpmn-icon-intermediate-event-none',
36
+ target: {
37
+ type: 'bpmn:IntermediateThrowEvent'
38
+ }
39
+ },
40
+ {
41
+ label: 'End event',
42
+ actionName: 'replace-with-none-end',
43
+ className: 'bpmn-icon-end-event-none',
44
+ target: {
45
+ type: 'bpmn:EndEvent'
46
+ }
47
+ },
48
+ {
49
+ label: 'Message start event',
50
+ actionName: 'replace-with-message-start',
51
+ className: 'bpmn-icon-start-event-message',
52
+ target: {
53
+ type: 'bpmn:StartEvent',
54
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
55
+ }
56
+ },
57
+ {
58
+ label: 'Timer start event',
59
+ actionName: 'replace-with-timer-start',
60
+ className: 'bpmn-icon-start-event-timer',
61
+ target: {
62
+ type: 'bpmn:StartEvent',
63
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
64
+ }
65
+ },
66
+ {
67
+ label: 'Conditional start event',
68
+ actionName: 'replace-with-conditional-start',
69
+ className: 'bpmn-icon-start-event-condition',
70
+ target: {
71
+ type: 'bpmn:StartEvent',
72
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
73
+ }
74
+ },
75
+ {
76
+ label: 'Signal start event',
77
+ actionName: 'replace-with-signal-start',
78
+ className: 'bpmn-icon-start-event-signal',
79
+ target: {
80
+ type: 'bpmn:StartEvent',
81
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
82
+ }
83
+ }
84
+ ];
85
+
86
+ /**
87
+ * @type {ReplaceOption[]}
88
+ */
89
+ export var START_EVENT_SUB_PROCESS = [
90
+ {
91
+ label: 'Start event',
92
+ actionName: 'replace-with-none-start',
93
+ className: 'bpmn-icon-start-event-none',
94
+ target: {
95
+ type: 'bpmn:StartEvent'
96
+ }
97
+ },
98
+ {
99
+ label: 'Intermediate throw event',
100
+ actionName: 'replace-with-none-intermediate-throwing',
101
+ className: 'bpmn-icon-intermediate-event-none',
102
+ target: {
103
+ type: 'bpmn:IntermediateThrowEvent'
104
+ }
105
+ },
106
+ {
107
+ label: 'End event',
108
+ actionName: 'replace-with-none-end',
109
+ className: 'bpmn-icon-end-event-none',
110
+ target: {
111
+ type: 'bpmn:EndEvent'
112
+ }
113
+ }
114
+ ];
115
+
116
+ /**
117
+ * @type {ReplaceOption[]}
118
+ */
119
+ export var INTERMEDIATE_EVENT = [
120
+ {
121
+ label: 'Start event',
122
+ actionName: 'replace-with-none-start',
123
+ className: 'bpmn-icon-start-event-none',
124
+ target: {
125
+ type: 'bpmn:StartEvent'
126
+ }
127
+ },
128
+ {
129
+ label: 'Intermediate throw event',
130
+ actionName: 'replace-with-none-intermediate-throw',
131
+ className: 'bpmn-icon-intermediate-event-none',
132
+ target: {
133
+ type: 'bpmn:IntermediateThrowEvent'
134
+ }
135
+ },
136
+ {
137
+ label: 'End event',
138
+ actionName: 'replace-with-none-end',
139
+ className: 'bpmn-icon-end-event-none',
140
+ target: {
141
+ type: 'bpmn:EndEvent'
142
+ }
143
+ },
144
+ {
145
+ label: 'Message intermediate catch event',
146
+ actionName: 'replace-with-message-intermediate-catch',
147
+ className: 'bpmn-icon-intermediate-event-catch-message',
148
+ target: {
149
+ type: 'bpmn:IntermediateCatchEvent',
150
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
151
+ }
152
+ },
153
+ {
154
+ label: 'Message intermediate throw event',
155
+ actionName: 'replace-with-message-intermediate-throw',
156
+ className: 'bpmn-icon-intermediate-event-throw-message',
157
+ target: {
158
+ type: 'bpmn:IntermediateThrowEvent',
159
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
160
+ }
161
+ },
162
+ {
163
+ label: 'Timer intermediate catch event',
164
+ actionName: 'replace-with-timer-intermediate-catch',
165
+ className: 'bpmn-icon-intermediate-event-catch-timer',
166
+ target: {
167
+ type: 'bpmn:IntermediateCatchEvent',
168
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
169
+ }
170
+ },
171
+ {
172
+ label: 'Escalation intermediate throw event',
173
+ actionName: 'replace-with-escalation-intermediate-throw',
174
+ className: 'bpmn-icon-intermediate-event-throw-escalation',
175
+ target: {
176
+ type: 'bpmn:IntermediateThrowEvent',
177
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
178
+ }
179
+ },
180
+ {
181
+ label: 'Conditional intermediate catch event',
182
+ actionName: 'replace-with-conditional-intermediate-catch',
183
+ className: 'bpmn-icon-intermediate-event-catch-condition',
184
+ target: {
185
+ type: 'bpmn:IntermediateCatchEvent',
186
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
187
+ }
188
+ },
189
+ {
190
+ label: 'Link intermediate catch event',
191
+ actionName: 'replace-with-link-intermediate-catch',
192
+ className: 'bpmn-icon-intermediate-event-catch-link',
193
+ target: {
194
+ type: 'bpmn:IntermediateCatchEvent',
195
+ eventDefinitionType: 'bpmn:LinkEventDefinition',
196
+ eventDefinitionAttrs: {
197
+ name: ''
198
+ }
199
+ }
200
+ },
201
+ {
202
+ label: 'Link intermediate throw event',
203
+ actionName: 'replace-with-link-intermediate-throw',
204
+ className: 'bpmn-icon-intermediate-event-throw-link',
205
+ target: {
206
+ type: 'bpmn:IntermediateThrowEvent',
207
+ eventDefinitionType: 'bpmn:LinkEventDefinition',
208
+ eventDefinitionAttrs: {
209
+ name: ''
210
+ }
211
+ }
212
+ },
213
+ {
214
+ label: 'Compensation intermediate throw event',
215
+ actionName: 'replace-with-compensation-intermediate-throw',
216
+ className: 'bpmn-icon-intermediate-event-throw-compensation',
217
+ target: {
218
+ type: 'bpmn:IntermediateThrowEvent',
219
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
220
+ }
221
+ },
222
+ {
223
+ label: 'Signal intermediate catch event',
224
+ actionName: 'replace-with-signal-intermediate-catch',
225
+ className: 'bpmn-icon-intermediate-event-catch-signal',
226
+ target: {
227
+ type: 'bpmn:IntermediateCatchEvent',
228
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
229
+ }
230
+ },
231
+ {
232
+ label: 'Signal intermediate throw event',
233
+ actionName: 'replace-with-signal-intermediate-throw',
234
+ className: 'bpmn-icon-intermediate-event-throw-signal',
235
+ target: {
236
+ type: 'bpmn:IntermediateThrowEvent',
237
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
238
+ }
239
+ }
240
+ ];
241
+
242
+ /**
243
+ * @type {ReplaceOption[]}
244
+ */
245
+ export var END_EVENT = [
246
+ {
247
+ label: 'Start event',
248
+ actionName: 'replace-with-none-start',
249
+ className: 'bpmn-icon-start-event-none',
250
+ target: {
251
+ type: 'bpmn:StartEvent'
252
+ }
253
+ },
254
+ {
255
+ label: 'Intermediate throw event',
256
+ actionName: 'replace-with-none-intermediate-throw',
257
+ className: 'bpmn-icon-intermediate-event-none',
258
+ target: {
259
+ type: 'bpmn:IntermediateThrowEvent'
260
+ }
261
+ },
262
+ {
263
+ label: 'End event',
264
+ actionName: 'replace-with-none-end',
265
+ className: 'bpmn-icon-end-event-none',
266
+ target: {
267
+ type: 'bpmn:EndEvent'
268
+ }
269
+ },
270
+ {
271
+ label: 'Message end event',
272
+ actionName: 'replace-with-message-end',
273
+ className: 'bpmn-icon-end-event-message',
274
+ target: {
275
+ type: 'bpmn:EndEvent',
276
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
277
+ }
278
+ },
279
+ {
280
+ label: 'Escalation end event',
281
+ actionName: 'replace-with-escalation-end',
282
+ className: 'bpmn-icon-end-event-escalation',
283
+ target: {
284
+ type: 'bpmn:EndEvent',
285
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
286
+ }
287
+ },
288
+ {
289
+ label: 'Error end event',
290
+ actionName: 'replace-with-error-end',
291
+ className: 'bpmn-icon-end-event-error',
292
+ target: {
293
+ type: 'bpmn:EndEvent',
294
+ eventDefinitionType: 'bpmn:ErrorEventDefinition'
295
+ }
296
+ },
297
+ {
298
+ label: 'Cancel end event',
299
+ actionName: 'replace-with-cancel-end',
300
+ className: 'bpmn-icon-end-event-cancel',
301
+ target: {
302
+ type: 'bpmn:EndEvent',
303
+ eventDefinitionType: 'bpmn:CancelEventDefinition'
304
+ }
305
+ },
306
+ {
307
+ label: 'Compensation end event',
308
+ actionName: 'replace-with-compensation-end',
309
+ className: 'bpmn-icon-end-event-compensation',
310
+ target: {
311
+ type: 'bpmn:EndEvent',
312
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
313
+ }
314
+ },
315
+ {
316
+ label: 'Signal end event',
317
+ actionName: 'replace-with-signal-end',
318
+ className: 'bpmn-icon-end-event-signal',
319
+ target: {
320
+ type: 'bpmn:EndEvent',
321
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
322
+ }
323
+ },
324
+ {
325
+ label: 'Terminate end event',
326
+ actionName: 'replace-with-terminate-end',
327
+ className: 'bpmn-icon-end-event-terminate',
328
+ target: {
329
+ type: 'bpmn:EndEvent',
330
+ eventDefinitionType: 'bpmn:TerminateEventDefinition'
331
+ }
332
+ }
333
+ ];
334
+
335
+ /**
336
+ * @type {ReplaceOption[]}
337
+ */
338
+ export var GATEWAY = [
339
+ {
340
+ label: 'Exclusive gateway',
341
+ actionName: 'replace-with-exclusive-gateway',
342
+ className: 'bpmn-icon-gateway-xor',
343
+ target: {
344
+ type: 'bpmn:ExclusiveGateway'
345
+ }
346
+ },
347
+ {
348
+ label: 'Parallel gateway',
349
+ actionName: 'replace-with-parallel-gateway',
350
+ className: 'bpmn-icon-gateway-parallel',
351
+ target: {
352
+ type: 'bpmn:ParallelGateway'
353
+ }
354
+ },
355
+ {
356
+ label: 'Inclusive gateway',
357
+ actionName: 'replace-with-inclusive-gateway',
358
+ className: 'bpmn-icon-gateway-or',
359
+ target: {
360
+ type: 'bpmn:InclusiveGateway'
361
+ }
362
+ },
363
+ {
364
+ label: 'Complex gateway',
365
+ actionName: 'replace-with-complex-gateway',
366
+ className: 'bpmn-icon-gateway-complex',
367
+ target: {
368
+ type: 'bpmn:ComplexGateway'
369
+ }
370
+ },
371
+ {
372
+ label: 'Event-based gateway',
373
+ actionName: 'replace-with-event-based-gateway',
374
+ className: 'bpmn-icon-gateway-eventbased',
375
+ target: {
376
+ type: 'bpmn:EventBasedGateway',
377
+ instantiate: false,
378
+ eventGatewayType: 'Exclusive'
379
+ }
380
+ }
381
+
382
+ // Gateways deactivated until https://github.com/bpmn-io/bpmn-js/issues/194
383
+ // {
384
+ // label: 'Event based instantiating Gateway',
385
+ // actionName: 'replace-with-exclusive-event-based-gateway',
386
+ // className: 'bpmn-icon-exclusive-event-based',
387
+ // target: {
388
+ // type: 'bpmn:EventBasedGateway'
389
+ // },
390
+ // options: {
391
+ // businessObject: { instantiate: true, eventGatewayType: 'Exclusive' }
392
+ // }
393
+ // },
394
+ // {
395
+ // label: 'Parallel Event based instantiating Gateway',
396
+ // actionName: 'replace-with-parallel-event-based-instantiate-gateway',
397
+ // className: 'bpmn-icon-parallel-event-based-instantiate-gateway',
398
+ // target: {
399
+ // type: 'bpmn:EventBasedGateway'
400
+ // },
401
+ // options: {
402
+ // businessObject: { instantiate: true, eventGatewayType: 'Parallel' }
403
+ // }
404
+ // }
405
+ ];
406
+
407
+ /**
408
+ * @type {ReplaceOption[]}
409
+ */
410
+ export var SUBPROCESS_EXPANDED = [
411
+ {
412
+ label: 'Transaction',
413
+ actionName: 'replace-with-transaction',
414
+ className: 'bpmn-icon-transaction',
415
+ target: {
416
+ type: 'bpmn:Transaction',
417
+ isExpanded: true
418
+ }
419
+ },
420
+ {
421
+ label: 'Event sub-process',
422
+ actionName: 'replace-with-event-subprocess',
423
+ className: 'bpmn-icon-event-subprocess-expanded',
424
+ target: {
425
+ type: 'bpmn:SubProcess',
426
+ triggeredByEvent: true,
427
+ isExpanded: true
428
+ }
429
+ },
430
+ {
431
+ label: 'Ad-hoc sub-process',
432
+ actionName: 'replace-with-ad-hoc-subprocess',
433
+ className: 'bpmn-icon-subprocess-expanded',
434
+ target: {
435
+ type: 'bpmn:AdHocSubProcess',
436
+ isExpanded: true
437
+ }
438
+ },
439
+ {
440
+ label: 'Sub-process (collapsed)',
441
+ actionName: 'replace-with-collapsed-subprocess',
442
+ className: 'bpmn-icon-subprocess-collapsed',
443
+ target: {
444
+ type: 'bpmn:SubProcess',
445
+ isExpanded: false
446
+ }
447
+ }
448
+ ];
449
+
450
+ /**
451
+ * @type {ReplaceOption[]}
452
+ */
453
+ export var AD_HOC_SUBPROCESS_EXPANDED = [
454
+ {
455
+ label: 'Sub-process',
456
+ actionName: 'replace-with-subprocess',
457
+ className: 'bpmn-icon-subprocess-expanded',
458
+ target: {
459
+ type: 'bpmn:SubProcess',
460
+ isExpanded: true
461
+ }
462
+ },
463
+ {
464
+ label: 'Transaction',
465
+ actionName: 'replace-with-transaction',
466
+ className: 'bpmn-icon-transaction',
467
+ target: {
468
+ type: 'bpmn:Transaction',
469
+ isExpanded: true
470
+ }
471
+ },
472
+ {
473
+ label: 'Event sub-process',
474
+ actionName: 'replace-with-event-subprocess',
475
+ className: 'bpmn-icon-event-subprocess-expanded',
476
+ target: {
477
+ type: 'bpmn:SubProcess',
478
+ triggeredByEvent: true,
479
+ isExpanded: true
480
+ }
481
+ },
482
+ {
483
+ label: 'Ad-hoc sub-process (collapsed)',
484
+ actionName: 'replace-with-collapsed-ad-hoc-subprocess',
485
+ className: 'bpmn-icon-subprocess-collapsed',
486
+ target: {
487
+ type: 'bpmn:AdHocSubProcess',
488
+ isExpanded: false
489
+ }
490
+ }
491
+ ];
492
+
493
+ /**
494
+ * @type {ReplaceOption[]}
495
+ */
496
+ export var TRANSACTION = [
497
+ {
498
+ label: 'Transaction',
499
+ actionName: 'replace-with-transaction',
500
+ className: 'bpmn-icon-transaction',
501
+ target: {
502
+ type: 'bpmn:Transaction',
503
+ isExpanded: true
504
+ }
505
+ },
506
+ {
507
+ label: 'Sub-process',
508
+ actionName: 'replace-with-subprocess',
509
+ className: 'bpmn-icon-subprocess-expanded',
510
+ target: {
511
+ type: 'bpmn:SubProcess',
512
+ isExpanded: true
513
+ }
514
+ },
515
+ {
516
+ label: 'Ad-hoc sub-process',
517
+ actionName: 'replace-with-ad-hoc-subprocess',
518
+ className: 'bpmn-icon-subprocess-expanded',
519
+ target: {
520
+ type: 'bpmn:AdHocSubProcess',
521
+ isExpanded: true
522
+ }
523
+ },
524
+ {
525
+ label: 'Event sub-process',
526
+ actionName: 'replace-with-event-subprocess',
527
+ className: 'bpmn-icon-event-subprocess-expanded',
528
+ target: {
529
+ type: 'bpmn:SubProcess',
530
+ triggeredByEvent: true,
531
+ isExpanded: true
532
+ }
533
+ }
534
+ ];
535
+
536
+ /**
537
+ * @type {ReplaceOption[]}
538
+ */
539
+ export var EVENT_SUB_PROCESS = TRANSACTION;
540
+
541
+ /**
542
+ * @type {ReplaceOption[]}
543
+ */
544
+ export var TASK = [
545
+ {
546
+ label: 'Task',
547
+ actionName: 'replace-with-task',
548
+ className: 'bpmn-icon-task',
549
+ target: {
550
+ type: 'bpmn:Task'
551
+ }
552
+ },
553
+ {
554
+ label: 'User task',
555
+ actionName: 'replace-with-user-task',
556
+ className: 'bpmn-icon-user',
557
+ target: {
558
+ type: 'bpmn:UserTask'
559
+ }
560
+ },
561
+ {
562
+ label: 'Service task',
563
+ actionName: 'replace-with-service-task',
564
+ className: 'bpmn-icon-service',
565
+ target: {
566
+ type: 'bpmn:ServiceTask'
567
+ }
568
+ },
569
+ {
570
+ label: 'Send task',
571
+ actionName: 'replace-with-send-task',
572
+ className: 'bpmn-icon-send',
573
+ target: {
574
+ type: 'bpmn:SendTask'
575
+ }
576
+ },
577
+ {
578
+ label: 'Receive task',
579
+ actionName: 'replace-with-receive-task',
580
+ className: 'bpmn-icon-receive',
581
+ target: {
582
+ type: 'bpmn:ReceiveTask'
583
+ }
584
+ },
585
+ {
586
+ label: 'Manual task',
587
+ actionName: 'replace-with-manual-task',
588
+ className: 'bpmn-icon-manual',
589
+ target: {
590
+ type: 'bpmn:ManualTask'
591
+ }
592
+ },
593
+ {
594
+ label: 'Business rule task',
595
+ actionName: 'replace-with-rule-task',
596
+ className: 'bpmn-icon-business-rule',
597
+ target: {
598
+ type: 'bpmn:BusinessRuleTask'
599
+ }
600
+ },
601
+ {
602
+ label: 'Script task',
603
+ actionName: 'replace-with-script-task',
604
+ className: 'bpmn-icon-script',
605
+ target: {
606
+ type: 'bpmn:ScriptTask'
607
+ }
608
+ },
609
+ {
610
+ label: 'Call activity',
611
+ actionName: 'replace-with-call-activity',
612
+ className: 'bpmn-icon-call-activity',
613
+ target: {
614
+ type: 'bpmn:CallActivity'
615
+ }
616
+ },
617
+ {
618
+ label: 'Sub-process (collapsed)',
619
+ actionName: 'replace-with-collapsed-subprocess',
620
+ className: 'bpmn-icon-subprocess-collapsed',
621
+ target: {
622
+ type: 'bpmn:SubProcess',
623
+ isExpanded: false
624
+ }
625
+ },
626
+ {
627
+ label: 'Sub-process (expanded)',
628
+ actionName: 'replace-with-expanded-subprocess',
629
+ className: 'bpmn-icon-subprocess-expanded',
630
+ target: {
631
+ type: 'bpmn:SubProcess',
632
+ isExpanded: true
633
+ }
634
+ },
635
+ {
636
+ label: 'Ad-hoc sub-process (collapsed)',
637
+ actionName: 'replace-with-collapsed-ad-hoc-subprocess',
638
+ className: 'bpmn-icon-subprocess-collapsed',
639
+ target: {
640
+ type: 'bpmn:AdHocSubProcess',
641
+ isExpanded: false
642
+ }
643
+ },
644
+ {
645
+ label: 'Ad-hoc sub-process (expanded)',
646
+ actionName: 'replace-with-ad-hoc-subprocess',
647
+ className: 'bpmn-icon-subprocess-expanded',
648
+ target: {
649
+ type: 'bpmn:AdHocSubProcess',
650
+ isExpanded: true
651
+ }
652
+ }
653
+ ];
654
+
655
+ /**
656
+ * @type {ReplaceOption[]}
657
+ */
658
+ export var DATA_OBJECT_REFERENCE = [
659
+ {
660
+ label: 'Data store reference',
661
+ actionName: 'replace-with-data-store-reference',
662
+ className: 'bpmn-icon-data-store',
663
+ target: {
664
+ type: 'bpmn:DataStoreReference'
665
+ }
666
+ }
667
+ ];
668
+
669
+ /**
670
+ * @type {ReplaceOption[]}
671
+ */
672
+ export var DATA_STORE_REFERENCE = [
673
+ {
674
+ label: 'Data object reference',
675
+ actionName: 'replace-with-data-object-reference',
676
+ className: 'bpmn-icon-data-object',
677
+ target: {
678
+ type: 'bpmn:DataObjectReference'
679
+ }
680
+ }
681
+ ];
682
+
683
+ /**
684
+ * @type {ReplaceOption[]}
685
+ */
686
+ export var BOUNDARY_EVENT = [
687
+ {
688
+ label: 'Message boundary event',
689
+ actionName: 'replace-with-message-boundary',
690
+ className: 'bpmn-icon-intermediate-event-catch-message',
691
+ target: {
692
+ type: 'bpmn:BoundaryEvent',
693
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
694
+ cancelActivity: true
695
+ }
696
+ },
697
+ {
698
+ label: 'Timer boundary event',
699
+ actionName: 'replace-with-timer-boundary',
700
+ className: 'bpmn-icon-intermediate-event-catch-timer',
701
+ target: {
702
+ type: 'bpmn:BoundaryEvent',
703
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
704
+ cancelActivity: true
705
+ }
706
+ },
707
+ {
708
+ label: 'Escalation boundary event',
709
+ actionName: 'replace-with-escalation-boundary',
710
+ className: 'bpmn-icon-intermediate-event-catch-escalation',
711
+ target: {
712
+ type: 'bpmn:BoundaryEvent',
713
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
714
+ cancelActivity: true
715
+ }
716
+ },
717
+ {
718
+ label: 'Conditional boundary event',
719
+ actionName: 'replace-with-conditional-boundary',
720
+ className: 'bpmn-icon-intermediate-event-catch-condition',
721
+ target: {
722
+ type: 'bpmn:BoundaryEvent',
723
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
724
+ cancelActivity: true
725
+ }
726
+ },
727
+ {
728
+ label: 'Error boundary event',
729
+ actionName: 'replace-with-error-boundary',
730
+ className: 'bpmn-icon-intermediate-event-catch-error',
731
+ target: {
732
+ type: 'bpmn:BoundaryEvent',
733
+ eventDefinitionType: 'bpmn:ErrorEventDefinition',
734
+ cancelActivity: true
735
+ }
736
+ },
737
+ {
738
+ label: 'Cancel boundary event',
739
+ actionName: 'replace-with-cancel-boundary',
740
+ className: 'bpmn-icon-intermediate-event-catch-cancel',
741
+ target: {
742
+ type: 'bpmn:BoundaryEvent',
743
+ eventDefinitionType: 'bpmn:CancelEventDefinition',
744
+ cancelActivity: true
745
+ }
746
+ },
747
+ {
748
+ label: 'Signal boundary event',
749
+ actionName: 'replace-with-signal-boundary',
750
+ className: 'bpmn-icon-intermediate-event-catch-signal',
751
+ target: {
752
+ type: 'bpmn:BoundaryEvent',
753
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
754
+ cancelActivity: true
755
+ }
756
+ },
757
+ {
758
+ label: 'Compensation boundary event',
759
+ actionName: 'replace-with-compensation-boundary',
760
+ className: 'bpmn-icon-intermediate-event-catch-compensation',
761
+ target: {
762
+ type: 'bpmn:BoundaryEvent',
763
+ eventDefinitionType: 'bpmn:CompensateEventDefinition',
764
+ cancelActivity: true
765
+ }
766
+ },
767
+ {
768
+ label: 'Message boundary event (non-interrupting)',
769
+ actionName: 'replace-with-non-interrupting-message-boundary',
770
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
771
+ target: {
772
+ type: 'bpmn:BoundaryEvent',
773
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
774
+ cancelActivity: false
775
+ }
776
+ },
777
+ {
778
+ label: 'Timer boundary event (non-interrupting)',
779
+ actionName: 'replace-with-non-interrupting-timer-boundary',
780
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
781
+ target: {
782
+ type: 'bpmn:BoundaryEvent',
783
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
784
+ cancelActivity: false
785
+ }
786
+ },
787
+ {
788
+ label: 'Escalation boundary event (non-interrupting)',
789
+ actionName: 'replace-with-non-interrupting-escalation-boundary',
790
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
791
+ target: {
792
+ type: 'bpmn:BoundaryEvent',
793
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
794
+ cancelActivity: false
795
+ }
796
+ },
797
+ {
798
+ label: 'Conditional boundary event (non-interrupting)',
799
+ actionName: 'replace-with-non-interrupting-conditional-boundary',
800
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
801
+ target: {
802
+ type: 'bpmn:BoundaryEvent',
803
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
804
+ cancelActivity: false
805
+ }
806
+ },
807
+ {
808
+ label: 'Signal boundary event (non-interrupting)',
809
+ actionName: 'replace-with-non-interrupting-signal-boundary',
810
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
811
+ target: {
812
+ type: 'bpmn:BoundaryEvent',
813
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
814
+ cancelActivity: false
815
+ }
816
+ }
817
+ ];
818
+
819
+ /**
820
+ * @type {ReplaceOption[]}
821
+ */
822
+ export var EVENT_SUB_PROCESS_START_EVENT = [
823
+ {
824
+ label: 'Message start event',
825
+ actionName: 'replace-with-message-start',
826
+ className: 'bpmn-icon-start-event-message',
827
+ target: {
828
+ type: 'bpmn:StartEvent',
829
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
830
+ isInterrupting: true
831
+ }
832
+ },
833
+ {
834
+ label: 'Timer start event',
835
+ actionName: 'replace-with-timer-start',
836
+ className: 'bpmn-icon-start-event-timer',
837
+ target: {
838
+ type: 'bpmn:StartEvent',
839
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
840
+ isInterrupting: true
841
+ }
842
+ },
843
+ {
844
+ label: 'Conditional start event',
845
+ actionName: 'replace-with-conditional-start',
846
+ className: 'bpmn-icon-start-event-condition',
847
+ target: {
848
+ type: 'bpmn:StartEvent',
849
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
850
+ isInterrupting: true
851
+ }
852
+ },
853
+ {
854
+ label: 'Signal start event',
855
+ actionName: 'replace-with-signal-start',
856
+ className: 'bpmn-icon-start-event-signal',
857
+ target: {
858
+ type: 'bpmn:StartEvent',
859
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
860
+ isInterrupting: true
861
+ }
862
+ },
863
+ {
864
+ label: 'Error start event',
865
+ actionName: 'replace-with-error-start',
866
+ className: 'bpmn-icon-start-event-error',
867
+ target: {
868
+ type: 'bpmn:StartEvent',
869
+ eventDefinitionType: 'bpmn:ErrorEventDefinition',
870
+ isInterrupting: true
871
+ }
872
+ },
873
+ {
874
+ label: 'Escalation start event',
875
+ actionName: 'replace-with-escalation-start',
876
+ className: 'bpmn-icon-start-event-escalation',
877
+ target: {
878
+ type: 'bpmn:StartEvent',
879
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
880
+ isInterrupting: true
881
+ }
882
+ },
883
+ {
884
+ label: 'Compensation start event',
885
+ actionName: 'replace-with-compensation-start',
886
+ className: 'bpmn-icon-start-event-compensation',
887
+ target: {
888
+ type: 'bpmn:StartEvent',
889
+ eventDefinitionType: 'bpmn:CompensateEventDefinition',
890
+ isInterrupting: true
891
+ }
892
+ },
893
+ {
894
+ label: 'Message start event (non-interrupting)',
895
+ actionName: 'replace-with-non-interrupting-message-start',
896
+ className: 'bpmn-icon-start-event-non-interrupting-message',
897
+ target: {
898
+ type: 'bpmn:StartEvent',
899
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
900
+ isInterrupting: false
901
+ }
902
+ },
903
+ {
904
+ label: 'Timer start event (non-interrupting)',
905
+ actionName: 'replace-with-non-interrupting-timer-start',
906
+ className: 'bpmn-icon-start-event-non-interrupting-timer',
907
+ target: {
908
+ type: 'bpmn:StartEvent',
909
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
910
+ isInterrupting: false
911
+ }
912
+ },
913
+ {
914
+ label: 'Conditional start event (non-interrupting)',
915
+ actionName: 'replace-with-non-interrupting-conditional-start',
916
+ className: 'bpmn-icon-start-event-non-interrupting-condition',
917
+ target: {
918
+ type: 'bpmn:StartEvent',
919
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
920
+ isInterrupting: false
921
+ }
922
+ },
923
+ {
924
+ label: 'Signal start event (non-interrupting)',
925
+ actionName: 'replace-with-non-interrupting-signal-start',
926
+ className: 'bpmn-icon-start-event-non-interrupting-signal',
927
+ target: {
928
+ type: 'bpmn:StartEvent',
929
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
930
+ isInterrupting: false
931
+ }
932
+ },
933
+ {
934
+ label: 'Escalation start event (non-interrupting)',
935
+ actionName: 'replace-with-non-interrupting-escalation-start',
936
+ className: 'bpmn-icon-start-event-non-interrupting-escalation',
937
+ target: {
938
+ type: 'bpmn:StartEvent',
939
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
940
+ isInterrupting: false
941
+ }
942
+ }
943
+ ];
944
+
945
+ /**
946
+ * @type {ReplaceOption[]}
947
+ */
948
+ export var SEQUENCE_FLOW = [
949
+ {
950
+ label: 'Sequence flow',
951
+ actionName: 'replace-with-sequence-flow',
952
+ className: 'bpmn-icon-connection'
953
+ },
954
+ {
955
+ label: 'Default flow',
956
+ actionName: 'replace-with-default-flow',
957
+ className: 'bpmn-icon-default-flow'
958
+ },
959
+ {
960
+ label: 'Conditional flow',
961
+ actionName: 'replace-with-conditional-flow',
962
+ className: 'bpmn-icon-conditional-flow'
963
+ }
964
+ ];
965
+
966
+ /**
967
+ * @type {ReplaceOption[]}
968
+ */
969
+ export var PARTICIPANT = [
970
+ {
971
+ label: 'Expanded pool/participant',
972
+ actionName: 'replace-with-expanded-pool',
973
+ className: 'bpmn-icon-participant',
974
+ target: {
975
+ type: 'bpmn:Participant',
976
+ isExpanded: true
977
+ }
978
+ },
979
+ {
980
+ label: function(element) {
981
+ var label = 'Empty pool/participant';
982
+
983
+ if (element.children && element.children.length) {
984
+ label += ' (removes content)';
985
+ }
986
+
987
+ return label;
988
+ },
989
+ actionName: 'replace-with-collapsed-pool',
990
+
991
+ // TODO(@janstuemmel): maybe design new icon
992
+ className: 'bpmn-icon-lane',
993
+ target: {
994
+ type: 'bpmn:Participant',
995
+ isExpanded: false
996
+ }
997
+ }
998
+ ];
999
+
1000
+ /**
1001
+ * @type {{ [key: string]: ReplaceOption[]}}
1002
+ */
1003
+ export var TYPED_EVENT = {
1004
+ 'bpmn:MessageEventDefinition': [
1005
+ {
1006
+ label: 'Message start event',
1007
+ actionName: 'replace-with-message-start',
1008
+ className: 'bpmn-icon-start-event-message',
1009
+ target: {
1010
+ type: 'bpmn:StartEvent',
1011
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
1012
+ }
1013
+ },
1014
+ {
1015
+ label: 'Message intermediate catch event',
1016
+ actionName: 'replace-with-message-intermediate-catch',
1017
+ className: 'bpmn-icon-intermediate-event-catch-message',
1018
+ target: {
1019
+ type: 'bpmn:IntermediateCatchEvent',
1020
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
1021
+ }
1022
+ },
1023
+ {
1024
+ label: 'Message intermediate throw event',
1025
+ actionName: 'replace-with-message-intermediate-throw',
1026
+ className: 'bpmn-icon-intermediate-event-throw-message',
1027
+ target: {
1028
+ type: 'bpmn:IntermediateThrowEvent',
1029
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
1030
+ }
1031
+ },
1032
+ {
1033
+ label: 'Message end event',
1034
+ actionName: 'replace-with-message-end',
1035
+ className: 'bpmn-icon-end-event-message',
1036
+ target: {
1037
+ type: 'bpmn:EndEvent',
1038
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
1039
+ }
1040
+ }
1041
+ ],
1042
+ 'bpmn:TimerEventDefinition': [
1043
+ {
1044
+ label: 'Timer start event',
1045
+ actionName: 'replace-with-timer-start',
1046
+ className: 'bpmn-icon-start-event-timer',
1047
+ target: {
1048
+ type: 'bpmn:StartEvent',
1049
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
1050
+ }
1051
+ },
1052
+ {
1053
+ label: 'Timer intermediate catch event',
1054
+ actionName: 'replace-with-timer-intermediate-catch',
1055
+ className: 'bpmn-icon-intermediate-event-catch-timer',
1056
+ target: {
1057
+ type: 'bpmn:IntermediateCatchEvent',
1058
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
1059
+ }
1060
+ }
1061
+ ],
1062
+ 'bpmn:ConditionalEventDefinition': [
1063
+ {
1064
+ label: 'Conditional start event',
1065
+ actionName: 'replace-with-conditional-start',
1066
+ className: 'bpmn-icon-start-event-condition',
1067
+ target: {
1068
+ type: 'bpmn:StartEvent',
1069
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
1070
+ }
1071
+ },
1072
+ {
1073
+ label: 'Conditional intermediate catch event',
1074
+ actionName: 'replace-with-conditional-intermediate-catch',
1075
+ className: 'bpmn-icon-intermediate-event-catch-condition',
1076
+ target: {
1077
+ type: 'bpmn:IntermediateCatchEvent',
1078
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
1079
+ }
1080
+ }
1081
+ ],
1082
+ 'bpmn:SignalEventDefinition': [
1083
+ {
1084
+ label: 'Signal start event',
1085
+ actionName: 'replace-with-signal-start',
1086
+ className: 'bpmn-icon-start-event-signal',
1087
+ target: {
1088
+ type: 'bpmn:StartEvent',
1089
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
1090
+ }
1091
+ },
1092
+ {
1093
+ label: 'Signal intermediate catch event',
1094
+ actionName: 'replace-with-signal-intermediate-catch',
1095
+ className: 'bpmn-icon-intermediate-event-catch-signal',
1096
+ target: {
1097
+ type: 'bpmn:IntermediateCatchEvent',
1098
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
1099
+ }
1100
+ },
1101
+ {
1102
+ label: 'Signal intermediate throw event',
1103
+ actionName: 'replace-with-signal-intermediate-throw',
1104
+ className: 'bpmn-icon-intermediate-event-throw-signal',
1105
+ target: {
1106
+ type: 'bpmn:IntermediateThrowEvent',
1107
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
1108
+ }
1109
+ },
1110
+ {
1111
+ label: 'Signal end event',
1112
+ actionName: 'replace-with-signal-end',
1113
+ className: 'bpmn-icon-end-event-signal',
1114
+ target: {
1115
+ type: 'bpmn:EndEvent',
1116
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
1117
+ }
1118
+ }
1119
+ ],
1120
+ 'bpmn:ErrorEventDefinition': [
1121
+ {
1122
+ label: 'Error start event',
1123
+ actionName: 'replace-with-error-start',
1124
+ className: 'bpmn-icon-start-event-error',
1125
+ target: {
1126
+ type: 'bpmn:StartEvent',
1127
+ eventDefinitionType: 'bpmn:ErrorEventDefinition'
1128
+ }
1129
+ },
1130
+ {
1131
+ label: 'Error end event',
1132
+ actionName: 'replace-with-error-end',
1133
+ className: 'bpmn-icon-end-event-error',
1134
+ target: {
1135
+ type: 'bpmn:EndEvent',
1136
+ eventDefinitionType: 'bpmn:ErrorEventDefinition'
1137
+ }
1138
+ }
1139
+ ],
1140
+ 'bpmn:EscalationEventDefinition': [
1141
+ {
1142
+ label: 'Escalation start event',
1143
+ actionName: 'replace-with-escalation-start',
1144
+ className: 'bpmn-icon-start-event-escalation',
1145
+ target: {
1146
+ type: 'bpmn:StartEvent',
1147
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
1148
+ }
1149
+ },
1150
+ {
1151
+ label: 'Escalation intermediate throw event',
1152
+ actionName: 'replace-with-escalation-intermediate-throw',
1153
+ className: 'bpmn-icon-intermediate-event-throw-escalation',
1154
+ target: {
1155
+ type: 'bpmn:IntermediateThrowEvent',
1156
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
1157
+ }
1158
+ },
1159
+ {
1160
+ label: 'Escalation end event',
1161
+ actionName: 'replace-with-escalation-end',
1162
+ className: 'bpmn-icon-end-event-escalation',
1163
+ target: {
1164
+ type: 'bpmn:EndEvent',
1165
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
1166
+ }
1167
+ }
1168
+ ],
1169
+ 'bpmn:CompensateEventDefinition': [
1170
+ {
1171
+ label: 'Compensation start event',
1172
+ actionName: 'replace-with-compensation-start',
1173
+ className: 'bpmn-icon-start-event-compensation',
1174
+ target: {
1175
+ type: 'bpmn:StartEvent',
1176
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
1177
+ }
1178
+ },
1179
+ {
1180
+ label: 'Compensation intermediate throw event',
1181
+ actionName: 'replace-with-compensation-intermediate-throw',
1182
+ className: 'bpmn-icon-intermediate-event-throw-compensation',
1183
+ target: {
1184
+ type: 'bpmn:IntermediateThrowEvent',
1185
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
1186
+ }
1187
+ },
1188
+ {
1189
+ label: 'Compensation end event',
1190
+ actionName: 'replace-with-compensation-end',
1191
+ className: 'bpmn-icon-end-event-compensation',
1192
+ target: {
1193
+ type: 'bpmn:EndEvent',
1194
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
1195
+ }
1196
+ }
1197
+ ]
1198
+ };