读书人

Activiti User Guide - Activit 用户指

发布时间: 2012-11-11 10:07:57 作者: rapoo

Activiti User Guide -- Activit 用户指南 Part06

?

Chapter?7.?BPMN

第七章 BPMN

Table of Contents

What is BPMN?

Examples

Defining a process

Getting started: 10 minute tutorial

Use case

Process diagram

XML representation

Starting a process instance

Task lists

Claiming the task

Completing the task

Ending the process

Future enhancements

BPMN 2.0 constructs

Custom extensions

Events

Start events

None start event

End events

None end event

Sequence flow

Conditional sequence flow

Gateways

Exclusive gateway

Parallel Gateway

User task

Script Task

Java Service Task

Email task

Manual Task

Java receive task

Boundary events

Timer Boundary Event

SubProcess

Call activity (subprocess)

What is BPMN?

什么是BPMN

See our?FAQ entry on BPMN 2.0

请参考:?FAQ entry on BPMN 2.0

Examples

示例

Examples for the BPMN 2.0 constructs described in thefollowing sections can be found in the?docs/examples?folder.

本章所讨论的的BPMN2.0可以在docs/examples?目录下找到相应的示例。

See the specific section on?examples?for more information.

更多的可以参考示例?章节。

Defining aprocess

流程定义

To create a new BPMN 2.0 process definition, it's best tohave your Eclipse?properly setup.

为了创建BPMN2.0的流程定义文件,最好你的Eclipse中已经设置好相应的属性。

?

Create a new XML file (New->Other->XML-XML) and give it a name. Make sure that the file?ends with .bpmn20.xml, since otherwise the engine won't pick up this file fordeployment.

创建一个XML文件(New->Other->XML-XML))并赋一个指定的名称。XML文件名称必须以.bpmn20.xml作为结尾,否则流程引擎将不会部署此文件。


Activiti User Guide - Activit 用户指南 Part06

?

The root element of the BPMN 2.0 schema is the?definitions?element. Within this element, multiple processdefinitions can be defined (although we advise to have only one processdefinition in each file, since this simplifies maintenance later in thedevelopment process). An empty process definition looks as follows. Note thatthe minimal definitions element only needs the?xmlns?and?targetNamespacedeclaration.

BPMN2.0定义文件中的根元素是definitions。使用该元素可以在一个定义文件中定义多个流程(尽管如此,我们还是建议一个文件中最好只定义一个流程,因为这样以后维护起来更简单)。一个空的流程定义文件大概如下面所示。注意此时定义元素仅仅需要声明?xmlns?和?targetNamespace

?

?The process element has two attributes:

流程元素有两个属性:

读书人网 >软件架构设计

热点推荐