in ddm-bpm-extension/src/main/java/com/epam/digital/data/platform/bpms/extension/delegate/connector/keycloak/officer/KeycloakGetOfficerUsersByAttributesEqualsAndStartWith.java [61:75]
protected void executeInternal(DelegateExecution execution) throws Exception {
usersByAttributeVariable.on(execution).set(List.of());
var attributesEqualsVal = attributesEquals.from(execution).get();
var attributesStartWithVal = attributesStartWith.from(execution).get();
var searchDto = SearchUsersByEqualsAndStartsWithAttributesRequestDto.builder()
.attributesStartsWith(Objects.nonNull(attributesStartWithVal) ? attributesStartWithVal
: Collections.emptyMap())
.attributesEquals(Objects.nonNull(attributesEqualsVal) ? attributesEqualsVal
: Collections.emptyMap())
.build();
var users = idmService.searchUsers(searchDto);
usersByAttributeVariable.on(execution).set(users);
}