Tabelas de relatórios de fluxo de trabalho

Verifique as instruções ` Postgres `, ` Db2 ` e ` Oracle ` nas tabelas relacionadas aos fluxos de trabalho.

Área de assunto Nome da tabela Descrição
Fluxo de trabalho tipos de fluxo de trabalho Os tipos de fluxo de trabalho.
Fluxo de trabalho modelos_de_fluxo_de_trabalho Os modelos de fluxo de trabalho.
Fluxo de trabalho configurações de fluxo de trabalho As configurações do fluxo de trabalho.
Fluxo de trabalho fluxos de trabalho Os fluxos de trabalho.
Fluxo de trabalho tarefas do fluxo de trabalho As tarefas do fluxo de trabalho.

tipos de fluxo de trabalho

Esta tabela contém informações sobre os tipos de fluxo de trabalho.

Esta tabela possui as seguintes colunas:

  • type_id - Identificador do tipo de fluxo de trabalho.
  • name - Especifica o nome do tipo de fluxo de trabalho.
  • type - O tipo (por exemplo, governanance_artifacts).

Postgres

Instrução 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

Instrução 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


Oracle

Instrução 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) DEFAULT SYSTIMESTAMP NOT NULL,
	tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
	ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
	PRIMARY KEY(type_id))

tabela workflow_templates

Esta tabela contém informações sobre os modelos de fluxo de trabalho.

Esta tabela possui as seguintes colunas:

  • template_key - Identificador do modelo de fluxo de trabalho.
  • type_id - Identificador do tipo de fluxo de trabalho ao qual este modelo pertence.
  • name - O nome do modelo de fluxo de trabalho.
  • is_suspended - Indica se o modelo de fluxo de trabalho está suspenso ou ativo (booleano).

Postgres

Instrução 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))

Instrução 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

Instrução 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

Instrução 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


Oracle

Instrução 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 decimal(1) NOT NULL,
	tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
	tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
	ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
	PRIMARY KEY(template_key))

Instrução 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

tabela workflow_configurations

Esta tabela contém informações sobre as configurações do fluxo de trabalho.

Esta tabela possui as seguintes colunas:

  • configuration_id - O identificador da configuração do fluxo de trabalho
  • name - O nome da configuração do fluxo de trabalho
  • template_key - O identificador do modelo ao qual o fluxo de trabalho pertence
  • state - Indica se a configuração está ativa ou indisponível.

Postgres

Instrução 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))

Instrução 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

Instrução 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

Instrução 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


Oracle

Instrução 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) DEFAULT SYSTIMESTAMP NOT NULL,
	tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
	ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
	PRIMARY KEY(configuration_id))

Instrução 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

tabela de fluxos de trabalho

Esta tabela contém informações sobre os fluxos de trabalho.

Esta tabela possui as seguintes colunas:

  • workflow_id - O identificador do fluxo de trabalho.
  • configuration_id - O identificador da configuração sob a qual o fluxo de trabalho é criado.
  • instance_state - O estado da instância: concluída ou com falha.
  • workflow_state - O estado do fluxo de trabalho (por exemplo, "publicado").
  • created_by - A pessoa que criou o fluxo de trabalho.
  • start_time - A hora em que o fluxo de trabalho foi iniciado.
  • end_time- A hora em que o fluxo de trabalho foi concluído.

Postgres

Instrução 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))

Instrução 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

Instrução 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

Instrução 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


Oracle

Instrução 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) DEFAULT SYSTIMESTAMP NOT NULL,
	tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
	ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
	PRIMARY KEY(workflow_id))

Instrução ALTER TABLE:

ALTER TABLE workflows ADD CONSTRAINT fk_workflows_workflow_configurations_3 FOREIGN KEY (configuration_id) REFERENCES workflow_configurations(configuration_id) ON
	DELETE
	CASCADE

tabela workflow_tasks

Esta tabela contém informações sobre as tarefas do fluxo de trabalho.

Esta tabela possui as seguintes colunas:

  • task_id - O identificador da tarefa do fluxo de trabalho
  • key - A etapa atual da tarefa do fluxo de trabalho (elaboração, aprovação, revisão, publicação)
  • workflow_id - O identificador do fluxo de trabalho ao qual a tarefa pertence.
  • state - O estado da tarefa do fluxo de trabalho (por exemplo, "criada").
  • assignee - A pessoa designada para essa tarefa.
  • create_time - A data de criação do fluxo de trabalho.
  • due_time - O prazo do fluxo de trabalho.
  • claim_time - A hora em que a tarefa foi reivindicada.
  • end_time - A hora em que a tarefa foi concluída.

Postgres

Instrução 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))

Instrução 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

Instrução 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

Instrução 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


Oracle

Instrução 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) DEFAULT SYSTIMESTAMP NOT NULL,
	tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
	ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
	PRIMARY KEY(task_id))

Instrução ALTER TABLE:

ALTER TABLE workflow_tasks ADD CONSTRAINT fk_workflow_tasks_workflows_4 FOREIGN KEY (workflow_id) REFERENCES workflows(workflow_id) ON
	DELETE
	CASCADE

Saiba Mais