Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
afaad21a
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
afaad21a
编写于
9月 08, 2020
作者:
Z
zhourui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add name alias
上级
76e966e3
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
170 addition
and
229 deletion
+170
-229
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/log/Signal.java
...in/java/com/x/processplatform/core/entity/log/Signal.java
+110
-185
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/agent/AgentProcessor.java
...rm/service/processing/processor/agent/AgentProcessor.java
+3
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/begin/BeginProcessor.java
...rm/service/processing/processor/begin/BeginProcessor.java
+3
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/cancel/CancelProcessor.java
.../service/processing/processor/cancel/CancelProcessor.java
+5
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/choice/ChoiceProcessor.java
.../service/processing/processor/choice/ChoiceProcessor.java
+7
-5
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/delay/DelayProcessor.java
...rm/service/processing/processor/delay/DelayProcessor.java
+3
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/embed/EmbedProcessor.java
...rm/service/processing/processor/embed/EmbedProcessor.java
+3
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/end/EndProcessor.java
...atform/service/processing/processor/end/EndProcessor.java
+3
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/invoke/InvokeProcessor.java
.../service/processing/processor/invoke/InvokeProcessor.java
+5
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/manual/ManualProcessor.java
.../service/processing/processor/manual/ManualProcessor.java
+4
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/merge/MergeProcessor.java
...rm/service/processing/processor/merge/MergeProcessor.java
+3
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/message/MessageProcessor.java
...ervice/processing/processor/message/MessageProcessor.java
+6
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/parallel/ParallelProcessor.java
...vice/processing/processor/parallel/ParallelProcessor.java
+6
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/service/ServiceProcessor.java
...ervice/processing/processor/service/ServiceProcessor.java
+6
-3
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/split/SplitProcessor.java
...rm/service/processing/processor/split/SplitProcessor.java
+3
-3
未找到文件。
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/log/Signal.java
浏览文件 @
afaad21a
...
...
@@ -4,12 +4,24 @@ import java.util.Date;
import
java.util.List
;
import
com.x.base.core.project.gson.GsonPropertyObject
;
import
com.x.processplatform.core.entity.element.Activity
;
public
class
Signal
extends
GsonPropertyObject
{
// public static final String TYPE_AGENTARRIVE = "agentArrive";
// public static final String TYPE_AGENTEXECUTE = "agentExecute";
// public static final String TYPE_AGENTINQUIRE = "agentInquire";
public
Signal
()
{
this
.
time
=
new
Date
();
this
.
stamp
=
this
.
time
.
getTime
();
}
public
Signal
(
String
activityToken
,
Activity
activity
)
{
this
();
this
.
activityToken
=
activityToken
;
if
(
null
!=
activity
)
{
this
.
alias
=
activity
.
getAlias
();
this
.
name
=
activity
.
getName
();
}
}
private
AgentArrive
agentArrive
;
private
AgentExecute
agentExecute
;
...
...
@@ -31,9 +43,8 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
agentArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
p
.
activityToken
=
activityToken
;
public
static
Signal
agentArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
AgentArrive
s
=
new
AgentArrive
();
p
.
agentArrive
=
s
;
return
p
;
...
...
@@ -43,11 +54,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
agentExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
agentExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
AgentExecute
s
=
new
AgentExecute
();
p
.
agentExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -55,18 +65,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
agentInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
agentInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
AgentInquire
s
=
new
AgentInquire
();
p
.
agentInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_BEGINARRIVE = "beginArrive";
// public static final String TYPE_BEGINEXECUTE = "beginExecute";
// public static final String TYPE_BEGININQUIRE = "beginInquire";
private
BeginArrive
beginArrive
;
private
BeginExecute
beginExecute
;
private
BeginInquire
beginInquire
;
...
...
@@ -87,11 +92,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
beginArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
beginArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
BeginArrive
s
=
new
BeginArrive
();
p
.
beginArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -99,11 +103,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
beginExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
beginExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
BeginExecute
s
=
new
BeginExecute
();
p
.
beginExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -111,18 +114,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
beginInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
beginInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
BeginInquire
s
=
new
BeginInquire
();
p
.
beginInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_CANCELARRIVE = "cancelArrive";
// public static final String TYPE_CANCELEXECUTE = "cancelExecute";
// public static final String TYPE_CANCELINQUIRE = "cancelInquire";
private
CancelArrive
cancelArrive
;
private
CancelExecute
cancelExecute
;
private
CancelInquire
cancelInquire
;
...
...
@@ -143,11 +141,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
cancelArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
cancelArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
CancelArrive
s
=
new
CancelArrive
();
p
.
cancelArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -155,11 +152,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
cancelExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
cancelExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
CancelExecute
s
=
new
CancelExecute
();
p
.
cancelExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -167,18 +163,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
cancelInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
cancelInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
CancelInquire
s
=
new
CancelInquire
();
p
.
cancelInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_CHOICEARRIVE = "choiceArrive";
// public static final String TYPE_CHOICEEXECUTE = "choiceExecute";
// public static final String TYPE_CHOICEINQUIRE = "choiceInquire";
private
ChoiceArrive
choiceArrive
;
private
ChoiceExecute
choiceExecute
;
private
ChoiceInquire
choiceInquire
;
...
...
@@ -199,11 +190,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
choiceArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
choiceArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ChoiceArrive
s
=
new
ChoiceArrive
();
p
.
choiceArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -211,11 +201,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
choiceExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
choiceExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ChoiceExecute
s
=
new
ChoiceExecute
();
p
.
choiceExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -223,18 +212,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
choiceInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
choiceInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ChoiceInquire
s
=
new
ChoiceInquire
();
p
.
choiceInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_DELAYARRIVE = "delayArrive";
// public static final String TYPE_DELAYEXECUTE = "delayExecute";
// public static final String TYPE_DELAYINQUIRE = "delayInquire";
private
DelayArrive
delayArrive
;
private
DelayExecute
delayExecute
;
private
DelayInquire
delayInquire
;
...
...
@@ -255,11 +239,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
delayArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
delayArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
DelayArrive
s
=
new
DelayArrive
();
p
.
delayArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -267,11 +250,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
delayExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
delayExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
DelayExecute
s
=
new
DelayExecute
();
p
.
delayExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -279,18 +261,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
delayInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
delayInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
DelayInquire
s
=
new
DelayInquire
();
p
.
delayInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_EMBEDARRIVE = "embedArrive";
// public static final String TYPE_EMBEDEXECUTE = "embedExecute";
// public static final String TYPE_EMBEDINQUIRE = "embedInquire";
private
EmbedArrive
embedArrive
;
private
EmbedExecute
embedExecute
;
private
EmbedInquire
embedInquire
;
...
...
@@ -311,11 +288,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
embedArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
embedArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
EmbedArrive
s
=
new
EmbedArrive
();
p
.
embedArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -323,11 +299,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
embedExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
embedExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
EmbedExecute
s
=
new
EmbedExecute
();
p
.
embedExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -335,18 +310,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
embedInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
embedInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
EmbedInquire
s
=
new
EmbedInquire
();
p
.
embedInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_ENDARRIVE = "endArrive";
// public static final String TYPE_ENDEXECUTE = "endExecute";
// public static final String TYPE_ENDINQUIRE = "endInquire";
private
EndArrive
endArrive
;
private
EndExecute
endExecute
;
private
EndInquire
endInquire
;
...
...
@@ -367,11 +337,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
endArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
endArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
EndArrive
s
=
new
EndArrive
();
p
.
endArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -379,11 +348,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
endExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
endExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
EndExecute
s
=
new
EndExecute
();
p
.
endExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -391,18 +359,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
endInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
endInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
EndInquire
s
=
new
EndInquire
();
p
.
endInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_INVOKEARRIVE = "invokeArrive";
// public static final String TYPE_INVOKEEXECUTE = "invokeExecute";
// public static final String TYPE_INVOKEINQUIRE = "invokeInquire";
private
InvokeArrive
invokeArrive
;
private
InvokeExecute
invokeExecute
;
private
InvokeInquire
invokeInquire
;
...
...
@@ -423,11 +386,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
invokeArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
invokeArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
InvokeArrive
s
=
new
InvokeArrive
();
p
.
invokeArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -435,11 +397,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
invokeExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
invokeExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
InvokeExecute
s
=
new
InvokeExecute
();
p
.
invokeExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -447,18 +408,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
invokeInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
invokeInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
InvokeInquire
s
=
new
InvokeInquire
();
p
.
invokeInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_MANUALARRIVE = "manualArrive";
// public static final String TYPE_MANUALEXECUTE = "manualExecute";
// public static final String TYPE_MANUALINQUIRE = "manualInquire";
private
ManualArrive
manualArrive
;
private
ManualExecute
manualExecute
;
private
ManualInquire
manualInquire
;
...
...
@@ -479,11 +435,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
manualArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
manualArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ManualArrive
s
=
new
ManualArrive
();
p
.
manualArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -502,13 +457,12 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
manualExecute
(
String
activityToken
,
String
type
,
List
<
String
>
identities
)
{
Signal
p
=
new
Signal
();
public
static
Signal
manualExecute
(
String
activityToken
,
Activity
activity
,
String
type
,
List
<
String
>
identities
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ManualExecute
s
=
new
ManualExecute
();
s
.
type
=
type
;
s
.
identities
=
identities
;
p
.
manualExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -516,18 +470,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
manualInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
manualInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ManualInquire
s
=
new
ManualInquire
();
p
.
manualInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_MERGEARRIVE = "mergeArrive";
// public static final String TYPE_MERGEEXECUTE = "mergeExecute";
// public static final String TYPE_MERGEINQUIRE = "mergeInquire";
private
MergeArrive
mergeArrive
;
private
MergeExecute
mergeExecute
;
private
MergeInquire
mergeInquire
;
...
...
@@ -548,11 +497,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
mergeArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
mergeArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
MergeArrive
s
=
new
MergeArrive
();
p
.
mergeArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -560,11 +508,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
mergeExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
mergeExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
MergeExecute
s
=
new
MergeExecute
();
p
.
mergeExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -572,18 +519,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
mergeInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
mergeInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
MergeInquire
s
=
new
MergeInquire
();
p
.
mergeInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_MESSAGEARRIVE = "messageArrive";
// public static final String TYPE_MESSAGEEXECUTE = "messageExecute";
// public static final String TYPE_MESSAGEINQUIRE = "messageInquire";
private
MessageArrive
messageArrive
;
private
MessageExecute
messageExecute
;
private
MessageInquire
messageInquire
;
...
...
@@ -604,11 +546,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
messageArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
messageArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
MessageArrive
s
=
new
MessageArrive
();
p
.
messageArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -616,11 +557,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
messageExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
messageExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
MessageExecute
s
=
new
MessageExecute
();
p
.
messageExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -628,18 +568,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
messageInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
messageInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
MessageInquire
s
=
new
MessageInquire
();
p
.
messageInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_PARALLELARRIVE = "parallelArrive";
// public static final String TYPE_PARALLELEXECUTE = "parallelExecute";
// public static final String TYPE_PARALLELINQUIRE = "parallelInquire";
private
ParallelArrive
parallelArrive
;
private
ParallelExecute
parallelExecute
;
private
ParallelInquire
parallelInquire
;
...
...
@@ -660,11 +595,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
parallelArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
parallelArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ParallelArrive
s
=
new
ParallelArrive
();
p
.
parallelArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -672,11 +606,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
parallelExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
parallelExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ParallelExecute
s
=
new
ParallelExecute
();
p
.
parallelExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -684,18 +617,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
parallelInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
parallelInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ParallelInquire
s
=
new
ParallelInquire
();
p
.
parallelInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_SERVICEARRIVE = "serviceArrive";
// public static final String TYPE_SERVICEEXECUTE = "serviceExecute";
// public static final String TYPE_SERVICEINQUIRE = "serviceInquire";
private
ServiceArrive
serviceArrive
;
private
ServiceExecute
serviceExecute
;
private
ServiceInquire
serviceInquire
;
...
...
@@ -716,11 +644,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
serviceArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
serviceArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ServiceArrive
s
=
new
ServiceArrive
();
p
.
serviceArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -728,11 +655,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
serviceExecute
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
serviceExecute
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ServiceExecute
s
=
new
ServiceExecute
();
p
.
serviceExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -740,18 +666,13 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
serviceInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
serviceInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
ServiceInquire
s
=
new
ServiceInquire
();
p
.
serviceInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
// public static final String TYPE_SPLITARRIVE = "splitArrive";
// public static final String TYPE_SPLITEXECUTE = "splitExecute";
// public static final String TYPE_SPLITINQUIRE = "splitInquire";
private
SplitArrive
splitArrive
;
private
SplitExecute
splitExecute
;
private
SplitInquire
splitInquire
;
...
...
@@ -772,11 +693,10 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
splitArrive
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
splitArrive
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
SplitArrive
s
=
new
SplitArrive
();
p
.
splitArrive
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -790,12 +710,11 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
splitExecute
(
String
activityToken
,
List
<
String
>
splitValues
)
{
Signal
p
=
new
Signal
();
public
static
Signal
splitExecute
(
String
activityToken
,
Activity
activity
,
List
<
String
>
splitValues
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
SplitExecute
s
=
new
SplitExecute
();
s
.
splitValueList
=
splitValues
;
p
.
splitExecute
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
...
...
@@ -803,18 +722,16 @@ public class Signal extends GsonPropertyObject {
}
public
static
Signal
splitInquire
(
String
activityToken
)
{
Signal
p
=
new
Signal
();
public
static
Signal
splitInquire
(
String
activityToken
,
Activity
activity
)
{
Signal
p
=
new
Signal
(
activityToken
,
activity
);
SplitInquire
s
=
new
SplitInquire
();
p
.
splitInquire
=
s
;
p
.
activityToken
=
activityToken
;
return
p
;
}
public
Signal
()
{
this
.
time
=
new
Date
();
this
.
stamp
=
this
.
time
.
getTime
();
}
private
String
name
;
private
String
alias
;
private
String
activityToken
;
...
...
@@ -822,6 +739,14 @@ public class Signal extends GsonPropertyObject {
return
activityToken
;
}
public
String
getName
()
{
return
name
;
}
public
String
getAlias
()
{
return
alias
;
}
private
Long
stamp
;
public
Long
getStamp
()
{
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/agent/AgentProcessor.java
浏览文件 @
afaad21a
...
...
@@ -28,7 +28,7 @@ public class AgentProcessor extends AbstractAgentProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Agent
agent
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
agentArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
agentArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
agent
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -39,7 +39,7 @@ public class AgentProcessor extends AbstractAgentProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Agent
agent
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
agentExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
agentExecute
(
aeiObjects
.
getWork
().
getActivityToken
()
,
agent
));
List
<
Work
>
results
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
agent
.
getScript
())
||
StringUtils
.
isNotEmpty
(
agent
.
getScriptText
()))
{
CompiledScript
compiledScript
=
aeiObjects
.
business
().
element
().
getCompiledScript
(
...
...
@@ -58,7 +58,7 @@ public class AgentProcessor extends AbstractAgentProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Agent
agent
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
agentInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
agentInquire
(
aeiObjects
.
getWork
().
getActivityToken
()
,
agent
));
List
<
Route
>
results
=
new
ArrayList
<>();
Route
o
=
aeiObjects
.
getRoutes
().
get
(
0
);
results
.
add
(
o
);
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/begin/BeginProcessor.java
浏览文件 @
afaad21a
...
...
@@ -36,7 +36,7 @@ public class BeginProcessor extends AbstractBeginProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Begin
begin
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
beginArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
beginArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
begin
));
// 创建创建者的review
String
person
=
this
.
business
().
organization
().
person
().
get
(
aeiObjects
.
getWork
().
getCreatorPerson
());
if
(
StringUtils
.
isNotEmpty
(
person
))
{
...
...
@@ -53,7 +53,7 @@ public class BeginProcessor extends AbstractBeginProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Begin
begin
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
beginExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
beginExecute
(
aeiObjects
.
getWork
().
getActivityToken
()
,
begin
));
List
<
Work
>
list
=
new
ArrayList
<>();
// 如果是再次进入begin节点那么就不需要设置开始时间
if
(
aeiObjects
.
getWork
().
getStartTime
()
==
null
)
{
...
...
@@ -78,7 +78,7 @@ public class BeginProcessor extends AbstractBeginProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Begin
begin
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
beginInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
beginInquire
(
aeiObjects
.
getWork
().
getActivityToken
()
,
begin
));
List
<
Route
>
list
=
new
ArrayList
<>();
Route
o
=
aeiObjects
.
getRoutes
().
get
(
0
);
list
.
add
(
o
);
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/cancel/CancelProcessor.java
浏览文件 @
afaad21a
...
...
@@ -30,7 +30,7 @@ public class CancelProcessor extends AbstractCancelProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Cancel
cancel
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
cancelArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
cancelArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
cancel
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -42,7 +42,8 @@ public class CancelProcessor extends AbstractCancelProcessor {
@Override
public
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Cancel
cancel
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
cancelExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
cancelExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
cancel
));
// 唯一work处理
if
(
aeiObjects
.
getWorks
().
size
()
>
1
)
{
aeiObjects
.
getDeleteWorks
().
add
(
aeiObjects
.
getWork
());
...
...
@@ -84,7 +85,8 @@ public class CancelProcessor extends AbstractCancelProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Cancel
cancel
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
cancelInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
cancelInquire
(
aeiObjects
.
getWork
().
getActivityToken
(),
cancel
));
return
new
ArrayList
<>();
}
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/choice/ChoiceProcessor.java
浏览文件 @
afaad21a
...
...
@@ -31,19 +31,20 @@ public class ChoiceProcessor extends AbstractChoiceProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Choice
choice
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
choiceArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
choiceArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
choice
));
return
aeiObjects
.
getWork
();
}
@Override
protected
void
arrivingCommitted
(
AeiObjects
aeiObjects
,
Choice
choice
)
throws
Exception
{
//nothing
//
nothing
}
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Choice
choice
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
choiceExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
choiceExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
choice
));
List
<
Work
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getWork
());
return
results
;
...
...
@@ -51,13 +52,14 @@ public class ChoiceProcessor extends AbstractChoiceProcessor {
@Override
protected
void
executingCommitted
(
AeiObjects
aeiObjects
,
Choice
choice
)
throws
Exception
{
//nothing
//
nothing
}
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Choice
choice
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
choiceInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
choiceInquire
(
aeiObjects
.
getWork
().
getActivityToken
(),
choice
));
List
<
Route
>
results
=
new
ArrayList
<>();
// 多条路由进行判断
for
(
Route
o
:
aeiObjects
.
getRoutes
())
{
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/delay/DelayProcessor.java
浏览文件 @
afaad21a
...
...
@@ -32,7 +32,7 @@ public class DelayProcessor extends AbstractDelayProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Delay
delay
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
delayArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
delayArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
delay
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -43,7 +43,7 @@ public class DelayProcessor extends AbstractDelayProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Delay
delay
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
delayExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
delayExecute
(
aeiObjects
.
getWork
().
getActivityToken
()
,
delay
));
List
<
Work
>
results
=
new
ArrayList
<>();
Date
limit
=
null
;
if
(
null
!=
delay
.
getDelayMode
()
&&
Objects
.
equals
(
DelayMode
.
until
,
delay
.
getDelayMode
()))
{
...
...
@@ -122,7 +122,7 @@ public class DelayProcessor extends AbstractDelayProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Delay
delay
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
delayInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
delayInquire
(
aeiObjects
.
getWork
().
getActivityToken
()
,
delay
));
List
<
Route
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getRoutes
().
get
(
0
));
return
results
;
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/embed/EmbedProcessor.java
浏览文件 @
afaad21a
...
...
@@ -37,7 +37,7 @@ public class EmbedProcessor extends AbstractEmbedProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Embed
embed
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
embedArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
embedArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
embed
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -48,7 +48,7 @@ public class EmbedProcessor extends AbstractEmbedProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Embed
embed
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
embedExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
embedExecute
(
aeiObjects
.
getWork
().
getActivityToken
()
,
embed
));
AssginData
assginData
=
new
AssginData
();
String
targetApplication
=
embed
.
getTargetApplication
();
String
targetProcess
=
embed
.
getTargetProcess
();
...
...
@@ -113,7 +113,7 @@ public class EmbedProcessor extends AbstractEmbedProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Embed
embed
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
embedInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
embedInquire
(
aeiObjects
.
getWork
().
getActivityToken
()
,
embed
));
// 驱动上个环节新产生的work
List
<
Route
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getRoutes
().
get
(
0
));
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/end/EndProcessor.java
浏览文件 @
afaad21a
...
...
@@ -33,7 +33,7 @@ public class EndProcessor extends AbstractEndProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
End
end
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
endArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
endArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
end
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -45,7 +45,7 @@ public class EndProcessor extends AbstractEndProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
End
end
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
endExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
endExecute
(
aeiObjects
.
getWork
().
getActivityToken
()
,
end
));
List
<
Work
>
results
=
new
ArrayList
<>();
Work
other
=
aeiObjects
.
getWorks
().
stream
().
filter
(
o
->
o
!=
aeiObjects
.
getWork
())
...
...
@@ -156,7 +156,7 @@ public class EndProcessor extends AbstractEndProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
End
end
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
endInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
endInquire
(
aeiObjects
.
getWork
().
getActivityToken
()
,
end
));
return
new
ArrayList
<>();
}
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/invoke/InvokeProcessor.java
浏览文件 @
afaad21a
...
...
@@ -43,14 +43,15 @@ public class InvokeProcessor extends AbstractInvokeProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Invoke
invoke
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
invokeArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
invokeArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
invoke
));
return
aeiObjects
.
getWork
();
}
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Invoke
invoke
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
invokeExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
invokeExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
invoke
));
List
<
Work
>
results
=
new
ArrayList
<>();
switch
(
invoke
.
getInvokeMode
())
{
case
jaxws:
...
...
@@ -69,7 +70,8 @@ public class InvokeProcessor extends AbstractInvokeProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Invoke
invoke
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
invokeInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
invokeInquire
(
aeiObjects
.
getWork
().
getActivityToken
(),
invoke
));
List
<
Route
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getRoutes
().
get
(
0
));
return
results
;
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/manual/ManualProcessor.java
浏览文件 @
afaad21a
...
...
@@ -60,7 +60,7 @@ public class ManualProcessor extends AbstractManualProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Manual
manual
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
manualArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
manualArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
manual
));
// 根据manual计算出来的活动处理人
List
<
String
>
identities
=
calculateTaskIdentities
(
aeiObjects
,
manual
);
// 启用同类工作相同活动节点合并,如果有合并的工作,那么直接返回这个工作.
...
...
@@ -297,7 +297,7 @@ public class ManualProcessor extends AbstractManualProcessor {
}
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
manualExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
manualExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
manual
,
Objects
.
toString
(
manual
.
getManualMode
(),
""
),
identities
));
switch
(
manual
.
getManualMode
())
{
...
...
@@ -331,7 +331,8 @@ public class ManualProcessor extends AbstractManualProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Manual
manual
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
manualInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
manualInquire
(
aeiObjects
.
getWork
().
getActivityToken
(),
manual
));
List
<
Route
>
results
=
new
ArrayList
<>();
// 仅有单条路由
if
(
aeiObjects
.
getRoutes
().
size
()
==
1
)
{
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/merge/MergeProcessor.java
浏览文件 @
afaad21a
...
...
@@ -27,7 +27,7 @@ public class MergeProcessor extends AbstractMergeProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Merge
merge
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
mergeArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
mergeArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
merge
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -38,7 +38,7 @@ public class MergeProcessor extends AbstractMergeProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Merge
merge
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
mergeExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
mergeExecute
(
aeiObjects
.
getWork
().
getActivityToken
()
,
merge
));
List
<
Work
>
results
=
new
ArrayList
<>();
if
(
BooleanUtils
.
isNotTrue
(
aeiObjects
.
getWork
().
getSplitting
()))
{
/* 如果不是一个拆分文档,直接通过 */
...
...
@@ -220,7 +220,7 @@ public class MergeProcessor extends AbstractMergeProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Merge
merge
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
mergeInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
mergeInquire
(
aeiObjects
.
getWork
().
getActivityToken
()
,
merge
));
List
<
Route
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getRoutes
().
get
(
0
));
return
results
;
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/message/MessageProcessor.java
浏览文件 @
afaad21a
...
...
@@ -24,7 +24,8 @@ public class MessageProcessor extends AbstractMessageProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Message
message
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
messageArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
messageArrive
(
aeiObjects
.
getWork
().
getActivityToken
(),
message
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -36,7 +37,8 @@ public class MessageProcessor extends AbstractMessageProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Message
message
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
messageExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
messageExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
message
));
MessageFactory
.
activity_message
(
aeiObjects
.
getWork
(),
null
);
List
<
Work
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getWork
());
...
...
@@ -51,7 +53,8 @@ public class MessageProcessor extends AbstractMessageProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Message
message
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
messageInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
messageInquire
(
aeiObjects
.
getWork
().
getActivityToken
(),
message
));
List
<
Route
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getRoutes
().
get
(
0
));
return
results
;
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/parallel/ParallelProcessor.java
浏览文件 @
afaad21a
...
...
@@ -33,7 +33,8 @@ public class ParallelProcessor extends AbstractParallelProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Parallel
parallel
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
parallelArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
parallelArrive
(
aeiObjects
.
getWork
().
getActivityToken
(),
parallel
));
logger
.
info
(
"parallel arrvie processing, work title:{}, id:{}, actvity name:{}, id:{}, activityToken:{}, process name:{}, id{}."
,
aeiObjects
.
getWork
().
getTitle
(),
aeiObjects
.
getWork
().
getId
(),
parallel
.
getName
(),
parallel
.
getId
(),
...
...
@@ -50,7 +51,8 @@ public class ParallelProcessor extends AbstractParallelProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Parallel
parallel
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
parallelExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
parallelExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
parallel
));
List
<
Work
>
results
=
new
ArrayList
<>();
aeiObjects
.
getWork
().
setSplitting
(
true
);
aeiObjects
.
getWork
().
setSplitToken
(
StringTools
.
uniqueToken
());
...
...
@@ -110,7 +112,8 @@ public class ParallelProcessor extends AbstractParallelProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Parallel
parallel
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
parallelInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
parallelInquire
(
aeiObjects
.
getWork
().
getActivityToken
(),
parallel
));
List
<
Route
>
results
=
new
ArrayList
<>();
aeiObjects
.
getRoutes
().
stream
().
forEach
(
o
->
{
if
(
StringUtils
.
equals
(
o
.
getId
(),
aeiObjects
.
getWork
().
getDestinationRoute
()))
{
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/service/ServiceProcessor.java
浏览文件 @
afaad21a
...
...
@@ -31,7 +31,8 @@ public class ServiceProcessor extends AbstractServiceProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Service
service
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
serviceArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
serviceArrive
(
aeiObjects
.
getWork
().
getActivityToken
(),
service
));
// 清空上一次调用值
aeiObjects
.
getWork
().
getProperties
().
setServiceValue
(
new
LinkedHashMap
<>());
return
aeiObjects
.
getWork
();
...
...
@@ -45,7 +46,8 @@ public class ServiceProcessor extends AbstractServiceProcessor {
@Override
protected
List
<
Work
>
executing
(
AeiObjects
aeiObjects
,
Service
service
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
parallelExecute
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
parallelExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
service
));
List
<
Work
>
results
=
new
ArrayList
<>();
boolean
passThrough
=
false
;
if
(
StringUtils
.
isNotEmpty
(
service
.
getScript
())
||
StringUtils
.
isNotEmpty
(
service
.
getScriptText
()))
{
...
...
@@ -73,7 +75,8 @@ public class ServiceProcessor extends AbstractServiceProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Service
service
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
parallelInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
parallelInquire
(
aeiObjects
.
getWork
().
getActivityToken
(),
service
));
List
<
Route
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getRoutes
().
get
(
0
));
return
results
;
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/processor/split/SplitProcessor.java
浏览文件 @
afaad21a
...
...
@@ -32,7 +32,7 @@ public class SplitProcessor extends AbstractSplitProcessor {
@Override
protected
Work
arriving
(
AeiObjects
aeiObjects
,
Split
split
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
splitArrive
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
splitArrive
(
aeiObjects
.
getWork
().
getActivityToken
()
,
split
));
return
aeiObjects
.
getWork
();
}
...
...
@@ -55,7 +55,7 @@ public class SplitProcessor extends AbstractSplitProcessor {
}
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
()
.
push
(
Signal
.
splitExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
splitValues
));
.
push
(
Signal
.
splitExecute
(
aeiObjects
.
getWork
().
getActivityToken
(),
split
,
split
Values
));
// 先将当前文档标志拆分值
aeiObjects
.
getWork
().
setSplitValue
(
splitValues
.
get
(
0
));
aeiObjects
.
getWork
().
getSplitValueList
().
add
(
splitValues
.
get
(
0
));
...
...
@@ -100,7 +100,7 @@ public class SplitProcessor extends AbstractSplitProcessor {
@Override
protected
List
<
Route
>
inquiring
(
AeiObjects
aeiObjects
,
Split
split
)
throws
Exception
{
// 发送ProcessingSignal
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
splitInquire
(
aeiObjects
.
getWork
().
getActivityToken
()));
aeiObjects
.
getProcessingAttributes
().
push
(
Signal
.
splitInquire
(
aeiObjects
.
getWork
().
getActivityToken
()
,
split
));
List
<
Route
>
results
=
new
ArrayList
<>();
results
.
add
(
aeiObjects
.
getRoutes
().
get
(
0
));
return
results
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录