Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(inject(function(elementRegistry, selection) {
// given
const shape = elementRegistry.get('MessageEvent_2');
selection.select(shape);
const bo = getBusinessObject(shape);
const messageEventDefinition =
eventDefinitionHelper.getMessageEventDefinition(bo);
const messageRef = messageEventDefinition.messageRef;
subscriptionDefinition = getSubscriptionDefinitions(messageRef)[0];
input = getInputField(
container, 'camunda-message-element-subscription', 'correlationKey');
// when
triggerValue(input, 'foo', 'change');
}));
export function areOutputParametersSupported(element) {
const messageEventDefinition = eventDefinitionHelper.getMessageEventDefinition(element);
return isAny(element, [
'bpmn:ServiceTask',
'bpmn:SubProcess',
'bpmn:ReceiveTask',
'bpmn:CallActivity'
]) || messageEventDefinition;
}
export default function(group, element, bpmnFactory, translate) {
const messageEventDefinition = eventDefinitionHelper.getMessageEventDefinition(element),
parent = element.parent;
if (is(element, 'bpmn:ReceiveTask')) {
message(group, element, bpmnFactory, getBusinessObject(element), translate);
group.entries = group.entries.concat(referenceExtensionElementProperty(element, getBusinessObject(element), bpmnFactory, {
id: 'message-element-subscription',
label: 'Subscription Correlation Key',
referenceProperty: 'messageRef',
modelProperty: 'correlationKey',
extensionElement: 'zeebe:Subscription',
shouldValidate: true
}));
} else if (messageEventDefinition) {
message(group, element, bpmnFactory, messageEventDefinition, translate);
if (!is(element, 'bpmn:StartEvent') || isEventSubProcess(parent)) {