Add convenience method to read camunda properties

XMLWordPrintable

    • Type: Task
    • Resolution: Won't Fix
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: bpmn model api

      See https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/camunda-bpm-dev/r7U0hTKVqD8/f-usT-Ae-TAJ

      Add convenience method to read camunda properties from model, e.g.

      public String getCamundaProperty(BaseElementImpl modelElementInstance, String propertyName) {

      Collection<CamundaProperty> properties = modelElementInstance.getExtensionElements().getElementsQuery() //

      .filterByType(CamundaProperties.class) //

      .singleResult() //

      .getCamundaProperties();

      for (CamundaProperty property : properties) {

      // in 7.1 one has to use: property.getAttributeValue("name")

      if (propertyName.equals(property.getCamundaName()))

      { return property.getCamundaValue(); }

      }

      return null;

      }

            Assignee:
            Unassigned
            Reporter:
            Bernd Ruecker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: