Implementation of dynamic management of business rules based on drools brms in intelligent transportation system

Source: Internet
Author: User

Introduction: This paper introduces a typical business scene in the intelligent transportation system, and shows how to implement the dynamic management of the business rules through Drools BRMS.

Introduction

The Business Rules Management System (BRMS) is widely used in telecommunications, banking and government industries to support the editing, management, and deployment of business rules to adapt to rapid business change. Drools is a Java based open source product that includes the business rule execution engine and the business Rule management system. This paper first introduces the basic concepts and architecture of the business rule engine and the business Rule Management system, then introduces a typical business scenario in an intelligent transportation system, and finally shows how to implement this business scenario by using Drools BRMS, and flexibly configure these business rules according to different business needs.

Introduction to Basic concepts

Brief introduction of business rules in intelligent transportation system

The basic business scenario of the road toll system in an intelligent transportation system is that a vehicle carrying a particular device (usually an electronic label device or a device with global positioning function) enters the charging area, and the signal detector in the toll area sends a scanning signal to detect and obtain information about the vehicle. For example, a signal detection system can capture and record data such as vehicle geometry, car weight, vehicle size, etc. For vehicles that do not have such a device, the system can capture information such as car models, license plates, etc. through camera recording. Then according to the different charging business rules, different charging standards are adopted for different vehicles.

At present, the main road pricing business rules are based on special road use charges, based on regional charges and distance/time charges.

Based on special road use charges: This charging model is usually directed at special roads, such as a highway. The business rules for this charge are simpler, and when a vehicle passes a single charge, a fee is charged. The toll-charging model based on special roads is also widely used in urban congestion charge. When a vehicle passes through a more congested road, it is charged accordingly.

Based on regional charges: This type of charging mode refers to the charging of a certain fee for the driving vehicle within a specified area. The need to record when and where the vehicle entered the designated area and when and where to leave, when the full vehicle access and departure information, will generate a billing.

Based on distance/time charges: This charging mode is usually used throughout the country's road network, can cover all types of vehicles, the charging business rules are based on the distance (time) of the vehicle travel for input. First of all in the vehicle installation of a special car device (currently using a lot of the global positioning function of the instrument), when the vehicle equipped with GPS equipment in the expressway, the toll system with the help of satellite signals and other positioning sensors to get the location of the vehicle, Through the satellite positioning system to determine the mileage of vehicles on the highway, and then the settlement, automatic statistical payment, and the data at a certain interval of time to the road toll center, by the toll center to the owner of the vehicle transport companies billing, to collect the mileage of road use costs.

Business Rules engine (rule Engine)

The business rules in the intelligent transport system mentioned above are real in business scenarios, and in order to implement these business rules, we can implement them in the same way that we use various programming languages and other business logic in our program code. However, due to the variability of business rules, it is easy to rewrite the program code, which will undoubtedly increase the cost of maintenance and can not quickly respond to changes in demand. The Business rules engine provides resolution execution for business rules. Reduces the complexity of implementing business logic and improves the maintainability and scalability of the application.

Business Rules Management System (BRMS)

The Business rule management system is an extension of the business rule engine, providing a set of management systems that contain the entire lifecycle of the business rules. Reduces the amount of business rule maintenance. Reduces complexity and facilitates users rather than technical experts to manage business rules. Provides the ability to modify the business rules dynamically, i.e., by changing the business rules file in the system, the application can react to the change of rules in time without reloading.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.