dbo.QER_PITShopHelperFillAll

SQL_STORED_PROCEDURE

Created 2025-06-27T18:01:06.570 · modified 2026-04-14T23:20:39.163 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@DecisionRulesnvarcharno
@GenProcIDvarcharno

Referenced objects

SchemaObjectColumn/minorClass
DialogDBQueueOBJECT_OR_COLUMN
PersonWantsOrgOBJECT_OR_COLUMN
pwodecisionruleOBJECT_OR_COLUMN
PWOHelperPWOOBJECT_OR_COLUMN
QBM_PDBQueueInsert_BulkOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YDBQueueRawTYPE
QERWorkingStepOBJECT_OR_COLUMN
dboQBM_FCVStringToBitOBJECT_OR_COLUMN
dboQBM_FCVStringToListOBJECT_OR_COLUMN
dboQBM_FGIConfigparmValueOBJECT_OR_COLUMN
dboQER_FGIGenProcIDForPWOOBJECT_OR_COLUMN
dboQER_FGIPWOTaskToUseOBJECT_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   procedure QER_PITShopHelperFillAll (@DecisionRules nvarchar(2000) , @GenProcID varchar(38) = null ) as begin declare @CfgUseGenProcID
2 bit = dbo.QBM_FCVStringToBit(dbo.QBM_FGIConfigparmValue('Common\ProcessState\UseGenProcIDFromPWO')) declare @PWOTaskToUse varchar(38) = dbo.QER_FGIPWOTaskToUse
3() SET XACT_ABORT OFF BEGIN TRY if isnull(@GenProcID, '') = '' begin select @GenProcID = NEWID() end if dbo.QBM_FGIConfigparmValue('QER\ITShop') = '' begin
4 goto endLabel end if @PWOTaskToUse > ' ' begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid
5) select x.uid, null, x.GenProcID from (  select distinct pwo.UID_PersonWantsOrg as uid , dbo.QER_FGIGenProcIDForPWO(pwo.GenProcID, @GenProcID, @CfgUseGenProcID
6) as GenProcID from pwodecisionrule r join dbo.QBM_FCVStringToList(@DecisionRules, '|', 1, 0 ) pa on r.UID_PWODecisionRule = pa.ParameterValue and r.UsageArea
7 ='I' and r.UID_Task is null  join QERWorkingStep ps on ps.UID_PWODecisionRule = r.UID_PWODecisionRule join PersonWantsOrg pwo on ps.UID_QERWorkingMethod
8 = pwo.UID_QERWorkingMethod      where pwo.OrderState in (  'OrderProduct', 'OrderProlongate', 'OrderUnsubscribe'  )  or exists ( select top 1 1 from PWOHelperPWO
9 h where h.UID_PersonWantsOrg = pwo.UID_PersonWantsOrg ) ) as x  where not exists (select top 1 1 from DialogDBQueue q with (nolock) where q.UID_Task =
10 @PWOTaskToUse and q.Object = x.uid and q.Generation >= 0 )  exec QBM_PDBQueueInsert_Bulk @PWOTaskToUse, @DBQueueElements_01 end  END TRY BEGIN CATCH exec
11 QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: return end 
12

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:20:39.163

inserts DBQueue tasks has TRY/CATCH error handling

Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into; reads/joins pwodecisionrule, QBM_FCVStringToList, QERWorkingStep, PersonWantsOrg, PWOHelperPWO…; uses config Common\ProcessState\UseGenProcIDFromPWO, QER\ITShop

Declared parameters

ParameterTypeDirection
@DecisionRulesnvarchar(2000)input
@GenProcIDvarchar(38)input

DML targets

INSERT into

Config/session

Config: Common\ProcessState\UseGenProcIDFromPWO QER\ITShop

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @DecisionRules @GenProcID @CfgUseGenProcID @PWOTaskToUse @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.

Referencing objectRelationEvidence
dbo.CPL_ZAllForPersonInBaseTreeSQL expression dependencyOBJECT_OR_COLUMN
dbo.ADS_TCPLUADSContainerSQL expression dependencyOBJECT_OR_COLUMN
dbo.ADS_TCPLUDomainSQL expression dependencyOBJECT_OR_COLUMN
dbo.CPL_TUPersonSQL expression dependencyOBJECT_OR_COLUMN
dbo.LDP_TCPLULDAPContainerSQL expression dependencyOBJECT_OR_COLUMN
dbo.LDP_TCPLULDPDomainSQL expression dependencyOBJECT_OR_COLUMN
dbo.TSB_TCPLUUNSRootBSQL expression dependencyOBJECT_OR_COLUMN
dbo.CPL_ZAllForPersonInBaseTreesource text referenceinserts DBQueue tasks, has TRY/CATCH error handling
dbo.ADS_TCPLUADSContainersource text referenceuses session context values, has TRY/CATCH error handling
dbo.ADS_TCPLUDomainsource text referenceuses session context values, has TRY/CATCH error handling
dbo.CPL_TUPersonsource text referenceinserts DBQueue tasks, uses session context values, has TRY/CATCH error handling
dbo.LDP_TCPLULDAPContainersource text referenceuses session context values, has TRY/CATCH error handling
dbo.LDP_TCPLULDPDomainsource text referenceuses session context values, has TRY/CATCH error handling
dbo.TSB_TCPLUUNSRootBsource text referenceuses session context values, has TRY/CATCH error handling