bpmn-js 0.20.6 → 0.22.1

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 (410) hide show
  1. package/.eslintrc +33 -33
  2. package/.npmignore +8 -8
  3. package/.travis.yml +19 -17
  4. package/.wiredeps +88 -88
  5. package/CONTRIBUTING.md +55 -55
  6. package/Gruntfile.js +129 -129
  7. package/LICENSE +22 -22
  8. package/README.md +113 -113
  9. package/assets/bpmn-font/css/bpmn-embedded.css +159 -159
  10. package/assets/bpmn-font/css/bpmn.css +161 -161
  11. package/assets/bpmn-font/font/bpmn.svg +116 -116
  12. package/docs/architecture/overview.svg +48 -48
  13. package/docs/project/COMMIT_MESSAGES.md +82 -82
  14. package/docs/project/SETUP.md +66 -66
  15. package/docs/project/setup-alternative.sh +41 -41
  16. package/docs/project/setup.bat +45 -45
  17. package/docs/project/setup.sh +40 -40
  18. package/docs/translations.json +97 -97
  19. package/lib/Modeler.js +208 -208
  20. package/lib/NavigatedViewer.js +27 -27
  21. package/lib/Viewer.js +503 -503
  22. package/lib/core/index.js +5 -5
  23. package/lib/draw/BpmnRenderer.js +1934 -1934
  24. package/lib/draw/PathMap.js +478 -478
  25. package/lib/draw/index.js +5 -5
  26. package/lib/features/auto-resize/BpmnAutoResize.js +34 -34
  27. package/lib/features/auto-resize/BpmnAutoResizeProvider.js +51 -51
  28. package/lib/features/auto-resize/index.js +5 -5
  29. package/lib/features/context-pad/ContextPadProvider.js +374 -374
  30. package/lib/features/context-pad/index.js +11 -11
  31. package/lib/features/copy-paste/BpmnCopyPaste.js +157 -154
  32. package/lib/features/copy-paste/index.js +7 -7
  33. package/lib/features/distribute-elements/BpmnDistributeElements.js +34 -34
  34. package/lib/features/distribute-elements/index.js +7 -7
  35. package/lib/features/editor-actions/BpmnEditorActions.js +130 -130
  36. package/lib/features/editor-actions/index.js +15 -15
  37. package/lib/features/global-connect/BpmnGlobalConnect.js +49 -49
  38. package/lib/features/global-connect/index.js +7 -7
  39. package/lib/features/keyboard/BpmnKeyBindings.js +72 -72
  40. package/lib/features/keyboard/index.js +7 -7
  41. package/lib/features/label-editing/LabelEditingPreview.js +122 -0
  42. package/lib/features/label-editing/LabelEditingProvider.js +292 -193
  43. package/lib/features/label-editing/LabelUtil.js +43 -43
  44. package/lib/features/label-editing/cmd/UpdateLabelHandler.js +116 -112
  45. package/lib/features/label-editing/index.js +14 -9
  46. package/lib/features/modeling/BpmnFactory.js +97 -97
  47. package/lib/features/modeling/BpmnLayouter.js +191 -191
  48. package/lib/features/modeling/BpmnUpdater.js +692 -688
  49. package/lib/features/modeling/ElementFactory.js +218 -218
  50. package/lib/features/modeling/Modeling.js +183 -183
  51. package/lib/features/modeling/behavior/AppendBehavior.js +42 -42
  52. package/lib/features/modeling/behavior/CopyPasteBehavior.js +69 -69
  53. package/lib/features/modeling/behavior/CreateBoundaryEventBehavior.js +51 -51
  54. package/lib/features/modeling/behavior/CreateDataObjectBehavior.js +37 -37
  55. package/lib/features/modeling/behavior/CreateParticipantBehavior.js +91 -91
  56. package/lib/features/modeling/behavior/DataInputAssociationBehavior.js +151 -151
  57. package/lib/features/modeling/behavior/DeleteLaneBehavior.js +107 -107
  58. package/lib/features/modeling/behavior/DropOnFlowBehavior.js +165 -131
  59. package/lib/features/modeling/behavior/ImportDockingFix.js +80 -80
  60. package/lib/features/modeling/behavior/LabelBehavior.js +222 -222
  61. package/lib/features/modeling/behavior/ModelingFeedback.js +50 -50
  62. package/lib/features/modeling/behavior/RemoveElementBehavior.js +73 -73
  63. package/lib/features/modeling/behavior/RemoveParticipantBehavior.js +50 -50
  64. package/lib/features/modeling/behavior/ReplaceConnectionBehavior.js +128 -128
  65. package/lib/features/modeling/behavior/ReplaceElementBehaviour.js +118 -116
  66. package/lib/features/modeling/behavior/ResizeLaneBehavior.js +59 -59
  67. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +138 -138
  68. package/lib/features/modeling/behavior/UnclaimIdBehavior.js +27 -27
  69. package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.js +54 -54
  70. package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.js +156 -156
  71. package/lib/features/modeling/behavior/index.js +44 -44
  72. package/lib/features/modeling/behavior/util/GeometricUtil.js +129 -129
  73. package/lib/features/modeling/behavior/util/LabelLayoutUtil.js +218 -218
  74. package/lib/features/modeling/behavior/util/LineAttachmentUtil.js +233 -233
  75. package/lib/features/modeling/behavior/util/LineIntersect.js +36 -36
  76. package/lib/features/modeling/cmd/AddLaneHandler.js +83 -83
  77. package/lib/features/modeling/cmd/IdClaimHandler.js +41 -41
  78. package/lib/features/modeling/cmd/ResizeLaneHandler.js +125 -125
  79. package/lib/features/modeling/cmd/SplitLaneHandler.js +82 -82
  80. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +78 -78
  81. package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.js +185 -185
  82. package/lib/features/modeling/cmd/UpdatePropertiesHandler.js +264 -264
  83. package/lib/features/modeling/index.js +23 -23
  84. package/lib/features/modeling/util/LaneUtil.js +157 -157
  85. package/lib/features/modeling/util/ModelingUtil.js +48 -48
  86. package/lib/features/ordering/BpmnOrderingProvider.js +147 -147
  87. package/lib/features/ordering/index.js +6 -6
  88. package/lib/features/palette/PaletteProvider.js +158 -158
  89. package/lib/features/palette/index.js +13 -13
  90. package/lib/features/popup-menu/ReplaceMenuProvider.js +479 -479
  91. package/lib/features/popup-menu/index.js +7 -7
  92. package/lib/features/popup-menu/util/TypeUtil.js +41 -41
  93. package/lib/features/replace/BpmnReplace.js +197 -197
  94. package/lib/features/replace/ReplaceOptions.js +787 -787
  95. package/lib/features/replace/index.js +7 -7
  96. package/lib/features/replace-preview/BpmnReplacePreview.js +113 -113
  97. package/lib/features/replace-preview/index.js +5 -5
  98. package/lib/features/rules/BpmnRules.js +807 -806
  99. package/lib/features/rules/index.js +7 -7
  100. package/lib/features/search/BpmnSearchProvider.js +128 -128
  101. package/lib/features/search/index.js +7 -7
  102. package/lib/features/snapping/BpmnSnapping.js +511 -495
  103. package/lib/features/snapping/BpmnSnappingUtil.js +159 -159
  104. package/lib/features/snapping/index.js +3 -3
  105. package/lib/import/BpmnImporter.js +302 -302
  106. package/lib/import/BpmnTreeWalker.js +445 -445
  107. package/lib/import/Importer.js +69 -69
  108. package/lib/import/Util.js +8 -8
  109. package/lib/import/index.js +5 -5
  110. package/lib/util/DiUtil.js +60 -60
  111. package/lib/util/LabelUtil.js +139 -139
  112. package/lib/util/ModelUtil.js +31 -31
  113. package/lib/util/PoweredByUtil.js +82 -82
  114. package/lib/util/model/ModelCloneHelper.js +201 -201
  115. package/lib/util/model/ModelCloneUtils.js +35 -35
  116. package/package.json +22 -22
  117. package/resources/initial.bpmn +12 -12
  118. package/resources/screencast.gif +0 -0
  119. package/tasks/banner.txt +11 -11
  120. package/tasks/bundle.js +162 -162
  121. package/test/TestHelper.js +17 -17
  122. package/test/config/karma.unit.js +46 -46
  123. package/test/config/translation-reporter.js +48 -48
  124. package/test/fixtures/bpmn/align-elements.bpmn +136 -136
  125. package/test/fixtures/bpmn/basic.bpmn +17 -17
  126. package/test/fixtures/bpmn/boundary-events.bpmn +59 -59
  127. package/test/fixtures/bpmn/collaboration/collaboration-empty-participant.bpmn +13 -13
  128. package/test/fixtures/bpmn/collaboration/collaboration-message-flows.bpmn +89 -89
  129. package/test/fixtures/bpmn/collaboration/collaboration-participant.bpmn +59 -59
  130. package/test/fixtures/bpmn/collaboration/process-empty.bpmn +6 -6
  131. package/test/fixtures/bpmn/collaboration/process.bpmn +47 -47
  132. package/test/fixtures/bpmn/collaboration-data-items.bpmn +81 -81
  133. package/test/fixtures/bpmn/collaboration-message-flows.bpmn +82 -82
  134. package/test/fixtures/bpmn/collaboration-sequence-flows.bpmn +83 -83
  135. package/test/fixtures/bpmn/collaboration.bpmn +50 -50
  136. package/test/fixtures/bpmn/complex.bpmn +2151 -2151
  137. package/test/fixtures/bpmn/conditions.bpmn +82 -82
  138. package/test/fixtures/bpmn/containers.bpmn +128 -128
  139. package/test/fixtures/bpmn/distribute-elements-filtering.bpmn +58 -58
  140. package/test/fixtures/bpmn/distribute-elements.bpmn +232 -232
  141. package/test/fixtures/bpmn/draw/activity-markers-combination.bpmn +141 -141
  142. package/test/fixtures/bpmn/draw/activity-markers-simple.bpmn +47 -47
  143. package/test/fixtures/bpmn/draw/activity-markers.bpmn +212 -212
  144. package/test/fixtures/bpmn/draw/associations.bpmn +55 -55
  145. package/test/fixtures/bpmn/draw/boundary-event-with-refnode.bpmn +81 -81
  146. package/test/fixtures/bpmn/draw/boundary-event-without-refnode.bpmn +81 -81
  147. package/test/fixtures/bpmn/draw/boundary-event-z-index.bpmn +82 -82
  148. package/test/fixtures/bpmn/draw/call-activity.bpmn +12 -12
  149. package/test/fixtures/bpmn/draw/colors.bpmn +411 -411
  150. package/test/fixtures/bpmn/draw/conditional-flow-default.bpmn +100 -100
  151. package/test/fixtures/bpmn/draw/conditional-flow-gateways.bpmn +72 -72
  152. package/test/fixtures/bpmn/draw/conditional-flow-typed-task.bpmn +33 -33
  153. package/test/fixtures/bpmn/draw/conditional-flow.bpmn +248 -248
  154. package/test/fixtures/bpmn/draw/data-objects.bpmn +265 -265
  155. package/test/fixtures/bpmn/draw/event-subprocesses-collapsed.bpmn +200 -200
  156. package/test/fixtures/bpmn/draw/event-subprocesses-expanded.bpmn +274 -274
  157. package/test/fixtures/bpmn/draw/events-interrupting.bpmn +370 -370
  158. package/test/fixtures/bpmn/draw/events.bpmn +374 -374
  159. package/test/fixtures/bpmn/draw/gateway-type-default.bpmn +45 -45
  160. package/test/fixtures/bpmn/draw/gateways.bpmn +61 -61
  161. package/test/fixtures/bpmn/draw/group.bpmn +24 -24
  162. package/test/fixtures/bpmn/draw/message-marker.bpmn +112 -112
  163. package/test/fixtures/bpmn/draw/pools-with-collection-marker.bpmn +104 -104
  164. package/test/fixtures/bpmn/draw/pools.bpmn +82 -82
  165. package/test/fixtures/bpmn/draw/task-types.bpmn +77 -77
  166. package/test/fixtures/bpmn/draw/text-annotation.bpmn +71 -71
  167. package/test/fixtures/bpmn/draw/xor.bpmn +45 -45
  168. package/test/fixtures/bpmn/empty-definitions.bpmn +4 -4
  169. package/test/fixtures/bpmn/error/categoryValue.bpmn +26 -26
  170. package/test/fixtures/bpmn/error/di-plane-no-bpmn-element.bpmn +9 -9
  171. package/test/fixtures/bpmn/error/duplicate-ids.bpmn +14 -14
  172. package/test/fixtures/bpmn/error/invalid-child.bpmn +6 -6
  173. package/test/fixtures/bpmn/error/missing-namespace.bpmn +12 -12
  174. package/test/fixtures/bpmn/event-sub-processes.bpmn +47 -47
  175. package/test/fixtures/bpmn/extension/camunda.bpmn +52 -52
  176. package/test/fixtures/bpmn/extension/custom-override.bpmn +53 -53
  177. package/test/fixtures/bpmn/extension/custom.bpmn +53 -53
  178. package/test/fixtures/bpmn/features/copy-paste/basic.bpmn +111 -111
  179. package/test/fixtures/bpmn/features/copy-paste/collaboration-multiple.bpmn +102 -102
  180. package/test/fixtures/bpmn/features/copy-paste/collaboration.bpmn +74 -74
  181. package/test/fixtures/bpmn/features/copy-paste/data-associations.bpmn +61 -61
  182. package/test/fixtures/bpmn/features/copy-paste/properties.bpmn +43 -43
  183. package/test/fixtures/bpmn/features/drop/drop.bpmn +41 -41
  184. package/test/fixtures/bpmn/features/drop/recursive-task.bpmn +37 -37
  185. package/test/fixtures/bpmn/features/label-editing/labels.bpmn +178 -248
  186. package/test/fixtures/bpmn/features/modeling/update-label.bpmn +24 -24
  187. package/test/fixtures/bpmn/features/replace/01_replace.bpmn +193 -193
  188. package/test/fixtures/bpmn/features/replace/association-gateways.bpmn +173 -173
  189. package/test/fixtures/bpmn/features/replace/cancel-events.bpmn +49 -49
  190. package/test/fixtures/bpmn/features/replace/clone-properties.bpmn +141 -141
  191. package/test/fixtures/bpmn/features/replace/connection.bpmn +42 -42
  192. package/test/fixtures/bpmn/features/rules/event-based-gateway-outgoing-edge.bpmn +72 -72
  193. package/test/fixtures/bpmn/features/rules/link-event.bpmn +35 -35
  194. package/test/fixtures/bpmn/features/rules/text-annotation-association.bpmn +30 -30
  195. package/test/fixtures/bpmn/flow-markers.bpmn +212 -212
  196. package/test/fixtures/bpmn/import/boundaryEvent.bpmn +33 -33
  197. package/test/fixtures/bpmn/import/collaboration.bpmn +50 -50
  198. package/test/fixtures/bpmn/import/collapsed/collaboration.bpmn +76 -76
  199. package/test/fixtures/bpmn/import/collapsed/process.bpmn +84 -84
  200. package/test/fixtures/bpmn/import/collapsed/processWithChildren.bpmn +273 -273
  201. package/test/fixtures/bpmn/import/default-attrs.bpmn +24 -24
  202. package/test/fixtures/bpmn/import/error/boundaryEvent-invalidAttachToRef.bpmn +30 -30
  203. package/test/fixtures/bpmn/import/error/boundaryEvent-missingAttachToRef.bpmn +33 -33
  204. package/test/fixtures/bpmn/import/error/dangling-process-message-flow.bpmn +81 -81
  205. package/test/fixtures/bpmn/import/error/invalid-flow-element.bpmn +35 -35
  206. package/test/fixtures/bpmn/import/error/multiple-dis.bpmn +23 -23
  207. package/test/fixtures/bpmn/import/labels/collaboration-message-flows.bpmn +41 -41
  208. package/test/fixtures/bpmn/import/labels/collaboration.bpmn +72 -72
  209. package/test/fixtures/bpmn/import/labels/embedded.bpmn +39 -39
  210. package/test/fixtures/bpmn/import/labels/external-no-di.bpmn +42 -42
  211. package/test/fixtures/bpmn/import/labels/external.bpmn +69 -69
  212. package/test/fixtures/bpmn/import/position/position-testcase.bpmn +57 -57
  213. package/test/fixtures/bpmn/import/process.bpmn +60 -60
  214. package/test/fixtures/bpmn/nested-subprocesses.bpmn +118 -118
  215. package/test/fixtures/bpmn/sequence-flows.bpmn +60 -60
  216. package/test/fixtures/bpmn/simple-cropping.bpmn +84 -84
  217. package/test/fixtures/bpmn/simple-resizable.bpmn +50 -50
  218. package/test/fixtures/bpmn/simple.bpmn +60 -60
  219. package/test/fixtures/json/model/camunda.json +1042 -1042
  220. package/test/fixtures/json/model/custom-override.json +39 -39
  221. package/test/fixtures/json/model/custom.json +39 -39
  222. package/test/helper/TranslationCollector.js +17 -17
  223. package/test/helper/index.js +249 -249
  224. package/test/integration/CustomElementsSpec.js +223 -223
  225. package/test/integration/ReimportSpec.js +89 -89
  226. package/test/integration/SimpleModelingSpec.js +29 -29
  227. package/test/integration/custom-elements/CustomElementFactory.js +77 -77
  228. package/test/integration/custom-elements/CustomRenderer.js +151 -151
  229. package/test/integration/custom-elements/CustomRules.js +148 -148
  230. package/test/integration/custom-elements/CustomUpdater.js +115 -115
  231. package/test/integration/custom-elements/index.js +7 -7
  232. package/test/integration/model/BpmnModdleSpec.js +65 -65
  233. package/test/matchers/JSONMatcher.js +19 -19
  234. package/test/spec/ModelerSpec.js +401 -401
  235. package/test/spec/NavigatedViewerSpec.js +58 -58
  236. package/test/spec/ViewerSpec.js +977 -977
  237. package/test/spec/draw/BpmnRendererSpec.js +311 -311
  238. package/test/spec/environment/MockingSpec.js +53 -53
  239. package/test/spec/features/align-elements/BpmnAlignElementsSpec.js +137 -137
  240. package/test/spec/features/auto-resize/AutoResize.lanes.bpmn +54 -54
  241. package/test/spec/features/auto-resize/AutoResize.multi-selection.bpmn +22 -22
  242. package/test/spec/features/auto-resize/AutoResize.nested-sub-processes.bpmn +47 -47
  243. package/test/spec/features/auto-resize/AutoResize.participant.bpmn +38 -38
  244. package/test/spec/features/auto-resize/AutoResize.space-tool.bpmn +38 -38
  245. package/test/spec/features/auto-resize/AutoResize.sub-processes.bpmn +37 -37
  246. package/test/spec/features/auto-resize/AutoResizeSpec.js +607 -607
  247. package/test/spec/features/context-pad/ContextPad.activation.bpmn +51 -51
  248. package/test/spec/features/context-pad/ContextPadProviderSpec.js +440 -440
  249. package/test/spec/features/copy-paste/BpmnCopyPasteSpec.js +763 -725
  250. package/test/spec/features/copy-paste/DescriptorTree.js +58 -58
  251. package/test/spec/features/distribute-elements/BpmnDistributeElementsSpec.js +113 -113
  252. package/test/spec/features/editor-actions/BpmnEditorActionsSpec.js +72 -72
  253. package/test/spec/features/global-connect/BpmnGlobalConnectSpec.js +61 -61
  254. package/test/spec/features/keyboard/BpmnKeyBindingsSpec.js +142 -142
  255. package/test/spec/features/label-editing/LabelEditingPreviewSpec.js +133 -0
  256. package/test/spec/features/label-editing/LabelEditingProviderSpec.js +636 -601
  257. package/test/spec/features/label-editing/TouchIntegrationSpec.js +40 -40
  258. package/test/spec/features/modeling/AppendShapeSpec.js +332 -332
  259. package/test/spec/features/modeling/BendpointsSpec.js +25 -25
  260. package/test/spec/features/modeling/BpmnFactorySpec.js +73 -73
  261. package/test/spec/features/modeling/BpmnUpdater.bpmn +99 -99
  262. package/test/spec/features/modeling/BpmnUpdaterSpec.js +79 -79
  263. package/test/spec/features/modeling/CreateConnectionSpec.js +171 -171
  264. package/test/spec/features/modeling/DeleteConnectionSpec.js +75 -75
  265. package/test/spec/features/modeling/DeleteParticipantSpec.js +97 -97
  266. package/test/spec/features/modeling/DeleteShapeSpec.js +75 -75
  267. package/test/spec/features/modeling/DropSpec.js +123 -123
  268. package/test/spec/features/modeling/IdClaim.bpmn +13 -13
  269. package/test/spec/features/modeling/IdClaimSpec.js +50 -50
  270. package/test/spec/features/modeling/LabelBoundsSpec.js +342 -340
  271. package/test/spec/features/modeling/LabelBoundsSpec.simple.bpmn +27 -27
  272. package/test/spec/features/modeling/LabelLayouting.initial.bpmn +37 -37
  273. package/test/spec/features/modeling/LabelLayouting.move.bpmn +99 -99
  274. package/test/spec/features/modeling/LabelLayouting.special.bpmn +76 -76
  275. package/test/spec/features/modeling/LabelLayoutingSpec.js +603 -603
  276. package/test/spec/features/modeling/MoveConnectionSpec.js +101 -101
  277. package/test/spec/features/modeling/MoveElements.flow-collaboration.bpmn +45 -45
  278. package/test/spec/features/modeling/MoveElementsSpec.js +70 -70
  279. package/test/spec/features/modeling/MoveRulesSpec.js +151 -151
  280. package/test/spec/features/modeling/MoveShapeSpec.js +353 -353
  281. package/test/spec/features/modeling/ResizeShapeSpec.js +73 -73
  282. package/test/spec/features/modeling/SpaceToolSpec.js +251 -251
  283. package/test/spec/features/modeling/UpdateAttachmentSpec.js +96 -96
  284. package/test/spec/features/modeling/UpdateLabelSpec.js +130 -130
  285. package/test/spec/features/modeling/UpdatePropertiesSpec.js +503 -503
  286. package/test/spec/features/modeling/append/TextAnnotationSpec.js +136 -136
  287. package/test/spec/features/modeling/behavior/CompensationAssociationBehavior.bpmn +26 -26
  288. package/test/spec/features/modeling/behavior/CompensationAssociationBehaviorSpec.js +43 -43
  289. package/test/spec/features/modeling/behavior/CreateBoundaryEventBehaviorSpec.js +58 -58
  290. package/test/spec/features/modeling/behavior/CreateParticipantBehaviorSpec.js +224 -224
  291. package/test/spec/features/modeling/behavior/DataInputAssociationBehavior.bpmn +33 -33
  292. package/test/spec/features/modeling/behavior/DataInputAssociationBehaviorSpec.js +146 -146
  293. package/test/spec/features/modeling/behavior/DataObjectBehavior.create-data-association.bpmn +21 -21
  294. package/test/spec/features/modeling/behavior/DataObjectBehavior.data-object-reference.bpmn +13 -13
  295. package/test/spec/features/modeling/behavior/DataObjectBehavior.remove-data-association.bpmn +41 -41
  296. package/test/spec/features/modeling/behavior/DataObjectBehaviorSpec.js +297 -297
  297. package/test/spec/features/modeling/behavior/DataStoreBehavior.bpmn +26 -26
  298. package/test/spec/features/modeling/behavior/DataStoreBehavior.connect.bpmn +57 -57
  299. package/test/spec/features/modeling/behavior/DataStoreBehaviorSpec.js +228 -228
  300. package/test/spec/features/modeling/behavior/DropOnFlowBehavior.bpmn +71 -67
  301. package/test/spec/features/modeling/behavior/DropOnFlowBehaviorSpec.js +591 -418
  302. package/test/spec/features/modeling/behavior/ImportDockingFix.bpmn +61 -61
  303. package/test/spec/features/modeling/behavior/ImportDockingFixSpec.js +37 -37
  304. package/test/spec/features/modeling/behavior/LabelBehaviorSpec.js +277 -277
  305. package/test/spec/features/modeling/behavior/ReconnectConnection.data-association.bpmn +41 -41
  306. package/test/spec/features/modeling/behavior/ReconnectConnectionSpec.js +120 -120
  307. package/test/spec/features/modeling/behavior/RemoveElementBehavior.bpmn +181 -181
  308. package/test/spec/features/modeling/behavior/RemoveElementBehavior.perpendicular.bpmn +159 -159
  309. package/test/spec/features/modeling/behavior/RemoveElementBehaviorSpec.js +251 -251
  310. package/test/spec/features/modeling/behavior/RemoveParticipantBehaviorSpec.js +125 -125
  311. package/test/spec/features/modeling/behavior/ReplaceConnectionBehavior.association.bpmn +26 -26
  312. package/test/spec/features/modeling/behavior/ReplaceConnectionBehavior.boundary-events.bpmn +40 -40
  313. package/test/spec/features/modeling/behavior/ReplaceConnectionBehavior.message-sequence-flow.bpmn +121 -121
  314. package/test/spec/features/modeling/behavior/ReplaceConnectionBehaviorSpec.js +439 -439
  315. package/test/spec/features/modeling/behavior/ReplaceElementBehaviourSpec.js +450 -450
  316. package/test/spec/features/modeling/behavior/ToggleElementCollapseBehaviourSpec.js +653 -653
  317. package/test/spec/features/modeling/behavior/UnsetDefaultFlowBehaviorSpec.bpmn +48 -48
  318. package/test/spec/features/modeling/behavior/UnsetDefaultFlowBehaviorSpec.js +77 -77
  319. package/test/spec/features/modeling/behavior/util/GeometricUtilSpec.js +127 -127
  320. package/test/spec/features/modeling/behavior/util/LabelLayoutUtilSpec.js +75 -75
  321. package/test/spec/features/modeling/behavior/util/LineAttachmentUtilSpec.js +294 -294
  322. package/test/spec/features/modeling/behavior/util/LineIntersectSpec.js +32 -32
  323. package/test/spec/features/modeling/lanes/AddLaneSpec.js +263 -263
  324. package/test/spec/features/modeling/lanes/DeleteLaneSpec.js +126 -126
  325. package/test/spec/features/modeling/lanes/ResizeLaneSpec.js +366 -366
  326. package/test/spec/features/modeling/lanes/SplitLaneSpec.js +216 -216
  327. package/test/spec/features/modeling/lanes/UpdateFlowNodeRefsSpec.js +271 -271
  328. package/test/spec/features/modeling/lanes/flowNodeRefs.bpmn +56 -56
  329. package/test/spec/features/modeling/lanes/lanes.bpmn +83 -83
  330. package/test/spec/features/modeling/lanes/participant-lane.bpmn +27 -27
  331. package/test/spec/features/modeling/lanes/participant-no-lane.bpmn +22 -22
  332. package/test/spec/features/modeling/layout/Helper.js +64 -64
  333. package/test/spec/features/modeling/layout/LayoutAssociationSpec.js +101 -101
  334. package/test/spec/features/modeling/layout/LayoutConnectionSpec.js +98 -98
  335. package/test/spec/features/modeling/layout/LayoutDataAssociationSpec.js +98 -98
  336. package/test/spec/features/modeling/layout/LayoutMessageFlowSpec.bpmn +119 -119
  337. package/test/spec/features/modeling/layout/LayoutMessageFlowSpec.js +313 -313
  338. package/test/spec/features/modeling/layout/LayoutSequenceFlowSpec.boundaryEvents.bpmn +65 -65
  339. package/test/spec/features/modeling/layout/LayoutSequenceFlowSpec.flowElements.bpmn +70 -70
  340. package/test/spec/features/modeling/layout/LayoutSequenceFlowSpec.js +323 -323
  341. package/test/spec/features/ordering/BpmnOrderingProviderSpec.js +231 -231
  342. package/test/spec/features/ordering/Helper.js +185 -185
  343. package/test/spec/features/ordering/ordering-start-event.bpmn +17 -17
  344. package/test/spec/features/ordering/ordering-subprocesses.bpmn +41 -41
  345. package/test/spec/features/ordering/ordering.bpmn +105 -105
  346. package/test/spec/features/palette/PaletteProviderSpec.js +33 -33
  347. package/test/spec/features/popup-menu/ReplaceMenuProvider.collapsedSubProcess.bpmn +13 -13
  348. package/test/spec/features/popup-menu/ReplaceMenuProvider.compensation-activity.bpmn +12 -12
  349. package/test/spec/features/popup-menu/ReplaceMenuProvider.conditionalFlows.bpmn +66 -66
  350. package/test/spec/features/popup-menu/ReplaceMenuProvider.defaultFlows.bpmn +126 -126
  351. package/test/spec/features/popup-menu/ReplaceMenuProvider.defaultFlowsFromComplexGateways.bpmn +48 -48
  352. package/test/spec/features/popup-menu/ReplaceMenuProvider.defaultFlowsFromInclusiveGateways.bpmn +48 -48
  353. package/test/spec/features/popup-menu/ReplaceMenuProviderSpec.js +1957 -1957
  354. package/test/spec/features/replace/BpmnReplace.collaboration.bpmn +70 -70
  355. package/test/spec/features/replace/BpmnReplace.compensation.bpmn +12 -12
  356. package/test/spec/features/replace/BpmnReplace.eventSubProcesses.bpmn +126 -126
  357. package/test/spec/features/replace/BpmnReplaceSpec.js +1302 -1302
  358. package/test/spec/features/replace/ReplaceRulesSpec.js +78 -78
  359. package/test/spec/features/replace/SubProcess-collapsed.bpmn +36 -36
  360. package/test/spec/features/replace-preview/BpmnReplacePreviewSpec.js +304 -304
  361. package/test/spec/features/rules/BpmnRules.boundaryEvent.bpmn +93 -93
  362. package/test/spec/features/rules/BpmnRules.collaboration-dataAssociation.bpmn +35 -35
  363. package/test/spec/features/rules/BpmnRules.collaboration-lanes.bpmn +79 -79
  364. package/test/spec/features/rules/BpmnRules.collaboration.bpmn +138 -138
  365. package/test/spec/features/rules/BpmnRules.compensation.bpmn +65 -65
  366. package/test/spec/features/rules/BpmnRules.dataAssociation.bpmn +33 -33
  367. package/test/spec/features/rules/BpmnRules.eventBasedGateway.bpmn +82 -82
  368. package/test/spec/features/rules/BpmnRules.messageFlow.bpmn +27 -27
  369. package/test/spec/features/rules/BpmnRules.multiSelectionPools.bpmn +37 -37
  370. package/test/spec/features/rules/BpmnRules.process.bpmn +91 -91
  371. package/test/spec/features/rules/BpmnRules.subProcess-dataAssociation.bpmn +44 -44
  372. package/test/spec/features/rules/BpmnRulesSpec.js +1468 -1424
  373. package/test/spec/features/rules/Helper.js +82 -82
  374. package/test/spec/features/search/BpmnSearchProviderSpec.js +158 -158
  375. package/test/spec/features/search/bpmn-search-collaboration.bpmn +106 -106
  376. package/test/spec/features/search/bpmn-search.bpmn +100 -100
  377. package/test/spec/features/snapping/BpmnSnapping.connect.bpmn +36 -36
  378. package/test/spec/features/snapping/BpmnSnapping.labels.bpmn +27 -27
  379. package/test/spec/features/snapping/BpmnSnapping.lanes-resize.bpmn +43 -43
  380. package/test/spec/features/snapping/BpmnSnapping.participant-resize.bpmn +50 -50
  381. package/test/spec/features/snapping/BpmnSnapping.sequenceFlow.bpmn +41 -0
  382. package/test/spec/features/snapping/BpmnSnapping.subProcess-resize.bpmn +21 -21
  383. package/test/spec/features/snapping/BpmnSnapping.textAnnotation-resize.bpmn +22 -22
  384. package/test/spec/features/snapping/BpmnSnappingSpec.js +824 -758
  385. package/test/spec/features/snapping/BpmnSnappingUtil.lanes-flowNodes.bpmn +82 -82
  386. package/test/spec/features/snapping/BpmnSnappingUtil.lanes.bpmn +35 -35
  387. package/test/spec/features/snapping/BpmnSnappingUtilSpec.js +285 -285
  388. package/test/spec/i18n/custom-translate/custom-translate.js +14 -14
  389. package/test/spec/i18n/custom-translate/index.js +2 -2
  390. package/test/spec/i18n/translateSpec.js +56 -56
  391. package/test/spec/import/ImporterSpec.js +428 -428
  392. package/test/spec/import/ModelWiringSpec.js +194 -194
  393. package/test/spec/import/elements/AssociationSpec.collaboration.bpmn +51 -51
  394. package/test/spec/import/elements/AssociationSpec.compensation.bpmn +28 -28
  395. package/test/spec/import/elements/AssociationSpec.data-association.bpmn +39 -39
  396. package/test/spec/import/elements/AssociationSpec.data-input-output.bpmn +40 -40
  397. package/test/spec/import/elements/AssociationSpec.events.bpmn +51 -51
  398. package/test/spec/import/elements/AssociationSpec.js +175 -175
  399. package/test/spec/import/elements/AssociationSpec.text-annotation.bpmn +37 -37
  400. package/test/spec/import/elements/CollapsedSpec.js +118 -118
  401. package/test/spec/import/elements/LabelSpec.js +85 -85
  402. package/test/spec/import/lane-flowNodes.bpmn +44 -44
  403. package/test/spec/import/lane-missing-flowNodeRef.bpmn +24 -24
  404. package/test/spec/util/ModelCloneHelperSpec.js +381 -381
  405. package/test/spec/util/ModelUtilSpec.js +65 -65
  406. package/test/spec/util/camunda-moddle.js +70 -70
  407. package/test/util/MockEvents.js +62 -62
  408. package/test/util/ModelingUtil.js +117 -117
  409. package/test/util/custom-rules/CustomRules.js +18 -18
  410. package/test/util/custom-rules/index.js +4 -4
@@ -1,787 +1,787 @@
1
- 'use strict';
2
-
3
- module.exports.START_EVENT = [
4
- {
5
- label: 'Start Event',
6
- actionName: 'replace-with-none-start',
7
- className: 'bpmn-icon-start-event-none',
8
- target: {
9
- type: 'bpmn:StartEvent'
10
- }
11
- },
12
- {
13
- label: 'Intermediate Throw Event',
14
- actionName: 'replace-with-none-intermediate-throwing',
15
- className: 'bpmn-icon-intermediate-event-none',
16
- target: {
17
- type: 'bpmn:IntermediateThrowEvent'
18
- }
19
- },
20
- {
21
- label: 'End Event',
22
- actionName: 'replace-with-none-end',
23
- className: 'bpmn-icon-end-event-none',
24
- target: {
25
- type: 'bpmn:EndEvent'
26
- }
27
- },
28
- {
29
- label: 'Message Start Event',
30
- actionName: 'replace-with-message-start',
31
- className: 'bpmn-icon-start-event-message',
32
- target: {
33
- type: 'bpmn:StartEvent',
34
- eventDefinitionType: 'bpmn:MessageEventDefinition'
35
- }
36
- },
37
- {
38
- label: 'Timer Start Event',
39
- actionName: 'replace-with-timer-start',
40
- className: 'bpmn-icon-start-event-timer',
41
- target: {
42
- type: 'bpmn:StartEvent',
43
- eventDefinitionType: 'bpmn:TimerEventDefinition'
44
- }
45
- },
46
- {
47
- label: 'Conditional Start Event',
48
- actionName: 'replace-with-conditional-start',
49
- className: 'bpmn-icon-start-event-condition',
50
- target: {
51
- type: 'bpmn:StartEvent',
52
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
53
- }
54
- },
55
- {
56
- label: 'Signal Start Event',
57
- actionName: 'replace-with-signal-start',
58
- className: 'bpmn-icon-start-event-signal',
59
- target: {
60
- type: 'bpmn:StartEvent',
61
- eventDefinitionType: 'bpmn:SignalEventDefinition'
62
- }
63
- }
64
- ];
65
-
66
- module.exports.INTERMEDIATE_EVENT = [
67
- {
68
- label: 'Start Event',
69
- actionName: 'replace-with-none-start',
70
- className: 'bpmn-icon-start-event-none',
71
- target: {
72
- type: 'bpmn:StartEvent'
73
- }
74
- },
75
- {
76
- label: 'Intermediate Throw Event',
77
- actionName: 'replace-with-none-intermediate-throw',
78
- className: 'bpmn-icon-intermediate-event-none',
79
- target: {
80
- type: 'bpmn:IntermediateThrowEvent'
81
- }
82
- },
83
- {
84
- label: 'End Event',
85
- actionName: 'replace-with-none-end',
86
- className: 'bpmn-icon-end-event-none',
87
- target: {
88
- type: 'bpmn:EndEvent'
89
- }
90
- },
91
- {
92
- label: 'Message Intermediate Catch Event',
93
- actionName: 'replace-with-message-intermediate-catch',
94
- className: 'bpmn-icon-intermediate-event-catch-message',
95
- target: {
96
- type: 'bpmn:IntermediateCatchEvent',
97
- eventDefinitionType: 'bpmn:MessageEventDefinition'
98
- }
99
- },
100
- {
101
- label: 'Message Intermediate Throw Event',
102
- actionName: 'replace-with-message-intermediate-throw',
103
- className: 'bpmn-icon-intermediate-event-throw-message',
104
- target: {
105
- type: 'bpmn:IntermediateThrowEvent',
106
- eventDefinitionType: 'bpmn:MessageEventDefinition'
107
- }
108
- },
109
- {
110
- label: 'Timer Intermediate Catch Event',
111
- actionName: 'replace-with-timer-intermediate-catch',
112
- className: 'bpmn-icon-intermediate-event-catch-timer',
113
- target: {
114
- type: 'bpmn:IntermediateCatchEvent',
115
- eventDefinitionType: 'bpmn:TimerEventDefinition'
116
- }
117
- },
118
- {
119
- label: 'Escalation Intermediate Throw Event',
120
- actionName: 'replace-with-escalation-intermediate-throw',
121
- className: 'bpmn-icon-intermediate-event-throw-escalation',
122
- target: {
123
- type: 'bpmn:IntermediateThrowEvent',
124
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
125
- }
126
- },
127
- {
128
- label: 'Conditional Intermediate Catch Event',
129
- actionName: 'replace-with-conditional-intermediate-catch',
130
- className: 'bpmn-icon-intermediate-event-catch-condition',
131
- target: {
132
- type: 'bpmn:IntermediateCatchEvent',
133
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
134
- }
135
- },
136
- {
137
- label: 'Link Intermediate Catch Event',
138
- actionName: 'replace-with-link-intermediate-catch',
139
- className: 'bpmn-icon-intermediate-event-catch-link',
140
- target: {
141
- type: 'bpmn:IntermediateCatchEvent',
142
- eventDefinitionType: 'bpmn:LinkEventDefinition'
143
- }
144
- },
145
- {
146
- label: 'Link Intermediate Throw Event',
147
- actionName: 'replace-with-link-intermediate-throw',
148
- className: 'bpmn-icon-intermediate-event-throw-link',
149
- target: {
150
- type: 'bpmn:IntermediateThrowEvent',
151
- eventDefinitionType: 'bpmn:LinkEventDefinition'
152
- }
153
- },
154
- {
155
- label: 'Compensation Intermediate Throw Event',
156
- actionName: 'replace-with-compensation-intermediate-throw',
157
- className: 'bpmn-icon-intermediate-event-throw-compensation',
158
- target: {
159
- type: 'bpmn:IntermediateThrowEvent',
160
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
161
- }
162
- },
163
- {
164
- label: 'Signal Intermediate Catch Event',
165
- actionName: 'replace-with-signal-intermediate-catch',
166
- className: 'bpmn-icon-intermediate-event-catch-signal',
167
- target: {
168
- type: 'bpmn:IntermediateCatchEvent',
169
- eventDefinitionType: 'bpmn:SignalEventDefinition'
170
- }
171
- },
172
- {
173
- label: 'Signal Intermediate Throw Event',
174
- actionName: 'replace-with-signal-intermediate-throw',
175
- className: 'bpmn-icon-intermediate-event-throw-signal',
176
- target: {
177
- type: 'bpmn:IntermediateThrowEvent',
178
- eventDefinitionType: 'bpmn:SignalEventDefinition'
179
- }
180
- }
181
- ];
182
-
183
- module.exports.END_EVENT = [
184
- {
185
- label: 'Start Event',
186
- actionName: 'replace-with-none-start',
187
- className: 'bpmn-icon-start-event-none',
188
- target: {
189
- type: 'bpmn:StartEvent'
190
- }
191
- },
192
- {
193
- label: 'Intermediate Throw Event',
194
- actionName: 'replace-with-none-intermediate-throw',
195
- className: 'bpmn-icon-intermediate-event-none',
196
- target: {
197
- type: 'bpmn:IntermediateThrowEvent'
198
- }
199
- },
200
- {
201
- label: 'End Event',
202
- actionName: 'replace-with-none-end',
203
- className: 'bpmn-icon-end-event-none',
204
- target: {
205
- type: 'bpmn:EndEvent'
206
- }
207
- },
208
- {
209
- label: 'Message End Event',
210
- actionName: 'replace-with-message-end',
211
- className: 'bpmn-icon-end-event-message',
212
- target: {
213
- type: 'bpmn:EndEvent',
214
- eventDefinitionType: 'bpmn:MessageEventDefinition'
215
- }
216
- },
217
- {
218
- label: 'Escalation End Event',
219
- actionName: 'replace-with-escalation-end',
220
- className: 'bpmn-icon-end-event-escalation',
221
- target: {
222
- type: 'bpmn:EndEvent',
223
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
224
- }
225
- },
226
- {
227
- label: 'Error End Event',
228
- actionName: 'replace-with-error-end',
229
- className: 'bpmn-icon-end-event-error',
230
- target: {
231
- type: 'bpmn:EndEvent',
232
- eventDefinitionType: 'bpmn:ErrorEventDefinition'
233
- }
234
- },
235
- {
236
- label: 'Cancel End Event',
237
- actionName: 'replace-with-cancel-end',
238
- className: 'bpmn-icon-end-event-cancel',
239
- target: {
240
- type: 'bpmn:EndEvent',
241
- eventDefinitionType: 'bpmn:CancelEventDefinition'
242
- }
243
- },
244
- {
245
- label: 'Compensation End Event',
246
- actionName: 'replace-with-compensation-end',
247
- className: 'bpmn-icon-end-event-compensation',
248
- target: {
249
- type: 'bpmn:EndEvent',
250
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
251
- }
252
- },
253
- {
254
- label: 'Signal End Event',
255
- actionName: 'replace-with-signal-end',
256
- className: 'bpmn-icon-end-event-signal',
257
- target: {
258
- type: 'bpmn:EndEvent',
259
- eventDefinitionType: 'bpmn:SignalEventDefinition'
260
- }
261
- },
262
- {
263
- label: 'Terminate End Event',
264
- actionName: 'replace-with-terminate-end',
265
- className: 'bpmn-icon-end-event-terminate',
266
- target: {
267
- type: 'bpmn:EndEvent',
268
- eventDefinitionType: 'bpmn:TerminateEventDefinition'
269
- }
270
- }
271
- ];
272
-
273
- module.exports.GATEWAY = [
274
- {
275
- label: 'Exclusive Gateway',
276
- actionName: 'replace-with-exclusive-gateway',
277
- className: 'bpmn-icon-gateway-xor',
278
- target: {
279
- type: 'bpmn:ExclusiveGateway'
280
- }
281
- },
282
- {
283
- label: 'Parallel Gateway',
284
- actionName: 'replace-with-parallel-gateway',
285
- className: 'bpmn-icon-gateway-parallel',
286
- target: {
287
- type: 'bpmn:ParallelGateway'
288
- }
289
- },
290
- {
291
- label: 'Inclusive Gateway',
292
- actionName: 'replace-with-inclusive-gateway',
293
- className: 'bpmn-icon-gateway-or',
294
- target: {
295
- type: 'bpmn:InclusiveGateway'
296
- }
297
- },
298
- {
299
- label: 'Complex Gateway',
300
- actionName: 'replace-with-complex-gateway',
301
- className: 'bpmn-icon-gateway-complex',
302
- target: {
303
- type: 'bpmn:ComplexGateway'
304
- }
305
- },
306
- {
307
- label: 'Event based Gateway',
308
- actionName: 'replace-with-event-based-gateway',
309
- className: 'bpmn-icon-gateway-eventbased',
310
- target: {
311
- type: 'bpmn:EventBasedGateway',
312
- instantiate: false,
313
- eventGatewayType: 'Exclusive'
314
- }
315
- }
316
- // Gateways deactivated until https://github.com/bpmn-io/bpmn-js/issues/194
317
- // {
318
- // label: 'Event based instantiating Gateway',
319
- // actionName: 'replace-with-exclusive-event-based-gateway',
320
- // className: 'bpmn-icon-exclusive-event-based',
321
- // target: {
322
- // type: 'bpmn:EventBasedGateway'
323
- // },
324
- // options: {
325
- // businessObject: { instantiate: true, eventGatewayType: 'Exclusive' }
326
- // }
327
- // },
328
- // {
329
- // label: 'Parallel Event based instantiating Gateway',
330
- // actionName: 'replace-with-parallel-event-based-instantiate-gateway',
331
- // className: 'bpmn-icon-parallel-event-based-instantiate-gateway',
332
- // target: {
333
- // type: 'bpmn:EventBasedGateway'
334
- // },
335
- // options: {
336
- // businessObject: { instantiate: true, eventGatewayType: 'Parallel' }
337
- // }
338
- // }
339
- ];
340
-
341
- module.exports.SUBPROCESS_EXPANDED = [
342
- {
343
- label: 'Transaction',
344
- actionName: 'replace-with-transaction',
345
- className: 'bpmn-icon-transaction',
346
- target: {
347
- type: 'bpmn:Transaction',
348
- isExpanded: true
349
- }
350
- },
351
- {
352
- label: 'Event Sub Process',
353
- actionName: 'replace-with-event-subprocess',
354
- className: 'bpmn-icon-event-subprocess-expanded',
355
- target: {
356
- type: 'bpmn:SubProcess',
357
- triggeredByEvent: true,
358
- isExpanded: true
359
- }
360
- },
361
- {
362
- label: 'Sub Process (collapsed)',
363
- actionName: 'replace-with-collapsed-subprocess',
364
- className: 'bpmn-icon-subprocess-collapsed',
365
- target: {
366
- type: 'bpmn:SubProcess',
367
- isExpanded: false
368
- }
369
- }
370
- ];
371
-
372
- module.exports.TRANSACTION = [
373
- {
374
- label: 'Sub Process',
375
- actionName: 'replace-with-subprocess',
376
- className: 'bpmn-icon-subprocess-expanded',
377
- target: {
378
- type: 'bpmn:SubProcess',
379
- isExpanded: true
380
- }
381
- },
382
- {
383
- label: 'Event Sub Process',
384
- actionName: 'replace-with-event-subprocess',
385
- className: 'bpmn-icon-event-subprocess-expanded',
386
- target: {
387
- type: 'bpmn:SubProcess',
388
- triggeredByEvent: true,
389
- isExpanded: true
390
- }
391
- }
392
- ];
393
-
394
- module.exports.EVENT_SUB_PROCESS = [
395
- {
396
- label: 'Sub Process',
397
- actionName: 'replace-with-subprocess',
398
- className: 'bpmn-icon-subprocess-expanded',
399
- target: {
400
- type: 'bpmn:SubProcess',
401
- isExpanded: true
402
- }
403
- },
404
- {
405
- label: 'Transaction',
406
- actionName: 'replace-with-transaction',
407
- className: 'bpmn-icon-transaction',
408
- target: {
409
- type: 'bpmn:Transaction',
410
- isExpanded: true
411
- }
412
- }
413
- ];
414
-
415
- module.exports.TASK = [
416
- {
417
- label: 'Task',
418
- actionName: 'replace-with-task',
419
- className: 'bpmn-icon-task',
420
- target: {
421
- type: 'bpmn:Task'
422
- }
423
- },
424
- {
425
- label: 'Send Task',
426
- actionName: 'replace-with-send-task',
427
- className: 'bpmn-icon-send',
428
- target: {
429
- type: 'bpmn:SendTask'
430
- }
431
- },
432
- {
433
- label: 'Receive Task',
434
- actionName: 'replace-with-receive-task',
435
- className: 'bpmn-icon-receive',
436
- target: {
437
- type: 'bpmn:ReceiveTask'
438
- }
439
- },
440
- {
441
- label: 'User Task',
442
- actionName: 'replace-with-user-task',
443
- className: 'bpmn-icon-user',
444
- target: {
445
- type: 'bpmn:UserTask'
446
- }
447
- },
448
- {
449
- label: 'Manual Task',
450
- actionName: 'replace-with-manual-task',
451
- className: 'bpmn-icon-manual',
452
- target: {
453
- type: 'bpmn:ManualTask'
454
- }
455
- },
456
- {
457
- label: 'Business Rule Task',
458
- actionName: 'replace-with-rule-task',
459
- className: 'bpmn-icon-business-rule',
460
- target: {
461
- type: 'bpmn:BusinessRuleTask'
462
- }
463
- },
464
- {
465
- label: 'Service Task',
466
- actionName: 'replace-with-service-task',
467
- className: 'bpmn-icon-service',
468
- target: {
469
- type: 'bpmn:ServiceTask'
470
- }
471
- },
472
- {
473
- label: 'Script Task',
474
- actionName: 'replace-with-script-task',
475
- className: 'bpmn-icon-script',
476
- target: {
477
- type: 'bpmn:ScriptTask'
478
- }
479
- },
480
- {
481
- label: 'Call Activity',
482
- actionName: 'replace-with-call-activity',
483
- className: 'bpmn-icon-call-activity',
484
- target: {
485
- type: 'bpmn:CallActivity'
486
- }
487
- },
488
- {
489
- label: 'Sub Process (collapsed)',
490
- actionName: 'replace-with-collapsed-subprocess',
491
- className: 'bpmn-icon-subprocess-collapsed',
492
- target: {
493
- type: 'bpmn:SubProcess',
494
- isExpanded: false
495
- }
496
- },
497
- {
498
- label: 'Sub Process (expanded)',
499
- actionName: 'replace-with-expanded-subprocess',
500
- className: 'bpmn-icon-subprocess-expanded',
501
- target: {
502
- type: 'bpmn:SubProcess',
503
- isExpanded: true
504
- }
505
- }
506
- ];
507
-
508
- module.exports.BOUNDARY_EVENT = [
509
- {
510
- label: 'Message Boundary Event',
511
- actionName: 'replace-with-message-boundary',
512
- className: 'bpmn-icon-intermediate-event-catch-message',
513
- target: {
514
- type: 'bpmn:BoundaryEvent',
515
- eventDefinitionType: 'bpmn:MessageEventDefinition'
516
- }
517
- },
518
- {
519
- label: 'Timer Boundary Event',
520
- actionName: 'replace-with-timer-boundary',
521
- className: 'bpmn-icon-intermediate-event-catch-timer',
522
- target: {
523
- type: 'bpmn:BoundaryEvent',
524
- eventDefinitionType: 'bpmn:TimerEventDefinition'
525
- }
526
- },
527
- {
528
- label: 'Escalation Boundary Event',
529
- actionName: 'replace-with-escalation-boundary',
530
- className: 'bpmn-icon-intermediate-event-catch-escalation',
531
- target: {
532
- type: 'bpmn:BoundaryEvent',
533
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
534
- }
535
- },
536
- {
537
- label: 'Conditional Boundary Event',
538
- actionName: 'replace-with-conditional-boundary',
539
- className: 'bpmn-icon-intermediate-event-catch-condition',
540
- target: {
541
- type: 'bpmn:BoundaryEvent',
542
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
543
- }
544
- },
545
- {
546
- label: 'Error Boundary Event',
547
- actionName: 'replace-with-error-boundary',
548
- className: 'bpmn-icon-intermediate-event-catch-error',
549
- target: {
550
- type: 'bpmn:BoundaryEvent',
551
- eventDefinitionType: 'bpmn:ErrorEventDefinition'
552
- }
553
- },
554
- {
555
- label: 'Cancel Boundary Event',
556
- actionName: 'replace-with-cancel-boundary',
557
- className: 'bpmn-icon-intermediate-event-catch-cancel',
558
- target: {
559
- type: 'bpmn:BoundaryEvent',
560
- eventDefinitionType: 'bpmn:CancelEventDefinition'
561
- }
562
- },
563
- {
564
- label: 'Signal Boundary Event',
565
- actionName: 'replace-with-signal-boundary',
566
- className: 'bpmn-icon-intermediate-event-catch-signal',
567
- target: {
568
- type: 'bpmn:BoundaryEvent',
569
- eventDefinitionType: 'bpmn:SignalEventDefinition'
570
- }
571
- },
572
- {
573
- label: 'Compensation Boundary Event',
574
- actionName: 'replace-with-compensation-boundary',
575
- className: 'bpmn-icon-intermediate-event-catch-compensation',
576
- target: {
577
- type: 'bpmn:BoundaryEvent',
578
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
579
- }
580
- },
581
- {
582
- label: 'Message Boundary Event (non-interrupting)',
583
- actionName: 'replace-with-non-interrupting-message-boundary',
584
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
585
- target: {
586
- type: 'bpmn:BoundaryEvent',
587
- eventDefinitionType: 'bpmn:MessageEventDefinition',
588
- cancelActivity: false
589
- }
590
- },
591
- {
592
- label: 'Timer Boundary Event (non-interrupting)',
593
- actionName: 'replace-with-non-interrupting-timer-boundary',
594
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
595
- target: {
596
- type: 'bpmn:BoundaryEvent',
597
- eventDefinitionType: 'bpmn:TimerEventDefinition',
598
- cancelActivity: false
599
- }
600
- },
601
- {
602
- label: 'Escalation Boundary Event (non-interrupting)',
603
- actionName: 'replace-with-non-interrupting-escalation-boundary',
604
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
605
- target: {
606
- type: 'bpmn:BoundaryEvent',
607
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
608
- cancelActivity: false
609
- }
610
- },
611
- {
612
- label: 'Conditional Boundary Event (non-interrupting)',
613
- actionName: 'replace-with-non-interrupting-conditional-boundary',
614
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
615
- target: {
616
- type: 'bpmn:BoundaryEvent',
617
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
618
- cancelActivity: false
619
- }
620
- },
621
- {
622
- label: 'Signal Boundary Event (non-interrupting)',
623
- actionName: 'replace-with-non-interrupting-signal-boundary',
624
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
625
- target: {
626
- type: 'bpmn:BoundaryEvent',
627
- eventDefinitionType: 'bpmn:SignalEventDefinition',
628
- cancelActivity: false
629
- }
630
- }
631
- ];
632
-
633
- module.exports.EVENT_SUB_PROCESS_START_EVENT = [
634
- {
635
- label: 'Message Start Event',
636
- actionName: 'replace-with-message-start',
637
- className: 'bpmn-icon-start-event-message',
638
- target: {
639
- type: 'bpmn:StartEvent',
640
- eventDefinitionType: 'bpmn:MessageEventDefinition'
641
- }
642
- },
643
- {
644
- label: 'Timer Start Event',
645
- actionName: 'replace-with-timer-start',
646
- className: 'bpmn-icon-start-event-timer',
647
- target: {
648
- type: 'bpmn:StartEvent',
649
- eventDefinitionType: 'bpmn:TimerEventDefinition'
650
- }
651
- },
652
- {
653
- label: 'Conditional Start Event',
654
- actionName: 'replace-with-conditional-start',
655
- className: 'bpmn-icon-start-event-condition',
656
- target: {
657
- type: 'bpmn:StartEvent',
658
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
659
- }
660
- },
661
- {
662
- label: 'Signal Start Event',
663
- actionName: 'replace-with-signal-start',
664
- className: 'bpmn-icon-start-event-signal',
665
- target: {
666
- type: 'bpmn:StartEvent',
667
- eventDefinitionType: 'bpmn:SignalEventDefinition'
668
- }
669
- },
670
- {
671
- label: 'Error Start Event',
672
- actionName: 'replace-with-error-start',
673
- className: 'bpmn-icon-start-event-error',
674
- target: {
675
- type: 'bpmn:StartEvent',
676
- eventDefinitionType: 'bpmn:ErrorEventDefinition'
677
- }
678
- },
679
- {
680
- label: 'Escalation Start Event',
681
- actionName: 'replace-with-escalation-start',
682
- className: 'bpmn-icon-start-event-escalation',
683
- target: {
684
- type: 'bpmn:StartEvent',
685
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
686
- }
687
- },
688
- {
689
- label: 'Compensation Start Event',
690
- actionName: 'replace-with-compensation-start',
691
- className: 'bpmn-icon-start-event-compensation',
692
- target: {
693
- type: 'bpmn:StartEvent',
694
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
695
- }
696
- },
697
- {
698
- label: 'Message Start Event (non-interrupting)',
699
- actionName: 'replace-with-non-interrupting-message-start',
700
- className: 'bpmn-icon-start-event-non-interrupting-message',
701
- target: {
702
- type: 'bpmn:StartEvent',
703
- eventDefinitionType: 'bpmn:MessageEventDefinition',
704
- isInterrupting: false
705
- }
706
- },
707
- {
708
- label: 'Timer Start Event (non-interrupting)',
709
- actionName: 'replace-with-non-interrupting-timer-start',
710
- className: 'bpmn-icon-start-event-non-interrupting-timer',
711
- target: {
712
- type: 'bpmn:StartEvent',
713
- eventDefinitionType: 'bpmn:TimerEventDefinition',
714
- isInterrupting: false
715
- }
716
- },
717
- {
718
- label: 'Conditional Start Event (non-interrupting)',
719
- actionName: 'replace-with-non-interrupting-conditional-start',
720
- className: 'bpmn-icon-start-event-non-interrupting-condition',
721
- target: {
722
- type: 'bpmn:StartEvent',
723
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
724
- isInterrupting: false
725
- }
726
- },
727
- {
728
- label: 'Signal Start Event (non-interrupting)',
729
- actionName: 'replace-with-non-interrupting-signal-start',
730
- className: 'bpmn-icon-start-event-non-interrupting-signal',
731
- target: {
732
- type: 'bpmn:StartEvent',
733
- eventDefinitionType: 'bpmn:SignalEventDefinition',
734
- isInterrupting: false
735
- }
736
- },
737
- {
738
- label: 'Escalation Start Event (non-interrupting)',
739
- actionName: 'replace-with-non-interrupting-escalation-start',
740
- className: 'bpmn-icon-start-event-non-interrupting-escalation',
741
- target: {
742
- type: 'bpmn:StartEvent',
743
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
744
- isInterrupting: false
745
- }
746
- }
747
- ];
748
-
749
- module.exports.SEQUENCE_FLOW = [
750
- {
751
- label: 'Sequence Flow',
752
- actionName: 'replace-with-sequence-flow',
753
- className: 'bpmn-icon-connection'
754
- },
755
- {
756
- label: 'Default Flow',
757
- actionName: 'replace-with-default-flow',
758
- className: 'bpmn-icon-default-flow'
759
- },
760
- {
761
- label: 'Conditional Flow',
762
- actionName: 'replace-with-conditional-flow',
763
- className: 'bpmn-icon-conditional-flow'
764
- }
765
- ];
766
-
767
- module.exports.PARTICIPANT = [
768
- {
769
- label: 'Expanded Pool',
770
- actionName: 'replace-with-expanded-pool',
771
- className: 'bpmn-icon-participant',
772
- target: {
773
- type: 'bpmn:Participant',
774
- isExpanded: true
775
- }
776
- },
777
- {
778
- label: 'Collapsed Pool',
779
- actionName: 'replace-with-collapsed-pool',
780
- // TODO(@janstuemmel): maybe design new icon
781
- className: 'bpmn-icon-lane',
782
- target: {
783
- type: 'bpmn:Participant',
784
- isExpanded: false
785
- }
786
- }
787
- ];
1
+ 'use strict';
2
+
3
+ module.exports.START_EVENT = [
4
+ {
5
+ label: 'Start Event',
6
+ actionName: 'replace-with-none-start',
7
+ className: 'bpmn-icon-start-event-none',
8
+ target: {
9
+ type: 'bpmn:StartEvent'
10
+ }
11
+ },
12
+ {
13
+ label: 'Intermediate Throw Event',
14
+ actionName: 'replace-with-none-intermediate-throwing',
15
+ className: 'bpmn-icon-intermediate-event-none',
16
+ target: {
17
+ type: 'bpmn:IntermediateThrowEvent'
18
+ }
19
+ },
20
+ {
21
+ label: 'End Event',
22
+ actionName: 'replace-with-none-end',
23
+ className: 'bpmn-icon-end-event-none',
24
+ target: {
25
+ type: 'bpmn:EndEvent'
26
+ }
27
+ },
28
+ {
29
+ label: 'Message Start Event',
30
+ actionName: 'replace-with-message-start',
31
+ className: 'bpmn-icon-start-event-message',
32
+ target: {
33
+ type: 'bpmn:StartEvent',
34
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
35
+ }
36
+ },
37
+ {
38
+ label: 'Timer Start Event',
39
+ actionName: 'replace-with-timer-start',
40
+ className: 'bpmn-icon-start-event-timer',
41
+ target: {
42
+ type: 'bpmn:StartEvent',
43
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
44
+ }
45
+ },
46
+ {
47
+ label: 'Conditional Start Event',
48
+ actionName: 'replace-with-conditional-start',
49
+ className: 'bpmn-icon-start-event-condition',
50
+ target: {
51
+ type: 'bpmn:StartEvent',
52
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
53
+ }
54
+ },
55
+ {
56
+ label: 'Signal Start Event',
57
+ actionName: 'replace-with-signal-start',
58
+ className: 'bpmn-icon-start-event-signal',
59
+ target: {
60
+ type: 'bpmn:StartEvent',
61
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
62
+ }
63
+ }
64
+ ];
65
+
66
+ module.exports.INTERMEDIATE_EVENT = [
67
+ {
68
+ label: 'Start Event',
69
+ actionName: 'replace-with-none-start',
70
+ className: 'bpmn-icon-start-event-none',
71
+ target: {
72
+ type: 'bpmn:StartEvent'
73
+ }
74
+ },
75
+ {
76
+ label: 'Intermediate Throw Event',
77
+ actionName: 'replace-with-none-intermediate-throw',
78
+ className: 'bpmn-icon-intermediate-event-none',
79
+ target: {
80
+ type: 'bpmn:IntermediateThrowEvent'
81
+ }
82
+ },
83
+ {
84
+ label: 'End Event',
85
+ actionName: 'replace-with-none-end',
86
+ className: 'bpmn-icon-end-event-none',
87
+ target: {
88
+ type: 'bpmn:EndEvent'
89
+ }
90
+ },
91
+ {
92
+ label: 'Message Intermediate Catch Event',
93
+ actionName: 'replace-with-message-intermediate-catch',
94
+ className: 'bpmn-icon-intermediate-event-catch-message',
95
+ target: {
96
+ type: 'bpmn:IntermediateCatchEvent',
97
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
98
+ }
99
+ },
100
+ {
101
+ label: 'Message Intermediate Throw Event',
102
+ actionName: 'replace-with-message-intermediate-throw',
103
+ className: 'bpmn-icon-intermediate-event-throw-message',
104
+ target: {
105
+ type: 'bpmn:IntermediateThrowEvent',
106
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
107
+ }
108
+ },
109
+ {
110
+ label: 'Timer Intermediate Catch Event',
111
+ actionName: 'replace-with-timer-intermediate-catch',
112
+ className: 'bpmn-icon-intermediate-event-catch-timer',
113
+ target: {
114
+ type: 'bpmn:IntermediateCatchEvent',
115
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
116
+ }
117
+ },
118
+ {
119
+ label: 'Escalation Intermediate Throw Event',
120
+ actionName: 'replace-with-escalation-intermediate-throw',
121
+ className: 'bpmn-icon-intermediate-event-throw-escalation',
122
+ target: {
123
+ type: 'bpmn:IntermediateThrowEvent',
124
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
125
+ }
126
+ },
127
+ {
128
+ label: 'Conditional Intermediate Catch Event',
129
+ actionName: 'replace-with-conditional-intermediate-catch',
130
+ className: 'bpmn-icon-intermediate-event-catch-condition',
131
+ target: {
132
+ type: 'bpmn:IntermediateCatchEvent',
133
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
134
+ }
135
+ },
136
+ {
137
+ label: 'Link Intermediate Catch Event',
138
+ actionName: 'replace-with-link-intermediate-catch',
139
+ className: 'bpmn-icon-intermediate-event-catch-link',
140
+ target: {
141
+ type: 'bpmn:IntermediateCatchEvent',
142
+ eventDefinitionType: 'bpmn:LinkEventDefinition'
143
+ }
144
+ },
145
+ {
146
+ label: 'Link Intermediate Throw Event',
147
+ actionName: 'replace-with-link-intermediate-throw',
148
+ className: 'bpmn-icon-intermediate-event-throw-link',
149
+ target: {
150
+ type: 'bpmn:IntermediateThrowEvent',
151
+ eventDefinitionType: 'bpmn:LinkEventDefinition'
152
+ }
153
+ },
154
+ {
155
+ label: 'Compensation Intermediate Throw Event',
156
+ actionName: 'replace-with-compensation-intermediate-throw',
157
+ className: 'bpmn-icon-intermediate-event-throw-compensation',
158
+ target: {
159
+ type: 'bpmn:IntermediateThrowEvent',
160
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
161
+ }
162
+ },
163
+ {
164
+ label: 'Signal Intermediate Catch Event',
165
+ actionName: 'replace-with-signal-intermediate-catch',
166
+ className: 'bpmn-icon-intermediate-event-catch-signal',
167
+ target: {
168
+ type: 'bpmn:IntermediateCatchEvent',
169
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
170
+ }
171
+ },
172
+ {
173
+ label: 'Signal Intermediate Throw Event',
174
+ actionName: 'replace-with-signal-intermediate-throw',
175
+ className: 'bpmn-icon-intermediate-event-throw-signal',
176
+ target: {
177
+ type: 'bpmn:IntermediateThrowEvent',
178
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
179
+ }
180
+ }
181
+ ];
182
+
183
+ module.exports.END_EVENT = [
184
+ {
185
+ label: 'Start Event',
186
+ actionName: 'replace-with-none-start',
187
+ className: 'bpmn-icon-start-event-none',
188
+ target: {
189
+ type: 'bpmn:StartEvent'
190
+ }
191
+ },
192
+ {
193
+ label: 'Intermediate Throw Event',
194
+ actionName: 'replace-with-none-intermediate-throw',
195
+ className: 'bpmn-icon-intermediate-event-none',
196
+ target: {
197
+ type: 'bpmn:IntermediateThrowEvent'
198
+ }
199
+ },
200
+ {
201
+ label: 'End Event',
202
+ actionName: 'replace-with-none-end',
203
+ className: 'bpmn-icon-end-event-none',
204
+ target: {
205
+ type: 'bpmn:EndEvent'
206
+ }
207
+ },
208
+ {
209
+ label: 'Message End Event',
210
+ actionName: 'replace-with-message-end',
211
+ className: 'bpmn-icon-end-event-message',
212
+ target: {
213
+ type: 'bpmn:EndEvent',
214
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
215
+ }
216
+ },
217
+ {
218
+ label: 'Escalation End Event',
219
+ actionName: 'replace-with-escalation-end',
220
+ className: 'bpmn-icon-end-event-escalation',
221
+ target: {
222
+ type: 'bpmn:EndEvent',
223
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
224
+ }
225
+ },
226
+ {
227
+ label: 'Error End Event',
228
+ actionName: 'replace-with-error-end',
229
+ className: 'bpmn-icon-end-event-error',
230
+ target: {
231
+ type: 'bpmn:EndEvent',
232
+ eventDefinitionType: 'bpmn:ErrorEventDefinition'
233
+ }
234
+ },
235
+ {
236
+ label: 'Cancel End Event',
237
+ actionName: 'replace-with-cancel-end',
238
+ className: 'bpmn-icon-end-event-cancel',
239
+ target: {
240
+ type: 'bpmn:EndEvent',
241
+ eventDefinitionType: 'bpmn:CancelEventDefinition'
242
+ }
243
+ },
244
+ {
245
+ label: 'Compensation End Event',
246
+ actionName: 'replace-with-compensation-end',
247
+ className: 'bpmn-icon-end-event-compensation',
248
+ target: {
249
+ type: 'bpmn:EndEvent',
250
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
251
+ }
252
+ },
253
+ {
254
+ label: 'Signal End Event',
255
+ actionName: 'replace-with-signal-end',
256
+ className: 'bpmn-icon-end-event-signal',
257
+ target: {
258
+ type: 'bpmn:EndEvent',
259
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
260
+ }
261
+ },
262
+ {
263
+ label: 'Terminate End Event',
264
+ actionName: 'replace-with-terminate-end',
265
+ className: 'bpmn-icon-end-event-terminate',
266
+ target: {
267
+ type: 'bpmn:EndEvent',
268
+ eventDefinitionType: 'bpmn:TerminateEventDefinition'
269
+ }
270
+ }
271
+ ];
272
+
273
+ module.exports.GATEWAY = [
274
+ {
275
+ label: 'Exclusive Gateway',
276
+ actionName: 'replace-with-exclusive-gateway',
277
+ className: 'bpmn-icon-gateway-xor',
278
+ target: {
279
+ type: 'bpmn:ExclusiveGateway'
280
+ }
281
+ },
282
+ {
283
+ label: 'Parallel Gateway',
284
+ actionName: 'replace-with-parallel-gateway',
285
+ className: 'bpmn-icon-gateway-parallel',
286
+ target: {
287
+ type: 'bpmn:ParallelGateway'
288
+ }
289
+ },
290
+ {
291
+ label: 'Inclusive Gateway',
292
+ actionName: 'replace-with-inclusive-gateway',
293
+ className: 'bpmn-icon-gateway-or',
294
+ target: {
295
+ type: 'bpmn:InclusiveGateway'
296
+ }
297
+ },
298
+ {
299
+ label: 'Complex Gateway',
300
+ actionName: 'replace-with-complex-gateway',
301
+ className: 'bpmn-icon-gateway-complex',
302
+ target: {
303
+ type: 'bpmn:ComplexGateway'
304
+ }
305
+ },
306
+ {
307
+ label: 'Event based Gateway',
308
+ actionName: 'replace-with-event-based-gateway',
309
+ className: 'bpmn-icon-gateway-eventbased',
310
+ target: {
311
+ type: 'bpmn:EventBasedGateway',
312
+ instantiate: false,
313
+ eventGatewayType: 'Exclusive'
314
+ }
315
+ }
316
+ // Gateways deactivated until https://github.com/bpmn-io/bpmn-js/issues/194
317
+ // {
318
+ // label: 'Event based instantiating Gateway',
319
+ // actionName: 'replace-with-exclusive-event-based-gateway',
320
+ // className: 'bpmn-icon-exclusive-event-based',
321
+ // target: {
322
+ // type: 'bpmn:EventBasedGateway'
323
+ // },
324
+ // options: {
325
+ // businessObject: { instantiate: true, eventGatewayType: 'Exclusive' }
326
+ // }
327
+ // },
328
+ // {
329
+ // label: 'Parallel Event based instantiating Gateway',
330
+ // actionName: 'replace-with-parallel-event-based-instantiate-gateway',
331
+ // className: 'bpmn-icon-parallel-event-based-instantiate-gateway',
332
+ // target: {
333
+ // type: 'bpmn:EventBasedGateway'
334
+ // },
335
+ // options: {
336
+ // businessObject: { instantiate: true, eventGatewayType: 'Parallel' }
337
+ // }
338
+ // }
339
+ ];
340
+
341
+ module.exports.SUBPROCESS_EXPANDED = [
342
+ {
343
+ label: 'Transaction',
344
+ actionName: 'replace-with-transaction',
345
+ className: 'bpmn-icon-transaction',
346
+ target: {
347
+ type: 'bpmn:Transaction',
348
+ isExpanded: true
349
+ }
350
+ },
351
+ {
352
+ label: 'Event Sub Process',
353
+ actionName: 'replace-with-event-subprocess',
354
+ className: 'bpmn-icon-event-subprocess-expanded',
355
+ target: {
356
+ type: 'bpmn:SubProcess',
357
+ triggeredByEvent: true,
358
+ isExpanded: true
359
+ }
360
+ },
361
+ {
362
+ label: 'Sub Process (collapsed)',
363
+ actionName: 'replace-with-collapsed-subprocess',
364
+ className: 'bpmn-icon-subprocess-collapsed',
365
+ target: {
366
+ type: 'bpmn:SubProcess',
367
+ isExpanded: false
368
+ }
369
+ }
370
+ ];
371
+
372
+ module.exports.TRANSACTION = [
373
+ {
374
+ label: 'Sub Process',
375
+ actionName: 'replace-with-subprocess',
376
+ className: 'bpmn-icon-subprocess-expanded',
377
+ target: {
378
+ type: 'bpmn:SubProcess',
379
+ isExpanded: true
380
+ }
381
+ },
382
+ {
383
+ label: 'Event Sub Process',
384
+ actionName: 'replace-with-event-subprocess',
385
+ className: 'bpmn-icon-event-subprocess-expanded',
386
+ target: {
387
+ type: 'bpmn:SubProcess',
388
+ triggeredByEvent: true,
389
+ isExpanded: true
390
+ }
391
+ }
392
+ ];
393
+
394
+ module.exports.EVENT_SUB_PROCESS = [
395
+ {
396
+ label: 'Sub Process',
397
+ actionName: 'replace-with-subprocess',
398
+ className: 'bpmn-icon-subprocess-expanded',
399
+ target: {
400
+ type: 'bpmn:SubProcess',
401
+ isExpanded: true
402
+ }
403
+ },
404
+ {
405
+ label: 'Transaction',
406
+ actionName: 'replace-with-transaction',
407
+ className: 'bpmn-icon-transaction',
408
+ target: {
409
+ type: 'bpmn:Transaction',
410
+ isExpanded: true
411
+ }
412
+ }
413
+ ];
414
+
415
+ module.exports.TASK = [
416
+ {
417
+ label: 'Task',
418
+ actionName: 'replace-with-task',
419
+ className: 'bpmn-icon-task',
420
+ target: {
421
+ type: 'bpmn:Task'
422
+ }
423
+ },
424
+ {
425
+ label: 'Send Task',
426
+ actionName: 'replace-with-send-task',
427
+ className: 'bpmn-icon-send',
428
+ target: {
429
+ type: 'bpmn:SendTask'
430
+ }
431
+ },
432
+ {
433
+ label: 'Receive Task',
434
+ actionName: 'replace-with-receive-task',
435
+ className: 'bpmn-icon-receive',
436
+ target: {
437
+ type: 'bpmn:ReceiveTask'
438
+ }
439
+ },
440
+ {
441
+ label: 'User Task',
442
+ actionName: 'replace-with-user-task',
443
+ className: 'bpmn-icon-user',
444
+ target: {
445
+ type: 'bpmn:UserTask'
446
+ }
447
+ },
448
+ {
449
+ label: 'Manual Task',
450
+ actionName: 'replace-with-manual-task',
451
+ className: 'bpmn-icon-manual',
452
+ target: {
453
+ type: 'bpmn:ManualTask'
454
+ }
455
+ },
456
+ {
457
+ label: 'Business Rule Task',
458
+ actionName: 'replace-with-rule-task',
459
+ className: 'bpmn-icon-business-rule',
460
+ target: {
461
+ type: 'bpmn:BusinessRuleTask'
462
+ }
463
+ },
464
+ {
465
+ label: 'Service Task',
466
+ actionName: 'replace-with-service-task',
467
+ className: 'bpmn-icon-service',
468
+ target: {
469
+ type: 'bpmn:ServiceTask'
470
+ }
471
+ },
472
+ {
473
+ label: 'Script Task',
474
+ actionName: 'replace-with-script-task',
475
+ className: 'bpmn-icon-script',
476
+ target: {
477
+ type: 'bpmn:ScriptTask'
478
+ }
479
+ },
480
+ {
481
+ label: 'Call Activity',
482
+ actionName: 'replace-with-call-activity',
483
+ className: 'bpmn-icon-call-activity',
484
+ target: {
485
+ type: 'bpmn:CallActivity'
486
+ }
487
+ },
488
+ {
489
+ label: 'Sub Process (collapsed)',
490
+ actionName: 'replace-with-collapsed-subprocess',
491
+ className: 'bpmn-icon-subprocess-collapsed',
492
+ target: {
493
+ type: 'bpmn:SubProcess',
494
+ isExpanded: false
495
+ }
496
+ },
497
+ {
498
+ label: 'Sub Process (expanded)',
499
+ actionName: 'replace-with-expanded-subprocess',
500
+ className: 'bpmn-icon-subprocess-expanded',
501
+ target: {
502
+ type: 'bpmn:SubProcess',
503
+ isExpanded: true
504
+ }
505
+ }
506
+ ];
507
+
508
+ module.exports.BOUNDARY_EVENT = [
509
+ {
510
+ label: 'Message Boundary Event',
511
+ actionName: 'replace-with-message-boundary',
512
+ className: 'bpmn-icon-intermediate-event-catch-message',
513
+ target: {
514
+ type: 'bpmn:BoundaryEvent',
515
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
516
+ }
517
+ },
518
+ {
519
+ label: 'Timer Boundary Event',
520
+ actionName: 'replace-with-timer-boundary',
521
+ className: 'bpmn-icon-intermediate-event-catch-timer',
522
+ target: {
523
+ type: 'bpmn:BoundaryEvent',
524
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
525
+ }
526
+ },
527
+ {
528
+ label: 'Escalation Boundary Event',
529
+ actionName: 'replace-with-escalation-boundary',
530
+ className: 'bpmn-icon-intermediate-event-catch-escalation',
531
+ target: {
532
+ type: 'bpmn:BoundaryEvent',
533
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
534
+ }
535
+ },
536
+ {
537
+ label: 'Conditional Boundary Event',
538
+ actionName: 'replace-with-conditional-boundary',
539
+ className: 'bpmn-icon-intermediate-event-catch-condition',
540
+ target: {
541
+ type: 'bpmn:BoundaryEvent',
542
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
543
+ }
544
+ },
545
+ {
546
+ label: 'Error Boundary Event',
547
+ actionName: 'replace-with-error-boundary',
548
+ className: 'bpmn-icon-intermediate-event-catch-error',
549
+ target: {
550
+ type: 'bpmn:BoundaryEvent',
551
+ eventDefinitionType: 'bpmn:ErrorEventDefinition'
552
+ }
553
+ },
554
+ {
555
+ label: 'Cancel Boundary Event',
556
+ actionName: 'replace-with-cancel-boundary',
557
+ className: 'bpmn-icon-intermediate-event-catch-cancel',
558
+ target: {
559
+ type: 'bpmn:BoundaryEvent',
560
+ eventDefinitionType: 'bpmn:CancelEventDefinition'
561
+ }
562
+ },
563
+ {
564
+ label: 'Signal Boundary Event',
565
+ actionName: 'replace-with-signal-boundary',
566
+ className: 'bpmn-icon-intermediate-event-catch-signal',
567
+ target: {
568
+ type: 'bpmn:BoundaryEvent',
569
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
570
+ }
571
+ },
572
+ {
573
+ label: 'Compensation Boundary Event',
574
+ actionName: 'replace-with-compensation-boundary',
575
+ className: 'bpmn-icon-intermediate-event-catch-compensation',
576
+ target: {
577
+ type: 'bpmn:BoundaryEvent',
578
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
579
+ }
580
+ },
581
+ {
582
+ label: 'Message Boundary Event (non-interrupting)',
583
+ actionName: 'replace-with-non-interrupting-message-boundary',
584
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
585
+ target: {
586
+ type: 'bpmn:BoundaryEvent',
587
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
588
+ cancelActivity: false
589
+ }
590
+ },
591
+ {
592
+ label: 'Timer Boundary Event (non-interrupting)',
593
+ actionName: 'replace-with-non-interrupting-timer-boundary',
594
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
595
+ target: {
596
+ type: 'bpmn:BoundaryEvent',
597
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
598
+ cancelActivity: false
599
+ }
600
+ },
601
+ {
602
+ label: 'Escalation Boundary Event (non-interrupting)',
603
+ actionName: 'replace-with-non-interrupting-escalation-boundary',
604
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
605
+ target: {
606
+ type: 'bpmn:BoundaryEvent',
607
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
608
+ cancelActivity: false
609
+ }
610
+ },
611
+ {
612
+ label: 'Conditional Boundary Event (non-interrupting)',
613
+ actionName: 'replace-with-non-interrupting-conditional-boundary',
614
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
615
+ target: {
616
+ type: 'bpmn:BoundaryEvent',
617
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
618
+ cancelActivity: false
619
+ }
620
+ },
621
+ {
622
+ label: 'Signal Boundary Event (non-interrupting)',
623
+ actionName: 'replace-with-non-interrupting-signal-boundary',
624
+ className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
625
+ target: {
626
+ type: 'bpmn:BoundaryEvent',
627
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
628
+ cancelActivity: false
629
+ }
630
+ }
631
+ ];
632
+
633
+ module.exports.EVENT_SUB_PROCESS_START_EVENT = [
634
+ {
635
+ label: 'Message Start Event',
636
+ actionName: 'replace-with-message-start',
637
+ className: 'bpmn-icon-start-event-message',
638
+ target: {
639
+ type: 'bpmn:StartEvent',
640
+ eventDefinitionType: 'bpmn:MessageEventDefinition'
641
+ }
642
+ },
643
+ {
644
+ label: 'Timer Start Event',
645
+ actionName: 'replace-with-timer-start',
646
+ className: 'bpmn-icon-start-event-timer',
647
+ target: {
648
+ type: 'bpmn:StartEvent',
649
+ eventDefinitionType: 'bpmn:TimerEventDefinition'
650
+ }
651
+ },
652
+ {
653
+ label: 'Conditional Start Event',
654
+ actionName: 'replace-with-conditional-start',
655
+ className: 'bpmn-icon-start-event-condition',
656
+ target: {
657
+ type: 'bpmn:StartEvent',
658
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition'
659
+ }
660
+ },
661
+ {
662
+ label: 'Signal Start Event',
663
+ actionName: 'replace-with-signal-start',
664
+ className: 'bpmn-icon-start-event-signal',
665
+ target: {
666
+ type: 'bpmn:StartEvent',
667
+ eventDefinitionType: 'bpmn:SignalEventDefinition'
668
+ }
669
+ },
670
+ {
671
+ label: 'Error Start Event',
672
+ actionName: 'replace-with-error-start',
673
+ className: 'bpmn-icon-start-event-error',
674
+ target: {
675
+ type: 'bpmn:StartEvent',
676
+ eventDefinitionType: 'bpmn:ErrorEventDefinition'
677
+ }
678
+ },
679
+ {
680
+ label: 'Escalation Start Event',
681
+ actionName: 'replace-with-escalation-start',
682
+ className: 'bpmn-icon-start-event-escalation',
683
+ target: {
684
+ type: 'bpmn:StartEvent',
685
+ eventDefinitionType: 'bpmn:EscalationEventDefinition'
686
+ }
687
+ },
688
+ {
689
+ label: 'Compensation Start Event',
690
+ actionName: 'replace-with-compensation-start',
691
+ className: 'bpmn-icon-start-event-compensation',
692
+ target: {
693
+ type: 'bpmn:StartEvent',
694
+ eventDefinitionType: 'bpmn:CompensateEventDefinition'
695
+ }
696
+ },
697
+ {
698
+ label: 'Message Start Event (non-interrupting)',
699
+ actionName: 'replace-with-non-interrupting-message-start',
700
+ className: 'bpmn-icon-start-event-non-interrupting-message',
701
+ target: {
702
+ type: 'bpmn:StartEvent',
703
+ eventDefinitionType: 'bpmn:MessageEventDefinition',
704
+ isInterrupting: false
705
+ }
706
+ },
707
+ {
708
+ label: 'Timer Start Event (non-interrupting)',
709
+ actionName: 'replace-with-non-interrupting-timer-start',
710
+ className: 'bpmn-icon-start-event-non-interrupting-timer',
711
+ target: {
712
+ type: 'bpmn:StartEvent',
713
+ eventDefinitionType: 'bpmn:TimerEventDefinition',
714
+ isInterrupting: false
715
+ }
716
+ },
717
+ {
718
+ label: 'Conditional Start Event (non-interrupting)',
719
+ actionName: 'replace-with-non-interrupting-conditional-start',
720
+ className: 'bpmn-icon-start-event-non-interrupting-condition',
721
+ target: {
722
+ type: 'bpmn:StartEvent',
723
+ eventDefinitionType: 'bpmn:ConditionalEventDefinition',
724
+ isInterrupting: false
725
+ }
726
+ },
727
+ {
728
+ label: 'Signal Start Event (non-interrupting)',
729
+ actionName: 'replace-with-non-interrupting-signal-start',
730
+ className: 'bpmn-icon-start-event-non-interrupting-signal',
731
+ target: {
732
+ type: 'bpmn:StartEvent',
733
+ eventDefinitionType: 'bpmn:SignalEventDefinition',
734
+ isInterrupting: false
735
+ }
736
+ },
737
+ {
738
+ label: 'Escalation Start Event (non-interrupting)',
739
+ actionName: 'replace-with-non-interrupting-escalation-start',
740
+ className: 'bpmn-icon-start-event-non-interrupting-escalation',
741
+ target: {
742
+ type: 'bpmn:StartEvent',
743
+ eventDefinitionType: 'bpmn:EscalationEventDefinition',
744
+ isInterrupting: false
745
+ }
746
+ }
747
+ ];
748
+
749
+ module.exports.SEQUENCE_FLOW = [
750
+ {
751
+ label: 'Sequence Flow',
752
+ actionName: 'replace-with-sequence-flow',
753
+ className: 'bpmn-icon-connection'
754
+ },
755
+ {
756
+ label: 'Default Flow',
757
+ actionName: 'replace-with-default-flow',
758
+ className: 'bpmn-icon-default-flow'
759
+ },
760
+ {
761
+ label: 'Conditional Flow',
762
+ actionName: 'replace-with-conditional-flow',
763
+ className: 'bpmn-icon-conditional-flow'
764
+ }
765
+ ];
766
+
767
+ module.exports.PARTICIPANT = [
768
+ {
769
+ label: 'Expanded Pool',
770
+ actionName: 'replace-with-expanded-pool',
771
+ className: 'bpmn-icon-participant',
772
+ target: {
773
+ type: 'bpmn:Participant',
774
+ isExpanded: true
775
+ }
776
+ },
777
+ {
778
+ label: 'Collapsed Pool',
779
+ actionName: 'replace-with-collapsed-pool',
780
+ // TODO(@janstuemmel): maybe design new icon
781
+ className: 'bpmn-icon-lane',
782
+ target: {
783
+ type: 'bpmn:Participant',
784
+ isExpanded: false
785
+ }
786
+ }
787
+ ];