Activiti (1)-installation configuration details

Source: Internet
Author: User

I haven't updated my articles for a while. Although I have been writing articles, I haven't updated my articles to my blog. Most of the articles I wrote during this time are mainly based on technology. The next series of articles will discuss the development of enterprise workflows, mainly to study the use of open-source workflow activiti.

The Installation Process of activiti 5.15 is quite simple, because it is much easier to install with the upgrade of activiti, however, the configuration method is not as simple as you think. You need to pay attention to many problems during configuration. Here we will take a closer look at the configuration process of activiti 5.15.

Note: This article is an installation method summarized by the reader after practice. It may not apply to all computers. If you have any questions, leave a message to discuss and learn.


I. activiti download and introduction


1.1 download activiti
Official Website: http://activiti.org/download.html
Note: you do not have to use the latest version when downloading. The latest version lacks Chinese materials, which may be a little complicated. Therefore, you are advised to download a version that is stable or closer to the latest version.

1.2. activiti
Decompress the downloaded activiti package and obtain the following documents. The most important ones are libs and wars, for example:
 


1.2.1 Database

This folder contains all the database scripts of the activiti sample, which contains databases of MSSQL, MySQL, and H2, it encapsulates the creation of database tables, Data Writing, modification and deletion scripts of database tables, and provides complete functions.

1.2.2 docs activiti help documentation, including javadoc API, user manual, XML Scheme
1.2.3 libs stores the developed pointer library. Each jar file represents a reference item during development. For details about how to use each jar, you can view the notice document in the directory.
1.2.4 wars this folder is very important, there are two files in the folder activiti-explorer.war and activiti-rest.war, representing the process of the browser framework and the process of the startup engine, respectively, during development, you need to deploy them to the webapps folder of Tomcat. These two files are automatically called when the process is started.
Activiti-explorer.war, browser framework, framework contains the process node view, approval, flow and other basic operations, in the framework of the initialization of the user is as follows:
Activiti-rest.war, flow engine, the true process of the process is implemented in the engine, it encapsulates the process of the process.


Ii. installation and configuration details

Although the download of activiti is simple, the installation and configuration of activiti is quite complicated because it has many dependencies. First activiti needs a servlet server as a container to provide the Activiti-explorer.war framework for running, so you need to configure a Java Server, here using Apache-Tomcat as the installation item; second, you need to configure the Java Runtime Environment, which is essential for activiti to install the demo. Therefore, you need to install J2EE and configure the environment variable java_home.
Note: you must first install j2se before installing J2EE. Note that the j2se version must be the same as that of J2EE. Note that the Java environment version must be the same as that of Tomcat, that is, the number of digits to download and install must be the same. If it is 32-bit, you must download and install the 32-bit version. Otherwise, an error occurs when activiti is installed.


2.1 install Apache-Tomcat
Tomcat: http://tomcat.apache.org/download-70.cgi
Advice: Tomcat 6.0 is recommended because of its high stability and compatibility.

After the download is complete, you need to configure the environment variable and set the binery directory of the binary folder to be installed. The steps are as follows:

2.1.1 Add the Tomcat System variable catalina_home to decompress the downloaded tomcat, and then create the system variable catalina_home. The system variable specifies the parent directory (Tomcat directory) of the Tomcat binery folder ), the directory is automatically searched and started when Tomcat is running, for example:



2.1.2 Add the path of the system variable and add the directory of binery of Tomcat, in path, you can use the system variable method % catalina_home % \ bin \ or use the complete installation path instead of the system variable method to set the installation path of the variable.

So far, tomcat configuration is complete, and the next step is to install the Java Runtime Environment.
2.2 The installation and configuration of J2EE is relatively simple. Java developers know that you must first install the preliminary version j2se before installing J2EE, there is a big difference between the two types of development applications.
The installation and configuration of j2se are the same as those of the original installation configuration. After installation, configure the corresponding java_home variable and path. After installation, verify the function.


3. activiti Installation

3.1 Framework and engine installation after the above steps are configured, next copy the activiti-explorer.war and activiti-rest.war in the wars folder of activiti to the webapps folder of Tomcat, and then the activity runs startup. start tomcat in the BAT file and wait until the installation is complete. In this process, the system is detected, the H2 memory database is installed, and the corresponding demo model is installed.
After the installation is complete, open the website http: // localhost: 8080/activiti-explorer and log on with the Kermit user. The installation is successful:



3.2 install in eclipse

After the above steps, it is proved that the activiti framework has been set up. To use an attempt designer, you need to install the activiti design plug-in eclipse. The specific configuration and installation methods are as follows:


3.2.1 open the installation interface and choose help --> install new software, for example:

3.2.2 install Open the installation interface, enter the http://activiti.org/designer/update/ URL at the enter URL, and then select the first option to install the appropriate designer plug-in.
After completing the preceding steps, activiti installation and configuration have been completed,

Next, you can develop the corresponding process according to the API documentation. Here, we provide a user manual for the 5.15 translation version: http://download.csdn.net/detail/zhang_xinxiu/7697351.


Conclusion
After a week of struggle, I finally completely configured the activiti development environment. In fact, many things are often difficult at the beginning, because there is no clue and there is no right direction, therefore, we can only make a little exploration, but this process is quite practical and will be greatly improved after the experience. In addition, we need to carefully record the steps that have taken place in this process, after completing this process, you can go back to the steps you have taken, and finally make a summary to ensure that you can solve the same problem quickly.

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.