-
Type:
Task
-
Resolution: Won't Fix
-
Priority:
L3 - Default
-
None
-
Affects Version/s: None
-
Component/s: bpmn model api
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;
}