feat(context-pad): add text annotation option for data objects/stores

Closes #564
This commit is contained in:
pedesen 2016-05-31 10:57:46 +02:00
parent d3ad9cfea6
commit f15647edfd
2 changed files with 19 additions and 3 deletions

View File

@ -279,7 +279,12 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
});
}
if (isAny(businessObject, [ 'bpmn:FlowNode', 'bpmn:InteractionNode' ]) ) {
if (isAny(businessObject, [
'bpmn:FlowNode',
'bpmn:InteractionNode',
'bpmn:DataObjectReference',
'bpmn:DataStoreReference'
]) ) {
assign(actions, {
'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation'),

View File

@ -250,9 +250,20 @@ describe('features - context-pad', function() {
expectContextPadEntries('DataStoreReference', [
'connect',
'append.text-annotation',
'!replace',
'!append.end-event',
'!append.text-annotation'
'!append.end-event'
]);
}));
it('should provide DataObjectReference entries', inject(function() {
expectContextPadEntries('DataObjectReference', [
'connect',
'append.text-annotation',
'!replace',
'!append.end-event'
]);
}));