Я новичок в jBPM. Я использую верстак JBPM KIE. Как вы можете видеть на втором рисунке, я добавил необходимый импорт в разделе внешних объектов данных KIE. Почему я получаю ошибки? Нужно ли делать что-то еще с импортом?
Я получаю ошибку:
[KBase: defaultKieBase]: Process Compilation error URL cannot be resolved to a type
URL cannot be resolved to a type
HttpURLConnection cannot be resolved to a type
HttpURLConnection cannot be resolved to a type
BufferedReader cannot be resolved to a type
BufferedReader cannot be resolved to a type
InputStreamReader cannot be resolved to a type
Java-код:
try {
URL url = new URL("http://localhost:8080/users");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Content-Type", "application/json");
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer content = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
content.append(inputLine);
}
in.close();
System.out.println(content);
}
catch(Exception e){
throw new RuntimeException(e);
}

