dbo.CPL_TIPersonHasObject
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
- DBQueue relation detected. Follow the task procedure and referenced-by list for async processing.
Relations
- Bulk DBQueue insert -> CPL-K-ComplianceCheckForPerson / CPL_ZComplianceCheckForPerson at line 4
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: PersonHasObject
Typed Edges
- queues DBQueue task CPL_ZComplianceCheckForPerson at line 4 Bulk DBQueue insert -> CPL-K-ComplianceCheckForPerson / CPL_ZComplianceCheckForPerson at line 4
- trigger on table PersonHasObject Trigger parent table: PersonHasObject
- references source dbo.QBM_FGIConfigparmValue source text reference
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
- references source dbo.CPL_TIPerson source text reference
References
- dbo.QBM_FGIConfigparmValue
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PSessionErrorAdd
- dbo.CPL_TIPerson
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger CPL_TIPersonHasObject2 ON PersonHasObject FOR3INSERT NOT FOR Replication4AS5BEGIN6 BEGIN TRY7 IF EXISTS(8 SELECT TOP 1 19 FROM inserted)10 GOTO start11 RETURN start:12 DECLARE @GenProcID varchar(38)13 SELECT @GenProcID = dbo.QBM_FGISessionContext('')14 IF '1' = dbo.QBM_FGIConfigparmValue('QER\ComplianceCheck\CalculateImmediately')15 BEGIN16 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw17 INSERT INTO @DBQueueElements_01(object,18 subobject,19 genprocid)20 SELECT21 x.uid,22 NULL,23 @GenProcID24 FROM(25 SELECT26 DISTINCT m.uid_person AS uid27 FROM inserted m) AS x28 EXEC QBM_PDBQueueInsert_Bulk 'CPL-K-ComplianceCheckForPerson',29 @DBQueueElements_0130 END31 END TRY32 BEGIN CATCH33 EXEC QBM_PSessionErrorAdd DEFAULT34 RAISERROR('',35 18,36 1)37 WITH NOWAIT38 END CATCH39 ende:40 RETURN41END
Open raw exported source
1 create trigger CPL_TIPersonHasObject on PersonHasObject for Insert not for Replication as begin BEGIN TRY if exists (select top 1 1 from inserted2) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') if '1' = dbo.QBM_FGIConfigparmValue('QER\ComplianceCheck\CalculateImmediately'3) begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from4 ( select distinct m.uid_person as uid from inserted m ) as x exec QBM_PDBQueueInsert_Bulk 'CPL-K-ComplianceCheckForPerson', @DBQueueElements_01 end END5 TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 6