Sequence flow
顺序流
Description
描述
A sequence flow is the connector between two elements of
a process. After an element is visited during process execution, all outgoing
sequence flow will be followed. This means that the default nature of BPMN 2.0
is to be parallel: two outgoing sequence flow will create two separate,
parallel paths of execution.
顺序流用来连接流程中的两个元素。流程执行完一个元素时就会获取接下来获取所有外出顺序流进行执行。也就是说BPMN2.0天然就是并行执行的:两个外出顺序流就会创建两个独立的、并行的流程执行路径。
Graphical
notation
流程表示
A sequence flow is visualized as an arrow going from the
source element towards the target element. The arrow always points towards the target.
顺序流表示为一个带有箭头的,从起始元素指向目标元素的线。箭头通常指向目标元素。
XML representation
XML 表示
Sequence flow need to have a process-unique id, and a reference to an existing source and target element.
顺序流必须有一个流程唯一的id,并且指向存在起始元素和目标元素。
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" />
Conditional sequence flow
条件顺序流
Description
描述
A sequence flow can have a condition defined on it. When
a BPMN 2.0 activity is left, the default behavior is to evaluate the conditions
on the outgoing sequence flow. When a condition evaluates to true, that outgoing sequence flow is selected. When multiple sequence flow are
selected that way, multiple executions will be generated and the process will be continued in a parallel way.
可以为顺序流定义一个条件。当BPMN2.0中的Activity离开时,默认将先对所有外出顺序流的条件进行评估。当评估为真时,该顺序流就会被选中执行。当多个顺序流同时被选中时,流程就会创建多个流程执行,并进入并行模式继续执行。
Note: the above holds for BPMN 2.0 activities (and events), but not for
gateways. Gateways will handle sequence flow with conditions in specific ways,
depending on the gateway type.
Graphical notation
图形符号
A conditional sequence flow is visualized as a regular
sequence flow, with a small diamond at the beginning. The condition expression
is shown next to the sequence flow.
条件顺序流的图形表示与普通顺序流差不多,只是在起始点加一个小的菱形符号。流程条件则显示在图形表示附近。
XML representation
XML 表示
A conditional sequence flow is represented in XML as a
regular sequence flow, containing a conditionExpression sub-element. Note that for the moment only tFormalExpressions are supported, Omitting the xsi:type="" definition will simply default to this only supported
type of expressions.
条件顺序流的XML表示与普通顺序流一样,并增加了一个conditionExpression的子元素。注意现在只有tFormalExpressions 被支持,所以可以忽略xsi:type="" 的值定义,来缺省使用当前被支持的表达式类型。
<sequenceFlow id="flow" sourceRef="theStart" targetRef="theTask">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${order.price > 100 && order.price < 250}]]>
</conditionExpression>
</sequenceFlow>
Activiti supports two kind of expressions: UEL-value and
UEL-method expressions (UEL stands for Unified Expression Language and is part of the EE6 specification, see the EE6
specification for detailed
information)
Activiti支持两种表达式: UEL-value 和 UEL-method (UEL: Unified Expression Language 是EE6标准中的一部分,可以参考 the EE6
specification 获取更多的信息)。
Specifying the type of expression, is done through the language attribute on the expression element:
可以通过expression元素中的language属性来指定表达式的类型:
<conditionExpression xsi:type="tFormalExpression" language="uel-value | uel-method">
<![CDATA[${order.isStandard}]]>
</conditionExpression>
-
uel-value: references data of a process variable, in the
typical JavaBean style through getters.
-
uel-value: 表示一个流程变量,可以通过JavaBean的getter方法获取。
<conditionExpression xsi:type="tFormalExpression" language="uel-value">
<![CDATA[${order.price > 100 && order.price < 250}]]>
</conditionExpression>
-
uel-method: invokes a method that resolves to a boolean value.
-
uel-method: 表示调用一个方法,该方法返回一个布尔值。
<conditionExpression xsi:type="tFormalExpression" language="uel-method">
<![CDATA[${order.isStandardOrder}]]>
</conditionExpression>
Note that these expressions support resolving primitives
(incl. comparing them), beans, lists, arrays and maps. If no value for the language
attribute is specified, by default the expression is resolved as a value
expression.
注意,这些表达式支持解析基础类型(包含对比它们)、bean、list、array和map。如果language属性没有被指定,缺省则将解析为一个值表达式。
The Activiti distribution contains the following example
process using value and method expressions (seeorg.activiti.examples.bpmn.expression):
Activiti发行包中包含俩了下面这个使用值和方法表达式的示例(参见org.activiti.examples.bpmn.expression):
- 大小: 6.8 KB
- 大小: 15.1 KB
- 大小: 18.7 KB
分享到:
相关推荐
赠送jar包:activiti-json-converter-5.21.0.jar; 赠送原API文档:activiti-json-converter-5.21.0-javadoc.jar; 赠送源代码:activiti-json-converter-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-...
这个“activiti-userguide-5-16”压缩包文件包含了 Activiti 5.16 版本的用户指南,帮助我们深入理解并有效使用这个流程管理工具。 1. **BPMN 2.0 规范**:Business Process Model and Notation 2.0(业务流程模型...
赠送jar包:activiti-engine-5.21.0.jar; 赠送原API文档:activiti-engine-5.21.0-javadoc.jar; 赠送源代码:activiti-engine-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-engine-5.21.0.pom; 包含...
赠送jar包:activiti-json-converter-5.21.0.jar; 赠送原API文档:activiti-json-converter-5.21.0-javadoc.jar; 赠送源代码:activiti-json-converter-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-...
赠送jar包:activiti-image-generator-5.21.0.jar; 赠送原API文档:activiti-image-generator-5.21.0-javadoc.jar; 赠送源代码:activiti-image-generator-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-...
赠送jar包:activiti-common-rest-5.21.0.jar; 赠送原API文档:activiti-common-rest-5.21.0-javadoc.jar; 赠送源代码:activiti-common-rest-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-common-rest-...
赠送jar包:activiti-bpmn-model-5.21.0.jar; 赠送原API文档:activiti-bpmn-model-5.21.0-javadoc.jar; 赠送源代码:activiti-bpmn-model-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-bpmn-model-...
赠送jar包:activiti-image-generator-5.21.0.jar; 赠送原API文档:activiti-image-generator-5.21.0-javadoc.jar; 赠送源代码:activiti-image-generator-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-...
activiti-spring-boot-starter-7.1.0.M1
activiti-spring-boot-starter-basic-6.0.0适配springboot2.1.2
activiti-bpmn-converter-5.18.0-sources.jar
赠送jar包:activiti-process-validation-5.21.0.jar; 赠送原API文档:activiti-process-validation-5.21.0-javadoc.jar; 赠送源代码:activiti-process-validation-5.21.0-sources.jar; 赠送Maven依赖信息文件:...
赠送jar包:activiti-bpmn-converter-5.21.0.jar; 赠送原API文档:activiti-bpmn-converter-5.21.0-javadoc.jar; 赠送源代码:activiti-bpmn-converter-5.21.0-sources.jar; 赠送Maven依赖信息文件:activiti-...
activiti-bpmn-converter-5.16.4.jar
本文将详细介绍如何在SpringBoot项目中整合Activiti,并通过提供的"springboot-activiti-test-master.zip"压缩包进行实战演练。 首先,我们需要了解SpringBoot与Activiti的基本概念。SpringBoot旨在简化Spring应用...
1、将以下四个文件(见附件Activiti Designer 5.18.1插件补丁)拷贝到自己的eclipse的plugin文件夹下面,重启eclipse ...2、将activiti-designer-5.18.0文件夹copy到eclipse\dropins目录下; 3、重启eclipse即可
eclipse 安装activiti activiti-designer-5.18.0.zip 附带eclipse 以及activiti-designer-5.18.0.zip 安装包 eclipse下载链接https://www.eclipse.org/downloads/packages/release/luna/sr2
【 activiti-explorer-eclipse项目 】是一个基于Activiti工作流引擎的Eclipse插件项目。 Activiti 是一个开源的业务流程管理系统(BPMN 2.0)和工作流引擎,它允许开发者轻松地在应用程序中集成业务流程管理功能。这...
Activiti的Eclipse插件activiti-designer安装资料包,包含activiti-designer-5.18.0.zip、org.eclipse.emf.transaction_1.4.0.201306111400.jar、org.eclipse.emf.validation.ui_1.7.0.201403111711.jar、org....
1. **流程建模**: Activiti Designer 提供了一个图形化用户界面,通过拖放方式可以轻松创建和配置各种流程元素,如开始事件、结束事件、任务、网关和泳道等。这使得非技术背景的业务人员也能参与到流程设计中,提升...