in src/main/java/com/epam/digital/data/platform/registry/regulation/validation/cli/validator/bpmn/BpmnFileInputsValidator.java [331:346]
static Set<String> getOutputParameterValueFromActivity(Activity activity, Property property) {
var propertyName = property.getBinding().getSource();
var extensionElements = activity.getExtensionElements();
if (Objects.isNull(extensionElements)) {
return Set.of();
}
return extensionElements.getElementsQuery()
.filterByType(CamundaInputOutput.class)
.list()
.stream()
.flatMap(cio -> cio.getCamundaOutputParameters().stream())
.filter(cop -> cop.getTextContent().equals(propertyName))
.map(CamundaOutputParameter::getCamundaName)
.filter(Objects::nonNull)
.collect(Collectors.toSet());
}