index

Table T_FLUJO_PASOS

Definición de Pasos de Flujos

Columns
Name Type Optional Default Comments
ID_PASO NUMBER   "RISK"."ISEQ$$_72455".nextval Identificador del paso del flujo
ID_FLUJO NUMBER Y   Identificador del flujo
NOMBRE VARCHAR2(100) Y   Nombre del paso del flujo
TIPO VARCHAR2(20) Y   Tipo de paso del flujo (INICIO / MANUAL / AUTOMATICO / APROBACION)
ORDEN NUMBER Y   Orden de paso del flujo
ACCIONES_POSIBLES VARCHAR2(100)   '["APROBAR"]' Acciones posibles. En formato JSON Array
BLOQUE_PLSQL CLOB Y   Bloque PL/SQL del paso. Soporta enlace de variables de instancia con el formato ":variable". Ejemplo: :monto, :id_cliente, etc.
ROLES_RESPONSABLES VARCHAR2(4000) Y   Nombre de roles responsables. En formato JSON Array. Soporta variables enlazadas.
USUARIOS_RESPONSABLES VARCHAR2(4000) Y   Alias de usuarios responsables. En formato JSON Array. Soporta variables enlazadas. Variables comodín :usuario_ingreso. Ejemplo: [":usuario_ingreso"]

Primary Key
Name Columns
PK_FLUJO_PASOS ID_PASO

Foreign Keys
Name Columns Referencing Table Columns
FK_FLUJO_PASOS_FLUJOS ID_FLUJO T_FLUJOS ID_FLUJO

Check Constraints
Name Condition
CK_FLJ_PAS_ACC_POSIBLES_JSON acciones_posibles IS JSON STRICT WITH UNIQUE KEYS
CK_FLJ_PAS_ROL_RESPONSABLES_JSON roles_responsables IS JSON STRICT WITH UNIQUE KEYS
CK_FLJ_PAS_TIPO tipo IN ('INICIO', 'MANUAL', 'AUTOMATICO', 'APROBACION')
CK_FLJ_PAS_TIPO_ACC_POSIBLES (tipo IN ('INICIO', 'AUTOMATICO') AND acciones_posibles = '["APROBAR"]') OR tipo IN ('MANUAL', 'APROBACION')
CK_FLJ_PAS_TIPO_APR_ACC_POSIBLES (tipo IN ('INICIO', 'AUTOMATICO','APROBACION') AND JSON_EXISTS(acciones_posibles, '$[*]?(@ == "APROBAR")')) OR tipo IN ('MANUAL')
CK_FLJ_PAS_TIPO_APR_RESPONSABLE (tipo IN ('APROBACION') AND (roles_responsables IS NOT NULL AND usuarios_responsables IS NULL)) OR tipo IN ('INICIO', 'MANUAL', 'AUTOMATICO')
CK_FLJ_PAS_TIPO_AUTO_RESPONSABLE (tipo IN ('INICIO', 'AUTOMATICO') AND roles_responsables IS NULL AND usuarios_responsables IS NULL) OR tipo IN ('MANUAL', 'APROBACION')
CK_FLJ_PAS_USU_RESPONSABLES_JSON usuarios_responsables IS JSON STRICT WITH UNIQUE KEYS

Indexes
Name Columns Type
PK_FLUJO_PASOS ID_PASO Unique