cancel
Showing results for 
Search instead for 
Did you mean: 
OSAdmin
Community Manager
Community Manager

Call a Business Rule from a Business Rule

'Add referenced assembly
'Add -->  BR\ReferencedBRName to the Referenced Assemblies field on the properties where "ReferencedBRName" is the name of your Business Rule

'Define reference to business rule
Dim referenceBR As New OneStream.BusinessRule.Extender.ReferencedBRName.MainClass       '<-- Update ReferencedBRName with your Business Rule
   
'Call function within referenced business rule
If Not referenceBR Is Nothing Then
    Dim returnVariable As String = referenceBR.ReferencedBRFunctionName(si, param1, param2) '<-- Update ReferencedBRFunctionName, param1..paramX, returnVariable type
End If

Source:  Marketplace Solution - Snippet Editor  Author: OneStream

Version history
Last update:
‎03-03-2022 08:39 AM
Updated by: