ReplaceOptions.js 21 KB

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