1.所需文件:
activiti-5.9.zip
activiti-modeler-5.6.zip
apache-ant-1.8.3.zip
apache-tomcat-7.0.20.zip
2.将activiti-5.9.zip加压到d:D:\Program Files\activiti_5_9
在activiti-5.9下建文件夹downloads
将apache-tomcat-7.0.20.zip拷贝到D:\Program Files\activiti_5_9\downloads下,
修改D:\Program Files\activiti_5_9\setup\build.properties文件,原来为:
tomcat.version=6.0.32修改为tomcat.version=7.0.20,原来为:
downloads.dir=../../downloads修改为downloads.dir=../downloads
打开D:\Program Files\activiti_5_9\setup\build.xml文件,将
<antcall target="internal.tomcat.download" />
注解掉,即改为:
<!-- #<antcall target="internal.tomcat.download" />###### -->
配置ant:首先设置系统环境变量ANT_HOME值为:D:\Program Files\apache-ant-1.8.3,在Path中
添加D:\Program Files\apache-ant-1.8.3\bin;
将tools.jar拷贝到jre/lib下。
cmd进入:D:\Program Files\activiti_5_9\setup下,然后运行
ant demo.start
显示build successful,表示运行成功。
将activiti-modeler-5.6.zip解压到D:\Program Files\activiti_5_9\apps\apache-tomcat-7.0.20\webapps下,
文件夹名称为activiti-modeler。
将这个tomcat配置到myeclipse中,然后在myeclipse中启动tomcat。
可以访问两个东西:首先启动:再运行一次: ant demo.start 。
After running this target H2 and Tomcat will be running in the background.
To stop those processes run ant demo.stop.
The other targets in that build script can also be called individually. Run ant -p for more details.
These are the demo users:
UserId Password Security roles
kermit kermit admin
gonzo gonzo manager
fozzie fozzie user
Now you can access following web applications:
Table 2.2. The webapp tools
Webapp Name URL Description :
1.
Activiti Explorer http://localhost:8080/activiti-explorer
The process engine user console. Use this tool to start new processes, assign tasks,
view and claim tasks, etc. This tool also allows to administrate the Activiti engine.
2. Activiti Modeler powered by signavio http://localhost:8080/activiti-modeler/p/explorer
遇到问题:
1.firefox对 activiti-modeler的支持,在activiti-modeler下的WEB-INF/web.xml,
在4后面加了个11(因为我的firefox是11.0),然后再重新启动,然后再打开,然后就成功了。。。
<context-param>
<description>Define a reg exp for all user agents which are supported for the editor</description>
<param-name>supportedBrowserEditor</param-name>
<param-value>Firefox[\/\s]((3|4|11)\.\d+)|AppleWebKit|Opera.9\.\d+</param-value>
</context-param>
2.activiti-modeler汉化问题,将i18n下的js文件使用notepad++,打开,然后以utf-8保存,
修改按钮等元素对应的值为汉字。
(未完待续)