Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
9cc07a09
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,发现更多精彩内容 >>
提交
9cc07a09
编写于
9月 20, 2010
作者:
T
tombaeyens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ACT-30 finished history activity instance docs and synced DB tables for mysql and postgresql
上级
dd73a1e2
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
88 addition
and
21 deletion
+88
-21
modules/activiti-engine/src/main/resources/org/activiti/db/create/activiti.h2.create.sql
...n/resources/org/activiti/db/create/activiti.h2.create.sql
+0
-13
modules/activiti-engine/src/main/resources/org/activiti/db/create/activiti.mysql.create.sql
...esources/org/activiti/db/create/activiti.mysql.create.sql
+4
-3
modules/activiti-engine/src/main/resources/org/activiti/db/create/activiti.postgres.create.sql
...urces/org/activiti/db/create/activiti.postgres.create.sql
+4
-2
modules/activiti-engine/src/test/java/org/activiti/engine/test/history/HistoricActivityInstanceTest.java
...iti/engine/test/history/HistoricActivityInstanceTest.java
+16
-0
modules/activiti-engine/src/test/resources/org/activiti/engine/test/history/HistoricActivityInstanceTest.testHistoricActivityInstanceAssignee.bpmn20.xml
...tanceTest.testHistoricActivityInstanceAssignee.bpmn20.xml
+32
-0
userguide/src/en/chapters/ch09-History.xml
userguide/src/en/chapters/ch09-History.xml
+27
-0
userguide/src/en/chapters/ch10-Cycle.xml
userguide/src/en/chapters/ch10-Cycle.xml
+0
-0
userguide/src/en/chapters/ch11-REST.xml
userguide/src/en/chapters/ch11-REST.xml
+0
-0
userguide/src/en/chapters/ch12-Modeler.xml
userguide/src/en/chapters/ch12-Modeler.xml
+0
-0
userguide/src/en/index.xml
userguide/src/en/index.xml
+5
-3
未找到文件。
modules/activiti-engine/src/main/resources/org/activiti/db/create/activiti.h2.create.sql
浏览文件 @
9cc07a09
...
...
@@ -165,19 +165,6 @@ create table ACT_HI_ACT_INST (
primary
key
(
ID_
)
);
create
table
ACT_HI_DETAIL
(
ID_
varchar
not
null
,
TYPE_
varchar
(
255
)
not
null
,
PROC_INST_ID_
varchar
(
255
),
ACT_INST_ID_
varchar
(
255
),
TIME_
timestamp
,
TEXTVALUE1_
varchar
(
255
),
TEXTVALUE2_
varchar
(
255
),
LONGVALUE1_
bigint
,
LONGVALUE2_
bigint
,
primary
key
(
ID_
),
);
alter
table
ACT_GE_BYTEARRAY
add
constraint
FK_BYTEARR_DEPL
foreign
key
(
DEPLOYMENT_ID_
)
...
...
modules/activiti-engine/src/main/resources/org/activiti/db/create/activiti.mysql.create.sql
浏览文件 @
9cc07a09
...
...
@@ -145,7 +145,6 @@ create table ACT_HI_PROC_INST (
START_TIME_
datetime
not
null
,
END_TIME_
datetime
,
DURATION_
bigint
,
-- TODO: check endStateName length
END_ACT_ID_
varchar
(
255
),
primary
key
(
ID_
),
unique
(
PROC_INST_ID_
)
...
...
@@ -153,11 +152,13 @@ create table ACT_HI_PROC_INST (
create
table
ACT_HI_ACT_INST
(
ID_
varchar
(
255
)
not
null
,
PROC_DEF_ID_
varchar
(
255
)
not
null
,
PROC_INST_ID_
varchar
(
255
)
not
null
,
EXECUTION_ID_
varchar
(
255
)
not
null
,
ACT_ID_
varchar
(
255
)
not
null
,
ACT_NAME_
varchar
(
255
),
ACT_TYPE_
varchar
(
255
)
not
null
,
PROC_INST_ID_
varchar
(
255
)
not
null
,
PROC_DEF_ID_
varchar
(
255
)
not
null
,
ASSIGNEE_
varchar
(
255
),
START_TIME_
datetime
not
null
,
END_TIME_
datetime
,
DURATION_
bigint
,
...
...
modules/activiti-engine/src/main/resources/org/activiti/db/create/activiti.postgres.create.sql
浏览文件 @
9cc07a09
...
...
@@ -153,11 +153,13 @@ create table ACT_HI_PROC_INST (
create
table
ACT_HI_ACT_INST
(
ID_
varchar
(
300
)
not
null
,
PROC_DEF_ID_
varchar
(
255
)
not
null
,
PROC_INST_ID_
varchar
(
255
)
not
null
,
EXECUTION_ID_
varchar
(
255
)
not
null
,
ACT_ID_
varchar
(
255
)
not
null
,
ACT_NAME_
varchar
(
255
),
ACT_TYPE_
varchar
(
255
)
not
null
,
PROC_INST_ID_
varchar
(
255
)
not
null
,
PROC_DEF_ID_
varchar
(
255
)
not
null
,
ASSIGNEE_
varchar
(
255
),
START_TIME_
timestamp
not
null
,
END_TIME_
timestamp
,
DURATION_
bigint
,
...
...
modules/activiti-engine/src/test/java/org/activiti/engine/test/history/HistoricActivityInstanceTest.java
浏览文件 @
9cc07a09
...
...
@@ -13,9 +13,12 @@
package
org.activiti.engine.test.history
;
import
java.util.List
;
import
org.activiti.engine.history.HistoricActivityInstance
;
import
org.activiti.engine.impl.test.ActivitiInternalTestCase
;
import
org.activiti.engine.runtime.ProcessInstance
;
import
org.activiti.engine.task.Task
;
import
org.activiti.engine.test.Deployment
;
...
...
@@ -99,4 +102,17 @@ public class HistoricActivityInstanceTest extends ActivitiInternalTestCase {
assertEquals
(
0
,
historyService
.
createHistoricActivityInstanceQuery
().
processDefinitionId
(
"nonExistingProcessDefinitionId"
).
list
().
size
());
assertEquals
(
1
,
historyService
.
createHistoricActivityInstanceQuery
().
processDefinitionId
(
processInstance
.
getProcessDefinitionId
()).
list
().
size
());
}
@Deployment
public
void
testHistoricActivityInstanceAssignee
()
{
// Start process instance
runtimeService
.
startProcessInstanceByKey
(
"taskAssigneeProcess"
);
// Get task list
HistoricActivityInstance
historicActivityInstance
=
historyService
.
createHistoricActivityInstanceQuery
()
.
singleResult
();
assertEquals
(
"kermit"
,
historicActivityInstance
.
getAssignee
());
}
}
modules/activiti-engine/src/test/resources/org/activiti/engine/test/history/HistoricActivityInstanceTest.testHistoricActivityInstanceAssignee.bpmn20.xml
0 → 100644
浏览文件 @
9cc07a09
<?xml version="1.0" encoding="UTF-8"?>
<definitions
id=
"taskAssigneeExample"
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
typeLanguage=
"http://www.w3.org/2001/XMLSchema"
expressionLanguage=
"http://www.w3.org/1999/XPath"
targetNamespace=
"http://www.activiti.org/bpmn2.0"
>
<process
id=
'taskAssigneeProcess'
name=
"Task Assignee example"
>
<startEvent
id=
'theStart'
/>
<sequenceFlow
id=
'flow1'
sourceRef=
'theStart'
targetRef=
'theTask'
/>
<userTask
id=
'theTask'
name=
'Schedule meeting'
>
<documentation>
Schedule an engineering meeting for next week with the new hire.
</documentation>
<humanPerformer>
<resourceAssignmentExpression>
<formalExpression>
kermit
</formalExpression>
</resourceAssignmentExpression>
</humanPerformer>
</userTask>
<sequenceFlow
id=
'flow2'
sourceRef=
'theTask'
targetRef=
'theEnd'
/>
<endEvent
id=
'theEnd'
/>
</process>
</definitions>
userguide/src/en/chapters/ch09-History.xml
0 → 100644
浏览文件 @
9cc07a09
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "../../../target/docbook-tool-1.0/docbook-xml/docbookx.dtd">
<chapter>
<title>
History
</title>
<warning><title>
(Experimental)
</title><para></para></warning>
<para>
History is the component that captures what happened
during process execution and stores it permanently. In contrast to the runtime data,
the history data will remain present in the DB also after process instances have completed.
</para>
<para>
Currently, there are 2 history tables:
<literal>
ACT_HI_PROC_INST
</literal>
containing
a record for every process instance and
<literal>
ACT_HI_ACT_INST
</literal>
containing a record
for every execution of an activity.
</para>
<para>
In the API, the HistoryService exposes this information by offering methods
<literal>
createHistoricProcessInstanceQuery
</literal>
and
<literal>
createHistoricActivityInstanceQuery
</literal>
.
You might want to consider these querying these tables in order to minimize access to the runtime process instance data
and that way keeping the runtime execution performant.
</para>
<para>
Later on, this information will be exposed in Activiti Explorer and Activiti Probe.
Also, it will be the information from which the reports will be generated.
</para>
</chapter>
\ No newline at end of file
userguide/src/en/chapters/ch
09
-Cycle.xml
→
userguide/src/en/chapters/ch
10
-Cycle.xml
浏览文件 @
9cc07a09
文件已移动
userguide/src/en/chapters/ch1
0
-REST.xml
→
userguide/src/en/chapters/ch1
1
-REST.xml
浏览文件 @
9cc07a09
文件已移动
userguide/src/en/chapters/ch1
1
-Modeler.xml
→
userguide/src/en/chapters/ch1
2
-Modeler.xml
浏览文件 @
9cc07a09
文件已移动
userguide/src/en/index.xml
浏览文件 @
9cc07a09
...
...
@@ -8,9 +8,10 @@
<!ENTITY ch06 SYSTEM "chapters/ch06-Deployment.xml">
<!ENTITY ch07 SYSTEM "chapters/ch07-BPMN.xml">
<!ENTITY ch08 SYSTEM "chapters/ch08-TaskForms.xml">
<!ENTITY ch09 SYSTEM "chapters/ch09-Cycle.xml">
<!ENTITY ch10 SYSTEM "chapters/ch10-REST.xml">
<!ENTITY ch11 SYSTEM "chapters/ch11-Modeler.xml">
<!ENTITY ch09 SYSTEM "chapters/ch09-History.xml">
<!ENTITY ch10 SYSTEM "chapters/ch10-Cycle.xml">
<!ENTITY ch11 SYSTEM "chapters/ch11-REST.xml">
<!ENTITY ch12 SYSTEM "chapters/ch12-Modeler.xml">
]>
<book>
...
...
@@ -30,5 +31,6 @@
&ch09;
&ch10;
&ch11;
&ch12;
</book>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录