◷ Reading Time: 4 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 the 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 workbench as Admin
Using the admin user account and the password you had set during configuration login to Workbench. When you are logged in you will see the following page
Then from the left side navigation menu, select Create New and then choose Package
Download and Unzip the sample decision package file, and you will find a file called car-insurance-sample-package.frdp.
In the Workbench click “Browse” button, select the .frdp file and press “Publish” button
When this is done, you will be redirected to packages list screen bellow:
Congratulation! your package has been successfully uploaded and registered in FlexRule Server.
Provide package authorisation
After adding the package you need to allow the user to access the package. For that, go to Details of the current user (Admin in this case)
Administration --> Accounts --> Users
Tick the box and save it.
You will see the following notification.
As you can see in the package list (
Execution Server --> Packages), the status of the newly uploaded package is “off”
You can toggle between on and off using the status button or select the action and choose “Start” like bellow:
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.