Tabelas de relatório de fluxo de trabalho
Verifique as instruções Postgres, Db2 para as tabelas relacionadas a 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 | Os modelos de fluxo de trabalho |
| Fluxo de trabalho | workflow_configurações | As configurações de fluxo de trabalho |
| Fluxo de trabalho | fluxos de trabalho | Os fluxos de trabalho |
| Fluxo de trabalho | tarefas_do_fluxo | As tarefas de fluxo de trabalho |
tipos de fluxo de trabalho
Esta tabela contém informações sobre os tipos de fluxo de serviço.
Esta tabela possui as seguintes colunas:
type_id-Identificador para o tipo de fluxo de trabalhoname-Especifica o nome do tipo de fluxo de trabalhotype-O tipo (por exemplo, governance_artefatos).
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
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 pertencename-O nome do modelo de fluxo de trabalhois_suspended-Especifica se o modelo de workflow 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
tabela workflow_configurações
Esta tabela contém informações sobre as configurações de fluxo de trabalho
Esta tabela possui as seguintes colunas:
configuration_id-O identificador de configuração do fluxo de trabalhoname-O nome da configuração de workflowtemplate_key-O identificador do modelo ao qual o fluxo de trabalho pertencestate-Especifica 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
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 serviço.configuration_id-O identificador da configuração sob a qual o workflow é criado.instance_state-O estado da instância, concluído ou com falha.workflow_state-O estado do fluxo de trabalho (por exemplo, "publicado")created_by-A pessoa que criou o fluxo de trabalhostart_time-O horário em que o workflow foi iniciado.end_time-O horário 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
tabela workflow_tasks
Esta tabela contém informações sobre as tarefas de workflow.
Esta tabela possui as seguintes colunas:
task_id-O identificador da tarefa de Fluxo de Trabalhokey-A etapa atual da tarefa de workflow (autoria, aprovação, revisão, publicação)workflow_id-O identificador do fluxo de trabalho sob o qual a tarefa pertence.state-O estado da tarefa de fluxo de trabalho (por exemplo, "criado")assignee-A pessoa designada a esta tarefa.create_time-O horário de criação do fluxo de trabalhodue_time-O tempo de vencimento do fluxo de trabalhoclaim_time-O horário em que a tarefa foi solicitadaend_time-O horário em que a tarefa terminou.
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