bpmn-js 17.6.0 → 17.6.2

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 +93 -93
  3. package/dist/assets/bpmn-js.css +145 -145
  4. package/dist/assets/diagram-js.css +966 -969
  5. package/dist/bpmn-modeler.development.js +59330 -59198
  6. package/dist/bpmn-modeler.production.min.js +8 -8
  7. package/dist/bpmn-navigated-viewer.development.js +22449 -22449
  8. package/dist/bpmn-navigated-viewer.production.min.js +1 -1
  9. package/dist/bpmn-viewer.development.js +21433 -21433
  10. package/dist/bpmn-viewer.production.min.js +1 -1
  11. package/index.js +2 -2
  12. package/lib/BaseModeler.d.ts +15 -15
  13. package/lib/BaseModeler.js +79 -79
  14. package/lib/BaseViewer.d.ts +352 -352
  15. package/lib/BaseViewer.js +858 -858
  16. package/lib/Modeler.d.ts +86 -86
  17. package/lib/Modeler.js +204 -204
  18. package/lib/NavigatedViewer.d.ts +11 -11
  19. package/lib/NavigatedViewer.js +37 -37
  20. package/lib/Viewer.d.ts +47 -47
  21. package/lib/Viewer.js +78 -78
  22. package/lib/core/index.d.ts +10 -10
  23. package/lib/core/index.js +8 -8
  24. package/lib/draw/BpmnRenderUtil.d.ts +123 -123
  25. package/lib/draw/BpmnRenderUtil.js +256 -256
  26. package/lib/draw/BpmnRenderer.d.ts +114 -114
  27. package/lib/draw/BpmnRenderer.js +2340 -2340
  28. package/lib/draw/PathMap.d.ts +330 -330
  29. package/lib/draw/PathMap.js +478 -478
  30. package/lib/draw/TextRenderer.d.ts +74 -74
  31. package/lib/draw/TextRenderer.js +136 -136
  32. package/lib/draw/index.d.ts +10 -10
  33. package/lib/draw/index.js +11 -11
  34. package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +32 -32
  35. package/lib/features/align-elements/AlignElementsContextPadProvider.js +105 -105
  36. package/lib/features/align-elements/AlignElementsIcons.d.ts +10 -10
  37. package/lib/features/align-elements/AlignElementsIcons.js +43 -43
  38. package/lib/features/align-elements/AlignElementsMenuProvider.d.ts +32 -32
  39. package/lib/features/align-elements/AlignElementsMenuProvider.js +100 -100
  40. package/lib/features/align-elements/BpmnAlignElements.d.ts +9 -9
  41. package/lib/features/align-elements/BpmnAlignElements.js +45 -45
  42. package/lib/features/align-elements/index.d.ts +11 -11
  43. package/lib/features/align-elements/index.js +23 -23
  44. package/lib/features/append-preview/AppendPreview.d.ts +36 -36
  45. package/lib/features/append-preview/AppendPreview.js +108 -108
  46. package/lib/features/append-preview/index.d.ts +16 -16
  47. package/lib/features/append-preview/index.js +15 -15
  48. package/lib/features/auto-place/BpmnAutoPlace.d.ts +13 -13
  49. package/lib/features/auto-place/BpmnAutoPlace.js +20 -20
  50. package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +47 -47
  51. package/lib/features/auto-place/BpmnAutoPlaceUtil.js +225 -225
  52. package/lib/features/auto-place/index.d.ts +7 -7
  53. package/lib/features/auto-place/index.js +8 -8
  54. package/lib/features/auto-resize/BpmnAutoResize.d.ts +25 -25
  55. package/lib/features/auto-resize/BpmnAutoResize.js +45 -45
  56. package/lib/features/auto-resize/BpmnAutoResizeProvider.d.ts +26 -26
  57. package/lib/features/auto-resize/BpmnAutoResizeProvider.js +69 -69
  58. package/lib/features/auto-resize/index.d.ts +8 -8
  59. package/lib/features/auto-resize/index.js +12 -12
  60. package/lib/features/context-pad/ContextPadProvider.d.ts +73 -73
  61. package/lib/features/context-pad/ContextPadProvider.js +591 -591
  62. package/lib/features/context-pad/index.d.ts +7 -7
  63. package/lib/features/context-pad/index.js +22 -22
  64. package/lib/features/copy-paste/BpmnCopyPaste.d.ts +17 -17
  65. package/lib/features/copy-paste/BpmnCopyPaste.js +192 -192
  66. package/lib/features/copy-paste/ModdleCopy.d.ts +45 -45
  67. package/lib/features/copy-paste/ModdleCopy.js +275 -275
  68. package/lib/features/copy-paste/index.d.ts +9 -9
  69. package/lib/features/copy-paste/index.js +13 -13
  70. package/lib/features/di-ordering/BpmnDiOrdering.d.ts +11 -11
  71. package/lib/features/di-ordering/BpmnDiOrdering.js +48 -48
  72. package/lib/features/di-ordering/index.d.ts +6 -6
  73. package/lib/features/di-ordering/index.js +7 -7
  74. package/lib/features/distribute-elements/BpmnDistributeElements.d.ts +10 -10
  75. package/lib/features/distribute-elements/BpmnDistributeElements.js +60 -60
  76. package/lib/features/distribute-elements/DistributeElementsIcons.d.ts +5 -5
  77. package/lib/features/distribute-elements/DistributeElementsIcons.js +18 -18
  78. package/lib/features/distribute-elements/DistributeElementsMenuProvider.d.ts +32 -32
  79. package/lib/features/distribute-elements/DistributeElementsMenuProvider.js +92 -92
  80. package/lib/features/distribute-elements/index.d.ts +9 -9
  81. package/lib/features/distribute-elements/index.js +19 -19
  82. package/lib/features/drilldown/DrilldownBreadcrumbs.d.ts +19 -19
  83. package/lib/features/drilldown/DrilldownBreadcrumbs.js +131 -131
  84. package/lib/features/drilldown/DrilldownCentering.d.ts +17 -17
  85. package/lib/features/drilldown/DrilldownCentering.js +122 -122
  86. package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +18 -18
  87. package/lib/features/drilldown/DrilldownOverlayBehavior.js +210 -210
  88. package/lib/features/drilldown/SubprocessCompatibility.d.ts +21 -21
  89. package/lib/features/drilldown/SubprocessCompatibility.js +268 -268
  90. package/lib/features/drilldown/index.d.ts +13 -13
  91. package/lib/features/drilldown/index.js +16 -16
  92. package/lib/features/editor-actions/BpmnEditorActions.d.ts +13 -13
  93. package/lib/features/editor-actions/BpmnEditorActions.js +187 -187
  94. package/lib/features/editor-actions/index.d.ts +6 -6
  95. package/lib/features/editor-actions/index.js +10 -10
  96. package/lib/features/grid-snapping/BpmnGridSnapping.d.ts +9 -9
  97. package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +12 -12
  98. package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.d.ts +27 -27
  99. package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.js +155 -155
  100. package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.d.ts +13 -13
  101. package/lib/features/grid-snapping/behavior/index.d.ts +10 -10
  102. package/lib/features/grid-snapping/index.d.ts +11 -11
  103. package/lib/features/interaction-events/BpmnInteractionEvents.d.ts +18 -18
  104. package/lib/features/interaction-events/BpmnInteractionEvents.js +150 -150
  105. package/lib/features/interaction-events/index.d.ts +6 -6
  106. package/lib/features/interaction-events/index.js +5 -5
  107. package/lib/features/keyboard/BpmnKeyboardBindings.d.ts +15 -15
  108. package/lib/features/keyboard/BpmnKeyboardBindings.js +179 -179
  109. package/lib/features/keyboard/index.d.ts +7 -7
  110. package/lib/features/keyboard/index.js +11 -11
  111. package/lib/features/label-editing/LabelEditingPreview.d.ts +13 -13
  112. package/lib/features/label-editing/LabelEditingPreview.js +144 -144
  113. package/lib/features/label-editing/LabelEditingProvider.d.ts +62 -62
  114. package/lib/features/label-editing/LabelEditingProvider.js +519 -519
  115. package/lib/features/label-editing/LabelUtil.d.ts +1 -1
  116. package/lib/features/label-editing/LabelUtil.js +4 -4
  117. package/lib/features/label-editing/cmd/UpdateLabelHandler.d.ts +22 -22
  118. package/lib/features/label-editing/cmd/UpdateLabelHandler.js +149 -149
  119. package/lib/features/label-editing/index.d.ts +9 -9
  120. package/lib/features/label-editing/index.js +21 -21
  121. package/lib/features/modeling/BpmnFactory.d.ts +73 -73
  122. package/lib/features/modeling/BpmnFactory.js +180 -180
  123. package/lib/features/modeling/BpmnLayouter.d.ts +26 -26
  124. package/lib/features/modeling/BpmnLayouter.js +481 -481
  125. package/lib/features/modeling/BpmnUpdater.d.ts +90 -90
  126. package/lib/features/modeling/BpmnUpdater.js +837 -837
  127. package/lib/features/modeling/ElementFactory.d.ts +117 -117
  128. package/lib/features/modeling/ElementFactory.js +406 -406
  129. package/lib/features/modeling/ElementFactory.test.ts +132 -132
  130. package/lib/features/modeling/Modeling.d.ts +150 -150
  131. package/lib/features/modeling/Modeling.js +307 -307
  132. package/lib/features/modeling/Modeling.test.ts +147 -147
  133. package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.d.ts +20 -20
  134. package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.js +284 -284
  135. package/lib/features/modeling/behavior/AppendBehavior.d.ts +6 -6
  136. package/lib/features/modeling/behavior/AppendBehavior.js +42 -42
  137. package/lib/features/modeling/behavior/AssociationBehavior.d.ts +11 -11
  138. package/lib/features/modeling/behavior/AttachEventBehavior.d.ts +15 -15
  139. package/lib/features/modeling/behavior/AttachEventBehavior.js +106 -106
  140. package/lib/features/modeling/behavior/BoundaryEventBehavior.d.ts +15 -15
  141. package/lib/features/modeling/behavior/BoundaryEventBehavior.js +74 -74
  142. package/lib/features/modeling/behavior/CompensateBoundaryEventBehavior.d.ts +17 -17
  143. package/lib/features/modeling/behavior/CompensateBoundaryEventBehavior.js +222 -222
  144. package/lib/features/modeling/behavior/CreateBehavior.d.ts +9 -9
  145. package/lib/features/modeling/behavior/CreateBehavior.js +33 -33
  146. package/lib/features/modeling/behavior/CreateDataObjectBehavior.d.ts +15 -15
  147. package/lib/features/modeling/behavior/CreateDataObjectBehavior.js +43 -43
  148. package/lib/features/modeling/behavior/CreateParticipantBehavior.d.ts +19 -19
  149. package/lib/features/modeling/behavior/CreateParticipantBehavior.js +237 -237
  150. package/lib/features/modeling/behavior/DataInputAssociationBehavior.d.ts +21 -21
  151. package/lib/features/modeling/behavior/DataInputAssociationBehavior.js +162 -162
  152. package/lib/features/modeling/behavior/DataStoreBehavior.d.ts +19 -19
  153. package/lib/features/modeling/behavior/DeleteLaneBehavior.d.ts +15 -15
  154. package/lib/features/modeling/behavior/DeleteLaneBehavior.js +162 -162
  155. package/lib/features/modeling/behavior/DetachEventBehavior.d.ts +15 -15
  156. package/lib/features/modeling/behavior/DetachEventBehavior.js +101 -101
  157. package/lib/features/modeling/behavior/DropOnFlowBehavior.d.ts +13 -13
  158. package/lib/features/modeling/behavior/DropOnFlowBehavior.js +221 -221
  159. package/lib/features/modeling/behavior/EventBasedGatewayBehavior.d.ts +11 -11
  160. package/lib/features/modeling/behavior/EventBasedGatewayBehavior.js +110 -110
  161. package/lib/features/modeling/behavior/FixHoverBehavior.d.ts +17 -17
  162. package/lib/features/modeling/behavior/GroupBehavior.d.ts +26 -26
  163. package/lib/features/modeling/behavior/GroupBehavior.js +332 -332
  164. package/lib/features/modeling/behavior/ImportDockingFix.d.ts +13 -13
  165. package/lib/features/modeling/behavior/ImportDockingFix.js +83 -83
  166. package/lib/features/modeling/behavior/IsHorizontalFix.d.ts +10 -10
  167. package/lib/features/modeling/behavior/IsHorizontalFix.js +54 -54
  168. package/lib/features/modeling/behavior/LabelBehavior.d.ts +56 -56
  169. package/lib/features/modeling/behavior/LabelBehavior.js +364 -364
  170. package/lib/features/modeling/behavior/LayoutConnectionBehavior.d.ts +16 -16
  171. package/lib/features/modeling/behavior/LayoutConnectionBehavior.js +121 -121
  172. package/lib/features/modeling/behavior/MessageFlowBehavior.d.ts +15 -15
  173. package/lib/features/modeling/behavior/NonInterruptingBehavior.d.ts +4 -4
  174. package/lib/features/modeling/behavior/NonInterruptingBehavior.js +41 -41
  175. package/lib/features/modeling/behavior/RemoveElementBehavior.d.ts +13 -13
  176. package/lib/features/modeling/behavior/RemoveElementBehavior.js +91 -91
  177. package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.d.ts +16 -16
  178. package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.js +41 -41
  179. package/lib/features/modeling/behavior/RemoveParticipantBehavior.d.ts +15 -15
  180. package/lib/features/modeling/behavior/RemoveParticipantBehavior.js +54 -54
  181. package/lib/features/modeling/behavior/ReplaceConnectionBehavior.d.ts +15 -15
  182. package/lib/features/modeling/behavior/ReplaceConnectionBehavior.js +194 -194
  183. package/lib/features/modeling/behavior/ReplaceElementBehaviour.d.ts +23 -23
  184. package/lib/features/modeling/behavior/ReplaceElementBehaviour.js +144 -144
  185. package/lib/features/modeling/behavior/ResizeBehavior.d.ts +67 -67
  186. package/lib/features/modeling/behavior/ResizeBehavior.js +262 -262
  187. package/lib/features/modeling/behavior/ResizeLaneBehavior.d.ts +16 -16
  188. package/lib/features/modeling/behavior/ResizeLaneBehavior.js +70 -70
  189. package/lib/features/modeling/behavior/RootElementReferenceBehavior.d.ts +25 -25
  190. package/lib/features/modeling/behavior/SpaceToolBehavior.d.ts +10 -10
  191. package/lib/features/modeling/behavior/SpaceToolBehavior.js +207 -207
  192. package/lib/features/modeling/behavior/SubProcessPlaneBehavior.d.ts +28 -28
  193. package/lib/features/modeling/behavior/SubProcessPlaneBehavior.js +588 -588
  194. package/lib/features/modeling/behavior/SubProcessStartEventBehavior.d.ts +15 -15
  195. package/lib/features/modeling/behavior/SubProcessStartEventBehavior.js +55 -55
  196. package/lib/features/modeling/behavior/TextAnnotationBehavior.d.ts +6 -6
  197. package/lib/features/modeling/behavior/TextAnnotationBehavior.js +42 -42
  198. package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.d.ts +14 -14
  199. package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.js +87 -87
  200. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.d.ts +13 -13
  201. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +156 -156
  202. package/lib/features/modeling/behavior/UnclaimIdBehavior.d.ts +19 -19
  203. package/lib/features/modeling/behavior/UnclaimIdBehavior.js +64 -64
  204. package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.d.ts +16 -16
  205. package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.js +59 -59
  206. package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.d.ts +15 -15
  207. package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.js +157 -157
  208. package/lib/features/modeling/behavior/index.d.ts +2 -2
  209. package/lib/features/modeling/behavior/index.js +128 -128
  210. package/lib/features/modeling/behavior/util/CategoryUtil.d.ts +49 -49
  211. package/lib/features/modeling/behavior/util/CategoryUtil.js +86 -86
  212. package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.d.ts +19 -19
  213. package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.js +22 -22
  214. package/lib/features/modeling/behavior/util/GeometricUtil.d.ts +1 -1
  215. package/lib/features/modeling/behavior/util/LabelLayoutUtil.d.ts +32 -32
  216. package/lib/features/modeling/behavior/util/LabelLayoutUtil.js +41 -41
  217. package/lib/features/modeling/behavior/util/LayoutUtil.d.ts +48 -48
  218. package/lib/features/modeling/behavior/util/LayoutUtil.js +259 -259
  219. package/lib/features/modeling/behavior/util/LineAttachmentUtil.d.ts +37 -37
  220. package/lib/features/modeling/behavior/util/LineAttachmentUtil.js +241 -241
  221. package/lib/features/modeling/behavior/util/LineIntersect.d.ts +13 -13
  222. package/lib/features/modeling/behavior/util/LineIntersect.js +39 -39
  223. package/lib/features/modeling/behavior/util/NonInterruptingUtil.d.ts +3 -3
  224. package/lib/features/modeling/behavior/util/NonInterruptingUtil.js +32 -32
  225. package/lib/features/modeling/behavior/util/ResizeUtil.d.ts +1 -1
  226. package/lib/features/modeling/cmd/AddLaneHandler.d.ts +22 -22
  227. package/lib/features/modeling/cmd/AddLaneHandler.js +192 -192
  228. package/lib/features/modeling/cmd/IdClaimHandler.d.ts +22 -22
  229. package/lib/features/modeling/cmd/IdClaimHandler.js +51 -51
  230. package/lib/features/modeling/cmd/ResizeLaneHandler.d.ts +39 -39
  231. package/lib/features/modeling/cmd/ResizeLaneHandler.js +146 -146
  232. package/lib/features/modeling/cmd/SetColorHandler.d.ts +18 -18
  233. package/lib/features/modeling/cmd/SplitLaneHandler.d.ts +20 -20
  234. package/lib/features/modeling/cmd/SplitLaneHandler.js +99 -99
  235. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.d.ts +20 -20
  236. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +99 -99
  237. package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.d.ts +21 -21
  238. package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.js +218 -218
  239. package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.d.ts +20 -20
  240. package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js +107 -107
  241. package/lib/features/modeling/cmd/UpdatePropertiesHandler.d.ts +58 -58
  242. package/lib/features/modeling/cmd/UpdatePropertiesHandler.js +260 -260
  243. package/lib/features/modeling/cmd/UpdateSemanticParentHandler.d.ts +18 -18
  244. package/lib/features/modeling/index.d.ts +27 -27
  245. package/lib/features/modeling/index.js +45 -45
  246. package/lib/features/modeling/util/LaneUtil.d.ts +46 -46
  247. package/lib/features/modeling/util/LaneUtil.js +188 -188
  248. package/lib/features/modeling/util/ModelingUtil.d.ts +21 -21
  249. package/lib/features/modeling/util/ModelingUtil.js +54 -54
  250. package/lib/features/modeling-feedback/ModelingFeedback.d.ts +13 -13
  251. package/lib/features/modeling-feedback/ModelingFeedback.js +46 -46
  252. package/lib/features/modeling-feedback/index.d.ts +7 -7
  253. package/lib/features/modeling-feedback/index.js +12 -12
  254. package/lib/features/ordering/BpmnOrderingProvider.d.ts +19 -19
  255. package/lib/features/ordering/BpmnOrderingProvider.js +191 -191
  256. package/lib/features/ordering/index.d.ts +6 -6
  257. package/lib/features/ordering/index.js +5 -5
  258. package/lib/features/outline/OutlineProvider.d.ts +34 -34
  259. package/lib/features/outline/OutlineProvider.js +179 -179
  260. package/lib/features/outline/OutlineUtil.d.ts +18 -18
  261. package/lib/features/outline/OutlineUtil.js +31 -31
  262. package/lib/features/outline/index.d.ts +7 -7
  263. package/lib/features/outline/index.js +10 -10
  264. package/lib/features/palette/PaletteProvider.d.ts +34 -34
  265. package/lib/features/palette/PaletteProvider.js +214 -214
  266. package/lib/features/palette/index.d.ts +9 -9
  267. package/lib/features/palette/index.js +23 -23
  268. package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +52 -52
  269. package/lib/features/popup-menu/ReplaceMenuProvider.js +679 -679
  270. package/lib/features/popup-menu/index.d.ts +11 -11
  271. package/lib/features/popup-menu/index.js +16 -16
  272. package/lib/features/popup-menu/util/Icons.d.ts +5 -5
  273. package/lib/features/popup-menu/util/Icons.js +14 -14
  274. package/lib/features/popup-menu/util/TypeUtil.d.ts +14 -14
  275. package/lib/features/popup-menu/util/TypeUtil.js +52 -52
  276. package/lib/features/replace/BpmnReplace.d.ts +47 -47
  277. package/lib/features/replace/BpmnReplace.js +382 -382
  278. package/lib/features/replace/ReplaceOptions.d.ts +75 -75
  279. package/lib/features/replace/ReplaceOptions.js +919 -919
  280. package/lib/features/replace/index.d.ts +9 -9
  281. package/lib/features/replace/index.js +14 -14
  282. package/lib/features/replace-preview/BpmnReplacePreview.d.ts +17 -17
  283. package/lib/features/replace-preview/BpmnReplacePreview.js +139 -139
  284. package/lib/features/replace-preview/index.d.ts +7 -7
  285. package/lib/features/replace-preview/index.js +11 -11
  286. package/lib/features/rules/BpmnRules.d.ts +181 -181
  287. package/lib/features/rules/BpmnRules.js +1191 -1191
  288. package/lib/features/rules/index.d.ts +7 -7
  289. package/lib/features/rules/index.js +11 -11
  290. package/lib/features/search/BpmnSearchProvider.d.ts +29 -29
  291. package/lib/features/search/BpmnSearchProvider.js +136 -136
  292. package/lib/features/search/index.d.ts +7 -7
  293. package/lib/features/search/index.js +12 -12
  294. package/lib/features/snapping/BpmnConnectSnapping.d.ts +17 -17
  295. package/lib/features/snapping/BpmnCreateMoveSnapping.d.ts +41 -41
  296. package/lib/features/snapping/BpmnCreateMoveSnapping.js +289 -289
  297. package/lib/features/snapping/BpmnSnappingUtil.d.ts +11 -11
  298. package/lib/features/snapping/index.d.ts +9 -9
  299. package/lib/features/snapping/index.js +12 -12
  300. package/lib/features/space-tool/BpmnSpaceTool.d.ts +21 -21
  301. package/lib/features/space-tool/BpmnSpaceTool.js +69 -69
  302. package/lib/features/space-tool/index.d.ts +6 -6
  303. package/lib/features/space-tool/index.js +7 -7
  304. package/lib/import/BpmnImporter.d.ts +51 -51
  305. package/lib/import/BpmnImporter.js +363 -363
  306. package/lib/import/BpmnTreeWalker.d.ts +20 -20
  307. package/lib/import/BpmnTreeWalker.js +453 -453
  308. package/lib/import/Importer.d.ts +25 -25
  309. package/lib/import/Importer.js +217 -217
  310. package/lib/import/Util.d.ts +1 -1
  311. package/lib/import/Util.js +6 -6
  312. package/lib/import/index.d.ts +6 -6
  313. package/lib/import/index.js +9 -9
  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 +262 -262
  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 +132 -132
  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,919 +1,919 @@
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: 'Sub-process (collapsed)',
432
- actionName: 'replace-with-collapsed-subprocess',
433
- className: 'bpmn-icon-subprocess-collapsed',
434
- target: {
435
- type: 'bpmn:SubProcess',
436
- isExpanded: false
437
- }
438
- }
439
- ];
440
-
441
- /**
442
- * @type {ReplaceOption[]}
443
- */
444
- export var TRANSACTION = [
445
- {
446
- label: 'Transaction',
447
- actionName: 'replace-with-transaction',
448
- className: 'bpmn-icon-transaction',
449
- target: {
450
- type: 'bpmn:Transaction',
451
- isExpanded: true
452
- }
453
- },
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: 'Event sub-process',
465
- actionName: 'replace-with-event-subprocess',
466
- className: 'bpmn-icon-event-subprocess-expanded',
467
- target: {
468
- type: 'bpmn:SubProcess',
469
- triggeredByEvent: true,
470
- isExpanded: true
471
- }
472
- }
473
- ];
474
-
475
- /**
476
- * @type {ReplaceOption[]}
477
- */
478
- export var EVENT_SUB_PROCESS = TRANSACTION;
479
-
480
- /**
481
- * @type {ReplaceOption[]}
482
- */
483
- export var TASK = [
484
- {
485
- label: 'Task',
486
- actionName: 'replace-with-task',
487
- className: 'bpmn-icon-task',
488
- target: {
489
- type: 'bpmn:Task'
490
- }
491
- },
492
- {
493
- label: 'User task',
494
- actionName: 'replace-with-user-task',
495
- className: 'bpmn-icon-user',
496
- target: {
497
- type: 'bpmn:UserTask'
498
- }
499
- },
500
- {
501
- label: 'Service task',
502
- actionName: 'replace-with-service-task',
503
- className: 'bpmn-icon-service',
504
- target: {
505
- type: 'bpmn:ServiceTask'
506
- }
507
- },
508
- {
509
- label: 'Send task',
510
- actionName: 'replace-with-send-task',
511
- className: 'bpmn-icon-send',
512
- target: {
513
- type: 'bpmn:SendTask'
514
- }
515
- },
516
- {
517
- label: 'Receive task',
518
- actionName: 'replace-with-receive-task',
519
- className: 'bpmn-icon-receive',
520
- target: {
521
- type: 'bpmn:ReceiveTask'
522
- }
523
- },
524
- {
525
- label: 'Manual task',
526
- actionName: 'replace-with-manual-task',
527
- className: 'bpmn-icon-manual',
528
- target: {
529
- type: 'bpmn:ManualTask'
530
- }
531
- },
532
- {
533
- label: 'Business rule task',
534
- actionName: 'replace-with-rule-task',
535
- className: 'bpmn-icon-business-rule',
536
- target: {
537
- type: 'bpmn:BusinessRuleTask'
538
- }
539
- },
540
- {
541
- label: 'Script task',
542
- actionName: 'replace-with-script-task',
543
- className: 'bpmn-icon-script',
544
- target: {
545
- type: 'bpmn:ScriptTask'
546
- }
547
- },
548
- {
549
- label: 'Call activity',
550
- actionName: 'replace-with-call-activity',
551
- className: 'bpmn-icon-call-activity',
552
- target: {
553
- type: 'bpmn:CallActivity'
554
- }
555
- },
556
- {
557
- label: 'Sub-process (collapsed)',
558
- actionName: 'replace-with-collapsed-subprocess',
559
- className: 'bpmn-icon-subprocess-collapsed',
560
- target: {
561
- type: 'bpmn:SubProcess',
562
- isExpanded: false
563
- }
564
- },
565
- {
566
- label: 'Sub-process (expanded)',
567
- actionName: 'replace-with-expanded-subprocess',
568
- className: 'bpmn-icon-subprocess-expanded',
569
- target: {
570
- type: 'bpmn:SubProcess',
571
- isExpanded: true
572
- }
573
- }
574
- ];
575
-
576
- /**
577
- * @type {ReplaceOption[]}
578
- */
579
- export var DATA_OBJECT_REFERENCE = [
580
- {
581
- label: 'Data store reference',
582
- actionName: 'replace-with-data-store-reference',
583
- className: 'bpmn-icon-data-store',
584
- target: {
585
- type: 'bpmn:DataStoreReference'
586
- }
587
- }
588
- ];
589
-
590
- /**
591
- * @type {ReplaceOption[]}
592
- */
593
- export var DATA_STORE_REFERENCE = [
594
- {
595
- label: 'Data object reference',
596
- actionName: 'replace-with-data-object-reference',
597
- className: 'bpmn-icon-data-object',
598
- target: {
599
- type: 'bpmn:DataObjectReference'
600
- }
601
- }
602
- ];
603
-
604
- /**
605
- * @type {ReplaceOption[]}
606
- */
607
- export var BOUNDARY_EVENT = [
608
- {
609
- label: 'Message boundary event',
610
- actionName: 'replace-with-message-boundary',
611
- className: 'bpmn-icon-intermediate-event-catch-message',
612
- target: {
613
- type: 'bpmn:BoundaryEvent',
614
- eventDefinitionType: 'bpmn:MessageEventDefinition',
615
- cancelActivity: true
616
- }
617
- },
618
- {
619
- label: 'Timer boundary event',
620
- actionName: 'replace-with-timer-boundary',
621
- className: 'bpmn-icon-intermediate-event-catch-timer',
622
- target: {
623
- type: 'bpmn:BoundaryEvent',
624
- eventDefinitionType: 'bpmn:TimerEventDefinition',
625
- cancelActivity: true
626
- }
627
- },
628
- {
629
- label: 'Escalation boundary event',
630
- actionName: 'replace-with-escalation-boundary',
631
- className: 'bpmn-icon-intermediate-event-catch-escalation',
632
- target: {
633
- type: 'bpmn:BoundaryEvent',
634
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
635
- cancelActivity: true
636
- }
637
- },
638
- {
639
- label: 'Conditional boundary event',
640
- actionName: 'replace-with-conditional-boundary',
641
- className: 'bpmn-icon-intermediate-event-catch-condition',
642
- target: {
643
- type: 'bpmn:BoundaryEvent',
644
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
645
- cancelActivity: true
646
- }
647
- },
648
- {
649
- label: 'Error boundary event',
650
- actionName: 'replace-with-error-boundary',
651
- className: 'bpmn-icon-intermediate-event-catch-error',
652
- target: {
653
- type: 'bpmn:BoundaryEvent',
654
- eventDefinitionType: 'bpmn:ErrorEventDefinition',
655
- cancelActivity: true
656
- }
657
- },
658
- {
659
- label: 'Cancel boundary event',
660
- actionName: 'replace-with-cancel-boundary',
661
- className: 'bpmn-icon-intermediate-event-catch-cancel',
662
- target: {
663
- type: 'bpmn:BoundaryEvent',
664
- eventDefinitionType: 'bpmn:CancelEventDefinition',
665
- cancelActivity: true
666
- }
667
- },
668
- {
669
- label: 'Signal boundary event',
670
- actionName: 'replace-with-signal-boundary',
671
- className: 'bpmn-icon-intermediate-event-catch-signal',
672
- target: {
673
- type: 'bpmn:BoundaryEvent',
674
- eventDefinitionType: 'bpmn:SignalEventDefinition',
675
- cancelActivity: true
676
- }
677
- },
678
- {
679
- label: 'Compensation boundary event',
680
- actionName: 'replace-with-compensation-boundary',
681
- className: 'bpmn-icon-intermediate-event-catch-compensation',
682
- target: {
683
- type: 'bpmn:BoundaryEvent',
684
- eventDefinitionType: 'bpmn:CompensateEventDefinition',
685
- cancelActivity: true
686
- }
687
- },
688
- {
689
- label: 'Message boundary event (non-interrupting)',
690
- actionName: 'replace-with-non-interrupting-message-boundary',
691
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
692
- target: {
693
- type: 'bpmn:BoundaryEvent',
694
- eventDefinitionType: 'bpmn:MessageEventDefinition',
695
- cancelActivity: false
696
- }
697
- },
698
- {
699
- label: 'Timer boundary event (non-interrupting)',
700
- actionName: 'replace-with-non-interrupting-timer-boundary',
701
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
702
- target: {
703
- type: 'bpmn:BoundaryEvent',
704
- eventDefinitionType: 'bpmn:TimerEventDefinition',
705
- cancelActivity: false
706
- }
707
- },
708
- {
709
- label: 'Escalation boundary event (non-interrupting)',
710
- actionName: 'replace-with-non-interrupting-escalation-boundary',
711
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
712
- target: {
713
- type: 'bpmn:BoundaryEvent',
714
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
715
- cancelActivity: false
716
- }
717
- },
718
- {
719
- label: 'Conditional boundary event (non-interrupting)',
720
- actionName: 'replace-with-non-interrupting-conditional-boundary',
721
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
722
- target: {
723
- type: 'bpmn:BoundaryEvent',
724
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
725
- cancelActivity: false
726
- }
727
- },
728
- {
729
- label: 'Signal boundary event (non-interrupting)',
730
- actionName: 'replace-with-non-interrupting-signal-boundary',
731
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
732
- target: {
733
- type: 'bpmn:BoundaryEvent',
734
- eventDefinitionType: 'bpmn:SignalEventDefinition',
735
- cancelActivity: false
736
- }
737
- }
738
- ];
739
-
740
- /**
741
- * @type {ReplaceOption[]}
742
- */
743
- export var EVENT_SUB_PROCESS_START_EVENT = [
744
- {
745
- label: 'Message start event',
746
- actionName: 'replace-with-message-start',
747
- className: 'bpmn-icon-start-event-message',
748
- target: {
749
- type: 'bpmn:StartEvent',
750
- eventDefinitionType: 'bpmn:MessageEventDefinition',
751
- isInterrupting: true
752
- }
753
- },
754
- {
755
- label: 'Timer start event',
756
- actionName: 'replace-with-timer-start',
757
- className: 'bpmn-icon-start-event-timer',
758
- target: {
759
- type: 'bpmn:StartEvent',
760
- eventDefinitionType: 'bpmn:TimerEventDefinition',
761
- isInterrupting: true
762
- }
763
- },
764
- {
765
- label: 'Conditional start event',
766
- actionName: 'replace-with-conditional-start',
767
- className: 'bpmn-icon-start-event-condition',
768
- target: {
769
- type: 'bpmn:StartEvent',
770
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
771
- isInterrupting: true
772
- }
773
- },
774
- {
775
- label: 'Signal start event',
776
- actionName: 'replace-with-signal-start',
777
- className: 'bpmn-icon-start-event-signal',
778
- target: {
779
- type: 'bpmn:StartEvent',
780
- eventDefinitionType: 'bpmn:SignalEventDefinition',
781
- isInterrupting: true
782
- }
783
- },
784
- {
785
- label: 'Error start event',
786
- actionName: 'replace-with-error-start',
787
- className: 'bpmn-icon-start-event-error',
788
- target: {
789
- type: 'bpmn:StartEvent',
790
- eventDefinitionType: 'bpmn:ErrorEventDefinition',
791
- isInterrupting: true
792
- }
793
- },
794
- {
795
- label: 'Escalation start event',
796
- actionName: 'replace-with-escalation-start',
797
- className: 'bpmn-icon-start-event-escalation',
798
- target: {
799
- type: 'bpmn:StartEvent',
800
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
801
- isInterrupting: true
802
- }
803
- },
804
- {
805
- label: 'Compensation start event',
806
- actionName: 'replace-with-compensation-start',
807
- className: 'bpmn-icon-start-event-compensation',
808
- target: {
809
- type: 'bpmn:StartEvent',
810
- eventDefinitionType: 'bpmn:CompensateEventDefinition',
811
- isInterrupting: true
812
- }
813
- },
814
- {
815
- label: 'Message start event (non-interrupting)',
816
- actionName: 'replace-with-non-interrupting-message-start',
817
- className: 'bpmn-icon-start-event-non-interrupting-message',
818
- target: {
819
- type: 'bpmn:StartEvent',
820
- eventDefinitionType: 'bpmn:MessageEventDefinition',
821
- isInterrupting: false
822
- }
823
- },
824
- {
825
- label: 'Timer start event (non-interrupting)',
826
- actionName: 'replace-with-non-interrupting-timer-start',
827
- className: 'bpmn-icon-start-event-non-interrupting-timer',
828
- target: {
829
- type: 'bpmn:StartEvent',
830
- eventDefinitionType: 'bpmn:TimerEventDefinition',
831
- isInterrupting: false
832
- }
833
- },
834
- {
835
- label: 'Conditional start event (non-interrupting)',
836
- actionName: 'replace-with-non-interrupting-conditional-start',
837
- className: 'bpmn-icon-start-event-non-interrupting-condition',
838
- target: {
839
- type: 'bpmn:StartEvent',
840
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
841
- isInterrupting: false
842
- }
843
- },
844
- {
845
- label: 'Signal start event (non-interrupting)',
846
- actionName: 'replace-with-non-interrupting-signal-start',
847
- className: 'bpmn-icon-start-event-non-interrupting-signal',
848
- target: {
849
- type: 'bpmn:StartEvent',
850
- eventDefinitionType: 'bpmn:SignalEventDefinition',
851
- isInterrupting: false
852
- }
853
- },
854
- {
855
- label: 'Escalation start event (non-interrupting)',
856
- actionName: 'replace-with-non-interrupting-escalation-start',
857
- className: 'bpmn-icon-start-event-non-interrupting-escalation',
858
- target: {
859
- type: 'bpmn:StartEvent',
860
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
861
- isInterrupting: false
862
- }
863
- }
864
- ];
865
-
866
- /**
867
- * @type {ReplaceOption[]}
868
- */
869
- export var SEQUENCE_FLOW = [
870
- {
871
- label: 'Sequence flow',
872
- actionName: 'replace-with-sequence-flow',
873
- className: 'bpmn-icon-connection'
874
- },
875
- {
876
- label: 'Default flow',
877
- actionName: 'replace-with-default-flow',
878
- className: 'bpmn-icon-default-flow'
879
- },
880
- {
881
- label: 'Conditional flow',
882
- actionName: 'replace-with-conditional-flow',
883
- className: 'bpmn-icon-conditional-flow'
884
- }
885
- ];
886
-
887
- /**
888
- * @type {ReplaceOption[]}
889
- */
890
- export var PARTICIPANT = [
891
- {
892
- label: 'Expanded pool/participant',
893
- actionName: 'replace-with-expanded-pool',
894
- className: 'bpmn-icon-participant',
895
- target: {
896
- type: 'bpmn:Participant',
897
- isExpanded: true
898
- }
899
- },
900
- {
901
- label: function(element) {
902
- var label = 'Empty pool/participant';
903
-
904
- if (element.children && element.children.length) {
905
- label += ' (removes content)';
906
- }
907
-
908
- return label;
909
- },
910
- actionName: 'replace-with-collapsed-pool',
911
-
912
- // TODO(@janstuemmel): maybe design new icon
913
- className: 'bpmn-icon-lane',
914
- target: {
915
- type: 'bpmn:Participant',
916
- isExpanded: false
917
- }
918
- }
919
- ];
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: 'Sub-process (collapsed)',
432
+ actionName: 'replace-with-collapsed-subprocess',
433
+ className: 'bpmn-icon-subprocess-collapsed',
434
+ target: {
435
+ type: 'bpmn:SubProcess',
436
+ isExpanded: false
437
+ }
438
+ }
439
+ ];
440
+
441
+ /**
442
+ * @type {ReplaceOption[]}
443
+ */
444
+ export var TRANSACTION = [
445
+ {
446
+ label: 'Transaction',
447
+ actionName: 'replace-with-transaction',
448
+ className: 'bpmn-icon-transaction',
449
+ target: {
450
+ type: 'bpmn:Transaction',
451
+ isExpanded: true
452
+ }
453
+ },
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: 'Event sub-process',
465
+ actionName: 'replace-with-event-subprocess',
466
+ className: 'bpmn-icon-event-subprocess-expanded',
467
+ target: {
468
+ type: 'bpmn:SubProcess',
469
+ triggeredByEvent: true,
470
+ isExpanded: true
471
+ }
472
+ }
473
+ ];
474
+
475
+ /**
476
+ * @type {ReplaceOption[]}
477
+ */
478
+ export var EVENT_SUB_PROCESS = TRANSACTION;
479
+
480
+ /**
481
+ * @type {ReplaceOption[]}
482
+ */
483
+ export var TASK = [
484
+ {
485
+ label: 'Task',
486
+ actionName: 'replace-with-task',
487
+ className: 'bpmn-icon-task',
488
+ target: {
489
+ type: 'bpmn:Task'
490
+ }
491
+ },
492
+ {
493
+ label: 'User task',
494
+ actionName: 'replace-with-user-task',
495
+ className: 'bpmn-icon-user',
496
+ target: {
497
+ type: 'bpmn:UserTask'
498
+ }
499
+ },
500
+ {
501
+ label: 'Service task',
502
+ actionName: 'replace-with-service-task',
503
+ className: 'bpmn-icon-service',
504
+ target: {
505
+ type: 'bpmn:ServiceTask'
506
+ }
507
+ },
508
+ {
509
+ label: 'Send task',
510
+ actionName: 'replace-with-send-task',
511
+ className: 'bpmn-icon-send',
512
+ target: {
513
+ type: 'bpmn:SendTask'
514
+ }
515
+ },
516
+ {
517
+ label: 'Receive task',
518
+ actionName: 'replace-with-receive-task',
519
+ className: 'bpmn-icon-receive',
520
+ target: {
521
+ type: 'bpmn:ReceiveTask'
522
+ }
523
+ },
524
+ {
525
+ label: 'Manual task',
526
+ actionName: 'replace-with-manual-task',
527
+ className: 'bpmn-icon-manual',
528
+ target: {
529
+ type: 'bpmn:ManualTask'
530
+ }
531
+ },
532
+ {
533
+ label: 'Business rule task',
534
+ actionName: 'replace-with-rule-task',
535
+ className: 'bpmn-icon-business-rule',
536
+ target: {
537
+ type: 'bpmn:BusinessRuleTask'
538
+ }
539
+ },
540
+ {
541
+ label: 'Script task',
542
+ actionName: 'replace-with-script-task',
543
+ className: 'bpmn-icon-script',
544
+ target: {
545
+ type: 'bpmn:ScriptTask'
546
+ }
547
+ },
548
+ {
549
+ label: 'Call activity',
550
+ actionName: 'replace-with-call-activity',
551
+ className: 'bpmn-icon-call-activity',
552
+ target: {
553
+ type: 'bpmn:CallActivity'
554
+ }
555
+ },
556
+ {
557
+ label: 'Sub-process (collapsed)',
558
+ actionName: 'replace-with-collapsed-subprocess',
559
+ className: 'bpmn-icon-subprocess-collapsed',
560
+ target: {
561
+ type: 'bpmn:SubProcess',
562
+ isExpanded: false
563
+ }
564
+ },
565
+ {
566
+ label: 'Sub-process (expanded)',
567
+ actionName: 'replace-with-expanded-subprocess',
568
+ className: 'bpmn-icon-subprocess-expanded',
569
+ target: {
570
+ type: 'bpmn:SubProcess',
571
+ isExpanded: true
572
+ }
573
+ }
574
+ ];
575
+
576
+ /**
577
+ * @type {ReplaceOption[]}
578
+ */
579
+ export var DATA_OBJECT_REFERENCE = [
580
+ {
581
+ label: 'Data store reference',
582
+ actionName: 'replace-with-data-store-reference',
583
+ className: 'bpmn-icon-data-store',
584
+ target: {
585
+ type: 'bpmn:DataStoreReference'
586
+ }
587
+ }
588
+ ];
589
+
590
+ /**
591
+ * @type {ReplaceOption[]}
592
+ */
593
+ export var DATA_STORE_REFERENCE = [
594
+ {
595
+ label: 'Data object reference',
596
+ actionName: 'replace-with-data-object-reference',
597
+ className: 'bpmn-icon-data-object',
598
+ target: {
599
+ type: 'bpmn:DataObjectReference'
600
+ }
601
+ }
602
+ ];
603
+
604
+ /**
605
+ * @type {ReplaceOption[]}
606
+ */
607
+ export var BOUNDARY_EVENT = [
608
+ {
609
+ label: 'Message boundary event',
610
+ actionName: 'replace-with-message-boundary',
611
+ className: 'bpmn-icon-intermediate-event-catch-message',
612
+ target: {
613
+ type: 'bpmn:BoundaryEvent',
614
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
615
+ cancelActivity: true
616
+ }
617
+ },
618
+ {
619
+ label: 'Timer boundary event',
620
+ actionName: 'replace-with-timer-boundary',
621
+ className: 'bpmn-icon-intermediate-event-catch-timer',
622
+ target: {
623
+ type: 'bpmn:BoundaryEvent',
624
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
625
+ cancelActivity: true
626
+ }
627
+ },
628
+ {
629
+ label: 'Escalation boundary event',
630
+ actionName: 'replace-with-escalation-boundary',
631
+ className: 'bpmn-icon-intermediate-event-catch-escalation',
632
+ target: {
633
+ type: 'bpmn:BoundaryEvent',
634
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
635
+ cancelActivity: true
636
+ }
637
+ },
638
+ {
639
+ label: 'Conditional boundary event',
640
+ actionName: 'replace-with-conditional-boundary',
641
+ className: 'bpmn-icon-intermediate-event-catch-condition',
642
+ target: {
643
+ type: 'bpmn:BoundaryEvent',
644
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
645
+ cancelActivity: true
646
+ }
647
+ },
648
+ {
649
+ label: 'Error boundary event',
650
+ actionName: 'replace-with-error-boundary',
651
+ className: 'bpmn-icon-intermediate-event-catch-error',
652
+ target: {
653
+ type: 'bpmn:BoundaryEvent',
654
+ eventDefinitionType: 'bpmn:ErrorEventDefinition',
655
+ cancelActivity: true
656
+ }
657
+ },
658
+ {
659
+ label: 'Cancel boundary event',
660
+ actionName: 'replace-with-cancel-boundary',
661
+ className: 'bpmn-icon-intermediate-event-catch-cancel',
662
+ target: {
663
+ type: 'bpmn:BoundaryEvent',
664
+ eventDefinitionType: 'bpmn:CancelEventDefinition',
665
+ cancelActivity: true
666
+ }
667
+ },
668
+ {
669
+ label: 'Signal boundary event',
670
+ actionName: 'replace-with-signal-boundary',
671
+ className: 'bpmn-icon-intermediate-event-catch-signal',
672
+ target: {
673
+ type: 'bpmn:BoundaryEvent',
674
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
675
+ cancelActivity: true
676
+ }
677
+ },
678
+ {
679
+ label: 'Compensation boundary event',
680
+ actionName: 'replace-with-compensation-boundary',
681
+ className: 'bpmn-icon-intermediate-event-catch-compensation',
682
+ target: {
683
+ type: 'bpmn:BoundaryEvent',
684
+ eventDefinitionType: 'bpmn:CompensateEventDefinition',
685
+ cancelActivity: true
686
+ }
687
+ },
688
+ {
689
+ label: 'Message boundary event (non-interrupting)',
690
+ actionName: 'replace-with-non-interrupting-message-boundary',
691
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
692
+ target: {
693
+ type: 'bpmn:BoundaryEvent',
694
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
695
+ cancelActivity: false
696
+ }
697
+ },
698
+ {
699
+ label: 'Timer boundary event (non-interrupting)',
700
+ actionName: 'replace-with-non-interrupting-timer-boundary',
701
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
702
+ target: {
703
+ type: 'bpmn:BoundaryEvent',
704
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
705
+ cancelActivity: false
706
+ }
707
+ },
708
+ {
709
+ label: 'Escalation boundary event (non-interrupting)',
710
+ actionName: 'replace-with-non-interrupting-escalation-boundary',
711
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
712
+ target: {
713
+ type: 'bpmn:BoundaryEvent',
714
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
715
+ cancelActivity: false
716
+ }
717
+ },
718
+ {
719
+ label: 'Conditional boundary event (non-interrupting)',
720
+ actionName: 'replace-with-non-interrupting-conditional-boundary',
721
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
722
+ target: {
723
+ type: 'bpmn:BoundaryEvent',
724
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
725
+ cancelActivity: false
726
+ }
727
+ },
728
+ {
729
+ label: 'Signal boundary event (non-interrupting)',
730
+ actionName: 'replace-with-non-interrupting-signal-boundary',
731
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
732
+ target: {
733
+ type: 'bpmn:BoundaryEvent',
734
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
735
+ cancelActivity: false
736
+ }
737
+ }
738
+ ];
739
+
740
+ /**
741
+ * @type {ReplaceOption[]}
742
+ */
743
+ export var EVENT_SUB_PROCESS_START_EVENT = [
744
+ {
745
+ label: 'Message start event',
746
+ actionName: 'replace-with-message-start',
747
+ className: 'bpmn-icon-start-event-message',
748
+ target: {
749
+ type: 'bpmn:StartEvent',
750
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
751
+ isInterrupting: true
752
+ }
753
+ },
754
+ {
755
+ label: 'Timer start event',
756
+ actionName: 'replace-with-timer-start',
757
+ className: 'bpmn-icon-start-event-timer',
758
+ target: {
759
+ type: 'bpmn:StartEvent',
760
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
761
+ isInterrupting: true
762
+ }
763
+ },
764
+ {
765
+ label: 'Conditional start event',
766
+ actionName: 'replace-with-conditional-start',
767
+ className: 'bpmn-icon-start-event-condition',
768
+ target: {
769
+ type: 'bpmn:StartEvent',
770
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
771
+ isInterrupting: true
772
+ }
773
+ },
774
+ {
775
+ label: 'Signal start event',
776
+ actionName: 'replace-with-signal-start',
777
+ className: 'bpmn-icon-start-event-signal',
778
+ target: {
779
+ type: 'bpmn:StartEvent',
780
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
781
+ isInterrupting: true
782
+ }
783
+ },
784
+ {
785
+ label: 'Error start event',
786
+ actionName: 'replace-with-error-start',
787
+ className: 'bpmn-icon-start-event-error',
788
+ target: {
789
+ type: 'bpmn:StartEvent',
790
+ eventDefinitionType: 'bpmn:ErrorEventDefinition',
791
+ isInterrupting: true
792
+ }
793
+ },
794
+ {
795
+ label: 'Escalation start event',
796
+ actionName: 'replace-with-escalation-start',
797
+ className: 'bpmn-icon-start-event-escalation',
798
+ target: {
799
+ type: 'bpmn:StartEvent',
800
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
801
+ isInterrupting: true
802
+ }
803
+ },
804
+ {
805
+ label: 'Compensation start event',
806
+ actionName: 'replace-with-compensation-start',
807
+ className: 'bpmn-icon-start-event-compensation',
808
+ target: {
809
+ type: 'bpmn:StartEvent',
810
+ eventDefinitionType: 'bpmn:CompensateEventDefinition',
811
+ isInterrupting: true
812
+ }
813
+ },
814
+ {
815
+ label: 'Message start event (non-interrupting)',
816
+ actionName: 'replace-with-non-interrupting-message-start',
817
+ className: 'bpmn-icon-start-event-non-interrupting-message',
818
+ target: {
819
+ type: 'bpmn:StartEvent',
820
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
821
+ isInterrupting: false
822
+ }
823
+ },
824
+ {
825
+ label: 'Timer start event (non-interrupting)',
826
+ actionName: 'replace-with-non-interrupting-timer-start',
827
+ className: 'bpmn-icon-start-event-non-interrupting-timer',
828
+ target: {
829
+ type: 'bpmn:StartEvent',
830
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
831
+ isInterrupting: false
832
+ }
833
+ },
834
+ {
835
+ label: 'Conditional start event (non-interrupting)',
836
+ actionName: 'replace-with-non-interrupting-conditional-start',
837
+ className: 'bpmn-icon-start-event-non-interrupting-condition',
838
+ target: {
839
+ type: 'bpmn:StartEvent',
840
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
841
+ isInterrupting: false
842
+ }
843
+ },
844
+ {
845
+ label: 'Signal start event (non-interrupting)',
846
+ actionName: 'replace-with-non-interrupting-signal-start',
847
+ className: 'bpmn-icon-start-event-non-interrupting-signal',
848
+ target: {
849
+ type: 'bpmn:StartEvent',
850
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
851
+ isInterrupting: false
852
+ }
853
+ },
854
+ {
855
+ label: 'Escalation start event (non-interrupting)',
856
+ actionName: 'replace-with-non-interrupting-escalation-start',
857
+ className: 'bpmn-icon-start-event-non-interrupting-escalation',
858
+ target: {
859
+ type: 'bpmn:StartEvent',
860
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
861
+ isInterrupting: false
862
+ }
863
+ }
864
+ ];
865
+
866
+ /**
867
+ * @type {ReplaceOption[]}
868
+ */
869
+ export var SEQUENCE_FLOW = [
870
+ {
871
+ label: 'Sequence flow',
872
+ actionName: 'replace-with-sequence-flow',
873
+ className: 'bpmn-icon-connection'
874
+ },
875
+ {
876
+ label: 'Default flow',
877
+ actionName: 'replace-with-default-flow',
878
+ className: 'bpmn-icon-default-flow'
879
+ },
880
+ {
881
+ label: 'Conditional flow',
882
+ actionName: 'replace-with-conditional-flow',
883
+ className: 'bpmn-icon-conditional-flow'
884
+ }
885
+ ];
886
+
887
+ /**
888
+ * @type {ReplaceOption[]}
889
+ */
890
+ export var PARTICIPANT = [
891
+ {
892
+ label: 'Expanded pool/participant',
893
+ actionName: 'replace-with-expanded-pool',
894
+ className: 'bpmn-icon-participant',
895
+ target: {
896
+ type: 'bpmn:Participant',
897
+ isExpanded: true
898
+ }
899
+ },
900
+ {
901
+ label: function(element) {
902
+ var label = 'Empty pool/participant';
903
+
904
+ if (element.children && element.children.length) {
905
+ label += ' (removes content)';
906
+ }
907
+
908
+ return label;
909
+ },
910
+ actionName: 'replace-with-collapsed-pool',
911
+
912
+ // TODO(@janstuemmel): maybe design new icon
913
+ className: 'bpmn-icon-lane',
914
+ target: {
915
+ type: 'bpmn:Participant',
916
+ isExpanded: false
917
+ }
918
+ }
919
+ ];