Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
80ff1093
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,发现更多精彩内容 >>
提交
80ff1093
编写于
10月 22, 2015
作者:
T
Tijs Rademakers
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-vasile-686' of
https://github.com/vasiledirla/Activiti
into activiti6
上级
b5693535
84627eab
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
11 deletion
+26
-11
modules/activiti-json-converter/src/main/java/org/activiti/editor/constants/StencilConstants.java
.../java/org/activiti/editor/constants/StencilConstants.java
+1
-0
modules/activiti-json-converter/src/main/java/org/activiti/editor/language/json/converter/SequenceFlowJsonConverter.java
...or/language/json/converter/SequenceFlowJsonConverter.java
+25
-11
未找到文件。
modules/activiti-json-converter/src/main/java/org/activiti/editor/constants/StencilConstants.java
浏览文件 @
80ff1093
...
...
@@ -216,6 +216,7 @@ public interface StencilConstants {
final
String
PROPERTY_MULETASK_PAYLOAD_EXPRESSION
=
"muletaskpayloadexpression"
;
final
String
PROPERTY_MULETASK_RESULT_VARIABLE
=
"muletaskresultvariable"
;
final
String
PROPERTY_SEQUENCEFLOW_DEFAULT
=
"defaultflow"
;
final
String
PROPERTY_SEQUENCEFLOW_CONDITION
=
"conditionsequenceflow"
;
final
String
PROPERTY_SEQUENCEFLOW_ORDER
=
"sequencefloworder"
;
final
String
PROPERTY_COLLAPSED_SUBPROCESS_REFERENCE
=
"subprocessreference"
;
...
...
modules/activiti-json-converter/src/main/java/org/activiti/editor/language/json/converter/SequenceFlowJsonConverter.java
浏览文件 @
80ff1093
...
...
@@ -12,20 +12,13 @@
*/
package
org.activiti.editor.language.json.converter
;
import
java.util.Map
;
import
org.activiti.bpmn.model.BaseElement
;
import
org.activiti.bpmn.model.BpmnModel
;
import
org.activiti.bpmn.model.ExtensionElement
;
import
org.activiti.bpmn.model.FlowElement
;
import
org.activiti.bpmn.model.FlowElementsContainer
;
import
org.activiti.bpmn.model.GraphicInfo
;
import
org.activiti.bpmn.model.SequenceFlow
;
import
org.apache.commons.lang3.StringUtils
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.node.ArrayNode
;
import
com.fasterxml.jackson.databind.node.ObjectNode
;
import
org.activiti.bpmn.model.*
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.Map
;
/**
* @author Tijs Rademakers
...
...
@@ -96,6 +89,27 @@ public class SequenceFlowJsonConverter extends BaseBpmnJsonConverter {
propertiesNode
.
put
(
PROPERTY_SEQUENCEFLOW_CONDITION
,
sequenceFlow
.
getConditionExpression
());
}
if
(
StringUtils
.
isNotEmpty
(
sequenceFlow
.
getSourceRef
()))
{
FlowElement
sourceFlowElement
=
container
.
getFlowElement
(
sequenceFlow
.
getSourceRef
());
if
(
sourceFlowElement
!=
null
)
{
String
defaultFlowId
=
null
;
if
(
sourceFlowElement
instanceof
ExclusiveGateway
)
{
ExclusiveGateway
parentExclusiveGateway
=
(
ExclusiveGateway
)
sourceFlowElement
;
defaultFlowId
=
parentExclusiveGateway
.
getDefaultFlow
();
}
else
if
(
sourceFlowElement
instanceof
Activity
)
{
Activity
parentActivity
=
(
Activity
)
sourceFlowElement
;
defaultFlowId
=
parentActivity
.
getDefaultFlow
();
}
if
(
defaultFlowId
!=
null
&&
defaultFlowId
.
equals
(
sequenceFlow
.
getId
()))
{
propertiesNode
.
put
(
PROPERTY_SEQUENCEFLOW_DEFAULT
,
true
);
}
}
}
if
(
sequenceFlow
.
getExecutionListeners
().
size
()
>
0
)
{
BpmnJsonConverterUtil
.
convertListenersToJson
(
sequenceFlow
.
getExecutionListeners
(),
true
,
propertiesNode
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录