dbo.QER_TIPWODecisionStep
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
Relations
- Trigger parent table: PWODecisionStep
Typed Edges
- trigger on table PWODecisionStep Trigger parent table: PWODecisionStep
- references source dbo.QBM_FCVGUIDToModuleOwner source text reference
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
References
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QER_TIPWODecisionStep2 ON PWODecisionStep 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 EXISTS(15 SELECT TOP 1 116 FROM inserted17 WHERE18 dbo.QBM_FCVGUIDToModuleOwner(UID_PWODecisionSubMethod) <> 'CCC' AND dbo.QBM_FCVGUIDToModuleOwner(UID_PWODecisionStep) = 'CCC')19 BEGIN20 RAISERROR('#LDS#Custom defined steps are not permitted in predefined workflows.|',21 18,22 2)23 WITH nowait24 END25 END TRY26 BEGIN CATCH27 EXEC QBM_PSessionErrorAdd DEFAULT28 RAISERROR('',29 18,30 1)31 WITH NOWAIT32 END CATCH33 ende:34 RETURN35END
Open raw exported source
1 create trigger QER_TIPWODecisionStep on PWODecisionStep 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 exists (select top 1 1 from inserted3 where dbo.QBM_FCVGUIDToModuleOwner(UID_PWODecisionSubMethod) <> 'CCC' and dbo.QBM_FCVGUIDToModuleOwner(UID_PWODecisionStep) = 'CCC' ) begin raiserror4('#LDS#Custom defined steps are not permitted in predefined workflows.|', 18, 2) with nowait end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default5 RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 6