Upload a Package

◷ Reading Time: 5 minutes

In this tutorial, we are going to add a new package to your FlexRule Server. We will upload the sample decision package and enable the status of the uploaded package.

A package can be uploaded in two ways.

  1. Directly from the Designer
  2. Upload a package file (.frdp)

Upload a package from the Designer

Uploading a package from the designer is explained under ‘Publish your project‘.

Upload a package file

Decision Scenario

This tutorial is based on one of our default sample projects, Car-Insurance-Sample.

This is a car insurance premium calculator based on two inputs:

  1. Input from operator/user about their cat information
  2. Input from a database for a list of high-risk cars


Database preparation

Follow the instruction at Car-Insurance-Sample and prepare your database, tables, and sample records.

Download Decision Module Package

Download the decision package using the attachment (car-insurance-sample-package.zip) at the end of this page.

FlexRule Server

Make sure you have FlexRule Server installed and configured.

Run FlexRule Server

Run your FlexRule Server as in the console mode and open the FlexRule Workbench application in your browser.

Get It Started

Login to the Workbench as Admin

Using the admin user account and the password you had set during configuration log in to Workbench. When you are logged in you will see the following page

Upload Package

Then from the left side navigation menu, select Execution Server and then choose Packages.

Click on New Package.

Download and Unzip the sample decision package file (car-insurance-sample-package-v9.zip), and you will find a file called car-insurance-sample-package.frdp.

In the Workbench click the “Browse” button, select the .frdp file,

Press the “Save” button.

When this is done, you will be redirected to the packages list screen below.

Congratulation! your package has been successfully uploaded and registered in FlexRule Server.

Provide Package Authorization

After adding the package you need to allow the user to access the package.

Go to Details of the current user (Admin in this case)

Administration --> Accounts --> Users

Go to the Packages tab, and tick the box.

Click on Update.

You will see the following notification.

Follow the same steps to provide the ownership

Enabling Package

As you can see in the package list (Execution Server --> Packages), the status of the newly uploaded package is “off” 

You can also toggle between on and off using the status button or select the action and choose “Start” like below

Now if you have a look at your package list, the status has changed to “on” 

 and you can see the following notification message

Now the package is enabled to be used.

Updated on May 18, 2022

Article Attachments

Was this article helpful?

Related Articles