ReplaceOptions.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. export var START_EVENT = [
  2. {
  3. label: 'Start Event',
  4. actionName: 'replace-with-none-start',
  5. className: 'bpmn-icon-start-event-none',
  6. target: {
  7. type: 'bpmn:StartEvent'
  8. }
  9. },
  10. {
  11. label: 'Intermediate Throw Event',
  12. actionName: 'replace-with-none-intermediate-throwing',
  13. className: 'bpmn-icon-intermediate-event-none',
  14. target: {
  15. type: 'bpmn:IntermediateThrowEvent'
  16. }
  17. },
  18. {
  19. label: 'End Event',
  20. actionName: 'replace-with-none-end',
  21. className: 'bpmn-icon-end-event-none',
  22. target: {
  23. type: 'bpmn:EndEvent'
  24. }
  25. },
  26. {
  27. label: 'Message Start Event',
  28. actionName: 'replace-with-message-start',
  29. className: 'bpmn-icon-start-event-message',
  30. target: {
  31. type: 'bpmn:StartEvent',
  32. eventDefinitionType: 'bpmn:MessageEventDefinition'
  33. }
  34. },
  35. {
  36. label: 'Timer Start Event',
  37. actionName: 'replace-with-timer-start',
  38. className: 'bpmn-icon-start-event-timer',
  39. target: {
  40. type: 'bpmn:StartEvent',
  41. eventDefinitionType: 'bpmn:TimerEventDefinition'
  42. }
  43. },
  44. {
  45. label: 'Conditional Start Event',
  46. actionName: 'replace-with-conditional-start',
  47. className: 'bpmn-icon-start-event-condition',
  48. target: {
  49. type: 'bpmn:StartEvent',
  50. eventDefinitionType: 'bpmn:ConditionalEventDefinition'
  51. }
  52. },
  53. {
  54. label: 'Signal Start Event',
  55. actionName: 'replace-with-signal-start',
  56. className: 'bpmn-icon-start-event-signal',
  57. target: {
  58. type: 'bpmn:StartEvent',
  59. eventDefinitionType: 'bpmn:SignalEventDefinition'
  60. }
  61. }
  62. ];
  63. export var INTERMEDIATE_EVENT = [
  64. {
  65. label: 'Start Event',
  66. actionName: 'replace-with-none-start',
  67. className: 'bpmn-icon-start-event-none',
  68. target: {
  69. type: 'bpmn:StartEvent'
  70. }
  71. },
  72. {
  73. label: 'Intermediate Throw Event',
  74. actionName: 'replace-with-none-intermediate-throw',
  75. className: 'bpmn-icon-intermediate-event-none',
  76. target: {
  77. type: 'bpmn:IntermediateThrowEvent'
  78. }
  79. },
  80. {
  81. label: 'End Event',
  82. actionName: 'replace-with-none-end',
  83. className: 'bpmn-icon-end-event-none',
  84. target: {
  85. type: 'bpmn:EndEvent'
  86. }
  87. },
  88. {
  89. label: 'Message Intermediate Catch Event',
  90. actionName: 'replace-with-message-intermediate-catch',
  91. className: 'bpmn-icon-intermediate-event-catch-message',
  92. target: {
  93. type: 'bpmn:IntermediateCatchEvent',
  94. eventDefinitionType: 'bpmn:MessageEventDefinition'
  95. }
  96. },
  97. {
  98. label: 'Message Intermediate Throw Event',
  99. actionName: 'replace-with-message-intermediate-throw',
  100. className: 'bpmn-icon-intermediate-event-throw-message',
  101. target: {
  102. type: 'bpmn:IntermediateThrowEvent',
  103. eventDefinitionType: 'bpmn:MessageEventDefinition'
  104. }
  105. },
  106. {
  107. label: 'Timer Intermediate Catch Event',
  108. actionName: 'replace-with-timer-intermediate-catch',
  109. className: 'bpmn-icon-intermediate-event-catch-timer',
  110. target: {
  111. type: 'bpmn:IntermediateCatchEvent',
  112. eventDefinitionType: 'bpmn:TimerEventDefinition'
  113. }
  114. },
  115. {
  116. label: 'Escalation Intermediate Throw Event',
  117. actionName: 'replace-with-escalation-intermediate-throw',
  118. className: 'bpmn-icon-intermediate-event-throw-escalation',
  119. target: {
  120. type: 'bpmn:IntermediateThrowEvent',
  121. eventDefinitionType: 'bpmn:EscalationEventDefinition'
  122. }
  123. },
  124. {
  125. label: 'Conditional Intermediate Catch Event',
  126. actionName: 'replace-with-conditional-intermediate-catch',
  127. className: 'bpmn-icon-intermediate-event-catch-condition',
  128. target: {
  129. type: 'bpmn:IntermediateCatchEvent',
  130. eventDefinitionType: 'bpmn:ConditionalEventDefinition'
  131. }
  132. },
  133. {
  134. label: 'Link Intermediate Catch Event',
  135. actionName: 'replace-with-link-intermediate-catch',
  136. className: 'bpmn-icon-intermediate-event-catch-link',
  137. target: {
  138. type: 'bpmn:IntermediateCatchEvent',
  139. eventDefinitionType: 'bpmn:LinkEventDefinition',
  140. eventDefinitionAttrs: {
  141. name: ''
  142. }
  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. eventDefinitionAttrs: {
  153. name: ''
  154. }
  155. }
  156. },
  157. {
  158. label: 'Compensation Intermediate Throw Event',
  159. actionName: 'replace-with-compensation-intermediate-throw',
  160. className: 'bpmn-icon-intermediate-event-throw-compensation',
  161. target: {
  162. type: 'bpmn:IntermediateThrowEvent',
  163. eventDefinitionType: 'bpmn:CompensateEventDefinition'
  164. }
  165. },
  166. {
  167. label: 'Signal Intermediate Catch Event',
  168. actionName: 'replace-with-signal-intermediate-catch',
  169. className: 'bpmn-icon-intermediate-event-catch-signal',
  170. target: {
  171. type: 'bpmn:IntermediateCatchEvent',
  172. eventDefinitionType: 'bpmn:SignalEventDefinition'
  173. }
  174. },
  175. {
  176. label: 'Signal Intermediate Throw Event',
  177. actionName: 'replace-with-signal-intermediate-throw',
  178. className: 'bpmn-icon-intermediate-event-throw-signal',
  179. target: {
  180. type: 'bpmn:IntermediateThrowEvent',
  181. eventDefinitionType: 'bpmn:SignalEventDefinition'
  182. }
  183. }
  184. ];
  185. export var END_EVENT = [
  186. {
  187. label: 'Start Event',
  188. actionName: 'replace-with-none-start',
  189. className: 'bpmn-icon-start-event-none',
  190. target: {
  191. type: 'bpmn:StartEvent'
  192. }
  193. },
  194. {
  195. label: 'Intermediate Throw Event',
  196. actionName: 'replace-with-none-intermediate-throw',
  197. className: 'bpmn-icon-intermediate-event-none',
  198. target: {
  199. type: 'bpmn:IntermediateThrowEvent'
  200. }
  201. },
  202. {
  203. label: 'End Event',
  204. actionName: 'replace-with-none-end',
  205. className: 'bpmn-icon-end-event-none',
  206. target: {
  207. type: 'bpmn:EndEvent'
  208. }
  209. },
  210. {
  211. label: 'Message End Event',
  212. actionName: 'replace-with-message-end',
  213. className: 'bpmn-icon-end-event-message',
  214. target: {
  215. type: 'bpmn:EndEvent',
  216. eventDefinitionType: 'bpmn:MessageEventDefinition'
  217. }
  218. },
  219. {
  220. label: 'Escalation End Event',
  221. actionName: 'replace-with-escalation-end',
  222. className: 'bpmn-icon-end-event-escalation',
  223. target: {
  224. type: 'bpmn:EndEvent',
  225. eventDefinitionType: 'bpmn:EscalationEventDefinition'
  226. }
  227. },
  228. {
  229. label: 'Error End Event',
  230. actionName: 'replace-with-error-end',
  231. className: 'bpmn-icon-end-event-error',
  232. target: {
  233. type: 'bpmn:EndEvent',
  234. eventDefinitionType: 'bpmn:ErrorEventDefinition'
  235. }
  236. },
  237. {
  238. label: 'Cancel End Event',
  239. actionName: 'replace-with-cancel-end',
  240. className: 'bpmn-icon-end-event-cancel',
  241. target: {
  242. type: 'bpmn:EndEvent',
  243. eventDefinitionType: 'bpmn:CancelEventDefinition'
  244. }
  245. },
  246. {
  247. label: 'Compensation End Event',
  248. actionName: 'replace-with-compensation-end',
  249. className: 'bpmn-icon-end-event-compensation',
  250. target: {
  251. type: 'bpmn:EndEvent',
  252. eventDefinitionType: 'bpmn:CompensateEventDefinition'
  253. }
  254. },
  255. {
  256. label: 'Signal End Event',
  257. actionName: 'replace-with-signal-end',
  258. className: 'bpmn-icon-end-event-signal',
  259. target: {
  260. type: 'bpmn:EndEvent',
  261. eventDefinitionType: 'bpmn:SignalEventDefinition'
  262. }
  263. },
  264. {
  265. label: 'Terminate End Event',
  266. actionName: 'replace-with-terminate-end',
  267. className: 'bpmn-icon-end-event-terminate',
  268. target: {
  269. type: 'bpmn:EndEvent',
  270. eventDefinitionType: 'bpmn:TerminateEventDefinition'
  271. }
  272. }
  273. ];
  274. export var GATEWAY = [
  275. {
  276. label: 'Exclusive Gateway',
  277. actionName: 'replace-with-exclusive-gateway',
  278. className: 'bpmn-icon-gateway-xor',
  279. target: {
  280. type: 'bpmn:ExclusiveGateway'
  281. }
  282. },
  283. {
  284. label: 'Parallel Gateway',
  285. actionName: 'replace-with-parallel-gateway',
  286. className: 'bpmn-icon-gateway-parallel',
  287. target: {
  288. type: 'bpmn:ParallelGateway'
  289. }
  290. },
  291. {
  292. label: 'Inclusive Gateway',
  293. actionName: 'replace-with-inclusive-gateway',
  294. className: 'bpmn-icon-gateway-or',
  295. target: {
  296. type: 'bpmn:InclusiveGateway'
  297. }
  298. },
  299. {
  300. label: 'Complex Gateway',
  301. actionName: 'replace-with-complex-gateway',
  302. className: 'bpmn-icon-gateway-complex',
  303. target: {
  304. type: 'bpmn:ComplexGateway'
  305. }
  306. },
  307. {
  308. label: 'Event based Gateway',
  309. actionName: 'replace-with-event-based-gateway',
  310. className: 'bpmn-icon-gateway-eventbased',
  311. target: {
  312. type: 'bpmn:EventBasedGateway',
  313. instantiate: false,
  314. eventGatewayType: 'Exclusive'
  315. }
  316. }
  317. // Gateways deactivated until https://github.com/bpmn-io/bpmn-js/issues/194
  318. // {
  319. // label: 'Event based instantiating Gateway',
  320. // actionName: 'replace-with-exclusive-event-based-gateway',
  321. // className: 'bpmn-icon-exclusive-event-based',
  322. // target: {
  323. // type: 'bpmn:EventBasedGateway'
  324. // },
  325. // options: {
  326. // businessObject: { instantiate: true, eventGatewayType: 'Exclusive' }
  327. // }
  328. // },
  329. // {
  330. // label: 'Parallel Event based instantiating Gateway',
  331. // actionName: 'replace-with-parallel-event-based-instantiate-gateway',
  332. // className: 'bpmn-icon-parallel-event-based-instantiate-gateway',
  333. // target: {
  334. // type: 'bpmn:EventBasedGateway'
  335. // },
  336. // options: {
  337. // businessObject: { instantiate: true, eventGatewayType: 'Parallel' }
  338. // }
  339. // }
  340. ];
  341. export var 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. export var TRANSACTION = [
  372. {
  373. label: 'Sub Process',
  374. actionName: 'replace-with-subprocess',
  375. className: 'bpmn-icon-subprocess-expanded',
  376. target: {
  377. type: 'bpmn:SubProcess',
  378. isExpanded: true
  379. }
  380. },
  381. {
  382. label: 'Event Sub Process',
  383. actionName: 'replace-with-event-subprocess',
  384. className: 'bpmn-icon-event-subprocess-expanded',
  385. target: {
  386. type: 'bpmn:SubProcess',
  387. triggeredByEvent: true,
  388. isExpanded: true
  389. }
  390. }
  391. ];
  392. export var EVENT_SUB_PROCESS = [
  393. {
  394. label: 'Sub Process',
  395. actionName: 'replace-with-subprocess',
  396. className: 'bpmn-icon-subprocess-expanded',
  397. target: {
  398. type: 'bpmn:SubProcess',
  399. isExpanded: true
  400. }
  401. },
  402. {
  403. label: 'Transaction',
  404. actionName: 'replace-with-transaction',
  405. className: 'bpmn-icon-transaction',
  406. target: {
  407. type: 'bpmn:Transaction',
  408. isExpanded: true
  409. }
  410. }
  411. ];
  412. export var TASK = [
  413. {
  414. label: 'Task',
  415. actionName: 'replace-with-task',
  416. className: 'bpmn-icon-task',
  417. target: {
  418. type: 'bpmn:Task'
  419. }
  420. },
  421. {
  422. label: 'Send Task',
  423. actionName: 'replace-with-send-task',
  424. className: 'bpmn-icon-send',
  425. target: {
  426. type: 'bpmn:SendTask'
  427. }
  428. },
  429. {
  430. label: 'Receive Task',
  431. actionName: 'replace-with-receive-task',
  432. className: 'bpmn-icon-receive',
  433. target: {
  434. type: 'bpmn:ReceiveTask'
  435. }
  436. },
  437. {
  438. label: 'User Task',
  439. actionName: 'replace-with-user-task',
  440. className: 'bpmn-icon-user',
  441. target: {
  442. type: 'bpmn:UserTask'
  443. }
  444. },
  445. {
  446. label: 'Manual Task',
  447. actionName: 'replace-with-manual-task',
  448. className: 'bpmn-icon-manual',
  449. target: {
  450. type: 'bpmn:ManualTask'
  451. }
  452. },
  453. {
  454. label: 'Business Rule Task',
  455. actionName: 'replace-with-rule-task',
  456. className: 'bpmn-icon-business-rule',
  457. target: {
  458. type: 'bpmn:BusinessRuleTask'
  459. }
  460. },
  461. {
  462. label: 'Service Task',
  463. actionName: 'replace-with-service-task',
  464. className: 'bpmn-icon-service',
  465. target: {
  466. type: 'bpmn:ServiceTask'
  467. }
  468. },
  469. {
  470. label: 'Script Task',
  471. actionName: 'replace-with-script-task',
  472. className: 'bpmn-icon-script',
  473. target: {
  474. type: 'bpmn:ScriptTask'
  475. }
  476. },
  477. {
  478. label: 'Call Activity',
  479. actionName: 'replace-with-call-activity',
  480. className: 'bpmn-icon-call-activity',
  481. target: {
  482. type: 'bpmn:CallActivity'
  483. }
  484. },
  485. {
  486. label: 'Sub Process (collapsed)',
  487. actionName: 'replace-with-collapsed-subprocess',
  488. className: 'bpmn-icon-subprocess-collapsed',
  489. target: {
  490. type: 'bpmn:SubProcess',
  491. isExpanded: false
  492. }
  493. },
  494. {
  495. label: 'Sub Process (expanded)',
  496. actionName: 'replace-with-expanded-subprocess',
  497. className: 'bpmn-icon-subprocess-expanded',
  498. target: {
  499. type: 'bpmn:SubProcess',
  500. isExpanded: true
  501. }
  502. }
  503. ];
  504. export var BOUNDARY_EVENT = [
  505. {
  506. label: 'Message Boundary Event',
  507. actionName: 'replace-with-message-boundary',
  508. className: 'bpmn-icon-intermediate-event-catch-message',
  509. target: {
  510. type: 'bpmn:BoundaryEvent',
  511. eventDefinitionType: 'bpmn:MessageEventDefinition'
  512. }
  513. },
  514. {
  515. label: 'Timer Boundary Event',
  516. actionName: 'replace-with-timer-boundary',
  517. className: 'bpmn-icon-intermediate-event-catch-timer',
  518. target: {
  519. type: 'bpmn:BoundaryEvent',
  520. eventDefinitionType: 'bpmn:TimerEventDefinition'
  521. }
  522. },
  523. {
  524. label: 'Escalation Boundary Event',
  525. actionName: 'replace-with-escalation-boundary',
  526. className: 'bpmn-icon-intermediate-event-catch-escalation',
  527. target: {
  528. type: 'bpmn:BoundaryEvent',
  529. eventDefinitionType: 'bpmn:EscalationEventDefinition'
  530. }
  531. },
  532. {
  533. label: 'Conditional Boundary Event',
  534. actionName: 'replace-with-conditional-boundary',
  535. className: 'bpmn-icon-intermediate-event-catch-condition',
  536. target: {
  537. type: 'bpmn:BoundaryEvent',
  538. eventDefinitionType: 'bpmn:ConditionalEventDefinition'
  539. }
  540. },
  541. {
  542. label: 'Error Boundary Event',
  543. actionName: 'replace-with-error-boundary',
  544. className: 'bpmn-icon-intermediate-event-catch-error',
  545. target: {
  546. type: 'bpmn:BoundaryEvent',
  547. eventDefinitionType: 'bpmn:ErrorEventDefinition'
  548. }
  549. },
  550. {
  551. label: 'Cancel Boundary Event',
  552. actionName: 'replace-with-cancel-boundary',
  553. className: 'bpmn-icon-intermediate-event-catch-cancel',
  554. target: {
  555. type: 'bpmn:BoundaryEvent',
  556. eventDefinitionType: 'bpmn:CancelEventDefinition'
  557. }
  558. },
  559. {
  560. label: 'Signal Boundary Event',
  561. actionName: 'replace-with-signal-boundary',
  562. className: 'bpmn-icon-intermediate-event-catch-signal',
  563. target: {
  564. type: 'bpmn:BoundaryEvent',
  565. eventDefinitionType: 'bpmn:SignalEventDefinition'
  566. }
  567. },
  568. {
  569. label: 'Compensation Boundary Event',
  570. actionName: 'replace-with-compensation-boundary',
  571. className: 'bpmn-icon-intermediate-event-catch-compensation',
  572. target: {
  573. type: 'bpmn:BoundaryEvent',
  574. eventDefinitionType: 'bpmn:CompensateEventDefinition'
  575. }
  576. },
  577. {
  578. label: 'Message Boundary Event (non-interrupting)',
  579. actionName: 'replace-with-non-interrupting-message-boundary',
  580. className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
  581. target: {
  582. type: 'bpmn:BoundaryEvent',
  583. eventDefinitionType: 'bpmn:MessageEventDefinition',
  584. cancelActivity: false
  585. }
  586. },
  587. {
  588. label: 'Timer Boundary Event (non-interrupting)',
  589. actionName: 'replace-with-non-interrupting-timer-boundary',
  590. className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
  591. target: {
  592. type: 'bpmn:BoundaryEvent',
  593. eventDefinitionType: 'bpmn:TimerEventDefinition',
  594. cancelActivity: false
  595. }
  596. },
  597. {
  598. label: 'Escalation Boundary Event (non-interrupting)',
  599. actionName: 'replace-with-non-interrupting-escalation-boundary',
  600. className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
  601. target: {
  602. type: 'bpmn:BoundaryEvent',
  603. eventDefinitionType: 'bpmn:EscalationEventDefinition',
  604. cancelActivity: false
  605. }
  606. },
  607. {
  608. label: 'Conditional Boundary Event (non-interrupting)',
  609. actionName: 'replace-with-non-interrupting-conditional-boundary',
  610. className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
  611. target: {
  612. type: 'bpmn:BoundaryEvent',
  613. eventDefinitionType: 'bpmn:ConditionalEventDefinition',
  614. cancelActivity: false
  615. }
  616. },
  617. {
  618. label: 'Signal Boundary Event (non-interrupting)',
  619. actionName: 'replace-with-non-interrupting-signal-boundary',
  620. className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
  621. target: {
  622. type: 'bpmn:BoundaryEvent',
  623. eventDefinitionType: 'bpmn:SignalEventDefinition',
  624. cancelActivity: false
  625. }
  626. }
  627. ];
  628. export var EVENT_SUB_PROCESS_START_EVENT = [
  629. {
  630. label: 'Message Start Event',
  631. actionName: 'replace-with-message-start',
  632. className: 'bpmn-icon-start-event-message',
  633. target: {
  634. type: 'bpmn:StartEvent',
  635. eventDefinitionType: 'bpmn:MessageEventDefinition'
  636. }
  637. },
  638. {
  639. label: 'Timer Start Event',
  640. actionName: 'replace-with-timer-start',
  641. className: 'bpmn-icon-start-event-timer',
  642. target: {
  643. type: 'bpmn:StartEvent',
  644. eventDefinitionType: 'bpmn:TimerEventDefinition'
  645. }
  646. },
  647. {
  648. label: 'Conditional Start Event',
  649. actionName: 'replace-with-conditional-start',
  650. className: 'bpmn-icon-start-event-condition',
  651. target: {
  652. type: 'bpmn:StartEvent',
  653. eventDefinitionType: 'bpmn:ConditionalEventDefinition'
  654. }
  655. },
  656. {
  657. label: 'Signal Start Event',
  658. actionName: 'replace-with-signal-start',
  659. className: 'bpmn-icon-start-event-signal',
  660. target: {
  661. type: 'bpmn:StartEvent',
  662. eventDefinitionType: 'bpmn:SignalEventDefinition'
  663. }
  664. },
  665. {
  666. label: 'Error Start Event',
  667. actionName: 'replace-with-error-start',
  668. className: 'bpmn-icon-start-event-error',
  669. target: {
  670. type: 'bpmn:StartEvent',
  671. eventDefinitionType: 'bpmn:ErrorEventDefinition'
  672. }
  673. },
  674. {
  675. label: 'Escalation Start Event',
  676. actionName: 'replace-with-escalation-start',
  677. className: 'bpmn-icon-start-event-escalation',
  678. target: {
  679. type: 'bpmn:StartEvent',
  680. eventDefinitionType: 'bpmn:EscalationEventDefinition'
  681. }
  682. },
  683. {
  684. label: 'Compensation Start Event',
  685. actionName: 'replace-with-compensation-start',
  686. className: 'bpmn-icon-start-event-compensation',
  687. target: {
  688. type: 'bpmn:StartEvent',
  689. eventDefinitionType: 'bpmn:CompensateEventDefinition'
  690. }
  691. },
  692. {
  693. label: 'Message Start Event (non-interrupting)',
  694. actionName: 'replace-with-non-interrupting-message-start',
  695. className: 'bpmn-icon-start-event-non-interrupting-message',
  696. target: {
  697. type: 'bpmn:StartEvent',
  698. eventDefinitionType: 'bpmn:MessageEventDefinition',
  699. isInterrupting: false
  700. }
  701. },
  702. {
  703. label: 'Timer Start Event (non-interrupting)',
  704. actionName: 'replace-with-non-interrupting-timer-start',
  705. className: 'bpmn-icon-start-event-non-interrupting-timer',
  706. target: {
  707. type: 'bpmn:StartEvent',
  708. eventDefinitionType: 'bpmn:TimerEventDefinition',
  709. isInterrupting: false
  710. }
  711. },
  712. {
  713. label: 'Conditional Start Event (non-interrupting)',
  714. actionName: 'replace-with-non-interrupting-conditional-start',
  715. className: 'bpmn-icon-start-event-non-interrupting-condition',
  716. target: {
  717. type: 'bpmn:StartEvent',
  718. eventDefinitionType: 'bpmn:ConditionalEventDefinition',
  719. isInterrupting: false
  720. }
  721. },
  722. {
  723. label: 'Signal Start Event (non-interrupting)',
  724. actionName: 'replace-with-non-interrupting-signal-start',
  725. className: 'bpmn-icon-start-event-non-interrupting-signal',
  726. target: {
  727. type: 'bpmn:StartEvent',
  728. eventDefinitionType: 'bpmn:SignalEventDefinition',
  729. isInterrupting: false
  730. }
  731. },
  732. {
  733. label: 'Escalation Start Event (non-interrupting)',
  734. actionName: 'replace-with-non-interrupting-escalation-start',
  735. className: 'bpmn-icon-start-event-non-interrupting-escalation',
  736. target: {
  737. type: 'bpmn:StartEvent',
  738. eventDefinitionType: 'bpmn:EscalationEventDefinition',
  739. isInterrupting: false
  740. }
  741. }
  742. ];
  743. export var SEQUENCE_FLOW = [
  744. {
  745. label: 'Sequence Flow',
  746. actionName: 'replace-with-sequence-flow',
  747. className: 'bpmn-icon-connection'
  748. },
  749. {
  750. label: 'Default Flow',
  751. actionName: 'replace-with-default-flow',
  752. className: 'bpmn-icon-default-flow'
  753. },
  754. {
  755. label: 'Conditional Flow',
  756. actionName: 'replace-with-conditional-flow',
  757. className: 'bpmn-icon-conditional-flow'
  758. }
  759. ];
  760. export var PARTICIPANT = [
  761. {
  762. label: 'Expanded Pool',
  763. actionName: 'replace-with-expanded-pool',
  764. className: 'bpmn-icon-participant',
  765. target: {
  766. type: 'bpmn:Participant',
  767. isExpanded: true
  768. }
  769. },
  770. {
  771. label: 'Collapsed Pool',
  772. actionName: 'replace-with-collapsed-pool',
  773. // TODO(@janstuemmel): maybe design new icon
  774. className: 'bpmn-icon-lane',
  775. target: {
  776. type: 'bpmn:Participant',
  777. isExpanded: false
  778. }
  779. }
  780. ];