下載相應介質git
克隆git快速安裝github
git clone https://github.com/jbossdemocentral/rhpam7-install-demo.git
將下載的包放在install目錄下架構
$ cp jboss-eap-7.2.0.zip rhpam-install-demo-master/installs/ $ cp rhpam-7.2.0-business-central-eap7-deployable.zip rhpam-install-demo-master/installs/ $ cp rhpam-7.2.0-kie-server-ee7.zip rhpam-install-demo-master/installs/ $ cp rhpam-7.2.0-add-ons.zip rhpam-install-demo-master/installs/
須要安裝jdk,maven和unzipapp
而後運行init.shmaven
[root@master rhpam7-install-demo-master]# ./init.sh ###################################################################### ## ## ## Setting up the Install Demo ## ## ## ## ## ## #### # # #### ### # # ##### # # ## ## # # # # # # # # # # # # # # # ## ## #### ##### #### ##### # # # ### # ## ## # # # # # # # # # # # # ## ## # # # # # # # # # # # # # ## ## ## ## brought to you by, ## ## Red Hat ## ## ## ## ## ## git@github.com:jbossdemocentral/rhpam7-install-demo.git ## ## ## ###################################################################### Product sources are present... Product sources are present... Product sources are present... Product sources are present... Provisioning JBoss EAP now... Deploying Red Hat Process Automation Manager: Business Central now... Deploying Red Hat Process Automation Manager: Process Server now... Deploying Red Hat Process Automation Manager: Case Management Showcase now... - enabling demo accounts setup... - setting up standalone.xml configuration adjustments... - setup email notification users... - making sure standalone.sh for server is executable... You can now start the Red Hat Process Automation Manager with ./target/jboss-eap-7.2/bin/standalone.sh Login to http://localhost:8080/business-central (u:pamAdmin / p:redhatpam1!) Login to http://localhost:8080/rhpam-case-mgmt-showcase (u:pamAdmin / p:redhatpam1!) Red Hat Process Automation Manager 7.2 Install Demo Setup Complete.
將rhpam-7.2.0-maven-repository.zip解壓並把全部的Package解壓到.m2/repository下面測試
啓動Process Automation Manager,直到出現initialize deployments task finished successfully!url
./target/jboss-eap-7.2/bin/standalone.sh
在虛擬機中登陸http://localhost:8080/business-central spa
這裏明顯是沒有綁定外部的ip了,待會慢慢研究怎麼綁定全部ip3d
綁定ip啓動rest
./target/jboss-eap-7.2/bin/standalone.sh -b 0.0.0.0
注意,由於bc和Kie Server之間的須要相互訪問,若是設置一個固定的ip地址,在配置文件中,由於指定localhost:8080/kie-server而致使bc沒法訪問kie-server
配置文件在
/root/rhpam7-install-demo-master/target/jboss-eap-7.2/standalone/configuration 的standard.xml中
<system-properties> <property name="org.kie.example" value="true"/> <property name="org.jbpm.designer.perspective" value="full"/> <property name="designerdataobjects" value="false"/> <!-- Store data in JBoss EAP directories. --> <property name="org.uberfire.nio.git.dir" value="${jboss.home.dir}/bin"/> <property name="org.kie.server.repo" value="${jboss.server.data.dir}"/> <property name="org.uberfire.metadata.index.dir" value="${jboss.home.dir}/bin"/> <property name="org.guvnor.m2repo.dir" value="${jboss.home.dir}/bin"/> <!--Please uncomment the following properties to make KIE Server to be managed by Business Central Please also uncomment the default user and password which defined in standalone/configuration/application-roles.properties and application-users.properties--> <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"/> <property name="org.kie.server.controller" value="http://localhost:8080/business-central/rest/controller"/> <property name="org.kie.server.controller.user" value="kieserver"/> <property name="org.kie.server.controller.pwd" value="kieserver1!"/> <property name="org.kie.server.user" value="kieserver"/> <property name="org.kie.server.pwd" value="kieserver1!"/> <property name="org.kie.server.id" value="default-kieserver"/> </system-properties>
會致使流程部署成功之後沒法 查詢以及啓動流程。
建立Space,而後Add Project,發現報了一個錯誤Could not find artifact junit:junit:jar:4.12 in central
進入相關的目錄查看,果真是沒有, 目前解決辦法, 把虛擬機上網,下載junit-4.12.jar的包,而後運行
mvn deploy:deploy-file -DgroupId=junit -DartifactId=junit -Dversion=4.12 -Dpackaging=jar -Dfile=/root/junit-4.12.jar -Durl=file:///root/.m2/repository
驗證項目和流程創建。
建立流程步驟
1.建立Space,建立Project
2.添加Data Object,建立Business Process
3.配置Task,生成Form
4.部署而後運行
在Asset中加入一個DRL Rule,代碼以下
package com.hello.firstproject; import com.hello.firstproject.prodata rule "SimpleRule1" ruleflow-group "helloworldgroup" when a : prodata( ) prodata( requestID < 100 ) then System.out.println("Hello World!"); a.setName( "EricNie" ); a.setAddress( "ShenZhen" ); end rule "SimpleRule2" ruleflow-group "anothersimple" when a : prodata( ) prodata( requestID > 100 ) then System.out.println("Hello World!"); a.setName( "Alice" ); a.setAddress( "GuangZhou" ); end
流程中加入一個規則節點,選擇相應的ruleflow-group
部署,而後測試和驗證.