Skip to content

Commit

Permalink
feat: add execution listeners for Zeebe
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jul 31, 2024
1 parent d90ef96 commit 414d5a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const LOWER_PRIORITY = 300;
const ALWAYS_DISPLAYED_GROUPS = [
'general',
'documentation',
'multiInstance'
'multiInstance',
'Zeebe__ExecutionListeners'
];


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ import {
inject
} from '../../../TestHelper';

import { BpmnPropertiesPanelModule as BpmnPropertiesPanel } from 'bpmn-js-properties-panel';
import {
BpmnPropertiesPanelModule as BpmnPropertiesPanel,
BpmnPropertiesProviderModule as BpmnPropertiesProvider,
ZeebePropertiesProviderModule as ZeebePropertiesProvider
} from 'bpmn-js-properties-panel';
import elementTemplatesModule from 'src/cloud-element-templates';
import { BpmnPropertiesProviderModule as BpmnPropertiesProvider } from 'bpmn-js-properties-panel';

import diagramXML from './ElementTemplatesPropertiesProvider.bpmn';
import templates from './ElementTemplatesPropertiesProvider.json';
Expand Down Expand Up @@ -54,6 +57,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
BpmnPropertiesPanel,
coreModule,
BpmnPropertiesProvider,
ZeebePropertiesProvider,
elementTemplatesModule,
modelingModule
],
Expand Down Expand Up @@ -190,6 +194,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
BpmnPropertiesPanel,
coreModule,
BpmnPropertiesProvider,
ZeebePropertiesProvider,
elementTemplatesModule,
modelingModule
],
Expand All @@ -201,7 +206,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
}));


it('should show only general and documentation group, and template-related entries when entriesVisible is unset',
it('should show only general, documentation, and execution listeners group, and template-related entries when entriesVisible is unset',
inject(async function(elementRegistry, selection) {

// given
Expand All @@ -216,13 +221,14 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
expectOnlyGroups(container, [
'general',
'documentation',
'Zeebe__ExecutionListeners',
'ElementTemplates__Template'
]);
})
);


it('should show only general and documentation group, and template-related entries when entriesVisible=false',
it('should show only general, documentation, and execution listeners group, and template-related entries when entriesVisible=false',
inject(async function(elementRegistry, selection) {

// given
Expand All @@ -237,13 +243,14 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
expectOnlyGroups(container, [
'general',
'documentation',
'Zeebe__ExecutionListeners',
'ElementTemplates__Template'
]);
})
);


it('should show only general and documentation group, and template group when template is unknown',
it('should show only general, documentation, and execution listeners group, and template group when template is unknown',
inject(async function(elementRegistry, selection) {

// given
Expand All @@ -258,6 +265,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
expectOnlyGroups(container, [
'general',
'documentation',
'Zeebe__ExecutionListeners',
'ElementTemplates__Template'
]);
})
Expand Down

0 comments on commit 414d5a3

Please sign in to comment.