亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法在 KIE 工作臺 (jBPM) 中添加 Java 導入

無法在 KIE 工作臺 (jBPM) 中添加 Java 導入

慕尼黑8549860 2022-12-28 16:12:01
我是 jBPM 的新手。我正在使用 jBPM KIE 工作臺。正如您在第二張圖片中看到的,我在 KIE 外部數據對象部分添加了必要的導入。為什么我會收到錯誤?我需要對進口商品做其他事情嗎?我收到一個拋出的錯誤:[KBase: defaultKieBase]: Process Compilation error URL cannot be resolved to a typeURL cannot be resolved to a typeHttpURLConnection cannot be resolved to a typeHttpURLConnection cannot be resolved to a typeBufferedReader cannot be resolved to a typeBufferedReader cannot be resolved to a typeInputStreamReader cannot be resolved to a typeJava代碼:    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);    }
查看完整描述

1 回答

?
holdtom

TA貢獻1805條經驗 獲得超10個贊

內置的 REST 工作項應該是一個很好的起點。

創建一個項目并添加一個 BusinessProcess:

http://img1.sycdn.imooc.com//63abfa95000152fa08900427.jpg

然后添加內置的 Rest Workitem

http://img1.sycdn.imooc.com//63abfaa00001bf2d07050436.jpg

然后打開 Rest Workitem Properties 并選擇數據分配

http://img1.sycdn.imooc.com//63abfaac0001a3f413390889.jpg

并輸入 Rest Call 的值

http://img1.sycdn.imooc.com//63abfabc00013b4413430892.jpg


查看完整回答
反對 回復 2022-12-28
  • 1 回答
  • 0 關注
  • 91 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號