# 工作流Activiti的学习总结（一）安装条件以及各步骤的作用以及不同环境需要lib包

181人阅读 评论(0)

JDK5+，Ant1.81+，Eclipse3.6.2

JDK：查看版本 java –version

ANT:查看版本 ant –version

1.需要配置JAVA_HOME,ANT_HOME环境变量。

2.更新(C:\mash_activiti-5.6\setup)build.properties和build.{your-database}.properties属性文件参数。

3.运行ant命令(C:\mash_activiti-5.6\setup)：ant demo.start

4.如果运行不报错的，activiti的demo部署成功了。

This ant target will start a tomcat and a H2 database if you didn't change the default setings.（如果你再启动时候不更改相关的配置文件信息，ant将帮助你启动tomcat和H2数据库） The first time when the script is executed, it will also perform following installations: （第一次执行这个命令需要执行一下步骤）

·         (*) Build the webapps. All libraries are stored in ${actviti.home}/setup/files/dependencies/libs The webapps without the libs are stored in${actviti.home}/setup/files/webapps. Building the webapps means that webapps are combined with the necessary libraries in ${actviti.home}/setup/build/webapps （activiti的WebApp工具在${actviti.home}/setup/build/webapps ）

·         (*) Install the H2 in ${activiti.home}/apps/h2. This only happens if you're using h2 as your database. H2 is the default database.（H2的安装位置为${activiti.home}/apps/h2）

·         Start the H2 database. Again, this is only done if using h2 as the database. If you're using a different database it is assumed that it is already up and running.（启动H2数据库）

·         (*) Create the Activiti tables in the database（创建activiti相关的表结构）

·         (*) Insert the demo users and groups in the Activiti identity tables (向activiti对象的数据库中插入默认的用户和用户组)

·         (*) Deploy the example processes to the Activiti Engine DB（将实例demo中流程信息部署到activiti引擎对应的数据库）

·         (*) Download Tomcat if not available in the ${downloads.dir}（如果在build.properties文件中downloads.dir下Tomcat不可用用或者不存在自动下载Tomcat） · (*) Install Tomcat in${activiti.home}/apps/apache-tomcat-${tomcat.version}（安装Tomcat） · (*) Create an Activiti configuration jar （创建Activiti的配置文件activiti.cfg.xml等信息） · (*) Deploy the REST interface webapp into tomcat（部署REST接口的webapp信息到tomcat中） · (*) Download the Activiti Modeler webapp to${activiti.home}/webapps. The license for the Activiti Modeler is MIT.（下载activiti-Modeler对象到目录）

·         (*) Deploy the Probe, Explorer and Modeler webapps into tomcat.（部署activiti的相关的webapp tools）

·         Start tomcat

(*) only performed the first time when running 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 and they will take the configurable properties into account. Run ant -p for more details.

2.如果相应的目录(C:\mash_activiti-5.6\apps)中的tomcatH2tomant不可用的，则下载相关的软件。
3..向对应H2数据库中添加相关的数据。
4.启动tomcatH2数据库服务。

Table 2.1. The demo users

 UserId Password Security roles kermit kermit admin gonzo gonzo manager fozzie fozzie user

Table 2.2. The webapp tools

Note that the Activiti demo setup is a way of showing the capabilities and functionality of Activiti as easy and as fast as possible. This does however, not mean that it is the only way of using Activiti. As Activiti is 'just a jar', it can be embedded in any Java environment: with swing or on a Tomcat, JBoss, WebSphere, etc. Or you could very well choose to run Activiti as a typical, standalone BPM server. If it is possible in Java, it is possible with Activiti!

activiti-engine-examples: This set of examples show the most common usage of Activiti: BPMN process definitions and process executions are stored in a DB and the examples make use of the persistent API.（）

This project contains the eclipse project files, an ant build file and a maven pom file. The ant build file is independent of the maven pom. Both are there to show how you can use ant and maven respectively for building and deploying processes as part of your build.

activiti-spring-examples: These examples show how you can use the Activiti Engine in a Spring environment. (activiti和Spring的整合实例demo)

activiti-groovy-examples: These examples show the library dependencies for groovy and an example process with groovy scripting.

activiti-jpa-examples: These examples show library dependencies and how you can work with JPA in Activiti.

activiti-cxf-examples: These examples show library dependencies and how you can work with web services in Activiti.

activiti-cycle-examples: This is a project containing an demo example project for Activiti Cycle

activiti-modeler-examples: This is a file based model repository to which the Activiti Modeler is configured in the demo setup.

在activiti中Library依赖的包：

·         libs.engine.runtime.txt: The library runtime dependencies to run the Activiti Engine.

·         libs.engine.runtime.test.txt: The libraries that need to be added to the ones in libs.engine.runtime.txt to run the tests

·         libs.engine.runtime.feature.groovy.txt: The libraries that need to be added to the ones in libs.engine.runtime.txt to use the groovy scripting capabilities.

·         libs.engine.runtime.txt: The libraries that need to be added to the ones in libs.engine.runtime.txt to use the JPA variable reference capabilities.

·         libs.spring.runtime.txt: The library runtime dependencies to run the Activiti Engine in a Spring environment. (This list includes the libs in libs.engine.runtime.txt)

·         libs.spring.runtime.test.txt: The libraries that need to be added to the ones in libs.spring.runtime.txt to run tests in a Spring environment (Spring和activiti整合需要的所有lib文件)

·         libs.cycle.runtime.test.txt, libs.webapp.rest.txt and libs.webapp.ui.txt: The full list of libraries dependencies for the respective components cycle, the rest webapp and the UI webapps like Activiti Explorer, Activiti Probe and Activiti Cycle (activiti REST整合，activiti-explorer需要的所有lib文件)

0
0

* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场
个人资料
• 访问：18743次
• 积分：673
• 等级：
• 排名：千里之外
• 原创：38篇
• 转载：75篇
• 译文：0篇
• 评论：0条
文章分类