Go back to the English version of the documentation工作流程报告表
工作流程报告表
Last updated: 2024年12月13日
检查 Postgres Db2 语句中与工作流程相关的表。
主题区域 | 表名 | 描述 |
---|---|---|
工作流程 | 工作流程类型 | 工作流程类型。 |
工作流程 | 工作流程模板 | 工作流程模板。 |
工作流程 | 工作流程配置 | 工作流程配置。 |
工作流程 | 工作流程 | 工作流程。 |
工作流程 | 工作流程任务 | 工作流程任务。 |
workflow_types
此表包含有关工作流程类型的信息。
此表具有以下列:
type_id
-工作流程类型的标识。name
-指定工作流程类型的名称。type
-类型 (例如,监管工件)。
Postgres
CREATE TABLE 语句:
create table workflow_types(type_id varchar(128) not null,
name varchar(256) not null,
type varchar(256) not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(type_id))
Db2
CREATE TABLE 语句:
create table workflow_types(type_id varchar(128) not null,
name varchar(256) not null,
type varchar(256) not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(type_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
workflow_templates 表
此表包含有关工作流程模板的信息。
此表具有以下列:
template_key
-工作流程模板的标识。type_id
-此模板所属的工作流程类型的标识。name
-工作流程模板的名称。is_suspended
-指定工作流程模板是暂挂还是处于活动状态 (布尔值)。
Postgres
CREATE TABLE 语句:
create table workflow_templates(template_key varchar(128) not null,
type_id varchar(128) not null,
name varchar(256) not null,
is_suspended boolean not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(template_key))
ALTER TABLE 语句:
alter table workflow_templates add constraint fk_workflow_templates_workflow_types_1 foreign key (type_id) references workflow_types(type_id) on
delete
cascade on
update
no action
Db2
CREATE TABLE 语句:
create table workflow_templates(template_key varchar(128) not null,
type_id varchar(128) not null,
name varchar(256) not null,
is_suspended boolean not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(template_key),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
ALTER TABLE 语句:
alter table workflow_templates add constraint fk_workflow_templates_workflow_types_1 foreign key (type_id) references workflow_types(type_id) on
delete
cascade on
update
no action
workflow_配置表
此表包含有关工作流程配置的信息。
此表具有以下列:
configuration_id
-工作流程配置的标识name
-工作流程配置的名称template_key
-工作流程所属的模板的标识state
-指定配置是处于活动状态还是不可用。
Postgres
CREATE TABLE 语句:
create table workflow_configurations(configuration_id varchar(128) not null,
name varchar(256) not null,
template_key varchar(128) not null,
state varchar(256) not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(configuration_id))
ALTER TABLE 语句:
alter table workflow_configurations add constraint fk_workflow_configurations_workflow_templates_2 foreign key (template_key) references workflow_templates(template_key) on
delete
cascade on
update
no action
Db2
CREATE TABLE 语句:
create table workflow_configurations(configuration_id varchar(128) not null,
name varchar(256) not null,
template_key varchar(128) not null,
state varchar(256) not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(configuration_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
ALTER TABLE 语句:
alter table workflow_configurations add constraint fk_workflow_configurations_workflow_templates_2 foreign key (template_key) references workflow_templates(template_key) on
delete
cascade on
update
no action
工作流程表
此表包含有关工作流程的信息。
此表具有以下列:
workflow_id
-工作流程的标识。configuration_id
-用于创建工作流程的配置的标识。instance_state
-实例的状态 (无论是已完成还是已失败)。workflow_state
-工作流程的状态 (例如 "已发布")。created_by
-创建工作流程的人员。start_time
-工作流程的启动时间。end_time
-完成工作流程的时间。
Postgres
CREATE TABLE 语句:
create table workflows(workflow_id varchar(128) not null,
configuration_id varchar(128),
instance_state varchar(256),
workflow_state varchar(256),
created_by varchar(128) not null,
start_time timestamp(6),
end_time timestamp(6),
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(workflow_id))
ALTER TABLE 语句:
alter table workflows add constraint fk_workflows_workflow_configurations_3 foreign key (configuration_id) references workflow_configurations(configuration_id) on
delete
cascade on
update
no action
Db2
CREATE TABLE 语句:
create table workflows(workflow_id varchar(128) not null,
configuration_id varchar(128),
instance_state varchar(256),
workflow_state varchar(256),
created_by varchar(128) not null,
start_time timestamp(12),
end_time timestamp(12),
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(workflow_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
ALTER TABLE 语句:
alter table workflows add constraint fk_workflows_workflow_configurations_3 foreign key (configuration_id) references workflow_configurations(configuration_id) on
delete
cascade on
update
no action
workflow_tasks 表
此表包含有关工作流程任务的信息。
此表具有以下列:
task_id
-工作流程任务的标识key
-工作流程任务的当前步骤 (编写,核准,复审和发布)workflow_id
-任务所属的工作流程的标识。state
-工作流程任务的状态 (例如 "已创建")。assignee
-分配到此任务的人员。create_time
-工作流程的创建时间。due_time
-工作流程的到期时间。claim_time
-申领任务的时间。end_time
-任务结束的时间。
Postgres
CREATE TABLE 语句:
create table workflow_tasks(task_id varchar(128) not null,
key varchar(256),
workflow_id varchar(128),
state varchar(256),
assignee varchar(128),
create_time timestamp(6) not null,
due_time timestamp(6),
claim_time timestamp(6),
end_time timestamp(6),
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(task_id))
ALTER TABLE 语句:
alter table workflow_tasks add constraint fk_workflow_tasks_workflows_4 foreign key (workflow_id) references workflows(workflow_id) on
delete
cascade on
update
no action
Db2
CREATE TABLE 语句:
create table workflow_tasks(task_id varchar(128) not null,
key varchar(256),
workflow_id varchar(128),
state varchar(256),
assignee varchar(128),
create_time timestamp(12) not null,
due_time timestamp(12),
claim_time timestamp(12),
end_time timestamp(12),
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(task_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
ALTER TABLE 语句:
alter table workflow_tasks add constraint fk_workflow_tasks_workflows_4 foreign key (workflow_id) references workflows(workflow_id) on
delete
cascade on
update
no action
了解更多信息
父主题: 报告表