in src/main/java/com/epam/digital/data/platform/registry/regulation/validation/cli/validator/bpmn/BpmnFileInputsValidator.java [261:276]
static Set<String> getPropertyValueFromActivity(Activity activity, Property property) {
var propertyName = property.getBinding().getName();
var extensionElements = activity.getExtensionElements();
if (Objects.isNull(extensionElements)) {
return Set.of();
}
return extensionElements.getElementsQuery()
.filterByType(CamundaProperties.class)
.list()
.stream()
.flatMap(camundaProperties -> camundaProperties.getCamundaProperties().stream())
.filter(prop -> prop.getCamundaName().equals(propertyName))
.map(CamundaProperty::getCamundaValue)
.filter(Objects::nonNull)
.collect(Collectors.toSet());
}