Workspace Assemblies

Assemblies are integrated into Workspaces to give you the freedom to write logic where needed. You can write inline business rules using the assemblies node within a given maintenance unit.

This applies to dashboard-specific business rules only and includes the following types:

  • Cube View Extender

  • XFBRString

  • Dashboard DataSet

  • Dashboard Extender

  • Spreadsheet

  • Finance Business Rules

OneStream developers use Workspace assemblies to build solutions and create dashboards. They are similar to the Visual Studio product. Developers can add folders and within those folders, they can create any number of C# or VB.Net files depending on the compiler language in the Assembly Properties tab. These files are then compiled into a single assembly.

IMPORTANT: The Compiler Language field will default to C# when creating an Application or System Workspace assembly.

Benefits

The benefits of Workspace asemblies extend to OneStream developers, customers, and partners. There are also a variety of service types that assist with the development of solutions.

Because of the power and flexibility this feature extends to those who use assemblies, it is important to follow these best practices:

  • Inform developers on how to take advantage of assemblies.

  • Recognize evolving recommendations on using assemblies.

  • Highlight key areas of assemblies to use within the broader community.

TIP: Use Developer Studio to manage Workspace assembly files. This stand-alone application lets you bring OneStream artifacts, like assemblies, to your local machine and use them with your existing development tools. This enables you to leverage the tools you want, including the IDE and AI Agent of your choice. See Developer Studio Guide.

OneStream Developers

  • MarketPlace Developers: Engineers creating solutions that reside within the OneStream Solution Exchange for customers and partners supported by OneStream

  • Solution Exchange Developers: Members of the OneStream community who design solutions featured in Partner Solution or Community Solution

  • PreSales: Sales engineers who create demonstrations and product proof of concept

  • Consultants: Product implementers building custom solutions for clients

  • Advanced Application Solutions: Technical team that builds advanced solutions for customers

Assembly Encryption

You can encrypt assembly files to protect them from users who may have access to a Workspace.

See Encrypt an Assembly File.

Considerations

When calling business rules that reference the GetCubeViewItemUsingName and GetCubeViewItem methods, the methods needs to be updated to include this parameter: bool executeDynamicCubeViewService.

If this is not added to the methods, you will receive an error.

Error message box displays a list of errors. Error compiling Business Rule GDR Solution Helper

Get Started with Assemblies

Assemblies are structured similarly to Visual Studio where you can build Assemblies using files and folders. This Workspaces page is also similar to the Business Rules page in OneStream, which enables you to quickly create assemblies as needed.

The following image of a Workspaces page shows the various components you will need to build an assembly.

1. Dependencies 2. Folders 3. Files 4. Business Rule Type 5. Compiler Action 6. Compile Icon 7. Namespace

  1. Dependencies: Reference other Workspaces assemblies, business rules, and preexisting assemblies from different Workspaces. To create dependencies, right-click on Dependencies.

  2. Folders: Organize assembly files. To create a folder, right-click on Files, and select Add Folder.

  3. Files: These are written rules for the assembly source code files, for example, business rules, classes, and interfaces. To create a file, right-click on Files.

  4. Business Rule Type: This is the selected business rule type. This is specified when the file is created and cannot be changed. If you have selected a service type instead of a business rule type, this item will display Not Used.

  5. Compiler Action: This is the action to perform on the file: (Use Default), Disabled, or Compile, which is the same as (Use Default). If you select Disabled, you cannot compile the assembly to verify syntax. This value can be changed after creating the assembly file.

  6. Compile Icon: Select this icon to compile all files in the assembly.

  7. Namespace: The Namespace of a file will look different than the display on the Business Rules page. In this example, the file name, MyString, is the last item in the list.