LogoLogo
API Documentation
Current Version
Current Version
  • DecisionRules Documentation
  • DecisionRules Academy
  • API
    • API Introduction
    • API Keys
      • Solver API Keys
      • Management API keys
      • BI API keys
    • Rule Solver API
    • Management API
      • Rule Migration Strategies
      • Deprecated Endpoints
    • Console Logs API
    • Business Intelligence API
      • Deprecated Endpoints
    • Datacenters & Locations
      • Global Cloud
      • Regional Cloud
    • Apache Kafka Solver API
    • Endpoint Settings
    • Archive
      • Rule Flow Solver API (DEPRECATED)
  • AI Assistant
    • About Assistant
  • RULES
    • Rules Introduction
    • Rule List
    • Rule Mode
    • Common Rule Features
      • Input & Output Model
        • Simple Editor
        • JSON Editor
      • Test Bench
      • Rule Alias
      • Rule State
      • Versioning
      • Rule Variables
      • Execution Strategy
      • Rule Dependencies
      • Rule Export & Import
        • Rule Export
        • Rule Import
        • Managing Decision Table in Excel/Google Sheets
        • Deprecated Formats: XLSX v.1 and CSV
      • Tags
      • Rule Comparison
        • Decision Table Comparison
        • Decision Tree Comparison
        • Scripting Rule Comparison
      • Rule Lock
      • Teamwork Indicator
      • Event Timeline
    • Data Types & Functions
      • Supported Data Types
      • Operators and Functions
        • Basic operators
        • Date operators
        • Functions
          • Logical Functions
          • Math Functions
          • Date and Time Functions
          • Text Functions
          • Data Functions
          • Array Functions
          • Integration functions
          • Functions and JSON
    • Decision Table
      • Table Designer
        • Table Operations
          • Filter Values
          • Valid Values
          • Sorting
      • Binding to Model
    • Decision Tree
      • Tree Designer
    • Workflow
      • Workflow Designer
      • Workflow Nodes Overview
      • Workflow Limits
    • Scripting Rule
      • Custom functions in Scripting Rules
      • Calling external API within ScriptingRules
      • Use Rule Variables in Scripting Rules
      • Call Embedded Rules in Scripting Rules
      • Tips
    • Rule Flow
      • Rule Flow Designer
      • Rule Flow Mapping
      • Rule States in Rule Flow
      • Warnings & Errors
      • Rule Flow Limits
  • SPACE
    • Space Introduction
    • Space Info
    • Dashboard
    • Access
    • API Keys
    • Audit Logs
  • Organization
    • Organization Introduction
    • Organization List
    • Members
    • Teams
    • Spaces
    • Space Roles
    • Policies
    • Statistics
    • Settings
  • Profile
    • Profile Introduction
    • General
    • Dashboard
    • Plans
    • Add-ons
    • Limits
      • Plan Limits Explained
    • Subscriptions
    • Invoices
  • Access
    • Sign Up & Login
    • Invitations & Permissions
    • Single Sign-On (SSO)
  • Business Intelligence
    • Audit Logs
    • Power BI Connectivity
      • Create a Power BI Report
      • Connect Power BI to Business Intelligence API
      • Connecting from Power BI (deprecated)
      • Connect DecisionRules to Power BI Using Our Custom Connector
  • OTHER DEPLOYMENT OPTIONS
    • Regional Cloud
      • Region Specific API URLs
    • Docker & On-Premise
      • Environment Variables
      • Redis Connection Modes
      • DecisionRules Application
        • Minimal Requirements
        • DecisionRules Server
        • DecisionRules Client
        • DecisionRules Business Intelligence
        • Networking Between Docker Containers
      • Setup Single Sign-On (SSO)
        • Set up Microsoft Entra ID SSO
        • Set up Google SSO
      • Docker Showcase App
        • Showcase
        • Showcase + Business Intelligence
      • AWS Setup
        • AWS ECS/Fargate
        • Cache - Amazon ElastiCache
      • Microsoft Azure Setup
        • Database - Azure CosmosDB
        • Cache - Azure Cache for Redis
        • Azure Container Apps
      • Azure Red Hat OpenShift
      • Google Kubernetes Engine (GKE)
      • Kubernetes Setup
        • Kubernetes Setup with Business Intelligence
      • Logging options
      • CD/CI Pipelines
        • Azure DevOps CICD Pipelines
        • Using Migration script (old way)
      • Offline License
  • SDK and Integrations
    • Languages / Frameworks
      • SQL Server
      • Oracle PL/SQL
      • PostgreSQL
      • JavaScript
      • Java Spring Example
      • PHP Library
      • Python Library
      • .NET Library
      • Google Tag Manager
    • Excel Add-in
  • Terms & Conditions
    • Terms and Conditions
    • Privacy Policy
    • Service Level Agreement
      • Community Support
      • Standard Cloud (SaaS)
      • Silver SLA
      • Gold SLA
      • Custom SLA
    • Sub-Processor List
  • Product Updates
    • Release Notes
      • Public Cloud
      • On-Premise / Private Cloud
    • Major Updates
      • Changes in Version 1.19.0 (10/2024)
      • Changes in Version 1.20.0 (4/2025)
    • Roadmap
Powered by GitBook
On this page
  • Overview
  • Configuration
  • Generating License Request File
  • Preflight Mode and License Request
  • Step 3: Send License Request File
  • Applying the Generated License
  • Example Environment Variable Configuration
  • Troubleshooting

Was this helpful?

  1. OTHER DEPLOYMENT OPTIONS
  2. Docker & On-Premise

Offline License

To enable offline licensing for your server, follow the steps outlined below. This documentation explains how to configure and manage offline licenses, including preflight mode and generating license

This functionality is available from application version 1.19.3

Overview

Offline licensing allows your server to operate without an internet connection. To configure the offline license, you need to set specific environment variables and follow a predefined process to generate and apply the license file.


Configuration

Generating License Request File

If you already have a functional DecisionRules instance running, you can skip Step 1 (Set Required Environment Variables) and Step 2 (Generate a License Request File).

You can generate the License Request File directly via a URL in your browser. Simply enter the following URL:

https://{API_URL}/offline-license/license-request

Where {API_URL} is domain of your running DecisionRules server instance.

For example:
https://api.decisionrules.io/offline-license/license-request

This will trigger the generation and download of the License Request File without requiring further configuration.

If you are setting up a new DecisionRules instance, follow the steps below.

Step 1: Set Required Environment Variables

  1. Enable Offline License Mode

    • Set the OFFLINE_LICENSE environment variable to true.

    OFFLINE_LICENSE=true
  2. Provide Your License Key

    • Set the LICENSE_KEY environment variable with the license key provided by DecisionRules.

    LICENSE_KEY=your_license_key_here
  3. Optional: License File

    • If you already have your Licensse file, set it to the env variable.

    LICENSE_FILE=your_license_file // as single line string
    LICENSE_FILE_PATH=your_license_file // as path to your license file

Preflight Mode and License Request

If the application starts in preflight mode, it means the LICENSE_FILE environment variable is either missing or points to an invalid license file. The specific reason for preflight mode can be found in the server application logs.

Step 2: Generate a License Request File

  1. Open client application and there should be License Request Page.

  2. Download the License Request File. This file will contain the necessary information for generating the offline license file.


Step 3: Send License Request File


Applying the Generated License

After receiving your license request, the DecisionRules team will generate the license file and send it back to you.

Step 4: Apply the License File

There are 2 options:

a) Set License file as string into environment variable.

  1. Set the LICENSE_FILE environment variable

LICENSE_FILE=eyJrZXkiOiJvbDFkYm4wc0dGdE5aNndram1pckI1Q2duM.....
  1. Restart your server to apply the license.

b) Set License file to your server and provide path

  1. Save the provided license file to an accessible location on your server.

  2. Set the LICENSE_FILE_PATH environment variable to point to the license file's location.

    LICENSE_FILE=/path/to/generated/license/file.lic
  3. Restart your server to apply the license.


Example Environment Variable Configuration

Below is an example .env file configuration for enabling offline licensing:

OFFLINE_LICENSE=true
LICENSE_KEY=abc123xyz789
LICENSE_FILE=eyJrZXkiOiJvbDFkYm4wc0dGdE5aNndram1pckI1Q2duM.....

Troubleshooting

  • Preflight Mode Activated: If the server starts in preflight mode, check the server application logs for detailed reasons, such as:

    • Missing LICENSE_FILE environment variable.

    • Invalid or corrupted license file.

    • License key mismatch.


Last updated 2 months ago

Was this helpful?

Send the downloaded license request file to . Ensure to include any additional context or requirements in the email.

Invalid License File: If the license file is rejected, contact for assistance.

By following these steps, you can successfully configure and manage offline licensing for your server. For additional support, contact our team at .

support@decisionrules.io
support@decisionrules.io
support@decisionrules.io