Variable Types

◷ Reading Time: 3 minutes

You can set the variable type in when defining a variable. Although setting a type does not have any impact on the execution side of the logic, it enables the FlexRule Designer to provide suggestions (when possible) on:

  1. Method names
  2. Properties
  3. Fields

Default Types

Click on the ... button and the list of default types will be available:

Simply select one and press OK.

Remember you can always enter the type name directly without using the helper screen.

Custom Types

Custom DLL

To set a type, just select the Assembly by choosing from the dropdown list. If your assembly is not listed, you need to reference it at Project --> Properties --> References. Once the assembly is selected, you can then select the type.

Simply find your type and press OK.

Remember you can always enter the type address directly without using the type explorer.

Type Browser

This is a window in FlexRule Designer that helps you browse and explore managed types. When you reference an assembly in your rule project, you can explore this and use the Type Browser to understand your types better.

When your project is loaded, go to,

View --> Type Browser 

or press F12 and you will see the window below:

Type Browser allows you to:

  • Explore referenced assemblies
  • Search for a type or member
  • Copy member or type name
  • Local to a type of
    • Method arguments
    • Property
    • Field

Fact Concept

This is where you can connect a Fact Concept file as well. Select the Fact Concept from the drop-down list.

Then select the Type (this is the Fact name).

Updated on September 26, 2022

Was this article helpful?

Related Articles