Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
e3619c2a
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,发现更多精彩内容 >>
提交
e3619c2a
编写于
9月 29, 2010
作者:
J
jbarrez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added throws exception to execute of BpmnJavaDelegation. Thanks Falko!
上级
cb7aa52e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
5 deletion
+19
-5
modules/activiti-engine/src/main/java/org/activiti/engine/bpmn/BpmnJavaDelegation.java
...ain/java/org/activiti/engine/bpmn/BpmnJavaDelegation.java
+2
-2
modules/activiti-pvm/src/main/java/org/activiti/pvm/event/EventListener.java
...m/src/main/java/org/activiti/pvm/event/EventListener.java
+1
-1
modules/activiti-pvm/src/main/java/org/activiti/pvm/impl/runtime/AbstractEventAtomicOperation.java
...tiviti/pvm/impl/runtime/AbstractEventAtomicOperation.java
+8
-1
modules/activiti-pvm/src/main/java/org/activiti/pvm/impl/runtime/AtomicOperationTransitionNotifyListenerTake.java
.../runtime/AtomicOperationTransitionNotifyListenerTake.java
+8
-1
未找到文件。
modules/activiti-engine/src/main/java/org/activiti/engine/bpmn/BpmnJavaDelegation.java
浏览文件 @
e3619c2a
...
...
@@ -43,10 +43,10 @@ public abstract class BpmnJavaDelegation extends BpmnActivityBehavior implements
performDefaultOutgoingBehavior
(
execution
);
}
public
void
notify
(
EventListenerExecution
execution
)
{
public
void
notify
(
EventListenerExecution
execution
)
throws
Exception
{
execute
((
DelegateExecution
)
execution
);
}
public
abstract
void
execute
(
DelegateExecution
execution
);
public
abstract
void
execute
(
DelegateExecution
execution
)
throws
Exception
;
}
modules/activiti-pvm/src/main/java/org/activiti/pvm/event/EventListener.java
浏览文件 @
e3619c2a
...
...
@@ -22,5 +22,5 @@ public interface EventListener {
String
EVENTNAME_END
=
"end"
;
String
EVENTNAME_TAKE
=
"take"
;
void
notify
(
EventListenerExecution
execution
);
void
notify
(
EventListenerExecution
execution
)
throws
Exception
;
}
modules/activiti-pvm/src/main/java/org/activiti/pvm/impl/runtime/AbstractEventAtomicOperation.java
浏览文件 @
e3619c2a
...
...
@@ -15,6 +15,7 @@ package org.activiti.pvm.impl.runtime;
import
java.util.List
;
import
org.activiti.pvm.PvmException
;
import
org.activiti.pvm.event.EventListener
;
import
org.activiti.pvm.impl.process.ScopeImpl
;
...
...
@@ -33,7 +34,13 @@ public abstract class AbstractEventAtomicOperation implements AtomicOperation {
execution
.
setEventName
(
getEventName
());
execution
.
setEventSource
(
scope
);
EventListener
listener
=
eventListeners
.
get
(
eventListenerIndex
);
listener
.
notify
(
execution
);
try
{
listener
.
notify
(
execution
);
}
catch
(
RuntimeException
e
)
{
throw
e
;
}
catch
(
Exception
e
)
{
throw
new
PvmException
(
"couldn't execute event listener : "
+
e
.
getMessage
(),
e
);
}
execution
.
setEventListenerIndex
(
eventListenerIndex
+
1
);
execution
.
performOperation
(
this
);
...
...
modules/activiti-pvm/src/main/java/org/activiti/pvm/impl/runtime/AtomicOperationTransitionNotifyListenerTake.java
浏览文件 @
e3619c2a
...
...
@@ -15,6 +15,7 @@ package org.activiti.pvm.impl.runtime;
import
java.util.List
;
import
java.util.logging.Logger
;
import
org.activiti.pvm.PvmException
;
import
org.activiti.pvm.event.EventListener
;
import
org.activiti.pvm.impl.process.ActivityImpl
;
import
org.activiti.pvm.impl.process.ScopeImpl
;
...
...
@@ -38,7 +39,13 @@ public class AtomicOperationTransitionNotifyListenerTake implements AtomicOperat
execution
.
setEventName
(
EventListener
.
EVENTNAME_TAKE
);
execution
.
setEventSource
(
transition
);
EventListener
listener
=
eventListeners
.
get
(
eventListenerIndex
);
listener
.
notify
(
execution
);
try
{
listener
.
notify
(
execution
);
}
catch
(
RuntimeException
e
)
{
throw
e
;
}
catch
(
Exception
e
)
{
throw
new
PvmException
(
"couldn't execute event listener : "
+
e
.
getMessage
(),
e
);
}
execution
.
setEventListenerIndex
(
eventListenerIndex
+
1
);
execution
.
performOperation
(
this
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录