Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
c016d8b3
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,发现更多精彩内容 >>
提交
c016d8b3
编写于
10月 11, 2017
作者:
T
Tijs Rademakers
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/flowable/flowable-engine
上级
b9b9f2b8
b32e9ed8
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
99 addition
and
35 deletion
+99
-35
modules/flowable-cmmn-api/src/main/java/org/flowable/cmmn/engine/PlanItemInstanceCallbackType.java
...rg/flowable/cmmn/engine/PlanItemInstanceCallbackType.java
+1
-1
modules/flowable-cmmn-engine-configurator/src/main/java/org/flowable/cmmn/engine/configurator/CmmnEngineConfigurator.java
...able/cmmn/engine/configurator/CmmnEngineConfigurator.java
+2
-0
modules/flowable-cmmn-engine-configurator/src/test/java/org/flowable/cmmn/test/ProcessTaskTest.java
...src/test/java/org/flowable/cmmn/test/ProcessTaskTest.java
+18
-0
modules/flowable-cmmn-spring-configurator/src/main/java/org/flowable/cmmn/spring/configurator/SpringCmmnEngineConfigurator.java
...mmn/spring/configurator/SpringCmmnEngineConfigurator.java
+2
-0
modules/flowable-content-engine-configurator/src/main/java/org/flowable/content/engine/configurator/ContentEngineConfigurator.java
...ontent/engine/configurator/ContentEngineConfigurator.java
+2
-0
modules/flowable-content-spring-configurator/src/main/java/org/flowable/content/spring/configurator/SpringContentEngineConfigurator.java
.../spring/configurator/SpringContentEngineConfigurator.java
+2
-0
modules/flowable-dmn-engine-configurator/src/main/java/org/flowable/dmn/engine/configurator/DmnEngineConfigurator.java
...owable/dmn/engine/configurator/DmnEngineConfigurator.java
+2
-0
modules/flowable-dmn-spring-configurator/src/main/java/org/flowable/dmn/spring/configurator/SpringDmnEngineConfigurator.java
.../dmn/spring/configurator/SpringDmnEngineConfigurator.java
+2
-0
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/AbstractSqlScriptBasedDbSchemaManager.java
...common/impl/db/AbstractSqlScriptBasedDbSchemaManager.java
+18
-16
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/ServiceSqlScriptBasedDbSchemaManager.java
.../common/impl/db/ServiceSqlScriptBasedDbSchemaManager.java
+6
-2
modules/flowable-engine/src/main/java/org/flowable/engine/cfg/AbstractEngineConfigurator.java
...a/org/flowable/engine/cfg/AbstractEngineConfigurator.java
+6
-2
modules/flowable-engine/src/main/java/org/flowable/engine/impl/cfg/IdmEngineConfigurator.java
...a/org/flowable/engine/impl/cfg/IdmEngineConfigurator.java
+2
-0
modules/flowable-engine/src/main/java/org/flowable/engine/impl/persistence/entity/HistoricProcessInstanceEntityImpl.java
...persistence/entity/HistoricProcessInstanceEntityImpl.java
+2
-0
modules/flowable-engine/src/main/java/org/flowable/engine/impl/util/ProcessInstanceHelper.java
.../org/flowable/engine/impl/util/ProcessInstanceHelper.java
+9
-8
modules/flowable-engine/src/main/resources/org/flowable/db/mapping/entity/HistoricProcessInstance.xml
...rg/flowable/db/mapping/entity/HistoricProcessInstance.xml
+7
-3
modules/flowable-engine/src/main/resources/org/flowable/db/upgrade/flowable.mysql.upgradestep.6120.to.6200.history.sql
...grade/flowable.mysql.upgradestep.6120.to.6200.history.sql
+2
-2
modules/flowable-form-engine-configurator/src/main/java/org/flowable/form/engine/configurator/FormEngineConfigurator.java
...able/form/engine/configurator/FormEngineConfigurator.java
+2
-0
modules/flowable-form-spring-configurator/src/main/java/org/flowable/form/spring/configurator/SpringFormEngineConfigurator.java
...orm/spring/configurator/SpringFormEngineConfigurator.java
+2
-0
modules/flowable-idm-engine/src/main/java/org/flowable/idm/engine/impl/db/IdmDbSchemaManager.java
...a/org/flowable/idm/engine/impl/db/IdmDbSchemaManager.java
+10
-1
modules/flowable-spring/src/main/java/org/flowable/spring/configurator/SpringIdmEngineConfigurator.java
...able/spring/configurator/SpringIdmEngineConfigurator.java
+2
-0
未找到文件。
modules/flowable-cmmn-api/src/main/java/org/flowable/cmmn/engine/PlanItemInstanceCallbackType.java
浏览文件 @
c016d8b3
...
...
@@ -17,7 +17,7 @@ package org.flowable.cmmn.engine;
*/
public
interface
PlanItemInstanceCallbackType
{
String
CHILD_CASE
=
"cmmn-1.1-child-case"
;
String
CHILD_CASE
=
"cmmn-1.1-
to-cmmn-1.1-
child-case"
;
String
CHILD_PROCESS
=
"cmmn-1.1-to-bpmn-2.0-child-process"
;
...
...
modules/flowable-cmmn-engine-configurator/src/main/java/org/flowable/cmmn/engine/configurator/CmmnEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -71,6 +71,8 @@ public class CmmnEngineConfigurator extends AbstractEngineConfigurator {
cmmnEngineConfiguration
.
setHistoricTaskQueryLimit
(
processEngineConfiguration
.
getHistoricTaskQueryLimit
());
initCmmnEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
cmmnEngineConfiguration
);
}
protected
void
initProcessInstanceService
(
ProcessEngineConfigurationImpl
processEngineConfiguration
)
{
...
...
modules/flowable-cmmn-engine-configurator/src/test/java/org/flowable/cmmn/test/ProcessTaskTest.java
浏览文件 @
c016d8b3
...
...
@@ -20,11 +20,15 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
org.flowable.cmmn.engine.PlanItemInstanceCallbackType
;
import
org.flowable.cmmn.engine.history.HistoricMilestoneInstance
;
import
org.flowable.cmmn.engine.runtime.CaseInstance
;
import
org.flowable.cmmn.engine.runtime.PlanItemInstance
;
import
org.flowable.cmmn.engine.runtime.PlanItemInstanceState
;
import
org.flowable.cmmn.engine.test.CmmnDeployment
;
import
org.flowable.engine.common.impl.history.HistoryLevel
;
import
org.flowable.engine.history.HistoricProcessInstance
;
import
org.flowable.engine.runtime.ProcessInstance
;
import
org.flowable.task.service.Task
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
@@ -76,8 +80,22 @@ public class ProcessTaskTest extends AbstractProcessEngineIntegrationTest {
.
list
();
assertEquals
(
1
,
planItemInstances
.
size
());
assertEquals
(
"The Process"
,
planItemInstances
.
get
(
0
).
getName
());
assertNotNull
(
planItemInstances
.
get
(
0
).
getReferenceId
());
assertEquals
(
PlanItemInstanceCallbackType
.
CHILD_PROCESS
,
planItemInstances
.
get
(
0
).
getReferenceType
());
assertEquals
(
0
,
cmmnHistoryService
.
createHistoricMilestoneInstanceQuery
().
count
());
ProcessInstance
processInstance
=
processEngine
.
getRuntimeService
().
createProcessInstanceQuery
().
singleResult
();
assertNotNull
(
processInstance
);
assertNotNull
(
processInstance
.
getCallbackId
());
assertNotNull
(
processInstance
.
getCallbackType
());
if
(
processEngine
.
getProcessEngineConfiguration
().
getHistoryLevel
().
isAtLeast
(
HistoryLevel
.
ACTIVITY
))
{
HistoricProcessInstance
historicProcessInstance
=
processEngine
.
getHistoryService
().
createHistoricProcessInstanceQuery
()
.
processInstanceId
(
processInstance
.
getId
()).
singleResult
();
assertEquals
(
processInstance
.
getCallbackId
(),
historicProcessInstance
.
getCallbackId
());
assertEquals
(
processInstance
.
getCallbackType
(),
historicProcessInstance
.
getCallbackType
());
}
// Completing task will trigger completion of process task plan item
processEngine
.
getTaskService
().
complete
(
task
.
getId
());
...
...
modules/flowable-cmmn-spring-configurator/src/main/java/org/flowable/cmmn/spring/configurator/SpringCmmnEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -41,6 +41,8 @@ public class SpringCmmnEngineConfigurator extends CmmnEngineConfigurator {
springProcessEngineConfiguration
.
getApplicationContext
(),
springProcessEngineConfiguration
.
getBeans
()));
initCmmnEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
cmmnEngineConfiguration
);
}
@Override
...
...
modules/flowable-content-engine-configurator/src/main/java/org/flowable/content/engine/configurator/ContentEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -57,6 +57,8 @@ public class ContentEngineConfigurator extends AbstractEngineConfigurator {
initialiseCommonProperties
(
processEngineConfiguration
,
contentEngineConfiguration
);
initContentEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
contentEngineConfiguration
);
}
@Override
...
...
modules/flowable-content-spring-configurator/src/main/java/org/flowable/content/spring/configurator/SpringContentEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -36,6 +36,8 @@ public class SpringContentEngineConfigurator extends ContentEngineConfigurator {
contentEngineConfiguration
.
setTransactionManager
(((
SpringProcessEngineConfiguration
)
processEngineConfiguration
).
getTransactionManager
());
initContentEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
contentEngineConfiguration
);
}
@Override
...
...
modules/flowable-dmn-engine-configurator/src/main/java/org/flowable/dmn/engine/configurator/DmnEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -61,6 +61,8 @@ public class DmnEngineConfigurator extends AbstractEngineConfigurator {
initialiseCommonProperties
(
processEngineConfiguration
,
dmnEngineConfiguration
);
initDmnEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
dmnEngineConfiguration
);
}
@Override
...
...
modules/flowable-dmn-spring-configurator/src/main/java/org/flowable/dmn/spring/configurator/SpringDmnEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -41,6 +41,8 @@ public class SpringDmnEngineConfigurator extends DmnEngineConfigurator {
springProcessEngineConfiguration
.
getApplicationContext
(),
springProcessEngineConfiguration
.
getBeans
()));
initDmnEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
dmnEngineConfiguration
);
}
@Override
...
...
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/AbstractSqlScriptBasedDbSchemaManager.java
浏览文件 @
c016d8b3
...
...
@@ -136,12 +136,14 @@ public abstract class AbstractSqlScriptBasedDbSchemaManager implements DbSchemaM
}
public
String
getProperty
(
String
propertyName
)
{
String
tableName
=
getPropertyTable
();
if
(!
getDbSqlSession
().
getDbSqlSessionFactory
().
isTablePrefixIsSchema
())
{
tableName
=
prependDatabaseTablePrefix
(
tableName
);
}
PreparedStatement
statement
=
null
;
try
{
String
tableName
=
getPropertyTable
();
if
(!
getDbSqlSession
().
getDbSqlSessionFactory
().
isTablePrefixIsSchema
())
{
tableName
=
prependDatabaseTablePrefix
(
tableName
);
}
statement
=
getDbSqlSession
().
getSqlSession
().
getConnection
()
.
prepareStatement
(
"select VALUE_ from "
+
tableName
+
" where NAME_ = ?"
);
statement
.
setString
(
1
,
propertyName
);
...
...
@@ -152,7 +154,7 @@ public abstract class AbstractSqlScriptBasedDbSchemaManager implements DbSchemaM
return
null
;
}
}
catch
(
SQLException
e
)
{
throw
new
FlowableException
(
"Could not read property "
+
propertyName
+
" from ACT_GE_PROPERTY"
,
e
)
;
return
null
;
}
finally
{
if
(
statement
!=
null
)
{
try
{
...
...
@@ -164,30 +166,32 @@ public abstract class AbstractSqlScriptBasedDbSchemaManager implements DbSchemaM
}
public
void
setProperty
(
String
propertyName
,
String
value
)
{
String
tableName
=
getPropertyTable
();
if
(!
getDbSqlSession
().
getDbSqlSessionFactory
().
isTablePrefixIsSchema
())
{
tableName
=
prependDatabaseTablePrefix
(
tableName
);
}
PreparedStatement
statement
=
null
;
PreparedStatement
statement2
=
null
;
try
{
String
tableName
=
getPropertyTable
();
if
(!
getDbSqlSession
().
getDbSqlSessionFactory
().
isTablePrefixIsSchema
())
{
tableName
=
prependDatabaseTablePrefix
(
tableName
);
}
statement
=
getDbSqlSession
().
getSqlSession
().
getConnection
()
.
prepareStatement
(
"update "
+
tableName
+
" set VALUE_ = ? where NAME_ = ?"
);
statement
.
setString
(
1
,
propertyNam
e
);
statement
.
setString
(
2
,
valu
e
);
statement
.
setString
(
1
,
valu
e
);
statement
.
setString
(
2
,
propertyNam
e
);
int
result
=
statement
.
executeUpdate
();
// Property does not exist yet, insert the property
if
(
result
==
0
)
{
statement2
=
getDbSqlSession
().
getSqlSession
().
getConnection
()
.
prepareStatement
(
"insert into "
+
tableName
+
" values(?, ?, ?)"
);
.
prepareStatement
(
"insert into "
+
tableName
+
"
(NAME_, VALUE_, REV_)
values(?, ?, ?)"
);
statement2
.
setString
(
1
,
propertyName
);
statement2
.
setString
(
2
,
value
);
statement2
.
setInt
(
3
,
1
);
statement2
.
executeUpdate
();
}
}
catch
(
SQLException
e
)
{
throw
new
FlowableException
(
"Could not
read property "
+
propertyName
+
" from ACT_GE_PROPERTY"
,
e
);
throw
new
FlowableException
(
"Could not
set property "
+
propertyName
+
" in "
+
tableName
,
e
);
}
finally
{
if
(
statement
!=
null
)
{
try
{
...
...
@@ -222,9 +226,7 @@ public abstract class AbstractSqlScriptBasedDbSchemaManager implements DbSchemaM
try
{
inputStream
=
ReflectUtil
.
getResourceAsStream
(
resourceName
);
if
(
inputStream
==
null
)
{
if
(
isOptional
)
{
LOGGER
.
debug
(
"no schema resource {} for {}"
,
resourceName
,
operation
);
}
else
{
if
(!
isOptional
)
{
throw
new
FlowableException
(
"resource '"
+
resourceName
+
"' is not available"
);
}
}
else
{
...
...
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/ServiceSqlScriptBasedDbSchemaManager.java
浏览文件 @
c016d8b3
...
...
@@ -35,7 +35,7 @@ public abstract class ServiceSqlScriptBasedDbSchemaManager extends AbstractSqlSc
@Override
public
void
dbSchemaCreate
()
{
if
(
is
TablePresent
(
table
))
{
if
(
is
UpdateNeeded
(
))
{
String
dbVersion
=
getSchemaVersion
();
if
(!
FlowableVersions
.
CURRENT_VERSION
.
equals
(
dbVersion
))
{
throw
new
FlowableWrongDbException
(
FlowableVersions
.
CURRENT_VERSION
,
dbVersion
);
...
...
@@ -63,7 +63,7 @@ public abstract class ServiceSqlScriptBasedDbSchemaManager extends AbstractSqlSc
@Override
public
String
dbSchemaUpdate
()
{
String
feedback
=
null
;
if
(
is
TablePresent
(
table
))
{
if
(
is
UpdateNeeded
(
))
{
String
dbVersion
=
getSchemaVersion
();
String
compareWithVersion
=
null
;
if
(
dbVersion
==
null
)
{
...
...
@@ -91,6 +91,10 @@ public abstract class ServiceSqlScriptBasedDbSchemaManager extends AbstractSqlSc
}
return
feedback
;
}
protected
boolean
isUpdateNeeded
()
{
return
isTablePresent
(
table
);
}
protected
boolean
isHistoryUsed
()
{
return
getDbSqlSession
().
getDbSqlSessionFactory
().
isDbHistoryUsed
()
&&
schemaComponentHistory
!=
null
;
...
...
modules/flowable-engine/src/main/java/org/flowable/engine/cfg/AbstractEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -151,7 +151,6 @@ public abstract class AbstractEngineConfigurator implements ProcessEngineConfigu
protected
void
initialiseCommonProperties
(
ProcessEngineConfigurationImpl
processEngineConfiguration
,
AbstractEngineConfiguration
targetEngineConfiguration
)
{
initEngineConfigurations
(
processEngineConfiguration
,
targetEngineConfiguration
);
initServiceConfigurations
(
processEngineConfiguration
,
targetEngineConfiguration
);
initCommandContextFactory
(
processEngineConfiguration
,
targetEngineConfiguration
);
initIdGenerator
(
processEngineConfiguration
,
targetEngineConfiguration
);
...
...
@@ -171,7 +170,12 @@ public abstract class AbstractEngineConfigurator implements ProcessEngineConfigu
}
protected
void
initServiceConfigurations
(
ProcessEngineConfigurationImpl
processEngineConfiguration
,
AbstractEngineConfiguration
targetEngineConfiguration
)
{
targetEngineConfiguration
.
setServiceConfigurations
(
processEngineConfiguration
.
getServiceConfigurations
());
for
(
String
serviceConfigurationKey
:
processEngineConfiguration
.
getServiceConfigurations
().
keySet
())
{
if
(
targetEngineConfiguration
.
getServiceConfigurations
()
==
null
||
!
targetEngineConfiguration
.
getServiceConfigurations
().
containsKey
(
serviceConfigurationKey
))
{
targetEngineConfiguration
.
addServiceConfiguration
(
serviceConfigurationKey
,
processEngineConfiguration
.
getServiceConfigurations
().
get
(
serviceConfigurationKey
));
}
}
}
protected
void
initCommandContextFactory
(
ProcessEngineConfigurationImpl
processEngineConfiguration
,
AbstractEngineConfiguration
targetEngineConfiguration
)
{
...
...
modules/flowable-engine/src/main/java/org/flowable/engine/impl/cfg/IdmEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -73,6 +73,8 @@ public class IdmEngineConfigurator extends AbstractEngineConfigurator {
initialiseCommonProperties
(
processEngineConfiguration
,
idmEngineConfiguration
);
idmEngineConfiguration
.
buildIdmEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
idmEngineConfiguration
);
}
@Override
...
...
modules/flowable-engine/src/main/java/org/flowable/engine/impl/persistence/entity/HistoricProcessInstanceEntityImpl.java
浏览文件 @
c016d8b3
...
...
@@ -93,6 +93,8 @@ public class HistoricProcessInstanceEntityImpl extends HistoricScopeInstanceEnti
persistentState
.
put
(
"processDefinitionName"
,
processDefinitionName
);
persistentState
.
put
(
"processDefinitionVersion"
,
processDefinitionVersion
);
persistentState
.
put
(
"deploymentId"
,
deploymentId
);
persistentState
.
put
(
"callbackId"
,
callbackId
);
persistentState
.
put
(
"callbackType"
,
callbackType
);
return
persistentState
;
}
...
...
modules/flowable-engine/src/main/java/org/flowable/engine/impl/util/ProcessInstanceHelper.java
浏览文件 @
c016d8b3
...
...
@@ -229,6 +229,15 @@ public class ProcessInstanceHelper {
initiatorVariableName
,
initialFlowElement
.
getId
());
processInstance
.
setName
(
processInstanceName
);
// Callbacks
if
(
callbackId
!=
null
)
{
processInstance
.
setCallbackId
(
callbackId
);
}
if
(
callbackType
!=
null
)
{
processInstance
.
setCallbackType
(
callbackType
);
}
CommandContextUtil
.
getHistoryManager
(
commandContext
).
recordProcessInstanceStart
(
processInstance
);
...
...
@@ -252,14 +261,6 @@ public class ProcessInstanceHelper {
}
}
// Callbacks
if
(
callbackId
!=
null
)
{
processInstance
.
setCallbackId
(
callbackId
);
}
if
(
callbackType
!=
null
)
{
processInstance
.
setCallbackType
(
callbackType
);
}
// Fire events
if
(
eventDispatcherEnabled
)
{
CommandContextUtil
.
getProcessEngineConfiguration
().
getEventDispatcher
()
...
...
modules/flowable-engine/src/main/resources/org/flowable/db/mapping/entity/HistoricProcessInstance.xml
浏览文件 @
c016d8b3
...
...
@@ -176,13 +176,13 @@
DELETE_REASON_ = #{deleteReason, jdbcType=VARCHAR},
</if>
<if
test=
"originalPersistentState.name != name"
>
NAME_ = #{name, jdbcType=VARCHAR}
NAME_ = #{name, jdbcType=VARCHAR}
,
</if>
<if
test=
"originalPersistentState.callbackId != callbackId"
>
CALLBACK_ID_ = #{callbackId, jdbcType=VARCHAR}
CALLBACK_ID_ = #{callbackId, jdbcType=VARCHAR}
,
</if>
<if
test=
"originalPersistentState.callbackType != callbackType"
>
CALLBACK_
ID
_ = #{callbackType, jdbcType=VARCHAR}
CALLBACK_
TYPE
_ = #{callbackType, jdbcType=VARCHAR}
</if>
</set>
where ID_ = #{id}
...
...
@@ -224,6 +224,8 @@
<result
property=
"deleteReason"
column=
"DELETE_REASON_"
jdbcType=
"VARCHAR"
/>
<result
property=
"tenantId"
column=
"TENANT_ID_"
jdbcType=
"VARCHAR"
/>
<result
property=
"name"
column=
"NAME_"
jdbcType=
"VARCHAR"
/>
<result
property=
"callbackId"
column=
"CALLBACK_ID_"
jdbcType=
"VARCHAR"
/>
<result
property=
"callbackType"
column=
"CALLBACK_TYPE_"
jdbcType=
"VARCHAR"
/>
</resultMap>
<resultMap
id=
"historicProcessInstanceAndVariablesResultMap"
type=
"org.flowable.engine.impl.persistence.entity.HistoricProcessInstanceEntityImpl"
>
...
...
@@ -246,6 +248,8 @@
<result
property=
"deleteReason"
column=
"DELETE_REASON_"
jdbcType=
"VARCHAR"
/>
<result
property=
"tenantId"
column=
"TENANT_ID_"
jdbcType=
"VARCHAR"
/>
<result
property=
"name"
column=
"NAME_"
jdbcType=
"VARCHAR"
/>
<result
property=
"callbackId"
column=
"CALLBACK_ID_"
jdbcType=
"VARCHAR"
/>
<result
property=
"callbackType"
column=
"CALLBACK_TYPE_"
jdbcType=
"VARCHAR"
/>
<collection
property=
"queryVariables"
column=
"EXECUTION_ID_"
javaType=
"ArrayList"
ofType=
"org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntityImpl"
>
<id
property=
"id"
column=
"VAR_ID_"
/>
<result
property=
"name"
column=
"VAR_NAME_"
javaType=
"String"
jdbcType=
"VARCHAR"
/>
...
...
modules/flowable-engine/src/main/resources/org/flowable/db/upgrade/flowable.mysql.upgradestep.6120.to.6200.history.sql
浏览文件 @
c016d8b3
alter
table
ACT_HI_VARINST
add
column
CALLBACK_ID_
varchar
(
255
);
alter
table
ACT_HI_VARINST
add
column
CALLBACK_TYPE_
varchar
(
255
);
\ No newline at end of file
alter
table
ACT_HI_PROCINST
add
column
CALLBACK_ID_
varchar
(
255
);
alter
table
ACT_HI_PROCINST
add
column
CALLBACK_TYPE_
varchar
(
255
);
\ No newline at end of file
modules/flowable-form-engine-configurator/src/main/java/org/flowable/form/engine/configurator/FormEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -79,6 +79,8 @@ public class FormEngineConfigurator extends AbstractEngineConfigurator {
initialiseCommonProperties
(
processEngineConfiguration
,
formEngineConfiguration
);
initFormEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
formEngineConfiguration
);
}
@Override
...
...
modules/flowable-form-spring-configurator/src/main/java/org/flowable/form/spring/configurator/SpringFormEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -36,6 +36,8 @@ public class SpringFormEngineConfigurator extends FormEngineConfigurator {
formEngineConfiguration
.
setTransactionManager
(((
SpringProcessEngineConfiguration
)
processEngineConfiguration
).
getTransactionManager
());
initFormEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
formEngineConfiguration
);
}
@Override
...
...
modules/flowable-idm-engine/src/main/java/org/flowable/idm/engine/impl/db/IdmDbSchemaManager.java
浏览文件 @
c016d8b3
...
...
@@ -46,7 +46,7 @@ public class IdmDbSchemaManager extends ServiceSqlScriptBasedDbSchemaManager {
@Override
protected
String
getUpgradeStartVersion
()
{
return
"5
990
0"
;
return
"5
.99.0.
0"
;
}
@Override
...
...
@@ -60,6 +60,15 @@ public class IdmDbSchemaManager extends ServiceSqlScriptBasedDbSchemaManager {
}
}
@Override
protected
boolean
isUpdateNeeded
()
{
boolean
propertyTablePresent
=
isTablePresent
(
IDM_PROPERTY_TABLE
);
if
(!
propertyTablePresent
)
{
return
isIdmGroupTablePresent
();
}
return
true
;
}
public
boolean
isIdmGroupTablePresent
()
{
return
isTablePresent
(
"ACT_ID_GROUP"
);
}
...
...
modules/flowable-spring/src/main/java/org/flowable/spring/configurator/SpringIdmEngineConfigurator.java
浏览文件 @
c016d8b3
...
...
@@ -34,6 +34,8 @@ public class SpringIdmEngineConfigurator extends IdmEngineConfigurator {
idmEngineConfiguration
.
setTransactionManager
(((
SpringProcessEngineConfiguration
)
processEngineConfiguration
).
getTransactionManager
());
idmEngineConfiguration
.
buildIdmEngine
();
initServiceConfigurations
(
processEngineConfiguration
,
idmEngineConfiguration
);
}
@Override
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录