◷ 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.
- Directly from the Designer
- 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
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:
- Input from operator/user about their cat information
- Input from a database for a list of high-risk cars
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.
Make sure you have FlexRule Server installed and configured.
Run FlexRule Server
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
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
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.