Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
f400d374
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,发现更多精彩内容 >>
提交
f400d374
编写于
10月 11, 2017
作者:
J
Joram Barrez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cmmn: fix subscope not exposed for historic variable
上级
f191c480
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
2 deletion
+8
-2
modules/flowable-cmmn-engine/src/test/java/org/flowable/cmmn/test/runtime/VariablesTest.java
...st/java/org/flowable/cmmn/test/runtime/VariablesTest.java
+3
-0
modules/flowable-variable-service-api/src/main/java/org/flowable/variable/service/history/HistoricVariableInstance.java
...le/variable/service/history/HistoricVariableInstance.java
+2
-0
modules/flowable-variable-service/src/main/java/org/flowable/variable/service/impl/persistence/entity/HistoricVariableInstanceEntityManagerImpl.java
...nce/entity/HistoricVariableInstanceEntityManagerImpl.java
+1
-0
modules/flowable-variable-service/src/main/java/org/flowable/variable/service/impl/persistence/entity/VariableInstanceEntityImpl.java
...e/impl/persistence/entity/VariableInstanceEntityImpl.java
+1
-1
modules/flowable-variable-service/src/main/resources/org/flowable/variable/db/mapping/entity/VariableInstance.xml
.../flowable/variable/db/mapping/entity/VariableInstance.xml
+1
-1
未找到文件。
modules/flowable-cmmn-engine/src/test/java/org/flowable/cmmn/test/runtime/VariablesTest.java
浏览文件 @
f400d374
...
...
@@ -126,18 +126,21 @@ public class VariablesTest extends FlowableCmmnTestCase {
assertEquals
(
caseInstance
.
getId
(),
historicVariableInstance
.
getScopeId
());
assertEquals
(
VariableScopeType
.
CMMN
,
historicVariableInstance
.
getScopeType
());
assertEquals
(
"test"
,
historicVariableInstance
.
getValue
());
assertNull
(
historicVariableInstance
.
getSubScopeId
());
assertEquals
(
123
,
cmmnRuntimeService
.
getVariable
(
caseInstance
.
getId
(),
"intVar"
));
historicVariableInstance
=
cmmnHistoryService
.
createHistoricVariableInstanceQuery
().
variableName
(
"intVar"
).
singleResult
();
assertEquals
(
caseInstance
.
getId
(),
historicVariableInstance
.
getScopeId
());
assertEquals
(
VariableScopeType
.
CMMN
,
historicVariableInstance
.
getScopeType
());
assertEquals
(
123
,
historicVariableInstance
.
getValue
());
assertNull
(
historicVariableInstance
.
getSubScopeId
());
assertEquals
(
123.123
,
cmmnRuntimeService
.
getVariable
(
caseInstance
.
getId
(),
"doubleVar"
));
historicVariableInstance
=
cmmnHistoryService
.
createHistoricVariableInstanceQuery
().
variableName
(
"doubleVar"
).
singleResult
();
assertEquals
(
caseInstance
.
getId
(),
historicVariableInstance
.
getScopeId
());
assertEquals
(
VariableScopeType
.
CMMN
,
historicVariableInstance
.
getScopeType
());
assertEquals
(
123.123
,
historicVariableInstance
.
getValue
());
assertNull
(
historicVariableInstance
.
getSubScopeId
());
// Update variables
Map
<
String
,
Object
>
newVariables
=
new
HashMap
<>();
...
...
modules/flowable-variable-service-api/src/main/java/org/flowable/variable/service/history/HistoricVariableInstance.java
浏览文件 @
f400d374
...
...
@@ -55,5 +55,7 @@ public interface HistoricVariableInstance extends HistoricData {
String
getScopeId
();
String
getSubScopeId
();
String
getScopeType
();
}
modules/flowable-variable-service/src/main/java/org/flowable/variable/service/impl/persistence/entity/HistoricVariableInstanceEntityManagerImpl.java
浏览文件 @
f400d374
...
...
@@ -53,6 +53,7 @@ public class HistoricVariableInstanceEntityManagerImpl extends AbstractEntityMan
historicVariableInstance
.
setName
(
variableInstance
.
getName
());
historicVariableInstance
.
setVariableType
(
variableInstance
.
getType
());
historicVariableInstance
.
setScopeId
(
variableInstance
.
getScopeId
());
historicVariableInstance
.
setSubScopeId
(
variableInstance
.
getSubScopeId
());
historicVariableInstance
.
setScopeType
(
variableInstance
.
getScopeType
());
copyVariableValue
(
historicVariableInstance
,
variableInstance
);
...
...
modules/flowable-variable-service/src/main/java/org/flowable/variable/service/impl/persistence/entity/VariableInstanceEntityImpl.java
浏览文件 @
f400d374
...
...
@@ -217,7 +217,7 @@ public class VariableInstanceEntityImpl extends AbstractEntity implements Variab
@Override
public
String
getSubScopeId
()
{
return
scopeId
;
return
s
ubS
copeId
;
}
@Override
...
...
modules/flowable-variable-service/src/main/resources/org/flowable/variable/db/mapping/entity/VariableInstance.xml
浏览文件 @
f400d374
...
...
@@ -93,7 +93,7 @@
<if
test=
"originalPersistentState.scopeId != scopeId"
>
SCOPE_ID_ = #{scopeId, jdbcType=VARCHAR},
</if>
<if
test=
"originalPersistentState.subScopeId != scopeId"
>
<if
test=
"originalPersistentState.subScopeId != s
ubS
copeId"
>
SCOPE_ID_ = #{subScopeId, jdbcType=VARCHAR},
</if>
<if
test=
"originalPersistentState.scopeType != scopeType"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录