| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919 |
- /**
- * @typedef { () => string } LabelGetter
- *
- * @typedef { {
- * label: string | LabelGetter;
- * actionName: string;
- * className: string;
- * target?: {
- * type: string;
- * isExpanded?: boolean;
- * isInterrupting?: boolean;
- * triggeredByEvent?: boolean;
- * cancelActivity?: boolean;
- * eventDefinitionType?: string;
- * eventDefinitionAttrs?: Record<string, any>
- * };
- * } } ReplaceOption
- */
- /**
- * @type {ReplaceOption[]}
- */
- export var START_EVENT = [
- {
- label: 'Start event',
- actionName: 'replace-with-none-start',
- className: 'bpmn-icon-start-event-none',
- target: {
- type: 'bpmn:StartEvent'
- }
- },
- {
- label: 'Intermediate throw event',
- actionName: 'replace-with-none-intermediate-throwing',
- className: 'bpmn-icon-intermediate-event-none',
- target: {
- type: 'bpmn:IntermediateThrowEvent'
- }
- },
- {
- label: 'End event',
- actionName: 'replace-with-none-end',
- className: 'bpmn-icon-end-event-none',
- target: {
- type: 'bpmn:EndEvent'
- }
- },
- {
- label: 'Message start event',
- actionName: 'replace-with-message-start',
- className: 'bpmn-icon-start-event-message',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition'
- }
- },
- {
- label: 'Timer start event',
- actionName: 'replace-with-timer-start',
- className: 'bpmn-icon-start-event-timer',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:TimerEventDefinition'
- }
- },
- {
- label: 'Conditional start event',
- actionName: 'replace-with-conditional-start',
- className: 'bpmn-icon-start-event-condition',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
- }
- },
- {
- label: 'Signal start event',
- actionName: 'replace-with-signal-start',
- className: 'bpmn-icon-start-event-signal',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition'
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var START_EVENT_SUB_PROCESS = [
- {
- label: 'Start event',
- actionName: 'replace-with-none-start',
- className: 'bpmn-icon-start-event-none',
- target: {
- type: 'bpmn:StartEvent'
- }
- },
- {
- label: 'Intermediate throw event',
- actionName: 'replace-with-none-intermediate-throwing',
- className: 'bpmn-icon-intermediate-event-none',
- target: {
- type: 'bpmn:IntermediateThrowEvent'
- }
- },
- {
- label: 'End event',
- actionName: 'replace-with-none-end',
- className: 'bpmn-icon-end-event-none',
- target: {
- type: 'bpmn:EndEvent'
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var INTERMEDIATE_EVENT = [
- {
- label: 'Start event',
- actionName: 'replace-with-none-start',
- className: 'bpmn-icon-start-event-none',
- target: {
- type: 'bpmn:StartEvent'
- }
- },
- {
- label: 'Intermediate throw event',
- actionName: 'replace-with-none-intermediate-throw',
- className: 'bpmn-icon-intermediate-event-none',
- target: {
- type: 'bpmn:IntermediateThrowEvent'
- }
- },
- {
- label: 'End event',
- actionName: 'replace-with-none-end',
- className: 'bpmn-icon-end-event-none',
- target: {
- type: 'bpmn:EndEvent'
- }
- },
- {
- label: 'Message intermediate catch event',
- actionName: 'replace-with-message-intermediate-catch',
- className: 'bpmn-icon-intermediate-event-catch-message',
- target: {
- type: 'bpmn:IntermediateCatchEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition'
- }
- },
- {
- label: 'Message intermediate throw event',
- actionName: 'replace-with-message-intermediate-throw',
- className: 'bpmn-icon-intermediate-event-throw-message',
- target: {
- type: 'bpmn:IntermediateThrowEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition'
- }
- },
- {
- label: 'Timer intermediate catch event',
- actionName: 'replace-with-timer-intermediate-catch',
- className: 'bpmn-icon-intermediate-event-catch-timer',
- target: {
- type: 'bpmn:IntermediateCatchEvent',
- eventDefinitionType: 'bpmn:TimerEventDefinition'
- }
- },
- {
- label: 'Escalation intermediate throw event',
- actionName: 'replace-with-escalation-intermediate-throw',
- className: 'bpmn-icon-intermediate-event-throw-escalation',
- target: {
- type: 'bpmn:IntermediateThrowEvent',
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
- }
- },
- {
- label: 'Conditional intermediate catch event',
- actionName: 'replace-with-conditional-intermediate-catch',
- className: 'bpmn-icon-intermediate-event-catch-condition',
- target: {
- type: 'bpmn:IntermediateCatchEvent',
- eventDefinitionType: 'bpmn:ConditionalEventDefinition'
- }
- },
- {
- label: 'Link intermediate catch event',
- actionName: 'replace-with-link-intermediate-catch',
- className: 'bpmn-icon-intermediate-event-catch-link',
- target: {
- type: 'bpmn:IntermediateCatchEvent',
- eventDefinitionType: 'bpmn:LinkEventDefinition',
- eventDefinitionAttrs: {
- name: ''
- }
- }
- },
- {
- label: 'Link intermediate throw event',
- actionName: 'replace-with-link-intermediate-throw',
- className: 'bpmn-icon-intermediate-event-throw-link',
- target: {
- type: 'bpmn:IntermediateThrowEvent',
- eventDefinitionType: 'bpmn:LinkEventDefinition',
- eventDefinitionAttrs: {
- name: ''
- }
- }
- },
- {
- label: 'Compensation intermediate throw event',
- actionName: 'replace-with-compensation-intermediate-throw',
- className: 'bpmn-icon-intermediate-event-throw-compensation',
- target: {
- type: 'bpmn:IntermediateThrowEvent',
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
- }
- },
- {
- label: 'Signal intermediate catch event',
- actionName: 'replace-with-signal-intermediate-catch',
- className: 'bpmn-icon-intermediate-event-catch-signal',
- target: {
- type: 'bpmn:IntermediateCatchEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition'
- }
- },
- {
- label: 'Signal intermediate throw event',
- actionName: 'replace-with-signal-intermediate-throw',
- className: 'bpmn-icon-intermediate-event-throw-signal',
- target: {
- type: 'bpmn:IntermediateThrowEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition'
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var END_EVENT = [
- {
- label: 'Start event',
- actionName: 'replace-with-none-start',
- className: 'bpmn-icon-start-event-none',
- target: {
- type: 'bpmn:StartEvent'
- }
- },
- {
- label: 'Intermediate throw event',
- actionName: 'replace-with-none-intermediate-throw',
- className: 'bpmn-icon-intermediate-event-none',
- target: {
- type: 'bpmn:IntermediateThrowEvent'
- }
- },
- {
- label: 'End event',
- actionName: 'replace-with-none-end',
- className: 'bpmn-icon-end-event-none',
- target: {
- type: 'bpmn:EndEvent'
- }
- },
- {
- label: 'Message end event',
- actionName: 'replace-with-message-end',
- className: 'bpmn-icon-end-event-message',
- target: {
- type: 'bpmn:EndEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition'
- }
- },
- {
- label: 'Escalation end event',
- actionName: 'replace-with-escalation-end',
- className: 'bpmn-icon-end-event-escalation',
- target: {
- type: 'bpmn:EndEvent',
- eventDefinitionType: 'bpmn:EscalationEventDefinition'
- }
- },
- {
- label: 'Error end event',
- actionName: 'replace-with-error-end',
- className: 'bpmn-icon-end-event-error',
- target: {
- type: 'bpmn:EndEvent',
- eventDefinitionType: 'bpmn:ErrorEventDefinition'
- }
- },
- {
- label: 'Cancel end event',
- actionName: 'replace-with-cancel-end',
- className: 'bpmn-icon-end-event-cancel',
- target: {
- type: 'bpmn:EndEvent',
- eventDefinitionType: 'bpmn:CancelEventDefinition'
- }
- },
- {
- label: 'Compensation end event',
- actionName: 'replace-with-compensation-end',
- className: 'bpmn-icon-end-event-compensation',
- target: {
- type: 'bpmn:EndEvent',
- eventDefinitionType: 'bpmn:CompensateEventDefinition'
- }
- },
- {
- label: 'Signal end event',
- actionName: 'replace-with-signal-end',
- className: 'bpmn-icon-end-event-signal',
- target: {
- type: 'bpmn:EndEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition'
- }
- },
- {
- label: 'Terminate end event',
- actionName: 'replace-with-terminate-end',
- className: 'bpmn-icon-end-event-terminate',
- target: {
- type: 'bpmn:EndEvent',
- eventDefinitionType: 'bpmn:TerminateEventDefinition'
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var GATEWAY = [
- {
- label: 'Exclusive gateway',
- actionName: 'replace-with-exclusive-gateway',
- className: 'bpmn-icon-gateway-xor',
- target: {
- type: 'bpmn:ExclusiveGateway'
- }
- },
- {
- label: 'Parallel gateway',
- actionName: 'replace-with-parallel-gateway',
- className: 'bpmn-icon-gateway-parallel',
- target: {
- type: 'bpmn:ParallelGateway'
- }
- },
- {
- label: 'Inclusive gateway',
- actionName: 'replace-with-inclusive-gateway',
- className: 'bpmn-icon-gateway-or',
- target: {
- type: 'bpmn:InclusiveGateway'
- }
- },
- {
- label: 'Complex gateway',
- actionName: 'replace-with-complex-gateway',
- className: 'bpmn-icon-gateway-complex',
- target: {
- type: 'bpmn:ComplexGateway'
- }
- },
- {
- label: 'Event-based gateway',
- actionName: 'replace-with-event-based-gateway',
- className: 'bpmn-icon-gateway-eventbased',
- target: {
- type: 'bpmn:EventBasedGateway',
- instantiate: false,
- eventGatewayType: 'Exclusive'
- }
- }
- // Gateways deactivated until https://github.com/bpmn-io/bpmn-js/issues/194
- // {
- // label: 'Event based instantiating Gateway',
- // actionName: 'replace-with-exclusive-event-based-gateway',
- // className: 'bpmn-icon-exclusive-event-based',
- // target: {
- // type: 'bpmn:EventBasedGateway'
- // },
- // options: {
- // businessObject: { instantiate: true, eventGatewayType: 'Exclusive' }
- // }
- // },
- // {
- // label: 'Parallel Event based instantiating Gateway',
- // actionName: 'replace-with-parallel-event-based-instantiate-gateway',
- // className: 'bpmn-icon-parallel-event-based-instantiate-gateway',
- // target: {
- // type: 'bpmn:EventBasedGateway'
- // },
- // options: {
- // businessObject: { instantiate: true, eventGatewayType: 'Parallel' }
- // }
- // }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var SUBPROCESS_EXPANDED = [
- {
- label: 'Transaction',
- actionName: 'replace-with-transaction',
- className: 'bpmn-icon-transaction',
- target: {
- type: 'bpmn:Transaction',
- isExpanded: true
- }
- },
- {
- label: 'Event sub-process',
- actionName: 'replace-with-event-subprocess',
- className: 'bpmn-icon-event-subprocess-expanded',
- target: {
- type: 'bpmn:SubProcess',
- triggeredByEvent: true,
- isExpanded: true
- }
- },
- {
- label: 'Sub-process (collapsed)',
- actionName: 'replace-with-collapsed-subprocess',
- className: 'bpmn-icon-subprocess-collapsed',
- target: {
- type: 'bpmn:SubProcess',
- isExpanded: false
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var TRANSACTION = [
- {
- label: 'Transaction',
- actionName: 'replace-with-transaction',
- className: 'bpmn-icon-transaction',
- target: {
- type: 'bpmn:Transaction',
- isExpanded: true
- }
- },
- {
- label: 'Sub-process',
- actionName: 'replace-with-subprocess',
- className: 'bpmn-icon-subprocess-expanded',
- target: {
- type: 'bpmn:SubProcess',
- isExpanded: true
- }
- },
- {
- label: 'Event sub-process',
- actionName: 'replace-with-event-subprocess',
- className: 'bpmn-icon-event-subprocess-expanded',
- target: {
- type: 'bpmn:SubProcess',
- triggeredByEvent: true,
- isExpanded: true
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var EVENT_SUB_PROCESS = TRANSACTION;
- /**
- * @type {ReplaceOption[]}
- */
- export var TASK = [
- {
- label: 'Task',
- actionName: 'replace-with-task',
- className: 'bpmn-icon-task',
- target: {
- type: 'bpmn:Task'
- }
- },
- {
- label: 'User task',
- actionName: 'replace-with-user-task',
- className: 'bpmn-icon-user',
- target: {
- type: 'bpmn:UserTask'
- }
- },
- {
- label: 'Service task',
- actionName: 'replace-with-service-task',
- className: 'bpmn-icon-service',
- target: {
- type: 'bpmn:ServiceTask'
- }
- },
- {
- label: 'Send task',
- actionName: 'replace-with-send-task',
- className: 'bpmn-icon-send',
- target: {
- type: 'bpmn:SendTask'
- }
- },
- {
- label: 'Receive task',
- actionName: 'replace-with-receive-task',
- className: 'bpmn-icon-receive',
- target: {
- type: 'bpmn:ReceiveTask'
- }
- },
- {
- label: 'Manual task',
- actionName: 'replace-with-manual-task',
- className: 'bpmn-icon-manual',
- target: {
- type: 'bpmn:ManualTask'
- }
- },
- {
- label: 'Business rule task',
- actionName: 'replace-with-rule-task',
- className: 'bpmn-icon-business-rule',
- target: {
- type: 'bpmn:BusinessRuleTask'
- }
- },
- {
- label: 'Script task',
- actionName: 'replace-with-script-task',
- className: 'bpmn-icon-script',
- target: {
- type: 'bpmn:ScriptTask'
- }
- },
- {
- label: 'Call activity',
- actionName: 'replace-with-call-activity',
- className: 'bpmn-icon-call-activity',
- target: {
- type: 'bpmn:CallActivity'
- }
- },
- {
- label: 'Sub-process (collapsed)',
- actionName: 'replace-with-collapsed-subprocess',
- className: 'bpmn-icon-subprocess-collapsed',
- target: {
- type: 'bpmn:SubProcess',
- isExpanded: false
- }
- },
- {
- label: 'Sub-process (expanded)',
- actionName: 'replace-with-expanded-subprocess',
- className: 'bpmn-icon-subprocess-expanded',
- target: {
- type: 'bpmn:SubProcess',
- isExpanded: true
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var DATA_OBJECT_REFERENCE = [
- {
- label: 'Data store reference',
- actionName: 'replace-with-data-store-reference',
- className: 'bpmn-icon-data-store',
- target: {
- type: 'bpmn:DataStoreReference'
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var DATA_STORE_REFERENCE = [
- {
- label: 'Data object reference',
- actionName: 'replace-with-data-object-reference',
- className: 'bpmn-icon-data-object',
- target: {
- type: 'bpmn:DataObjectReference'
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var BOUNDARY_EVENT = [
- {
- label: 'Message boundary event',
- actionName: 'replace-with-message-boundary',
- className: 'bpmn-icon-intermediate-event-catch-message',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Timer boundary event',
- actionName: 'replace-with-timer-boundary',
- className: 'bpmn-icon-intermediate-event-catch-timer',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:TimerEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Escalation boundary event',
- actionName: 'replace-with-escalation-boundary',
- className: 'bpmn-icon-intermediate-event-catch-escalation',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Conditional boundary event',
- actionName: 'replace-with-conditional-boundary',
- className: 'bpmn-icon-intermediate-event-catch-condition',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Error boundary event',
- actionName: 'replace-with-error-boundary',
- className: 'bpmn-icon-intermediate-event-catch-error',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:ErrorEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Cancel boundary event',
- actionName: 'replace-with-cancel-boundary',
- className: 'bpmn-icon-intermediate-event-catch-cancel',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:CancelEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Signal boundary event',
- actionName: 'replace-with-signal-boundary',
- className: 'bpmn-icon-intermediate-event-catch-signal',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Compensation boundary event',
- actionName: 'replace-with-compensation-boundary',
- className: 'bpmn-icon-intermediate-event-catch-compensation',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:CompensateEventDefinition',
- cancelActivity: true
- }
- },
- {
- label: 'Message boundary event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-message-boundary',
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition',
- cancelActivity: false
- }
- },
- {
- label: 'Timer boundary event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-timer-boundary',
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:TimerEventDefinition',
- cancelActivity: false
- }
- },
- {
- label: 'Escalation boundary event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-escalation-boundary',
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
- cancelActivity: false
- }
- },
- {
- label: 'Conditional boundary event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-conditional-boundary',
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
- cancelActivity: false
- }
- },
- {
- label: 'Signal boundary event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-signal-boundary',
- className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
- target: {
- type: 'bpmn:BoundaryEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition',
- cancelActivity: false
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var EVENT_SUB_PROCESS_START_EVENT = [
- {
- label: 'Message start event',
- actionName: 'replace-with-message-start',
- className: 'bpmn-icon-start-event-message',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition',
- isInterrupting: true
- }
- },
- {
- label: 'Timer start event',
- actionName: 'replace-with-timer-start',
- className: 'bpmn-icon-start-event-timer',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:TimerEventDefinition',
- isInterrupting: true
- }
- },
- {
- label: 'Conditional start event',
- actionName: 'replace-with-conditional-start',
- className: 'bpmn-icon-start-event-condition',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
- isInterrupting: true
- }
- },
- {
- label: 'Signal start event',
- actionName: 'replace-with-signal-start',
- className: 'bpmn-icon-start-event-signal',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition',
- isInterrupting: true
- }
- },
- {
- label: 'Error start event',
- actionName: 'replace-with-error-start',
- className: 'bpmn-icon-start-event-error',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:ErrorEventDefinition',
- isInterrupting: true
- }
- },
- {
- label: 'Escalation start event',
- actionName: 'replace-with-escalation-start',
- className: 'bpmn-icon-start-event-escalation',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
- isInterrupting: true
- }
- },
- {
- label: 'Compensation start event',
- actionName: 'replace-with-compensation-start',
- className: 'bpmn-icon-start-event-compensation',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:CompensateEventDefinition',
- isInterrupting: true
- }
- },
- {
- label: 'Message start event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-message-start',
- className: 'bpmn-icon-start-event-non-interrupting-message',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:MessageEventDefinition',
- isInterrupting: false
- }
- },
- {
- label: 'Timer start event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-timer-start',
- className: 'bpmn-icon-start-event-non-interrupting-timer',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:TimerEventDefinition',
- isInterrupting: false
- }
- },
- {
- label: 'Conditional start event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-conditional-start',
- className: 'bpmn-icon-start-event-non-interrupting-condition',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:ConditionalEventDefinition',
- isInterrupting: false
- }
- },
- {
- label: 'Signal start event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-signal-start',
- className: 'bpmn-icon-start-event-non-interrupting-signal',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:SignalEventDefinition',
- isInterrupting: false
- }
- },
- {
- label: 'Escalation start event (non-interrupting)',
- actionName: 'replace-with-non-interrupting-escalation-start',
- className: 'bpmn-icon-start-event-non-interrupting-escalation',
- target: {
- type: 'bpmn:StartEvent',
- eventDefinitionType: 'bpmn:EscalationEventDefinition',
- isInterrupting: false
- }
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var SEQUENCE_FLOW = [
- {
- label: 'Sequence flow',
- actionName: 'replace-with-sequence-flow',
- className: 'bpmn-icon-connection'
- },
- {
- label: 'Default flow',
- actionName: 'replace-with-default-flow',
- className: 'bpmn-icon-default-flow'
- },
- {
- label: 'Conditional flow',
- actionName: 'replace-with-conditional-flow',
- className: 'bpmn-icon-conditional-flow'
- }
- ];
- /**
- * @type {ReplaceOption[]}
- */
- export var PARTICIPANT = [
- {
- label: 'Expanded pool/participant',
- actionName: 'replace-with-expanded-pool',
- className: 'bpmn-icon-participant',
- target: {
- type: 'bpmn:Participant',
- isExpanded: true
- }
- },
- {
- label: function(element) {
- var label = 'Empty pool/participant';
- if (element.children && element.children.length) {
- label += ' (removes content)';
- }
- return label;
- },
- actionName: 'replace-with-collapsed-pool',
- // TODO(@janstuemmel): maybe design new icon
- className: 'bpmn-icon-lane',
- target: {
- type: 'bpmn:Participant',
- isExpanded: false
- }
- }
- ];
|