Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
z_stack
Activiti
提交
a60e16f1
A
Activiti
项目概览
z_stack
/
Activiti
12 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Activiti
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a60e16f1
编写于
10月 31, 2018
作者:
D
Daisuke Yoshimoto
提交者:
salaboy
10月 31, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add Transaction SubProcess Symbol (#2088)
上级
87a554b6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
6 deletion
+25
-6
activiti-image-generator/src/main/java/org/activiti/image/impl/DefaultProcessDiagramCanvas.java
.../org/activiti/image/impl/DefaultProcessDiagramCanvas.java
+22
-3
activiti-image-generator/src/main/java/org/activiti/image/impl/DefaultProcessDiagramGenerator.java
...g/activiti/image/impl/DefaultProcessDiagramGenerator.java
+3
-3
未找到文件。
activiti-image-generator/src/main/java/org/activiti/image/impl/DefaultProcessDiagramCanvas.java
浏览文件 @
a60e16f1
...
...
@@ -51,7 +51,9 @@ import java.util.ArrayList;
import
java.util.List
;
import
org.activiti.bpmn.model.AssociationDirection
;
import
org.activiti.bpmn.model.EventSubProcess
;
import
org.activiti.bpmn.model.GraphicInfo
;
import
org.activiti.bpmn.model.Transaction
;
import
org.activiti.image.exception.ActivitiImageException
;
import
org.activiti.image.impl.icon.BusinessRuleTaskIconType
;
import
org.activiti.image.impl.icon.CompensateIconType
;
...
...
@@ -1225,7 +1227,7 @@ public class DefaultProcessDiagramCanvas {
public
void
drawExpandedSubProcess
(
String
id
,
String
name
,
GraphicInfo
graphicInfo
,
Boolean
isTriggeredByEvent
)
{
Class
<?>
type
)
{
RoundRectangle2D
rect
=
new
RoundRectangle2D
.
Double
(
graphicInfo
.
getX
(),
graphicInfo
.
getY
(),
graphicInfo
.
getWidth
(),
...
...
@@ -1233,12 +1235,29 @@ public class DefaultProcessDiagramCanvas {
8
,
8
);
// Use different stroke (dashed)
if
(
isTriggeredByEvent
)
{
if
(
type
.
equals
(
EventSubProcess
.
class
))
{
Stroke
originalStroke
=
g
.
getStroke
();
g
.
setStroke
(
EVENT_SUBPROCESS_STROKE
);
g
.
draw
(
rect
);
g
.
setStroke
(
originalStroke
);
}
else
if
(
type
.
equals
(
Transaction
.
class
))
{
RoundRectangle2D
outerRect
=
new
RoundRectangle2D
.
Double
(
graphicInfo
.
getX
()-
3
,
graphicInfo
.
getY
()-
3
,
graphicInfo
.
getWidth
()+
6
,
graphicInfo
.
getHeight
()+
6
,
8
,
8
);
Paint
originalPaint
=
g
.
getPaint
();
g
.
setPaint
(
SUBPROCESS_BOX_COLOR
);
g
.
fill
(
outerRect
);
g
.
setPaint
(
SUBPROCESS_BORDER_COLOR
);
g
.
draw
(
outerRect
);
g
.
setPaint
(
SUBPROCESS_BOX_COLOR
);
g
.
fill
(
rect
);
g
.
setPaint
(
SUBPROCESS_BORDER_COLOR
);
g
.
draw
(
rect
);
g
.
setPaint
(
originalPaint
);
}
else
{
Paint
originalPaint
=
g
.
getPaint
();
g
.
setPaint
(
SUBPROCESS_BOX_COLOR
);
...
...
activiti-image-generator/src/main/java/org/activiti/image/impl/DefaultProcessDiagramGenerator.java
浏览文件 @
a60e16f1
...
...
@@ -474,7 +474,7 @@ public class DefaultProcessDiagramGenerator implements ProcessDiagramGenerator {
processDiagramCanvas
.
drawExpandedSubProcess
(
flowNode
.
getId
(),
flowNode
.
getName
(),
graphicInfo
,
false
);
SubProcess
.
class
);
}
}
});
...
...
@@ -496,7 +496,7 @@ public class DefaultProcessDiagramGenerator implements ProcessDiagramGenerator {
processDiagramCanvas
.
drawExpandedSubProcess
(
flowNode
.
getId
(),
flowNode
.
getName
(),
graphicInfo
,
false
);
Transaction
.
class
);
}
}
});
...
...
@@ -519,7 +519,7 @@ public class DefaultProcessDiagramGenerator implements ProcessDiagramGenerator {
processDiagramCanvas
.
drawExpandedSubProcess
(
flowNode
.
getId
(),
flowNode
.
getName
(),
graphicInfo
,
true
);
EventSubProcess
.
class
);
}
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录