When looking at the K2Log database, the hierarchy is as follows:

_ProcInst

This is one of the highest level tables, which contains a unique row (with unique ID) for each

process instance. The ‘ID’ column is the unique Process Instance ID, and the ‘ProcID’ column is a foreign key reference to the

_Proc

table which contains the process definition (name, descr, etc).

Therefore a list of ‘incidents’ can be obtained by creating a query from the _ProcInst table.

_ProcInstData 

All the instance data for a process, is stored in ProcInstData. Each row in PRocInstData has a

foreign key reference back to the ProcInstID (which is stored in _ProcInst.ID).

_ActInst 

This is the next level. For each process instance, all activity instances are stored in _ActInst. This

table contains a foreign key to table _Act in order to link the name & description for the activity.

From this table we can obtain the overall status for the activity, however because an activity can

be sent to a single or multiple users, no user-related information is found here, but rather

extrapolated to _ActInstDest.

_ActInstDest 

This table contains a unique row, for each ‘destination’ for a particular activity instance. There, if

we sent Activity ‘Approval’ to ‘UserA, UserB and UserC’, there will be a si

ngle row in _ActInst for

the overall activity, and 3 rows in _ActInstDest, one for each user. Therefore, as can be expected,

this table is important for any user-related queries (such as particular tasks for a specific user etc).

_ActInstDestData 

Activity data is created as a separate set of data for each destination user. Therefore, the data

fields are stored relative to a specific ActivityInstanceDestination. This table contains a row for

each data field, for each destination user. Therefore, if you create 2 data fields (Field1, Field2) for

the activity mentioned above, then you will have 6 rows in _ActInstDestData.

_EventInst 

This is the lowest table. Each row has a foreign key back to _ActInstDest. Each row in this table

is for a single event, for a single user.

Many of these tables, contain the start and finish date (for the specific level, be it process,activity,

or event), as well as the current status. Therefore, for most queries a combination of these tables

must be used.

So for instance, the following would give you an idea on where to obtain the indicated information:

- number of tasks for a user or a group of user

(this can be read from _ActInstDest, that is where we know which activities were sent to which

user)

- number of Activities  

To get the activities per user, _ActInstDest has this info.

- number of process instances 

This can be obtained from _ProcInst.

- type of Activity steps 

If a step is an activity, then you would use the Activities’ name/description to uniquely identify it,

and inner join _Act and _ActInst to get the name and description for a specific Activity Instance.

- status of steps

When looking at the K2Log database, the hierarchy is as follows:

_ProcInst

This is one of the highest level tables, which contains a uniquerow (with unique ID) for each process instance. The ‘ID’ column is the uniqueProcess Instance ID, and the ‘ProcID’ column is a foreign key reference to the _Proctable which contains the process definition (name, descr, etc). Therefore alist of ‘incidents’ can be obtained by creating a query from the_ProcInsttable.

_ProcInstData

All the instance data for a process, is stored in ProcInstData.Each row in PRocInstData has a foreign key reference back to the ProcInstID(which is stored in _ProcInst.ID).

_ActInst

This is the next level. For each process instance, all activityinstances are stored in _ActInst. This table contains a foreign key to table_Act in order to link the name & description for the activity. From thistable we can obtain the overall status for the activity, however because anactivity can be sent to a single or multiple users, no user-related informationis found here, but rather extrapolated to _ActInstDest.

_ActInstDest

This table contains a unique row, for each ‘destination’ for aparticular activity instance. There, if we sent Activity ‘Approval’ to ‘UserA,UserB and UserC’, there will be a single row in _ActInst for the overallactivity, and 3 rows in _ActInstDest, one for each user. Therefore, as can beexpected, this table is important for any user-related queries (such asparticular tasks for a specific user etc).

_ActInstDestData

Activity data is created as a separate set of data for eachdestination user. Therefore, the data fields are stored relative to a specificActivityInstanceDestination. This table contains a row for each data field, foreach destination user. Therefore, if you create 2 data fields (Field1, Field2)for the activity mentioned above, then you will have 6 rows in_ActInstDestData.

_EventInst

This is the lowest table. Each row has a foreign key back to_ActInstDest. Each row in this table is for a single event, for a single user.

Many of these tables, contain the start and finish date (for thespecific level, be it process,activity, or event), as well as the currentstatus. Therefore, for most queries a combination of these tables must be used.

So for instance, the following would give you an idea on where toobtain the indicated information:

-number of tasks for a user or a group of user

(thiscan be read from _ActInstDest, that is where we know which activities were sentto which user)

-number of Activities

Toget the activities per user, _ActInstDest has this info.

-number of process instances

Thiscan be obtained from _ProcInst.

-type of Activity steps

Ifa step is an activity, then you would use the Activities’ name/description touniquely identify it, and inner join _Act and _ActInst to get the name anddescription for a specific Activity Instance.

-status of steps

Table_ActInst has a status for the overall activity, _ActInstDest has a status foreach participating user in the activity.

-time of steps

Tables_ProcInst, _ActInst, _ActInstDest and _EventInst all have start and finishdates/times. Basically it depends on what level you need the time on.

-type of Process instance

The_ProcInst can be inner joined with _Proc to get the name and description.

-status of Process instance

_ProcInsthas the status for the overall process.

K2数据库database相关推荐

  1. VB:使用Visual Studio 2010中的VB语言工具箱DataGridView调用SQL数据库Database的表格文件

    VB:使用Visual Studio 2010中的VB语言工具箱DataGridView调用SQL数据库Database的表格文件 目录 问题探究 图文教程 问题探究 使用Visual Studio ...

  2. PLSQL无法连接64位Oracle数据库/Database下拉框为空的解决方法

    PLSQL无法连接64位Oracle数据库/Database下拉框为空的解决方法 参考文章: (1)PLSQL无法连接64位Oracle数据库/Database下拉框为空的解决方法 (2)https: ...

  3. VB.net:使用Visual Studio 2010中的VB.net语言工具箱DataGridView调用SQL数据库Database的表格文件

    VB.net:使用Visual Studio 2010中的VB.net语言工具箱DataGridView调用SQL数据库Database的表格文件 目录 问题探究 图文教程 问题探究 使用Visual ...

  4. DB-概念-数据库:数据库/Database

    ylbtech-DB-概念-数据库:数据库/Database 数据库是以一定方式储存在一起.能与多个用户共享.具有尽可能小的冗余度.与应用程序彼此独立的数据集合,可视为电子化的文件柜--存储电子文件的 ...

  5. 【数据库基础知识二】数据库DataBase(简称DB),数据库基本概念、DDL:数据定义语言,用来操作数据库对象、DML:数据操作语言,用来操作表中的数据

    14天阅读挑战赛 目录 数据库基本概念 数据库DataBase(简称DB) 数据库管理系统Database management system(简称DBMS) 如何操作DBMS? 连接数据库的方式: ...

  6. mysql进入database_MySQL中关于数据库database的那些操作

    昨儿和大家分享了一些关于MySQL中常用的数据类型,想要回顾数据类型知识点的话,可以到我的主页去看.昨天在文章末尾的时候,稍微和大家提了一下关于查看数据库的一点内容,今天我们就和大家一起说说,关于数据 ...

  7. Oracle 免费的数据库--Database 快捷版 11g 安装使用与SOD框架对Oracle的CodeFirst支持...

    一.Oracle XE 数据库与连接工具安装使用 Oracle数据库历来以价格昂贵出名,当然贵有贵的道理,成为一个Oracle DBA也是令人羡慕的事情,如果程序员熟悉Oracle使用也有机会接触到大 ...

  8. redis 多数据库 database配置项解析

    读到redis配置文件的时候,碰到databases 16我不明白了,然后开启百度和google的搜索介绍之门,下面把我读取文章吸取到的解释介绍如下.   官方的解释:可用数据库数,默认值为16,默认 ...

  9. Oracle 数据库 Database Express Edition 11g Release 2 (11.2) 错误解决集锦(安装方面)

    前言:第一次接触数据库,想下载个oracle试玩下(虽然听说一般大企业才用),到 官网下载 了个简易版 XE 版本,安装时要注意记住自己输入的数据库密码(口令)  还有安装路径不能含有空格(Do no ...

最新文章

  1. WPF和Silverlight设计实例
  2. matlab循环矩阵
  3. arcgis与python_Arcgis-ModelBuilder和Python学习
  4. ueditor百度富文本编辑器linux下报错: class path resource [config.json] cannot be resolved to absolute file path
  5. sql多行合成一行的解决方法
  6. 【转载】细聊冗余表数据一致性(架构师之路)
  7. html a标签指定区域,第四讲:使用html5中的canvas标签画出一个球在指定区域内的运动...
  8. java一个引用多大_为什么Java 8为方法引用引入了一个新的“::”运算符?
  9. 【DFS】LeetCode 51. N-Queens
  10. MySQL5.7.19解压版配置
  11. shellcode执行盒_简单shellcode学习
  12. Oracle 常用系统数据查询SQL(转)
  13. PS自学教程是Ads设计必备 盘点精彩对比式Ads
  14. Separating Skills and Concepts for Novel Visual Question Answering 论文笔记
  15. python3爬虫实战-requests+beautifulsoup-爬取下载顶点网站的小说
  16. 纵横捭阖C++之从异步谈起
  17. 基于美国人口数据分析
  18. selenium 定位一组元素
  19. centos 7 JDK 环境部署
  20. 计算机专业技术个人小结,计算机专业技术个人小结.doc

热门文章

  1. matlab凯塞窗设计,转载:用MATLAB设计FIR滤波器的方法解析
  2. 联想服务器RD640施工文档
  3. 40奇点,天网,计算机的未来
  4. 继 Linux 上火星之后,树莓派计算机飞往国际空间站
  5. [转载]蓝沙快克PXE网克图文教程
  6. Sqoop_Sqoop 并行度调整 -m 以及 --split-by
  7. Java设计模式(5):工厂模式
  8. win11右键菜单怎么回到win10旧版
  9. 避免使用百度云管家被限速的方法
  10. python历史时间轴可视化_如何使用Python创建历史时间轴