当前位置:网站首页>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请求
完事
边栏推荐
- 7-1 LVS+NAT 负载均衡群集,NAT模式部署
- 八年软件测试工程师带你了解-测试岗进阶之路
- 创新互融|华秋赋能助力OpenHarmony生态硬件开发落地
- 元宇宙“吹鼓手”Unity:疯狂扩局,悬念犹存
- Senior PHP development case (1) : use MYSQL statement across the table query cannot export all records of the solution
- 2003. 每棵子树内缺失的最小基因值 DFS
- 8.Haproxy 搭建Web集群
- Gigabit 2 X light 8 electricity management industrial Ethernet switches WEB management - a key Ring Ring net switch
- 机器学习之视频学习【更新】
- 函数,递归以及dom简单操作
猜你喜欢
出现504怎么办?由于服务器更新导致的博客报504错误[详细记录]
Tensors - Application Cases
2022年最新海南建筑八大员(材料员)模拟考试试题及答案
【项目实现】Boost搜索引擎
new Date converts strings into date formats Compatible with IE, how ie8 converts strings into date formats through new Date, how to replace strings in js, and explain the replace() method in detail
SQL query String field less than 10 how to check
十一种概率分布
[Ryerson emotional speaking/singing audiovisual dataset (RAVDESS)]
42. 接雨水
Postgresql source code (66) insert on conflict grammar introduction and kernel execution process analysis
随机推荐
数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
SQL query String field less than 10 how to check
自定义通用分页标签01
Significant differences between Oracle and Postgresql in PLSQL transaction rollback
sql注入一般流程(附例题)
7-1 LVS+NAT 负载均衡群集,NAT模式部署
【机器学习】21天挑战赛学习笔记(一)
2千兆光+6千兆电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机
一个属于程序员的七夕节!
创新互融|华秋赋能助力OpenHarmony生态硬件开发落地
2022支付宝C2C现金红包PHP源码DEMO/兼容苹果/安卓浏览器和扫码形式
Eight guiding principles to help businesses achieve digital transformation success
Introduction to the memory model of the JVM
8.Haproxy 搭建Web集群
使用serve搭建本地服务器
unity框架之缓存池
十一种概率分布
【医保科普】维护医保基金安全,我们可以这样做
RSS订阅微信公众号初探-feed43
初识Numpy