Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
cc978133
F
Flowable Engine
项目概览
开发团队
/
Flowable Engine
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flowable Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cc978133
编写于
2月 26, 2015
作者:
S
Saeid Mirzaei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename andChildren tag to includeChildExceptions
上级
59fa56a5
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
14 addition
and
13 deletion
+14
-13
modules/activiti-bpmn-converter/src/main/java/org/activiti/bpmn/constants/BpmnXMLConstants.java
...in/java/org/activiti/bpmn/constants/BpmnXMLConstants.java
+1
-1
modules/activiti-bpmn-converter/src/main/resources/org/activiti/impl/bpmn/parser/activiti-bpmn-extensions-5.15.xsd
...tiviti/impl/bpmn/parser/activiti-bpmn-extensions-5.15.xsd
+1
-1
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionInvalidHasChildrenModel.bpmn
...ces/mapException/mapExceptionInvalidHasChildrenModel.bpmn
+1
-1
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionModel.bpmn
...er/src/test/resources/mapException/mapExceptionModel.bpmn
+3
-3
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionNoErrorCode.bpmn
.../test/resources/mapException/mapExceptionNoErrorCode.bpmn
+1
-1
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionNoExceptionClass.bpmn
.../resources/mapException/mapExceptionNoExceptionClass.bpmn
+1
-1
modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.java
.../test/bpmn/event/error/mapError/BoundaryErrorMapTest.java
+3
-2
modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.testDefaultMap.bpmn20.xml
...r/mapError/BoundaryErrorMapTest.testDefaultMap.bpmn20.xml
+1
-1
modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.testSingleDirectMap.bpmn20.xml
...Error/BoundaryErrorMapTest.testSingleDirectMap.bpmn20.xml
+1
-1
modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.testSingleInheritedMap.bpmn20.xml
...or/BoundaryErrorMapTest.testSingleInheritedMap.bpmn20.xml
+1
-1
未找到文件。
modules/activiti-bpmn-converter/src/main/java/org/activiti/bpmn/constants/BpmnXMLConstants.java
浏览文件 @
cc978133
...
...
@@ -286,6 +286,6 @@ public interface BpmnXMLConstants {
public
static
final
String
FAILED_JOB_RETRY_TIME_CYCLE
=
"failedJobRetryTimeCycle"
;
public
static
final
String
MAP_EXCEPTION
=
"mapException"
;
public
static
final
String
MAP_EXCEPTION_ERRORCODE
=
"errorCode"
;
public
static
final
String
MAP_EXCEPTION_ANDCHILDREN
=
"
andChildren
"
;
public
static
final
String
MAP_EXCEPTION_ANDCHILDREN
=
"
includeChildExceptions
"
;
}
modules/activiti-bpmn-converter/src/main/resources/org/activiti/impl/bpmn/parser/activiti-bpmn-extensions-5.15.xsd
浏览文件 @
cc978133
...
...
@@ -628,7 +628,7 @@
<complexType>
<sequence>
<element
name=
"errorCode"
type=
"string"
/>
<element
name=
"
andChildren
"
type=
"boolean"
/>
<element
name=
"
includeChildExceptions
"
type=
"boolean"
/>
</sequence>
</complexType>
</element>
...
...
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionInvalidHasChildrenModel.bpmn
浏览文件 @
cc978133
...
...
@@ -4,7 +4,7 @@
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"servicetaskWithAndTrueAndChildren"
></sequenceFlow>
<serviceTask
id=
"servicetaskWithAndTrueAndChildren"
name=
"Service Task with andChildren Set to True"
>
<activiti:mapException
errorCode=
"myErrorCode1"
andChildren
=
"NoTrueOrFalse"
>
com.activiti.Something1
</activiti:mapException>
<activiti:mapException
errorCode=
"myErrorCode1"
includeChildExceptions
=
"NoTrueOrFalse"
>
com.activiti.Something1
</activiti:mapException>
</serviceTask>
<sequenceFlow
id=
"flow2"
sourceRef=
"servicetaskWithAndTrueAndChildren"
targetRef=
"endevent1"
></sequenceFlow>
...
...
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionModel.bpmn
浏览文件 @
cc978133
...
...
@@ -4,12 +4,12 @@
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"servicetaskWithAndTrueAndChildren"
></sequenceFlow>
<serviceTask
id=
"servicetaskWithAndTrueAndChildren"
name=
"Service Task with andChildren Set to True"
>
<activiti:mapException
errorCode=
"myErrorCode1"
andChildren
=
"true"
>
com.activiti.Something1
</activiti:mapException>
<activiti:mapException
errorCode=
"myErrorCode2"
andChildren
=
"false"
>
com.activiti.Something2
</activiti:mapException>
<activiti:mapException
errorCode=
"myErrorCode1"
includeChildExceptions
=
"true"
>
com.activiti.Something1
</activiti:mapException>
<activiti:mapException
errorCode=
"myErrorCode2"
includeChildExceptions
=
"false"
>
com.activiti.Something2
</activiti:mapException>
<activiti:mapException
errorCode=
"myErrorCode3"
>
com.activiti.Something3
</activiti:mapException>
</serviceTask>
<sequenceFlow
id=
"flow2"
sourceRef=
"servicetaskWithAndTrueAndChildren"
targetRef=
"servicetaskWithNoMapException"
></sequenceFlow>
<serviceTask
id=
"servicetaskWithNoMapException"
name=
"Service Task with
andChildren
Set to True"
>
<serviceTask
id=
"servicetaskWithNoMapException"
name=
"Service Task with
includeChildExceptions
Set to True"
>
</serviceTask>
<sequenceFlow
id=
"flow3"
sourceRef=
"servicetaskWithNoMapException"
targetRef=
"endevent1"
></sequenceFlow>
...
...
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionNoErrorCode.bpmn
浏览文件 @
cc978133
...
...
@@ -3,7 +3,7 @@
<process
id=
"mapExceptionInvalidHasChildrenTestProcess"
name=
"mapException Test Process with Invalid has Children"
isExecutable=
"true"
>
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"servicetaskWithAndTrueAndChildren"
></sequenceFlow>
<serviceTask
id=
"servicetaskWithAndTrueAndChildren"
name=
"Service Task with
andChildren
Set to True"
>
<serviceTask
id=
"servicetaskWithAndTrueAndChildren"
name=
"Service Task with
includeChildExceptions
Set to True"
>
<activiti:mapException
>
com.activiti.Something1
</activiti:mapException>
</serviceTask>
<sequenceFlow
id=
"flow2"
sourceRef=
"servicetaskWithAndTrueAndChildren"
targetRef=
"endevent1"
></sequenceFlow>
...
...
modules/activiti-bpmn-converter/src/test/resources/mapException/mapExceptionNoExceptionClass.bpmn
浏览文件 @
cc978133
...
...
@@ -3,7 +3,7 @@
<process
id=
"mapExceptionInvalidHasChildrenTestProcess"
name=
"mapException Test Process with Invalid has Children"
isExecutable=
"true"
>
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"servicetaskWithAndTrueAndChildren"
></sequenceFlow>
<serviceTask
id=
"servicetaskWithAndTrueAndChildren"
name=
"Service Task with
andChildren
Set to True"
>
<serviceTask
id=
"servicetaskWithAndTrueAndChildren"
name=
"Service Task with
includeChildExceptions
Set to True"
>
<activiti:mapException
errorCode=
"myErrorCode1"
></activiti:mapException>
</serviceTask>
<sequenceFlow
id=
"flow2"
sourceRef=
"servicetaskWithAndTrueAndChildren"
targetRef=
"endevent1"
></sequenceFlow>
...
...
modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.java
浏览文件 @
cc978133
...
...
@@ -15,9 +15,10 @@ package org.activiti.engine.test.bpmn.event.error.mapError;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.xml.bind.JAXBException
;
import
org.activiti.engine.impl.test.PluggableActivitiTestCase
;
import
org.activiti.engine.test.Deployment
;
import
org.activiti.engine.test.mock.MockServiceTask
;
import
org.activiti.standalone.testing.helpers.ServiceTaskTestMock
;
/**
...
...
@@ -43,7 +44,7 @@ public class BoundaryErrorMapTest extends PluggableActivitiTestCase{
FlagDelegate
.
reset
();
Map
<
String
,
Object
>
vars
=
new
HashMap
<
String
,
Object
>();
vars
.
put
(
"exceptionClass"
,
BoundaryEventChild
Exception
.
class
.
getName
());
vars
.
put
(
"exceptionClass"
,
JAXB
Exception
.
class
.
getName
());
assertEquals
(
0
,
ServiceTaskTestMock
.
CALL_COUNT
.
get
());
try
{
...
...
modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.testDefaultMap.bpmn20.xml
浏览文件 @
cc978133
...
...
@@ -6,7 +6,7 @@
<sequenceFlow
id=
"flow1"
sourceRef=
"theStart"
targetRef=
"serviceTask"
></sequenceFlow>
<serviceTask
id=
"serviceTask"
activiti:class=
"org.activiti.engine.test.bpmn.event.error.mapError.ThrowCustomExceptionDelegate"
>
<extensionElements>
<activiti:mapException
xmlns:activiti=
"http://activiti.org/bpmn"
errorCode=
"myErrorCode1"
withChildren
=
"true"
></activiti:mapException>
<activiti:mapException
xmlns:activiti=
"http://activiti.org/bpmn"
errorCode=
"myErrorCode1"
includeChildExceptions
=
"true"
></activiti:mapException>
</extensionElements>
</serviceTask>
<boundaryEvent
id=
"catchError"
attachedToRef=
"serviceTask"
>
...
...
modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.testSingleDirectMap.bpmn20.xml
浏览文件 @
cc978133
...
...
@@ -6,7 +6,7 @@
<sequenceFlow
id=
"flow1"
sourceRef=
"theStart"
targetRef=
"serviceTask"
></sequenceFlow>
<serviceTask
id=
"serviceTask"
activiti:class=
"org.activiti.engine.test.bpmn.event.error.mapError.ThrowCustomExceptionDelegate"
>
<extensionElements>
<activiti:mapException
xmlns:activiti=
"http://activiti.org/bpmn"
errorCode=
"myErrorCode1"
withChildren
=
"true"
>
org.activiti.engine.test.bpmn.event.error.mapError.BoundaryErrorParentException
</activiti:mapException>
<activiti:mapException
xmlns:activiti=
"http://activiti.org/bpmn"
errorCode=
"myErrorCode1"
includeChildExceptions
=
"true"
>
org.activiti.engine.test.bpmn.event.error.mapError.BoundaryErrorParentException
</activiti:mapException>
</extensionElements>
</serviceTask>
<boundaryEvent
id=
"catchError"
attachedToRef=
"serviceTask"
>
...
...
modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/mapError/BoundaryErrorMapTest.testSingleInheritedMap.bpmn20.xml
浏览文件 @
cc978133
...
...
@@ -6,7 +6,7 @@
<sequenceFlow
id=
"flow1"
sourceRef=
"theStart"
targetRef=
"serviceTask"
></sequenceFlow>
<serviceTask
id=
"serviceTask"
activiti:class=
"org.activiti.engine.test.bpmn.event.error.mapError.ThrowCustomExceptionDelegate"
>
<extensionElements>
<activiti:mapException
xmlns:activiti=
"http://activiti.org/bpmn"
errorCode=
"myErrorCode1"
andChildren
=
"true"
>
org.activiti.engine.test.bpmn.event.error.mapError.BoundaryErrorParentException
</activiti:mapException>
<activiti:mapException
xmlns:activiti=
"http://activiti.org/bpmn"
errorCode=
"myErrorCode1"
includeChildExceptions
=
"true"
>
org.activiti.engine.test.bpmn.event.error.mapError.BoundaryErrorParentException
</activiti:mapException>
</extensionElements>
</serviceTask>
<boundaryEvent
id=
"catchError"
attachedToRef=
"serviceTask"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录