当前位置:网站首页>drools from download to postman request success
drools from download to postman request success
2022-08-04 04:05:00 【wangduqiang747】
引用:
文档 https://docs.drools.org/7.72.0.Final/drools-docs/html_single/index.html
bug管理 https://issues.redhat.com/browse/DROOLS-1456?jql=project%20%3D%20DROOLS%20AND%20text%20~%20"NoSuchElementException"%20ORDER%20BY%20created%20DESC
eclipse插件 https://download.jboss.org/drools/release/7.38.0.Final/org.drools.updatesite/
drools下载地址 https://download.jboss.org/drools/release/7.61.0.Final/
wildfly下载地址 https://www.wildfly.org/downloads/
- 前提:
wildfly-preview-23.0.2.Final.zip (web容器)
kie-server-7.61.0.Final-ee7.war (Where the service is deployed)
business-central-7.61.0.Final-wildfly23.war(kie-web 管理后台)
环境变量:
M2_HOME(部署drools项目,Generate files to native library):E:\drools7.6\apache-maven-3.8.6\bin
JBOSS_HOME(wildfly服务器目录):E:\drools7.6\wildfly-preview-23.0.2.Final
JAVA_HOME:
- 步骤一 环境准备
kie-server-7.61.0.Final-ee7.war 改名为 kie-server.war
business-central-7.61.0.Final-wildfly23.war更名为kie-web.war
注意:windowsInstall below
kie-web里删除 kie-web.war/WEB-INF/lib/org.eclipse.jgit.http.server-5.10.0.202012080955-r.jar
META-INF的目录下的*.SF,.DSA,.RSA文件
Wildfly配置:
将E:\drools7.6\wildfly-preview-23.0.2.Final\standalone\configuration\standalone-full.xml 复制到
E:\drools7.6\wildfly-preview-23.0.2.Final\bin
设置内存 将E:\drools7.6\wildfly-preview-23.0.2.Final\bin\standalone.conf.bat The first line below is changed to the second line
rem # set “JAVA_OPTS=-Xms64M -Xmx512M -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m”
set “JAVA_OPTS=-Xms256M -Xmx4096M -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=1024m”
E:\drools7.6\wildfly-preview-23.0.2.Final\bin\standalone.bat 设置启动参数
:RESTART
“%JAVA%” %JAVA_OPTS% ^
“-Dorg.jboss.boot.log.file=%JBOSS_LOG_DIR%\server.log” ^
“-Dlogging.configuration=file:%JBOSS_CONFIG_DIR%/logging.properties” ^
-jar “%JBOSS_HOME%\jboss-modules.jar” ^
%MODULE_OPTS% ^
-mp “%JBOSS_MODULEPATH%” ^
org.jboss.as.standalone ^
“-Djboss.home.dir=%JBOSS_HOME%” ^
“-Dkie.maven.offline.force=true” ^
“-Dorg.kie.server.id=abbbc” ^
“-Dorg.kie.server.user=a” ^
“-Dorg.kie.server.pwd=a” ^
“-Dorg.kie.server.location=http://127.0.0.1:8080/kie-server/services/rest/server” ^
“-Dorg.kie.server.controller.user=root” ^
“-Dorg.kie.server.controller.pwd=xxx” ^
“-Dorg.kie.server.controller=http://127.0.0.1:8080/kie-web/rest/controller” ^
“-Dorg.jbpm.server.ext.disabled=true” ^
“-Dorg.kie.demo=false” ^
%SERVER_OPTS%
if %errorlevel% equ 10 (
echo Restarting…
goto RESTART
)
- 步骤二 配置环境
1.新增user
E:\drools7.6\wildfly-preview-23.0.2.Final\bin\add-user.bat
添加 management user : wildfly
添加 application user : root , a a需要有kie-server的role
2.启动wildfly
wildfly的启动命令为: standalone.bat -c standalone-full.xml
启动wildfly ,The account password is the one added beforemanagement user
3.部署drools项目
进入wildfly管理后台, http://localhost:9990/console/index.html
Deployments-> + ->upload deployment
部署kie-server.war kie-web.war
检查是否部署成功
http://127.0.0.1:8080/kie-server/docs/#/
http://127.0.0.1:8080/kie-web/docs/#/
如果部署成功
http://127.0.0.1:8080/kie-web/kie-wb.jsp 是可以登录的 用application user
4.设置kie-web
齿轮-> Artifact Repository repository fill in local. All ticks are unticked
首页里, 部署-> +new server configuration
- 步骤3 开始使用,postman调用:
Kie-web里的design, 打开一个sample (以traffic-violation为例) 部署
You will see the remote server in the deployment 即 kie-server
At this point the service has been deployed
这是第一步,验证服务是否正常.注意 Authorization的参数是 用户名:密码
这个字符串的base64编码
Here is to see all services traffic-violation_1.0.0-SNAPSHOT 在其中
查看状态.
获取dmn的信息. 主要是namespace
一次post请求
完事
边栏推荐
- A Preliminary Study of RSS Subscription to WeChat Official Account-feed43
- 外卖店优先级
- 元宇宙“吹鼓手”Unity:疯狂扩局,悬念犹存
- 7-1 LVS+NAT 负载均衡群集,NAT模式部署
- SQL injection in #, - +, - % 20, % 23 is what mean?
- 汇编语言之栈
- 用户与用户互发红包/支付宝C2C/B2C现金红包php源码示例/H5方式/兼容苹果/安卓
- Learn iframes and use them to solve cross-domain problems
- 机器学习模型的“可解释性”
- docker+网桥+redis主从+哨兵模式
猜你喜欢
6-port full Gigabit Layer 2 network managed industrial Ethernet switch Gigabit 2 optical 4 electrical fiber self-healing ERPS ring network switch
【项目实现】Boost搜索引擎
2022年软件测试——精选金融银行面试真题
Shell 函数
机器学习模型的“可解释性”
目标检测-中篇
Significant differences between Oracle and Postgresql in PLSQL transaction rollback
SQL injection in #, - +, - % 20, % 23 is what mean?
MySQL查询优化与调优
逻辑漏洞----其他类型
随机推荐
Power button (LeetCode) 215. The first K largest elements in the array (2022.08.03)
图像处理之Bolb分析(一)
JVM笔记
数组相关 内容 解析
Reproduce 20-character short domain name bypass
Learn iframes and use them to solve cross-domain problems
db2中kettle报错 Field [XXX] is required and couldn‘t be found 解决方法
SQL injection in #, - +, - % 20, % 23 is what mean?
嵌入式数据库开发编程MySQL(全)
SQL query String field less than 10 how to check
"Introduction to nlp + actual combat: Chapter 8: Using Pytorch to realize handwritten digit recognition"
Exclude_reserved_words 排除关键字
MRS: Alluxio的使用介绍
8.Haproxy 搭建Web集群
技术解析|如何将 Pulsar 数据快速且无缝接入 Apache Doris
【 observe 】 super fusion: the first mention of "calculate net nine order" evaluation model, build open prosperity of power network
7-1 LVS+NAT 负载均衡群集,NAT模式部署
Mobile payment online and offline payment scenarios
将xml标签转换为txt(voc格式转换为yolo方便进行训练)
MySQL query optimization and tuning