环境:OS X EI Capitan 10.11.3 + JDK 1.7.0_80 + JBoss BRMS 6.2.0
1. 为 helloworlduser 增加 admin 角色
2. 访问 http://localhost:8080/business-central) helloworlduser/welcome@1
(1) 创建组织单元
Authoring -> Administration
Organizational Units -> Manage Organizational Units
Name: helloworld
Owner: helloworlduser
(2) 创建新仓库
Authoring -> Administration
Repositories -> New repository
Repository Name: helloworldrepo
Organizational Unit: helloworld
(3) 创建新项目
Authoring -> Project Authoring
organizational unit 下拉列表选择 helloworld,repository 下拉列表选择 helloworldrepo
New Item -> Project
Resource Name (project name): HelloWorld
Group ID: org.brms
Artifact ID: HelloWorld
Version ID: 1.0
(4) 创建规则
Authoring -> Project Authoring
organizational unit 下拉列表选择 helloworld,repository 下拉列表选择 helloworldrepo,project 下拉列表选择 HelloWorld
New Item -> DRL file
Resource Name (DRL File): helloworldrule
Package: default
helloworldrule.drl 文件内容:
rule "helloworldrule"
ruleflow-group "helloworldgroup"
when
then
System.out.println("Hello World!");
end
(5) 验证并保存规则
(6) 构建并发布
Authoring -> Project Authoring
organizational unit 下拉列表选择 helloworld,repository 下拉列表选择 helloworldrepo,project 下拉列表选择 HelloWorld
点击 Open Project Editor,Build -> Build & Deploy
(7) 确认发布成功
Authoring -> Artifact repository
参考文献:
1. 《Red_Hat_JBoss_BRMS-6.1-Getting_Started_Guide-en-US.pdf》
1. 为 helloworlduser 增加 admin 角色
2. 访问 http://localhost:8080/business-central) helloworlduser/welcome@1
(1) 创建组织单元
Authoring -> Administration
Organizational Units -> Manage Organizational Units
Name: helloworld
Owner: helloworlduser
(2) 创建新仓库
Authoring -> Administration
Repositories -> New repository
Repository Name: helloworldrepo
Organizational Unit: helloworld
(3) 创建新项目
Authoring -> Project Authoring
organizational unit 下拉列表选择 helloworld,repository 下拉列表选择 helloworldrepo
New Item -> Project
Resource Name (project name): HelloWorld
Group ID: org.brms
Artifact ID: HelloWorld
Version ID: 1.0
(4) 创建规则
Authoring -> Project Authoring
organizational unit 下拉列表选择 helloworld,repository 下拉列表选择 helloworldrepo,project 下拉列表选择 HelloWorld
New Item -> DRL file
Resource Name (DRL File): helloworldrule
Package: default
helloworldrule.drl 文件内容:
rule "helloworldrule"
ruleflow-group "helloworldgroup"
when
then
System.out.println("Hello World!");
end
(5) 验证并保存规则
(6) 构建并发布
Authoring -> Project Authoring
organizational unit 下拉列表选择 helloworld,repository 下拉列表选择 helloworldrepo,project 下拉列表选择 HelloWorld
点击 Open Project Editor,Build -> Build & Deploy
(7) 确认发布成功
Authoring -> Artifact repository
参考文献:
1. 《Red_Hat_JBoss_BRMS-6.1-Getting_Started_Guide-en-US.pdf》
没有评论:
发表评论