1. Download related tools and software
Jbpm4.4 download (http://sourceforge.net/projects/jbpm)
Apache-Tomcat-6.0.35 download (http://tomcat.apache.org/download-60.cgi)
MySQL (http://www.mysql.com/downloads)
Eclipse-java-galileo-SR2-win32 download (http://www.eclipse.org/downloads)
Ii. Install tool software
1. decompress the jbpm4.4 file and place the downloaded Tomcat and eclipse files to the jbpm_home \ install \ downloads directory.
2. Install MySQL
3. Modify the relevant files in jbpm4.4:
IModify jbpm_home \ install \ build. xml:
<Propertyname = "Database" value = "HSQLDB"/>
Change
<Propertyname = "Database" value = "MySQL"/>
Use our custom database.
IIModify the script file jbpm_home \ install \ SRC \ dB \ create \ jbpm. MySQL. Create. SQL:
Change type = InnoDB; engine = InnoDB;
IIIModify the configuration file jbpm_home \ install \ JDBC \ mysql. Properties(You can also do not modify the configuration file, but create the corresponding user and database in MySQL Based on the configuration ):
JDBC. Driver = com. MySQL. JDBC. Driver
JDBC. url = JDBC: mysql: // localhost: 3306/jbpmdb
JDBC. Username = jbpm
JDBC. Password = jbpm
Change to (both database and user name are custom)
JDBC. Driver = com. MySQL. JDBC. Driver
JDBC. url = JDBC: mysql: // localhost: 3306/jbpmdb
JDBC. Username = root
JDBC. Password = root
4. Configure MySQL (the configuration file of MySQL. properties is not modified when the configuration file is used ):
Depending on the mysql. properties configuration under E:/jbpm-4.4/install/jdbc.
IJbpm database users
Create user jbpm and password jbpm:
Insert into MySQL. user (host, user, password, ssl_cipher, x509_issuer, x509_subject) values ("localhost", "jbpm", password ("jbpm "),"","", "");
Refresh permission:
Flush privileges;
IICreate a jbpm Database
Use root to log on to the MySQL database server
Mysql-u root-P
Create a jbpmdb database:
Create Database jbpmdb;
IIIJbpmdb permission Configuration
Grant all jbpm/jpbm permissions to jbpmdb.
Grant all privileges onjbpmdb. * To jbpm @ localhost identified by "jbpm ";
Refresh permission:
Flush privileges;
IV, Verification
View jbpm/jbpm permissions on jbpmdb and log on to the database server:
Mysql-u jbpm-P
Select jbpmdb:
Use jbpmdb;
View the current logon User:
Select CURRENT_USER ();
5. Configure the tool software and execute the following ant script in sequence
Ant install. Tomcat: Decompress the Tomcat file in the jbpm_home \ install \ downloads directory to the jbpm_home \ directory.
Antinstall. jbpm. Into. Tomcat: Install jbpm in Tomcat
Ant create. jbpm. Schema: Create a jbpm system table
Antinstall. Examples. Into. Tomcat: deploy the example in jbpm to Tomcat.
Antload. example. identities: Read instance user and user group data to MySQL database. generate user name and password
Install. signavio. Into. Tomcat: Install signavio in Tomcat
Install. Eclipse: Decompress the eclipse file under the jbpm_home \ install \ downloads directory to the jbpm_home \ directory.
Ant start. Tomcat: start Tomcat
Note:
If the last one fails to start Tomcat, you can navigate to E:/jbpm-4.4/Apache-Tomcat-6.0.26/bin to manually start;
If port 8080 is in use, modify the port number in server. xml under E:/jbpm-4.4/Apache-Tomcat-6.0.26/CONF.
If Tomcat flash through, run startup in the DOS window. the bat file also sets startup. change the last call "% executable %" start % cmd_line_args % of the BAT file to call "% executable %" Run % cmd_line_args %
View the error cause, if tomcat version, such as the Local win7 64-bit, you need to download the corresponding Tomcat such as APACHE-Tomcat-6.0.35, and then modify \ jbpm-4.4 \ install \ build. xml
<Property name = "tomcat. Version" value = "6.0.35"/> if no version is available, run the command again to start Tomcat.
Supplement:
To verify the database data, log on to the MySQL database server and run select * From jbpm4_id_user.
6. Go to the jbpm webconsole.
Http: // localhost: 8080/jbpm-Console
7. Access signavio
Open http: // localhost: 8080/jbpmeditor/P/Explorer for visual process design.
Note:The browser is not supported by IE. You can use FF