What is Workflow Java Activity

Source: Internet
Author: User
Tags jbpm

See:Http://www.it165.net/pro/html/201504/37443.html First, what is a workflow

Take leave as an example, most companies now leave the process is this

employee calls (or chats) to request for leave of absence -- superior verbal consent- - ------------a record of leave of absence- - to the company at the end of the month -- The company will take leave to enter the computer

This is the absence process for companies that use workflow technology

Employee Use Account login System -- click on leave ---- Advanced Login System click Allow

So, a leave process is over.

Some people will ask, the superior does not have to submit to the company leave records? Does the company need to record records into the computer? The answer is, use. But all this work will run automatically after the supervisor clicks on the permission!

This is the workflow technology.

the workflow definition given by Georgakopoulos is that a workflow organizes a set of tasks to complete a business process: Defines the trigger order and trigger conditions for a task, each of which can be done by one or more software systems, or by one or a group of people. It can also be done by one or more individuals working with software systems

Second, the advantages of workflow technology

From the above example, it is easy to see

Workflow system, which realizes the automation of workflow, improves the operation efficiency of enterprises, improves the utilization of enterprise resources, improves the flexibility and adaptability of enterprise operation, improves the efficiency of quantitative examination and processing, and reduces waste (time is money).

and manual processing workflow, on the one hand can not effectively track the entire process situation, understanding, on the other hand will inevitably appear human error and time delay lead to inefficient, especially unable to carry out quantitative statistics, not conducive to query, report and performance evaluation.

Third, Why should Java developers learn the activity Workflow

in the In the Java domain,JBPM and activity are two mainstream workflow systems, and the presence of activity will undoubtedly replace JBPM(thedeveloper of the Activity is from the JBPM developer ).

iv. activity Workflow Learning Essentials

1.1 Plugins

in the Install the activity plugin in Eclipse , allowing you to draw an activity workflow diagram in Eclipse

2.1 engines

Processengine object,activity workflow engine. This is The core of Activiti's work. Responsible for the operation of the various instances and data, monitoring and management processes that generate the process runtime.

All operations start with the fetch engine, so the engine is generally used as a global variable

Processengine processengine =processengines.getdefaultprocessengine ();

3.1 configuration Files

Activiti.cfg.xml. activiti Core configuration files, configuring the basic parameters of the process engine creation tool and database connection pool parameters

4.5 Types of database tables

Activiti 's background is supported by the database, and all tables start with act_ . The second part is a two-letter identifier that represents the purpose of the table. The use also corresponds to the API of the service .

act_re_*: ' RE ' represents repository. The table for this prefix contains the process definition and process static resources (pictures, rules, etc.).

act_ru_*: ' RU ' indicates runtime. These run-time tables contain process instances, tasks, variables, asynchronous tasks, and other running data. Activiti only saves this data during the process instance execution and deletes the records at the end of the process. This way the run-time table can always be very small and fast.

act_id_*: ' ID ' denotes identity. These tables contain identity information, such as users, groups, and so on.

act_hi_*: ' HI ' means history. These tables contain historical data, such as historical process instances, variables, tasks, and so on.

Act_ge_*: common data for different scenarios, such as storing resource files.

5. Sheet

Different tables hold different aspects of data, such as a process definition table, a Task node table, a process variable table, a Task history table, and so on.

6.5 Service

of different the Service class corresponds to different functions.

like Taskservice, is the activiti Task service class. You can get information about a task from this class.

and Historyservice, it is the class of Activiti query history information. After a process has been executed, this object provides us with query history information.

7.7 Basic Operations

Design Flowchart (various components, such as wiring, user tasks, gateways)

Process definition and additions and deletions change

Process variables and additions and changes

Start process Definition

Task additions and deletions change

Complete the task

Historical information Query

Learning 7 Basic operations is only required under javase , of course, when doing Web projects, it is necessary to consider and SSH and other development frameworks. Of course, only the basic operation has learned, comprehensive development is not difficult.

What is Workflow Java Activity

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.