Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30 from zeebe-io/event_based_gateway
Browse files Browse the repository at this point in the history
Event based gateway
  • Loading branch information
dominikhorn93 authored Dec 14, 2018
2 parents b5cfde8 + 2b98432 commit eb77c32
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zeebe-modeler",
"version": "0.4.0",
"version": "0.5.0",
"description": "Zeebe Modeler for BPMN based on bpmn.io",
"private": true,
"main": "lib/index.js",
Expand Down
6 changes: 4 additions & 2 deletions client/lib/custom/CustomContextPadProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ function CustomContextPadProvider(config, injector, eventBus, contextPad, modeli
var filteredActions = {};

if (!is(businessObject, 'bpmn:EndEvent')) {
assign(filteredActions, { 'append.append-service-task': appendAction('bpmn:ServiceTask', 'bpmn-icon-service-task') });
assign(filteredActions, { 'append.append-send-task': appendAction('bpmn:ReceiveTask', 'bpmn-icon-receive-task') });
if(!is(businessObject, 'bpmn:EventBasedGateway')){
assign(filteredActions, { 'append.append-service-task': appendAction('bpmn:ServiceTask', 'bpmn-icon-service-task') });
assign(filteredActions, { 'append.append-send-task': appendAction('bpmn:ReceiveTask', 'bpmn-icon-receive-task') });
}
assign(filteredActions, { 'append.append-message-event': appendAction('bpmn:IntermediateCatchEvent', 'bpmn-icon-intermediate-event-catch-message', 'Message Event', { eventDefinitionType: 'bpmn:MessageEventDefinition' }) });
assign(filteredActions, { 'append.append-timer-event': appendAction('bpmn:IntermediateCatchEvent', 'bpmn-icon-intermediate-event-catch-timer', 'Timer Event', { eventDefinitionType: 'bpmn:TimerEventDefinition' }) });
}
Expand Down
3 changes: 2 additions & 1 deletion client/lib/custom/modeler-options/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ var AVAILABLE_REPLACE_ELEMENTS = [
'replace-with-collapsed-subprocess',
'replace-with-expanded-subprocess',
'replace-with-timer-boundary',
'replace-with-message-boundary'
'replace-with-message-boundary',
'replace-with-event-based-gateway'
];

var AVAILABLE_CONTEXTPAD_ENTRIES = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zeebe-modeler-builder",
"version": "0.4.0",
"version": "0.5.0",
"description": "Zeebe Modeler for BPMN based on bpmn.io",
"scripts": {
"app:auto-test": "npm run app:test -- --watch",
Expand Down

0 comments on commit eb77c32

Please sign in to comment.