How to use the bpmn-js-properties-panel/lib/helper/EventDefinitionHelper.getMessageEventDefinition function in bpmn-js-properties-panel

To help you get started, we’ve selected a few bpmn-js-properties-panel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / __tests__ / MessageSpec.js View on Github external
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');

      }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / helper / InputOutputHelper.js View on Github external
export function areOutputParametersSupported(element) {
  const messageEventDefinition = eventDefinitionHelper.getMessageEventDefinition(element);

  return isAny(element, [
    'bpmn:ServiceTask',
    'bpmn:SubProcess',
    'bpmn:ReceiveTask',
    'bpmn:CallActivity'
  ]) || messageEventDefinition;
}
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / MessageProps.js View on Github external
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)) {

bpmn-js-properties-panel

A simple properties panel for bpmn-js

MIT
Latest version published 7 days ago

Package Health Score

90 / 100
Full package analysis