ワークフロー・レポート・テーブル

Postgres、 Db2 ステートメントで、ワークフローに関連する表を確認します。

サブジェクト・エリア 表名 説明
ワークフロー ワークフロー・タイプ ワークフロー・タイプ。
ワークフロー ワークフロー・テンプレート ワークフロー・テンプレート。
ワークフロー ワークフロー構成 (workflow_configurations) ワークフロー構成。
ワークフロー ワークフロー ワークフロー。
ワークフロー ワークフロー・タスク ワークフロー・タスク。

ワークフロー・タイプ

この表には、ワークフロー・タイプに関する情報が含まれます。

この表には、以下の列があります。

  • type_id -ワークフロー・タイプの ID。
  • name -ワークフロー・タイプの名前を指定します。
  • type -タイプ (例えば、governanance_artifacts)。

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 -ワークフロー・テンプレートの ID。
  • type_id -このテンプレートが属するワークフロー・タイプの 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_configurations テーブル

この表には、ワークフロー構成に関する情報が含まれます。

この表には、以下の列があります。

  • configuration_id -ワークフロー構成の ID。
  • name -ワークフロー構成の名前。
  • template_key -ワークフローが属しているテンプレートの ID。
  • 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 -ワークフローの ID です。
  • configuration_id -ワークフローの作成に使用された構成の 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 -ワークフロー・タスクの ID
  • key -ワークフロー・タスクの現在のステップ (オーサリング、承認、レビュー、公開)
  • workflow_id -タスクが所属しているワークフローの ID。
  • state -ワークフロー・タスクの状態 (例えば、「created」)。
  • 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

もっと見る

親トピック: レポート・テーブル