Licensing

From FlexRule Wiki
Jump to: navigation, search

Licenses

Licenses are files that you need to download online during installation of the product or ask our support team to give you a valid license in order to be able to use any of the FlexRule products.

For each of the following products you need a separate license:

  1. FlexRule Runtime
  2. FlexRule Designer
  3. FlexRule Server

For FlexRule Runtime integration/development and deployment purposes you need two different licenses:

  1. Development license
  2. Environment/product license

For FlexRule Designer and FlexRule Server installation, each machine requires its own licenses.

Development Licenses

While developing your application in the DEV environment, you need to use development licenses which are based on machine identifiers. Each development license will be bound to your machine identifier. If you change/refresh your machine, you will probably need a new license. Please just contact us and we will help you with your license.

Contacting support for license

If you want to contact support to receive a valid license 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

http://www.flexrule.com/get-license

After you generate a machine id using the downloaded utility (MachineIdGebn.zip), send the identifier to support@flexrule.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:

Idgen1.png

Then click on the Generate button and you will see the next screen:


Idgen-username.png

  • 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:

Idgen-done.png

Press the Copy button and the identifier will be copied to your clipboard.


Now send an email to support@flexrule.com, include the generated identifier, and ask for your license.


Environment Licenses

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 license. This means you do not have to worry about where you want to deploy your application. Environment licenses are not bound to any machine identifiers, but are bound to keys.

There are two types of keys that can be used:

  1. Strong name identity signing keys
  2. Assembly private name keys

Signing Key

For production and environment licenses, 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.

  1. Open the Visual Studio Command Prompt
  2. 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.

Install License

Online

If you have used the online tool on the product installation wizard to download and activate your license, then the tool will install the license for you.

Offline

If you have a license file and would like to install it, you just need to copy it into a specific folder depending on the product for which the license is used.

FlexRule Runtime

The license 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:

[RuntimeInstalledPath]\FlexRule\Framework\FlexRule.License.Lic

When you are trying to run FlexRule Runtime samples, make sure your licence file is copied to the following locations as well:

  1. [RuntimeInstalledPath]\Samples\Debug
  2. [RuntimeInstalledPath]\Samples\MVC Sales\FlexRule.Samples.Sales\UI.MVC\App_Data
  3. [RuntimeInstalledPath]\Samples\MVC Sales\FlexRule.Samples.Sales\UI.MVC\Bin

FlexRule Designer

The license 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:

[DesignerInstalledPath]\FlexRule Designer\Bin\FlexRule.Designer.License.Lic