in ddm-bpm-rest/src/main/java/com/epam/digital/data/platform/bpms/rest/service/UserTaskService.java [319:329]
private Map<String, Object> getTaskFormVariables(String taskId, String formVariables) {
if (Objects.isNull(formVariables)) {
return Map.of();
}
var formVariableNames = List.of(formVariables.split(FORM_VARIABLES_REGEX));
return taskRuntimeService.getVariables(taskId).entrySet().stream()
.filter(entry -> formVariableNames.contains(entry.getKey()) && Objects
.nonNull(entry.getValue().getValue()))
.collect(Collectors.toMap(Entry::getKey, entry -> entry.getValue().getValue()));
}