Activiti Learning Note One-download and development environment configuration

Source: Internet
Author: User
Tags mysql download

First, download

JDK Download URL:

Tomcat Download url:http://tomcat.apache.org/

Eclipse Download url:http://www.oracle.com/technetwork/java/javase/downloads/index.html

MYSQL Download url:http://dev.mysql.com/downloads/

Activiti Download url:http://www.activiti.org/download.html

Activiti Eclipse Plugin Download url:http://www.activiti.org/designer/archived/

Second, installation

1. Install Activiti Eclipse plugin locally

Handling Errors

When installing the Activiti Eclipse plugin, errors may occur, as follows:

An error occurred while collecting items to be installed
Session context was: (Profile=epp.package.jee, Phase=org.eclipse.equinox.internal.p2.engine.phases.collect, operand =, action=).
No Repository found containing:osgi.bundle,org.eclipse.emf.transaction,1.9.0.201506010221
No Repository found containing:osgi.bundle,org.eclipse.emf.validation,1.8.0.201505312255
No Repository found containing:osgi.bundle,org.eclipse.emf.workspace,1.5.1.201506010221

Hint that the above three plugins are missing from Eclipse, these three plugins need to download EclipseIDE for Automotive software developers version, and copy the above three plugins into eclipse from this version , and then reinstall.

2, online installation

Name:activiti BPMN2.0 Designer
location:http://activiti.org/designer/update/

Third, install the database through the code, test the environment

1. Pure Code Mode

1 /**2 * Create a configuration in code to test whether the Activiti database environment is established3      */4 @Test5      Public voidtestActivitiEnvironment1 () {6         //1. Create a Process engine configuration object7Processengineconfiguration configuration =processengineconfiguration8 . Createstandaloneprocessengineconfiguration ();9         //2. Configure Database Connection ConfigurationTen         //2.1. Database connection URL OneConfiguration.setjdbcurl ("jdbc:mysql://localhost:3306/activiti_test?createdatabaseifnotexist=true"); A         //2.2. Database Connection Driver -Configuration.setjdbcdriver ("Com.mysql.jdbc.Driver"); -         //2.3. Database connection user name theConfiguration.setjdbcusername ("Root"); -         //2.4. Database connection Password -Configuration.setjdbcpassword ("Root"); -         //2.5. Configure database to build a table policy + configuration.setdatabaseschemaupdate (processengineconfiguration.db_schema_update_true); -  +         //3, create processengine by configuration object; AProcessengine Processengine =configuration.buildprocessengine (); at  -}
View Code

2. configuration file Mode

2.1. configuration file Activiti.cfg.xml

1<?xml version="1.0"encoding="UTF-8"?>2<beans xmlns="Http://www.springframework.org/schema/beans"Xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="Http://www.springframework.org/schema/context"xmlns:tx="Http://www.springframework.org/schema/tx"xsi:schemalocation="Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 3http//Www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-4.2.xsd4http//Www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-4.2.xsd">5 6<bean id="processengineconfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">7<!--database Connection Properties-8<property name="Jdbcurl"Value="Jdbc:mysql://localhost:3306/activiti?characterencoding=utf-8"></property>9<property name="Jdbcdriver"Value="Com.mysql.jdbc.Driver"></property>Ten<property name="Jdbcusername"Value="Root"></property> One<property name="Jdbcpassword"Value="Root"></property> A          -<!--database Update policy-- -<property name="databaseschemaupdate"Value="true"></property> the          -<property name="jobexecutoractivate"Value="false"></property> -          -<!--Mail Service address-- +<property name="Mailserverhost"Value="mail.wxintl.com"></property> -<property name="Mailserverport"Value="5025"></property> +</bean> A  at</beans>
View Code

2.2. Code

1 /**2 * Read the configuration from the configuration file to test whether the Activiti database environment is established3      */4 @Test5      Public voidTestActivitiEnvironment2 () {6         7Processengineconfiguration configuration =processengineconfiguration8. Createprocessengineconfigurationfromresource ("/activiti.cfg.xml");9         TenProcessengine Processengine =configuration.buildprocessengine (); One          A          -}
View Code

Iv. Learning Materials

Http://pan.baidu.com/s/1sjt0IXv

Http://pan.baidu.com/s/1gdvLQ5X

Activiti Learning Note One-download and development environment configuration

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.