- 1 Licences
- 2 Development Licences
- 3 Environment Licenses
- 4 Install License
Licences are files that you need to download online during installation of the product or ask our support team to give you a valid licence in order to be able to use any of the FlexRule products.
For each of the following products you need a separate licence:
- FlexRule Runtime
- FlexRule Designer
- FlexRule Server
For FlexRule Runtime integration/development and deployment purposes you need two different licences:
- Development licence
- Environment/product licence
For FlexRule Designer and FlexRule Server installation, each machine requires its own licences.
While developing your application in the DEV environment, you need to use development licences which are based on machine identifiers. Each development licence will be bound to your machine identifier. If you change/refresh your machine, you will probably need a new licence. Please just contact us and we will help you with your licence.
Contacting support for licence
If you want to contact support to receive a valid licence for your machine, unzip the MachineIdGen.Zip file and use the software to generate a machine identifier for your machine.
If you don't have the file, please download the machine identifier generator from the link below
After you generate a machine id using the downloaded utility (MachineIdGebn.zip), send the identifier to email@example.com.
Generating Machine Id
Once you download the MachineIdGen.Zip, unzip it and you will see two different folders:
- .Net 2.0
- .Net 4.5
Depending on which Windows Operating System you use, you can run either of the MachineIdGen.Exe files inside either of those folders. When you run it, you will see the screen below:
Then click on the Generate button and you will see the next screen:
- If you have a flexrule.com account, enter your FlexRule Login and password and press Login OR
- Just press the Anonymous button
Either way, the software will generate an identifier for your machine and you will see the following screen:
Press the Copy button and the identifier will be copied to your clipboard.
Now send an email to firstname.lastname@example.org, include the generated identifier, and ask for your licence.
When integrating FlexRule Runtime into your own application, on deployment to different environments (e.g., QA, Test, Staging, UAT, Pre-Prod, etc.), you need to use an environment licence. This means you do not have to worry about where you want to deploy your application. Environment licences are not bound to any machine identifiers, but are bound to keys.
There are two types of keys that can be used:
- Strong name identity signing keys
- Assembly private name keys
For production and environment licences, you need to sign into your .NET assemblies that are executing the rules. In order to sign into the assembly, please have a look at here.
Public Key Token from Assembly
When you are signed into an assembly, it is very simple to use the .NET Framework tools sn.exe to get the public key token.
- Open the Visual Studio Command Prompt
- Point to the dll’s folder from which you want to get the public key using the following command
sn –T assembly_file.dll
When you do run the command, then you will see similar results to the output below:
Microsoft (R) .NET Framework Strong Name Utility Version 3.5.21022.8 Copyright (c) Microsoft Corporation. All rights reserved. Public key token is b77a5c561934e089
Public Key Token from SNK
You can also extract a public token from an SNK file.
First, you need to extract your public key from your SNK file:
sn -p yourkey.snk publickey.snk
Then you need to generate a public key token from the public key:
sn -tp publickey.snk
Assembly private name
Sometimes the way you architect your application does not allow you to add a strong name identity key to your assembly. In such cases you can use Assembly private name.
If you have used the online tool on the product installation wizard to download and activate your license, then the tool will install the licence for you.
If you have a licence file and would like to install it, you just need to copy it into a specific folder depending on the product for which the licence is used.
The licence for FlexRule Runtime is called 'flexrule.license.lic'. When FlexRule Runtime is installed, it will create a folder name 'Framework'. Copy 'flexrule.license.lic' into the following path:
When you are trying to run FlexRule Runtime samples, make sure your licence file is copied to the following locations as well:
- [RuntimeInstalledPath]\Samples\MVC Sales\FlexRule.Samples.Sales\UI.MVC\App_Data
- [RuntimeInstalledPath]\Samples\MVC Sales\FlexRule.Samples.Sales\UI.MVC\Bin
The licence for FlexRule Designer is called 'flexrule.designer.license.lic'. When FlexRule Designer is installed, it will create a folder name 'Bin'. Copy 'flexrule.designer.license.lic' into the following path: