Liferay7 BPM Portal Development 6:activiti database for MySQL

Source: Internet
Author: User
Tags tomcat server

The first step:


Create a database in MySQL named ' Activiti '

Execute the script under D:\activiti-5.21.0\database\create


Step Two:


Open = apache-tomcat/webapps/activiti-explorer/web-inf/classes/
Db.properties

Modifying a configuration file db.properties

Db=activiti

Jdbc.driver=com.mysql.jdbc.driver

Jdbc.url=jdbc:mysql://localhost:3306/activiti

Jdbc.username=root

Jdbc.password=root

If it is a third-party program, modify the Activiti.cfg.xml

<Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" >  <BeanID= "Processengineconfiguration"class= "Org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">    < Propertyname= "Jdbcurl"value= "Jdbc:mysql://localhost:3307/activiti?autoreconnect=true" />    < Propertyname= "Jdbcdriver"value= "Com.mysql.jdbc.Driver" />    < Propertyname= "Jdbcusername"value= "root" />    < Propertyname= "Jdbcpassword"value="" />    < Propertyname= "Databaseschemaupdate"value= "true" />    < Propertyname= "Jobexecutoractivate"value= "false" />    < Propertyname= "asyncexecutorenabled"value= "true" />    < Propertyname= "Asyncexecutoractivate"value= "false" />    < Propertyname= "Mailserverhost"value= "Mail.my-corp.com" />    < Propertyname= "Mailserverport"value= "5025" />    <!--<property name= "Eventlisteners" > -<!--<list> -<!--<bean class= "Activitilearn.myeventlistener"/> -<!--</list> -<!--</property> -  </Bean></Beans>

Open =>apache-tomcat-7.0.27/webapps/activiti-rest/web-inf/classes/
Db.properties

Modifying a configuration file db.properties
Db=activiti

Jdbc.driver=com.mysql.jdbc.driver

Jdbc.url=jdbc:mysql://localhost:3306/activiti

Jdbc.username=root

Jdbc.password=root


Step Three:


To configure the POM:

<Dependency>    <groupId>Mysql</groupId>    <Artifactid>Mysql-connector-java</Artifactid>    <version>5.1.30</version></Dependency>

Non-MAVEN environment to copy Mysql-connector-java-5.1.18-bin.jar to Lib

Fourth step (similar to step second to third):


Copy the Mysql-connector-java-5.1.18-bin.jar to Lib.
=>apache-tomcat-7.0.27/webapps/activiti-rest/web-inf/lib

At last:

Finally reboot the Tomcat server and verify the Activiti database. See if the table is configured OK

Execute the third section of the program, found that the data can be saved to MySQL

Liferay7 BPM Portal Development 6:activiti database for MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.