1、JBPM5.4的安装
ant install.jboss
nt install.guvnor.into.jboss
ant install.designer.into.jboss
install.jBPM-ht.into.jboss
install.dependencies
如果是手动安装,这两个安装最坑爹,此前没有在任何资料中提及过。仔细分析了build.xml后发现这两个安装跟在install.jboss后,如果不安装human task运行起来后工作不正常,在eclipse中运行任务或打开http://localhost:8080/jbpm-console会报Could not connect task client HornetQ(127.0.0.1:5153) 的错误。接下来继续安装:
ant install.jBPM-gwt-console.into.jboss
ant install.jBPM.runtime
2、在build.xml中找到<java classname="org.jbpm.DemoTaskService" fork="true">
修改为:
<java classname="org.jbpm.DemoTaskService" fork="true">
<sysproperty key="jbpm.user.group.mapping" value="file:///usr/jbpm-installer/jboss-as-7.1.1.Final/standalone/configuration/roles.properties"/>
<classpath>
<pathelement path="${install.home}/task-service/target"/>
<path refid="classpath.human.task" />
</classpath>
</java>
3、在build.xml中找到:
<target name="start.human.task">
.........
<javac srcdir="${install.home}/task-service/src" destdir="${install.home}/task-service/target" classpathref="classpath.human.task">
.........
</javac>
修改为:
<javac srcdir="${install.home}/task-service/src" destdir="${install.home}/task-service/target" classpathref="classpath.human.task" includeantruntime="on">
4、下载slf4j-jdk14-1.6.0.jar,拷贝到jboss的db/driver路径下。确认slf4j-api和slf4j-nop也在/jbmp-install的按转路径下。
5、启动:
ant start.h2
ant start.jboss
ant start.human.task
6、停止
按control+c终止huamn.stask
ant stop.h2
ant stop.jboss
7、清除安装
ant clean.jboss