Skip to content

Commit 1a79ecd

Browse files
committed
feat: support creating and canceling task listeners
Related to camunda/camunda-modeler#5000
1 parent 1bbf410 commit 1a79ecd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/provider/zeebe/properties/TaskListener.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ import { ListenerType, Retries } from './shared/Listener';
88

99
// ensure types are in logical order
1010
export const EVENT_TYPE = [
11+
'creating',
1112
'assigning',
1213
'updating',
13-
'completing'
14+
'completing',
15+
'canceling',
1416
];
1517

1618
export const EVENT_TO_LABEL = {
19+
creating: 'Creating',
1720
assigning: 'Assigning',
1821
updating: 'Updating',
19-
completing: 'Completing'
22+
completing: 'Completing',
23+
canceling: 'Canceling',
2024
};
2125

2226
export function TaskListenerEntries(props) {

test/spec/provider/zeebe/TaskListenerProps.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ describe('provider/zeebe - TaskListenerProps', function() {
265265

266266
describe('event type', function() {
267267

268-
it('should use "assigning" as event type for a new listener', inject(
268+
it('should use "creating" as event type for a new listener', inject(
269269
async function(elementRegistry, selection) {
270270

271271
// given
@@ -288,7 +288,7 @@ describe('provider/zeebe - TaskListenerProps', function() {
288288
const listeners = getListeners(element);
289289
const newListener = listeners[listeners.length - 1];
290290

291-
expect(newListener).to.have.property('eventType', 'assigning');
291+
expect(newListener).to.have.property('eventType', 'creating');
292292
})
293293
);
294294

0 commit comments

Comments
 (0)