USP_DATALIST_RevenueLifecyclePROCESS

Returns a list of lifecycle update process parameter sets.

Parameters

Parameter Parameter Type Mode Description
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.

Definition

Copy


                    CREATE procedure dbo.USP_DATALIST_RevenueLifecyclePROCESS
                    (
                        @CURRENTAPPUSERID uniqueidentifier = null
                    )
                    as
                        set nocount on;

                        select              
                            RevenueLifecyclePROCESS.ID,
              RevenueLifecyclePROCESS.NAME,
                            RevenueLifecyclePROCESS.ASOFDATE,
                            BPI.OWNERID as OWNERID                            
                        from
                            dbo.RevenueLifecyclePROCESS
                            left join dbo.BUSINESSPROCESSINSTANCE BPI on RevenueLifecyclePROCESS.ID = BPI.BUSINESSPROCESSPARAMETERSETID
                        where 
                            dbo.UFN_SECURITY_APPUSER_GRANTED_BUSINESSPROCESSINSTANCE_IN_SYSTEMROLE(@CURRENTAPPUSERID, RevenueLifecyclePROCESS.ID) = 1
                        order by 
              RevenueLifecyclePROCESS.NAME