Onestream sdk

MK
New Contributor II

Hi Team, can we run or test the business rules or code snippets outside OneStream environment? Do we have any SDK's to setup and test locally?

Thanks

Manju

1 REPLY 1

Omkareshwar
Contributor II

There is a solution for this in the latest people planning solution from OneStream 

' To enable debugging
' 1). Set Solution Configuration to Debug in Visual Studio
' 2). Build the PLP_PV620_SV101.dll in the "Business Rules Assembly Folder"
' 3). Set BRDebugging = True
' 4). Upload BusinessRule to OneStream Client
' 5). Add XF\PLP_PV620_SV101.dll to "Reference Assemblies" in Business Rule
' 6). Set BRDebugging = False
'
' To disable debugging
' 1). Set BRDebugging = False
' 2). Upload BusinessRule to OneStream Client
' 3). Remove XF\PLP_PV620_SV101.dll from "Reference Assemblies" in Business Rule
' 4). Set Solution Configuration to Release

 

#Const BRDebugging = False
#If BRDebugging Then

 

Namespace OneStream.BusinessRule.DashboardExtender.PLP_SolutionHelper
    Public Class MainClass
        Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As Object, ByVal args As DashboardExtenderArgs) As Object
            Try
                Dim dbgHelper As New DashboardExtender.PLP_SolutionHelperDebug.MainClass
                Return dbgHelper.Main(si, globals, api, args)
            Catch ex As Exception
                Throw ErrorHandler.LogWrite(si, New XFException(si, ex))
            End Try
        End Function
    End Class
End Namespace

 

#Else
#If DEBUG Then
Namespace OneStream.BusinessRule.DashboardExtender.PLP_SolutionHelperDebug
#Else
Namespace OneStream.BusinessRule.DashboardExtender.PLP_SolutionHelper
#End If

 

Thanks,

Omkareshwar

Archetype Consulting

Thanks, Omkareshwar
Archetype Consulting