Forum Discussion
Defining a Reference to an External .Net DLL
OneStream XF allows developers to build and reference their own custom Microsoft .Net DLLs from
Shared Business Rules. These are written in either VB.Net or C#. Custom business logic can be
encapsulated and protected within an external DLL written in Microsoft Visual Studio.
Common reasons to create a custom DLL referenced by a Business Rule:
l Protect domain specific intellectual property (hide value programming logic)
l Separate code with dependencies on other programs (system integration wrappers)
l Complex logic requiring development tools only available within Microsoft Visual Studio (Web
Service Discovery and Interface Development)
DLL Installation and Configuration
This section defines the configuration steps that must be completed before an external DLL can be
referenced within a Shared Business Rule. This is a three-step process.
1. Specify the BusinessRuleAssemblyFolder located in the Application Server configuration file
This folder should be shared by all application servers meaning the folder must be accessible
by the Account Credentials used to configure the IIS Application Pool on the application
server.
This setup process is a best practice but is not required. As an alternative, reference the
external DLL from a folder located on each application server and any time the DLL is
updated, it needs to be copied to a standard folder on each application server.
Foundation Guides
2. Identify or create the external DLL to be called and copy it to the
BusinessRuleAssemblyFolder
When a Business Rule is executed and an external DLL reference containing the XF\ prefix is
found in the Referenced Assemblies property of the rule, the application server will look in the
BusinessRuleAssemblyFolder defined in the application server configuration file in order to
find the DLL to be referenced.
3. Add a reference specification to the DLL in the Referenced Assemblies property of the
Business Rule using it.
Related Content
- 4 months ago
- 11 months ago