Back to OIM Explorer

dbo.CPL_TIPersonInBaseTree

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on PersonInBaseTree. Trigger parent table: PersonInBaseTree

Source: sandbox-db sys.sql_modules

Source size: 942 characters

Interpretation

  • Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.

Relations

  • Trigger parent table: PersonInBaseTree

Typed Edges

  • trigger on table PersonInBaseTree Trigger parent table: PersonInBaseTree
  • references source dbo.QBM_FGIConfigparmValue source text reference
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference
  • references source dbo.CPL_TIPerson source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL42 lines
1CREATE trigger CPL_TIPersonInBaseTree2  ON PersonInBaseTree 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 dbo.QBM_FGIConfigparmValue('QER\ComplianceCheck\DisableSelfExceptionGranting') = '1'15    BEGIN16      IF EXISTS(17        SELECT TOP 1 118        FROM inserted i19        JOIN BaseTree b20          ON i.uid_org = b.uid_org AND b.uid_orgRoot = 'CPL-V-NonCompliance'21        JOIN QER_VPersonsAreMe me22          ON i.UID_PersonDecisionMade = me.UID_PersonOrigin AND i.UID_Person = me.UID_PersonAlsoMe23        WHERE24          i.IsDecisionMade = 1 AND i.IsExceptionGranted = 1)25      BEGIN26        RAISERROR('#LDS#Cannot make assignment because not permitted according to configuration of DisableSelfExceptionGranting.|',27        18,28        3)29          WITH nowait30      END31    END32  END TRY33  BEGIN CATCH34    EXEC QBM_PSessionErrorAdd DEFAULT35    RAISERROR('',36    18,37    1)38      WITH NOWAIT39  END CATCH40  ende:41  RETURN42END
Open raw exported source
SQL ยท Raw7 lines
1    create   trigger CPL_TIPersonInBaseTree on PersonInBaseTree  for Insert not for Replication as begin  BEGIN TRY if exists (select top 1 1 from2 inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  if dbo.QBM_FGIConfigparmValue('QER\ComplianceCheck\DisableSelfExceptionGranting'3) = '1' begin if exists (select top 1 1 from inserted i join BaseTree b on i.uid_org = b.uid_org and b.uid_orgRoot = 'CPL-V-NonCompliance' join QER_VPersonsAreMe4 me on i.UID_PersonDecisionMade = me.UID_PersonOrigin and i.UID_Person = me.UID_PersonAlsoMe where i.IsDecisionMade = 1 and i.IsExceptionGranted = 1 ) 5begin raiserror( '#LDS#Cannot make assignment because not permitted according to configuration of DisableSelfExceptionGranting.|', 18, 3) with nowait end6 end  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 7