Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
z_stack
Activiti
提交
5d75008b
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,发现更多精彩内容 >>
提交
5d75008b
编写于
5月 26, 2013
作者:
M
Marcus Klimstra
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- Added toString for debugging.
- More consistent member ordering.
上级
0e37c4c6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
87 addition
and
62 deletion
+87
-62
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/DeploymentEntity.java
...viti/engine/impl/persistence/entity/DeploymentEntity.java
+24
-14
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/HistoricActivityInstanceEntity.java
...pl/persistence/entity/HistoricActivityInstanceEntity.java
+17
-16
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/HistoricDetailEntity.java
.../engine/impl/persistence/entity/HistoricDetailEntity.java
+15
-27
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/HistoricProcessInstanceEntity.java
...mpl/persistence/entity/HistoricProcessInstanceEntity.java
+16
-5
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/PropertyEntity.java
...tiviti/engine/impl/persistence/entity/PropertyEntity.java
+8
-0
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/ResourceEntity.java
...tiviti/engine/impl/persistence/entity/ResourceEntity.java
+7
-0
未找到文件。
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/DeploymentEntity.java
浏览文件 @
5d75008b
...
...
@@ -45,6 +45,15 @@ public class DeploymentEntity implements Serializable, Deployment, PersistentObj
*/
protected
Map
<
Class
<?>,
List
<
Object
>>
deployedArtifacts
;
public
Object
getPersistentState
()
{
// properties of this entity are immutable
// so always the same value is returned
// so never will an update be issued for a DeploymentEntity
return
DeploymentEntity
.
class
;
}
// lazy loading /////////////////////////////////////////////////////////////
public
ResourceEntity
getResource
(
String
resourceName
)
{
return
getResources
().
get
(
resourceName
);
}
...
...
@@ -56,7 +65,6 @@ public class DeploymentEntity implements Serializable, Deployment, PersistentObj
resources
.
put
(
resource
.
getName
(),
resource
);
}
// lazy loading /////////////////////////////////////////////////////////////
public
Map
<
String
,
ResourceEntity
>
getResources
()
{
if
(
resources
==
null
&&
id
!=
null
)
{
List
<
ResourceEntity
>
resourcesList
=
Context
...
...
@@ -71,14 +79,7 @@ public class DeploymentEntity implements Serializable, Deployment, PersistentObj
return
resources
;
}
public
Object
getPersistentState
()
{
// properties of this entity are immutable
// so always the same value is returned
// so never will an update be issued for a DeploymentEntity
return
DeploymentEntity
.
class
;
}
// Deployed artifacts manipulation //////////////////////////////////////////
// deployed artifacts manipulation //////////////////////////////////////////
public
void
addDeployedArtifact
(
Object
deployedArtifact
)
{
if
(
deployedArtifacts
==
null
)
{
...
...
@@ -118,6 +119,14 @@ public class DeploymentEntity implements Serializable, Deployment, PersistentObj
this
.
name
=
name
;
}
public
String
getCategory
()
{
return
category
;
}
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
;
}
public
void
setResources
(
Map
<
String
,
ResourceEntity
>
resources
)
{
this
.
resources
=
resources
;
}
...
...
@@ -138,11 +147,12 @@ public class DeploymentEntity implements Serializable, Deployment, PersistentObj
this
.
isNew
=
isNew
;
}
public
String
getCategory
()
{
return
category
;
}
// common methods //////////////////////////////////////////////////////////
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
;
@Override
public
String
toString
()
{
return
"DeploymentEntity[id="
+
id
+
", name="
+
name
+
"]"
;
}
}
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/HistoricActivityInstanceEntity.java
浏览文件 @
5d75008b
...
...
@@ -49,38 +49,34 @@ public class HistoricActivityInstanceEntity extends HistoricScopeInstanceEntity
public
String
getActivityId
()
{
return
activityId
;
}
public
void
setActivityId
(
String
activityId
)
{
this
.
activityId
=
activityId
;
}
public
String
getActivityName
()
{
return
activityName
;
}
public
void
setActivityName
(
String
activityName
)
{
this
.
activityName
=
activityName
;
}
public
String
getActivityType
()
{
return
activityType
;
}
public
void
setActivityType
(
String
activityType
)
{
this
.
activityType
=
activityType
;
}
public
String
getExecutionId
()
{
return
executionId
;
}
public
void
setExecutionId
(
String
executionId
)
{
this
.
executionId
=
executionId
;
}
public
void
setActivityId
(
String
activityId
)
{
this
.
activityId
=
activityId
;
}
public
void
setActivityName
(
String
activityName
)
{
this
.
activityName
=
activityName
;
}
public
void
setActivityType
(
String
activityType
)
{
this
.
activityType
=
activityType
;
}
public
String
getAssignee
()
{
return
assignee
;
}
public
void
setAssignee
(
String
assignee
)
{
this
.
assignee
=
assignee
;
}
...
...
@@ -88,7 +84,6 @@ public class HistoricActivityInstanceEntity extends HistoricScopeInstanceEntity
public
String
getTaskId
()
{
return
taskId
;
}
public
void
setTaskId
(
String
taskId
)
{
this
.
taskId
=
taskId
;
}
...
...
@@ -96,9 +91,15 @@ public class HistoricActivityInstanceEntity extends HistoricScopeInstanceEntity
public
String
getCalledProcessInstanceId
()
{
return
calledProcessInstanceId
;
}
public
void
setCalledProcessInstanceId
(
String
calledProcessInstanceId
)
{
this
.
calledProcessInstanceId
=
calledProcessInstanceId
;
}
// common methods //////////////////////////////////////////////////////////
@Override
public
String
toString
()
{
return
"HistoricActivityInstanceEntity[activityId="
+
activityId
+
", activityName="
+
activityName
+
"]"
;
}
}
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/HistoricDetailEntity.java
浏览文件 @
5d75008b
...
...
@@ -25,7 +25,7 @@ import org.activiti.engine.impl.db.PersistentObject;
/**
* @author Tom Baeyens
*/
public
class
HistoricDetailEntity
implements
HistoricDetail
,
PersistentObject
,
Serializable
{
public
abstract
class
HistoricDetailEntity
implements
HistoricDetail
,
PersistentObject
,
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -57,51 +57,39 @@ public class HistoricDetailEntity implements HistoricDetail, PersistentObject, S
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getProcessInstanceId
()
{
return
processInstanceId
;
}
public
void
setProcessInstanceId
(
String
processInstanceId
)
{
this
.
processInstanceId
=
processInstanceId
;
}
public
String
getExecutionId
()
{
return
executionId
;
}
public
void
setExecutionId
(
String
executionId
)
{
this
.
executionId
=
executionId
;
}
public
String
getActivityInstanceId
()
{
return
activityInstanceId
;
}
public
void
setActivityInstanceId
(
String
activityInstanceId
)
{
this
.
activityInstanceId
=
activityInstanceId
;
}
public
Date
getTime
()
{
return
time
;
}
public
void
setTime
(
Date
time
)
{
this
.
time
=
time
;
}
public
String
getTaskId
()
{
return
taskId
;
}
public
void
setTaskId
(
String
taskId
)
{
this
.
taskId
=
taskId
;
}
public
String
getExecutionId
()
{
return
executionId
;
}
public
void
setExecutionId
(
String
executionId
)
{
this
.
executionId
=
executionId
;
}
public
Date
getTime
()
{
return
time
;
}
public
void
setTime
(
Date
time
)
{
this
.
time
=
time
;
}
}
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/HistoricProcessInstanceEntity.java
浏览文件 @
5d75008b
...
...
@@ -67,32 +67,43 @@ public class HistoricProcessInstanceEntity extends HistoricScopeInstanceEntity i
public
String
getEndActivityId
()
{
return
endActivityId
;
}
public
void
setEndActivityId
(
String
endActivityId
)
{
this
.
endActivityId
=
endActivityId
;
}
public
String
getBusinessKey
()
{
return
businessKey
;
}
public
void
setBusinessKey
(
String
businessKey
)
{
this
.
businessKey
=
businessKey
;
}
public
void
setEndActivityId
(
String
endActivityId
)
{
this
.
endActivityId
=
endActivityId
;
}
public
String
getStartUserId
()
{
return
startUserId
;
}
public
void
setStartUserId
(
String
startUserId
)
{
this
.
startUserId
=
startUserId
;
}
public
String
getStartActivityId
()
{
return
startActivityId
;
}
public
void
setStartActivityId
(
String
startUserId
)
{
this
.
startActivityId
=
startUserId
;
}
public
String
getSuperProcessInstanceId
()
{
return
superProcessInstanceId
;
return
superProcessInstanceId
;
}
public
void
setSuperProcessInstanceId
(
String
superProcessInstanceId
)
{
this
.
superProcessInstanceId
=
superProcessInstanceId
;
this
.
superProcessInstanceId
=
superProcessInstanceId
;
}
// common methods //////////////////////////////////////////////////////////
@Override
public
String
toString
()
{
return
"HistoricProcessInstanceEntity[superProcessInstanceId="
+
superProcessInstanceId
+
"]"
;
}
}
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/PropertyEntity.java
浏览文件 @
5d75008b
...
...
@@ -72,4 +72,12 @@ public class PropertyEntity implements PersistentObject, HasRevision, Serializab
public
int
getRevisionNext
()
{
return
revision
+
1
;
}
// common methods //////////////////////////////////////////////////////////
@Override
public
String
toString
()
{
return
"PropertyEntity[name="
+
name
+
", value="
+
value
+
"]"
;
}
}
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/ResourceEntity.java
浏览文件 @
5d75008b
...
...
@@ -78,4 +78,11 @@ public class ResourceEntity implements Serializable, PersistentObject {
public
boolean
isGenerated
()
{
return
generated
;
}
// common methods //////////////////////////////////////////////////////////
@Override
public
String
toString
()
{
return
"ResourceEntity[id="
+
id
+
", name="
+
name
+
"]"
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录