dbo.ATT_TUPWODecisionSubmethod

SQL_TRIGGER parent PWODecisionSubMethod

Created 2025-06-27T18:01:12.253 · modified 2026-04-14T23:23:08.480 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
No parameters.

Referenced objects

SchemaObjectColumn/minorClass
AttestationCaseOBJECT_OR_COLUMN
deletedOBJECT_OR_COLUMN
insertedOBJECT_OR_COLUMN
PWODecisionSubmethodOBJECT_OR_COLUMN
QBM_PDBQueueInsert_BulkOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YDBQueueRawTYPE
QERWorkingMethodOBJECT_OR_COLUMN
dboQBM_FGIConfigparmValueOBJECT_OR_COLUMN
dboQBM_FGISessionContextOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

1    create   trigger ATT_TUPWODecisionSubmethod on PWODecisionSubmethod for Update not for Replication as begin  declare @QER_Attestation_OnWorkflowUpdate
2 varchar(16) BEGIN TRY if exists (select top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID
3 varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  if update(RevisionNumber) begin select @QER_Attestation_OnWorkflowUpdate = dbo.QBM_FGIConfigparmValue
4('QER\Attestation\OnWorkflowUpdate') if @QER_Attestation_OnWorkflowUpdate in ('RESET', 'ABORT') begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert
5 into @DBQueueElements_01(Object, SubObject, GenProcID) select x.uid, null, @GenProcID from ( select ac.UID_AttestationCase as uid from PWODecisionSubmethod
6 sm join deleted d on sm.UID_PWODecisionSubMethod = d.UID_PWODecisionSubMethod and sm.RevisionNumber <> d.RevisionNumber join QERWorkingMethod wm on wm.UID_PWODecisionSubMethod
7 = sm.UID_PWODecisionSubMethod join AttestationCase ac on ac.UID_QERWorkingMethod = wm.UID_QERWorkingMethod ) as x if @QER_Attestation_OnWorkflowUpdate
8 = 'RESET' begin exec QBM_PDBQueueInsert_Bulk 'ATT-K-Attestation-RESET', @DBQueueElements_01 end if @QER_Attestation_OnWorkflowUpdate = 'ABORT' begin exec
9 QBM_PDBQueueInsert_Bulk 'ATT-K-Attestation-ABORT', @DBQueueElements_01 end end  end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR (''
10, 18, 1) WITH NOWAIT END CATCH ende: return end 
11

Module relation graph

Loading module relation graph…

Source-derived context

Generated from exported SQL module definitions plus read-only sandbox sys.objects/sys.parameters/sys.sql_expression_dependencies metadata. This is factual source evidence, not a semantic guess.

provenance: SQL definition export provenance: sandbox DB metadata modified: 2026-04-14T23:23:08.480

inserts DBQueue tasks uses session context values has TRY/CATCH error handling

Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into, UPDATE not; reads/joins inserted, deleted, PWODecisionSubmethod, QERWorkingMethod, AttestationCase; uses config QER\Attestation\OnWorkflowUpdate

Declared parameters

No declared parameters in sys.parameters for this object, or metadata was not available.

DML targets

INSERT into UPDATE not

Config/session

Config: QER\Attestation\OnWorkflowUpdate

Session: None extracted.

DBQueue/tasks

ATT-K-Attestation-RESET ATT-K-Attestation-ABORT

Temp tables / referenced variables

Temp: None extracted.

Variables: @QER_Attestation_OnWorkflowUpdate @GenProcID @DBQueueElements_01

Referenced by / reverse dependencies

Generated from live DB metadata, FK rows, and exported SQL dependency/source extraction. This is factual linkage evidence, not inferred behavior.

No reverse dependencies extracted.