How to use bpmn-js-properties-panel - 10 common examples

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__ / TimerDurationSpec.js View on Github external
beforeEach(inject(function(elementRegistry, selection) {

      // given
      const shape = elementRegistry.get('TimerEvent_1');
      selection.select(shape);

      const bo = getBusinessObject(shape);
      const timerDefinition = eventDefinitionHelper.getTimerEventDefinition(bo);
      timeDuration = timerDefinition.timeDuration;

      input = getInputField(container, 'camunda-timer-event-duration', 'timerDefinition');

      // when
      triggerValue(input, 'foo', 'change');

    }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / __tests__ / BoundaryEventTimerEventDefinitionSpec.js View on Github external
beforeEach(inject(function(elementRegistry, selection) {

        // given
        const shape = elementRegistry.get('TIME_DURATION');
        selection.select(shape);

        const bo = getBusinessObject(shape);
        const timerDefinition = eventDefinitionHelper.getTimerEventDefinition(bo);
        timeDuration = timerDefinition.timeDuration;

        input = getTimerDefinitionField(container);

        // when
        triggerValue(input, 'foo', 'change');
      }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / __tests__ / BoundaryEventTimerEventDefinitionSpec.js View on Github external
beforeEach(inject(function(elementRegistry, selection) {

        // when
        const shape = elementRegistry.get('WITHOUT_TYPE');
        selection.select(shape);

        const bo = getBusinessObject(shape);
        timerDefinition = eventDefinitionHelper.getTimerEventDefinition(bo);
      }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / __tests__ / StartEventTimerEventDefinitionSpec.js View on Github external
beforeEach(inject(function(elementRegistry, selection) {

        // when
        const shape = elementRegistry.get('TIME_DATE');
        selection.select(shape);

        const bo = getBusinessObject(shape);
        timerDefinition = eventDefinitionHelper.getTimerEventDefinition(bo);
      }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / __tests__ / StartEventTimerEventDefinitionSpec.js View on Github external
beforeEach(inject(function(elementRegistry, selection) {

        // given
        const shape = elementRegistry.get('TIME_DATE');
        selection.select(shape);

        const bo = getBusinessObject(shape);
        const timerDefinition = eventDefinitionHelper.getTimerEventDefinition(bo);
        timeDate = timerDefinition.timeDate;

        input = getTimerDefinitionField(container);

        // when
        triggerValue(input, 'foo', 'change');
      }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / __tests__ / StartEventTimerEventDefinitionSpec.js View on Github external
beforeEach(inject(function(elementRegistry, selection) {

        // given
        const shape = elementRegistry.get('TIME_CYCLE');
        selection.select(shape);

        const bo = getBusinessObject(shape);
        const timerDefinition = eventDefinitionHelper.getTimerEventDefinition(bo);
        timeCycle = timerDefinition.timeCycle;

        input = getTimerDefinitionField(container);

        // when
        triggerValue(input, 'foo', 'change');
      }));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / __tests__ / BoundaryEventTimerEventDefinitionSpec.js View on Github external
beforeEach(inject(function(elementRegistry, selection) {

        // given
        const shape = elementRegistry.get('TIME_CYCLE');
        selection.select(shape);

        const bo = getBusinessObject(shape);
        const timerDefinition = eventDefinitionHelper.getTimerEventDefinition(bo);
        timeCycle = timerDefinition.timeCycle;

        input = getTimerDefinitionField(container);

        // when
        triggerValue(input, 'foo', 'change');
      }));
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 / parts / TaskDefinitionProps.js View on Github external
setProperty: function(element, values, node) {
      const bo = getBusinessObject(element);
      const commands = [];

      // create extensionElements
      let extensionElements = bo.get('extensionElements');
      if (!extensionElements) {
        extensionElements = elementHelper.createElement('bpmn:ExtensionElements', { values: [] }, bo, bpmnFactory);
        commands.push(cmdHelper.updateProperties(element, { extensionElements: extensionElements }));
      }

      // create taskDefinition
      let taskDefinition = getTaskDefinition(element);

      if (!taskDefinition) {
        taskDefinition = elementHelper.createElement('zeebe:TaskDefinition', { }, extensionElements, bpmnFactory);
        commands.push(cmdHelper.addAndRemoveElementsFromList(
          element,
          extensionElements,
          'values',
          'extensionElements',
          [ taskDefinition ],
          []
        ));
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / CallActivityProps.js View on Github external
function setProperties(element, values) {

    const businessObject = getBusinessObject(element),
          commands = [];

    // ensure extensionElements
    let extensionElements = businessObject.get('extensionElements');
    if (!extensionElements) {
      extensionElements = elementHelper.createElement('bpmn:ExtensionElements', { values: [] }, businessObject, bpmnFactory);
      commands.push(cmdHelper.updateBusinessObject(element, businessObject, { extensionElements: extensionElements }));
    }

    // ensure zeebe:calledElement
    let calledElement = getCalledElement(businessObject);
    if (!calledElement) {
      calledElement = elementHelper.createElement('zeebe:CalledElement', { }, extensionElements, bpmnFactory);
      commands.push(cmdHelper.addAndRemoveElementsFromList(
        element,
        extensionElements,
        'values',
        'extensionElements',
        [ calledElement ],
        []
      ));
    }

bpmn-js-properties-panel

A simple properties panel for bpmn-js

MIT
Latest version published 8 days ago

Package Health Score

90 / 100
Full package analysis