Vérifiez les instructions Postgres, Db2 pour les tables associées aux flux de travaux.
Domaine | Nom de la table | Descriptif |
---|---|---|
Flux de travaux | types_flux de travaux | Types de flux de travaux. |
Flux de travaux | modèles de flux de travaux | Modèles de flux de travaux. |
Flux de travaux | configurations de flux de travaux | Configurations de flux de travaux. |
Flux de travaux | flux de travaux | Les flux de travaux. |
Flux de travaux | tâches_flux de travaux | Tâches de flux de travaux. |
types_flux de travaux
Cette table contient des informations sur les types de flux de travaux.
Cette table comporte les colonnes suivantes:
type_id
-Identificateur du type de flux de travaux.name
-Indique le nom du type de flux de travaux.type
-Type (par exemple, gouvernementaanance_artefacts).
Postgres
Instruction 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
Instruction 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
table workflow_templates
Ce tableau contient des informations sur les modèles de flux de travaux.
Cette table comporte les colonnes suivantes:
template_key
-Identificateur du modèle de flux de travaux.type_id
-Identificateur du type de flux de travaux auquel appartient ce modèle.name
-Nom du modèle de flux de travaux.is_suspended
-Indique si le modèle de flux de travaux est suspendu ou actif (valeur booléenne).
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
table workflow_configurations
Ce tableau contient des informations sur les configurations de flux de travaux.
Cette table comporte les colonnes suivantes:
configuration_id
-Identificateur de la configuration de flux de travauxname
-Nom de la configuration de flux de travauxtemplate_key
-Identificateur du modèle auquel appartient le flux de travauxstate
-Indique si la configuration est active ou non disponible.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
Tableau des flux
Ce tableau contient des informations sur les flux de travaux.
Cette table comporte les colonnes suivantes:
workflow_id
-Identificateur du flux de travaux.configuration_id
-Identificateur de la configuration sous laquelle le flux de travaux est créé.instance_state
-Etat de l'instance, terminé ou en échec.workflow_state
-Etat du flux de travaux (par exemple, "publié").created_by
-Personne qui a créé le flux de travaux.start_time
-Heure à laquelle le flux de travaux a démarré.end_time
-Heure à laquelle le flux de travaux a été terminé.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
Table workflow_tasks
Ce tableau contient des informations sur les tâches de flux de travaux.
Cette table comporte les colonnes suivantes:
task_id
-Identificateur de la tâche de flux de travauxkey
-Etape en cours de la tâche de flux de travaux (création, approbation, révision, publication)workflow_id
-Identificateur du flux de travaux auquel appartient la tâche.state
-Etat de la tâche de flux de travaux (par exemple, "created").assignee
-Personne affectée à cette tâche.create_time
-Heure de création du flux de travaux.due_time
-Heure d'échéance du flux de travaux.claim_time
-Heure à laquelle la tâche a été réclamée.end_time
-Heure à laquelle la tâche s'est terminée.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
En savoir plus
Rubrique parent: Tables de génération de rapports