1. Home
  2. Sample Projects Based on Industry

Sample Projects Based on Industry

Print Friendly, PDF & Email

◷ Reading Time: 7 minutes

At the end of each sample, there is a link to download the complete project. Each project has a folder named sampleJSON which contains sample inputs.

Aviation

Flight Management

This tutorial will use the scenario of checking the eligibility of a pilot as a means of scheduling flight duties. There are rules and regulations defined by the aviation authority, such as the maximum flight period, the maximum number of night shifts that a pilot can work, etc. For example, the maximum duty period should be 12.5 hours. The process contains a set of important steps.

  1. Calculate the daily flight duty period
  2. Count the number of landings
  3. Calculate flight time
  4. Check the eligibility of pilot on duty

Banking and financial services

Loan Approval

Automate the workflow of the loan approval process

  1. Collect the applications
  2. Validate applications
  3. Check eligibility according to the bureau’s standards
  4. Determine loan application routing
  5. Team review if required
  6. Determine whether the loan is approved

Analysing Bank Details

The data flow and ETL (Extract, transform, load) process was automated using the IRD (Information Requirement Diagram). The example will get details of a list of bank accounts and determine/calculate the following facts.

  • Maximum balance
  • Minimum balance
  • Average of bank accounts
  • Summation of balances
  • Find the latest and oldest Bank accounts by Account opened date

Construction

Building Plan Assessment

The process of approving a building plan contains a set of step according to building type, building size, number of stories, etc. The example shows how to use FlexRule Decision tables to write rules to automate this process.

Education

Student pass-fail state

Using Natural Language, validate the input and finally decide the pass-fail state of a student. In the end, it will create the JavaScript code for the Natural Language code and can be tested in the JavaScript Testbed.

Student Record

Automate the process of reading data from an Excel file to get student records, calculate the total, average, and pass/fail state and write back to the file.

  1. Open the Excel sheet where you have saved student scores
  2. Calculate the Total
  3. Calculate the average
  4. Depending on the average determine pass/fail state
  5. Save the Excel sheet with a defined filename

Healthcare

Medical Diagnosis

This example takes a dataset of symptoms to train the model and finally, diagnose whether the patient has cold, flu or allergies. It uses the Naive Bayes algorithm for predictions.

  • Input data
  • Train
  • Predict

Insurance

Car Insurance

This is a sample for the car insurance industry that calculates the premium of a car based on Auto and Base premium components. The business rules are for risk classification and calculation of the premium of a car. This example requires an SQL database connection.

Liability Fee Calculation

Calculate a premium for a given liability amount based on these rules:

  • Up to and including $50 000 –> fixed amount of $500.00 (Base premium)
  • $50 001 to $100 000 –> Add $40.00 for each $10 000 increment
  • $100 001 to $200 000 –> Add $30.00 for each $10 000 increment
  • $200 001 to $300 000 –> Add $20.00 for each $10 000 increment
  • $300 001 to $1 000 000 –> Add $10.00 for each $10 000 increment
  • $1 000 001 to $3 000 000 –> Add $7.00 for each $10 000 increment
  • $3 000 001 to $5 000 000 –> Add $10.00 for each $10 000 increment

Manufacturing

Delivery Cost Calculator

Create a simple Decision Table that calculates delivery costs based on the total weight of a parcel. In the post office, this is usually based on a couple of conditions and business rules, but for the sake of this tutorial, let’s make it simple, as shown in the business rules below:

  • If is Package between 0 and 22 kg then the delivery cost is 30$
  • If is Package between 22 and 50 kg then the delivery cost is 33$
  • If is Package between 50 and 110 kg then the delivery cost is 120$
  • If is Package is heavier than 110 kg then the delivery cost is 200$

Supplier Assessment

Check the eligibility of a supplier. The supplier assessment will perform both a qualitative and quantitative evaluation and help to get the final decision. It will:

  1. Check the business registration number validity
  2. Check online whether the company is registered in the business registry
  3. Give a score depending on different criteria and calculate the final score
  4. Decide whether the supplier is eligible

Recruitment

Reading applicants’ details from an email account

Automate the process of reading emails of a recruitment email account to download applications and candidates’ details.

  1. Input the email address, and password of the recruitment email account and the job position that needs to be filtered.
  2. The process will read emails and download applications.
  3. Store them in separate folders according to the email address and date

Filtering Résumés

Automate the process of reading résumés to check whether the required skills are presented.

  1. Load the résumé (PDF file)
  2. Search for each keyword
  3. Count the matching keywords
  4. Calculate the matching keyword percentage

Security

Firearm License Eligibility

The process of determining the eligibility of providing firearm licenses contain a set of serious rules that require 100% accuracy as it is related to security. The example will show how FlexRule can be used to automate this process.

  1. Read data from the previous applicant list
  2. Check whether the applicant is already applied
  3. For previous applicants, get the previous score
  4. For new applicants, calculate the score
  5. Determine eligibility

Sports

Golf Weather Forecast

This example takes a dataset of weather details to train the model and finally, predicts the possibility of playing golf. It uses the C45 algorithm for predictions. It will:

  • Input data
  • Train
  • Predict

Common Samples

Address Book Validation

Defining rules to validate the names and addresses of an address book. Natural Language was used to write business rules.

Robotics Samples

Robot to do a Google search. It will search for a value in Google and filter the search results to get the list of links on the first page.

  1. Open a web browser (eg: Chrome, Firefox)
  2. Navigate to ‘www.google.com’
  3. Type ‘Flexrule’ in the search bar
  4. Press ‘Enter’ key- Copy each link one by one
  5. Close the web browser

Write in MS Paint

Robot to type values in MS Paint and save the image file.

  1. Open MS Paint
  2. Click on the Text icon
  3. Click on the canvas where you want to type
  4. Type the text
  5. Save the file with a given name
Updated on July 23, 2019

Was this article helpful?