Vous êtes sur la page 1sur 5

Activiti Installation and Configuration

 Downloaded activiti-5.4 from http://www.activiti.org/download.html


 Downloaded apache-ant-1.7.0 from http://ant.apache.org/bindownload.cgi
 Configured Ant by setting System VariableControl PanelSystemAdvancedEnvironment
variablesAdded ANT_HOME and JAVA_HOME variables in System Variables. Also added path
for Ant.
 Command promptD:\activiti-5.4\setup\ant demo.start.

 Username: Kermit, Password: Kermit.


 Inspection of Databasewith the demo.start server up, open other terminal (cmd), D:\activiti-
5.4\setup\ant h2.console.start.
 Tables:
 ACT_RE_*: 'RE' stands for repository. Tables with this prefix will contain 'static''
information such as process definitions and, process resources (images, rules, etc.).

 ACT_RU_*: 'RE' stands for runtime. These are the runtime tables, that contain the
runtime data of process instances, user tasks, variables, jobs, etc. Activiti only stores the
runtime data during process instance execution, and removes the records when a
process instance ends. This keeps the runtime tables small and fast.

 ACT_ID_*: 'ID' stands for identity. These tables contain identity information, suchas
users, groups, etc.

 ACT_HI_*: 'HI' stands for history. These are the tables that contain historic data, such as
past process instances, variables, tasks, etc.

 ACT_GE_*: general data, which is used in various use cases.

 Database Change: from h2 to MYSQL

 Downloaded mysql v5.5.11 from http://www.mysql.com


 Edited setup/build.properties and change the db parameter to your type of database to
mysql.

 Build.propertieschange db to mysql.

 Edited setup/build.mysql.properties and change the JDBC connection parameters to


those of your database installation.

 Build.mysql.propertieschange jdbc.driver=com.mysql.jdbc.Driver,
jdbc.url=jdbc:mysql://localhost:3306/activiti, jdbc.username=root,
jdbc.password=root.

 ../activiti-5.4/setup/ ant demo.start

 Copied mysql driver to D:\activiti-5.4\apps\apache-tomcat-6.0.32\webapps\activiti-


kickstart\WEB-INF\lib (bug fix: NullPointerException: kickstart)

 Copied mysql driver to D:\activiti-5.4\apps\apache-tomcat-6.0.32\webapps\activiti-


administrator\WEB-INF\lib.

 Edit D:\activiti-5.4\apps\apache-tomcat-6.0.32\webapps\activiti-administrator\WEB-
INF\ applicationContext.xml with following

 <property name="databaseType" value="mysql" />


 <property name="targetDataSource">
<bean class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc: mysql: //localhost:3306/activiti" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
</property>

 Edit D:\activiti-5.4\apps\apache-tomcat-6.0.32\webapps\activiti-
administrator\META-INF\maven\org.activiti\activiti-webapp-
administrator\pom.xml with following.
 <dependency>
<groupId>com.mysqldatabase</groupId>
<artifactId>mysql</artifactId>
</dependency>
(Bug fix: javax.servlet.ServletException:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'adminApp': Injection of autowired dependencies failed;
nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field: org.activiti.administrator.service.AuthenticationService:
Administrator)
 Copy and paste D:\activiti-5.4\setup\build\activiti-cfg\activiti-cfg.jar to
D:\activiti-5.4\apps\apache-tomcat-6.0.32\webapps\activiti-kickstart\WEB-
INF\lib and D:\activiti-5.4\apps\apache-tomcat-6.0.32\webapps\activiti-
administrator\WEB-INF\lib

 Restart. ie ant demo.stop and ant demo.start.

Vous aimerez peut-être aussi