CN103107895B - A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule - Google Patents

A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule Download PDF

Info

Publication number
CN103107895B
CN103107895B CN201310009560.9A CN201310009560A CN103107895B CN 103107895 B CN103107895 B CN 103107895B CN 201310009560 A CN201310009560 A CN 201310009560A CN 103107895 B CN103107895 B CN 103107895B
Authority
CN
China
Prior art keywords
regulation engine
rule
node
call charge
combined system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310009560.9A
Other languages
Chinese (zh)
Other versions
CN103107895A (en
Inventor
许兆然
陈义鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou City Biceng Technology Co., Ltd.
KUNSHAN ESEALSBB TECHNOLOGY CO., LTD.
Original Assignee
GUANGZHOU CITY BICENG TECHNOLOGY Co Ltd
KUNSHAN BAIRUN TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU CITY BICENG TECHNOLOGY Co Ltd, KUNSHAN BAIRUN TECHNOLOGY Co Ltd filed Critical GUANGZHOU CITY BICENG TECHNOLOGY Co Ltd
Priority to CN201310009560.9A priority Critical patent/CN103107895B/en
Publication of CN103107895A publication Critical patent/CN103107895A/en
Application granted granted Critical
Publication of CN103107895B publication Critical patent/CN103107895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule, disclosed regulation engine system comprises regulation management unit, charging project node administration unit, regular converter, regulation engine database, regulation engine. Call charge service regulation engine system disclosed by the invention and combined method thereof have realized operation flow and have separated with regular decoupling zero, user-friendly management, simultaneously small and exquisite, flexible, there is good autgmentability, alleviate difficulty and the operation of regulation management, can be widely used in charging, payment field.

Description

A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule
Technical field
The present invention relates to computer science software information technical field, relate in particular to one and apply based on Command Line ParsingThe call charge service regulation engine combined system of rule and realize the method for this combined system.
Background technology
Follow developing by leaps and bounds of Computer Network Informatization technology, in order to meet industry development, to promote operating efficiencyNeeds, computer science and technology has been widely used in social every field that constructing function is different, kindNumerous and diverse Enterprise Informatization system has moved at present in a large number for user provides business place on computer networkThe operation system of reason function, user can carry out multiple business operation in these systems, due in information systemLife cycle among, the business demand of enterprise inevitably can change, this just needs in time to softwareProduct carries out upgrade maintenance or secondary development. In order to address that need, business rule assembly, i.e. business ruleEngine arises at the historic moment, and regulation engine is developed by inference engine, is a kind of assembly being embedded in application program,Realize operational decision making has been separated from application code, and used predefined semantic module to write industryBusiness decision-making. Accept data input, explain business rule, and make operational decision making according to business rule. Business ruleEngine can be realized by reduction the complexity of the assembly of complicated business logic, reduce application program maintenance andAutgmentability cost, separates business decision person's business decision logic and the technology decision-making of application developer thereby have;Effectively improve the maintainability of the code of realizing complex logic; Between development period or after disposing, repair code defect;Deal with special status, client does not mention and service logic will be taken into account at the beginning; Meet tissue to agilityOr the multiple technologies advantage such as the use of iterative development process.
The above-mentioned many merits of rule-based assembly, the diversified regulation engine that has been born, as: IBM CorporationDrools, the Mandarax of ILOG, JBOSS, JLisa, OpenRules, JEOPS, InfoSapient,JRuleEngine, Roolie etc., the regulation engine of wherein mainly applying in this area is at present jboss-rule,The engine of namely explaining based on script, this Business Rule Engine has a technical defect that is difficult to overcome,If there is new business in operation system, developer need to write new business according to new service neededRule is also joined in Business Rule Engine, because jboss-rule is only a kind of script edit specification,Cannot be directly used in the expansion of Business Rule Engine rule, cause this regulation engine very flexible, a little less than autgmentability,Construction cycle is longer.
For the problems referred to above, there is some improvement, for example Chinese patent application CN201110091936 in this areaThe service dynamic composition method of disclosed rule-based engine, this technical scheme can be at new technological process development and maintenanceFlexibility and agility with old system business rules modification two aspects raising systems. Although above-mentioned patent is opened reallySend out safeguard brought convenient and quick, but for institute's foundation in its technical scheme " according to business rule and ruleCarry out the context data needing, infer the service processing strategy of this service " be limited to " reasoning ", because ofReasoning algorithm is depended in the control of the precision of this " reasoning ", or depends on certain several specific strategy. Based onThe present situation of computer realm is known at present, relies on the conclusion that algorithm infers in true environment, also to need to carry out completelyInspection and demonstration for a long time.
At present, the many new most framework of regulation engine that occurs is in the art comparatively huge and carry XML secretly,It is convenient and flexible that introducing XML has brought, but operating XML relatively easily makes mistakes, and strengthened formulation, disposed ruleDifficulty, as the regulation engine such as JLisa, JBossDrools; Some regulation engine, has used and " has deducedMethod ", used common multiple Design Mode simultaneously, asMVC, Visitor, Strategy, Facade, FactoryMethod, Observer, Iterator etc. design mould(Mandarax) etc., this has just strengthened exploitation or has safeguarded people for formula (InfoSapient), " backward chaining "Member's requirement and technology burden, increased technical complexity and development cost; At present business in using comparativelyThe InfoSapient regulation engine of increasing income, provides numerous interfaces widely, makes exploitation and uses technologyPersonnel require relatively high, are difficult for applying.
In sum, although existing general regulation engine assembly can effectively reduce exploitation, safeguard generationCode is measured, and ensures the efficiency of regular computing. But it is precipitous that these regulation engine assembly ubiquities learning curve,The drawback of performance optimization difficulty, this has just affected the application of regulation engine assembly at industrial circle.
In addition, above-mentioned regulation engine mostly has the generality in use, lacks one and is specifically designed to chargingThe regulation engine of business. The large-scale companies such as China Telecom, China Mobile, CHINAUNICOM are all to adopt independently to grindSend out charge system corresponding, do not possess the character general in call charge service field. And the net of main flow in the marketFar management system, is also the business application that is planted in network bar paying business, only supports Window system simultaneouslySystem, does not possess flexible, general attribute specification.
Summary of the invention
Based on the needs of prior art, the invention discloses a kind of call charge service based on Command Line Parsing application ruleRegulation engine combined system and realize the method for this combined system, is a kind of charging regulation engine of small and exquisite, light weight,Call without numerous and diverse api interface, do not rely on reasoning algorithm and draw service strategy, provide succinct rule to adjustWith, rewrite interface, both met routine use, provide comparatively light weight to expand flexibly simultaneously. Due to exploitation,What use, safeguard is simple and convenient, therefore requires relatively low for use, developer. Provide based on making by oneselfThe service dynamic composition method of justice regulation engine, realizes operation flow and separates with regular decoupling zero. In conjunction with social productionActual needs in life, can be widely used in charging, payment field.
For achieving the above object, the present invention is achieved through the following technical solutions:
A call charge service regulation engine combined system based on Command Line Parsing application rule, comprises regulation management listUnit, charging project node administration unit, regular converter, regulation engine database, regulation engine; Wherein instituteState charging project node administration unit for corresponding according to the self-defined newly-built charging item of operation flow and definitionToll amount; Described regulation management unit is for defining each charge node, simultaneously according to different operation flowsThe nodename that generates each charge node, carries out User-defined Node combination with this title; Described regular converter,The interim rules producing for the above-mentioned man-machine interaction of Preliminary Analysis, the rule that the regulation engine of generation standard can be resolved; Described regulation engine database, the context data producing when storing custom rule; Described ruleEngine, for resolution rules, returns to result of calculation.
The two the application of above-mentioned regulation management unit, charging project node administration unit has realized regulation management peopleDynamically real-time management maintenance regulation of member, that is to say and can carry out rule timely according to actual needsIncrease and decrease and amendment.
Wherein, described regular converter writes regulation engine database by business rule in the mode of JSON; InstituteThe regular data form of stating regulation engine parsing is the JSON form of standard.
Compare with other data format, JSON (JavaScriptObjectNotation) is a kind of light weightThe data interchange format of level, adopts the text formatting that is totally independent of language, has used simultaneously and has been similar to C languageThe custom (comprising C, C++, C#, Java, JavaScript, Perl, Python etc.) of family is a kind ofDesirable exchanges data language, is easy to people and reads and write, and is also easy to machine simultaneously and resolves and generate, at thisBright middle regulation engine adopts this kind of data format significantly to reduce development difficulty and maintenance cost.
Wherein, the node of described regulation management unit definition is multiple, and its concrete number is not restricted,Expanding node number as required in the time of concrete application and development.
Further, for the ease of the analytical algorithm to regulation engine modify, the improvement such as optimization, described ruleEngine has routine interface, for the rewriting of regulation engine analytical algorithm.
When described regulation engine is that while resolving above-mentioned JSON data format, above-mentioned routine interface is JavaRoutine interface.
Wherein, described context data has comprised all information there will be in rule parsing that relates to, comprise butBe not limited to the nodename, toll amount, rule name, principle combinations of definition and generate through regular converterWhole regular page info etc.
Accordingly, the invention also discloses for the above-mentioned call charge service rule based on Command Line Parsing application rule and drawThe combined method of holding up, comprises the steps:
1) according to the self-defined newly-built charging item of operation flow and define corresponding toll amount;
2) define each charge node according to different operation flows, dynamically generate the joint of each charge node simultaneouslyPoint title, and carry out self-defined combination with this title;
3) carry out Mapping and Converting according to the combination of User-defined Node name and regular Transformation Service;
4) operation flow to appointment by the rule application after conversion, manages maintenance.
As mentioned above, owing to having used regulation management unit, charging project node administration unit, capable of dynamic generatesCharge nodename, charged content, and business rule dynamically adds in Business Rule Engine database,Thereby dynamic generation and the maintenance of implementation rule, and log is consulted to manage.
Wherein, described business rule writes regulation engine in the mode of JSON, that is to say regulation engine parsingData format be the JSON form of standard.
By the way, the rule that the rule of man-machine interaction and regulation engine are resolved is to join by rule conversionBe tied, the rule that regulation engine is corresponding is transparent with respect to user.
Wherein, described charging item and toll amount are the relations of secondary linkage, select charging item automatically to addCarry the amount of money, can not revise, ensured the security of system.
Wherein, described regular transitional information includes but not limited to need the nodename of replacement and corresponding actual jointConversion between some key-value pair, arithmetic and/or the attached discount information between each node.
By above-mentioned technological improvement, system and method for the present invention provides simply friendly regulation engine operation sideFormula, is user-friendly to management, and this System and method for is small and exquisite, flexible, has good autgmentability; Adopt peopleMachine rules of interaction form and regulation engine are resolved the mode that form transforms mutually, have effectively alleviated the difficulty of regulation managementDegree and operating procedure.
Brief description of the drawings
Fig. 1 is system construction drawing of the present invention;
Fig. 2 a, 2b are procedure schematic diagram of the present invention, DP combination flow chart.
Detailed description of the invention
With reference to figure 1 and Fig. 2 a, system of the present invention, comprises regulation management unit, charging project node administrationUnit, regular converter, regulation engine database, regulation engine; Wherein charging project node administration unit is usedAccording to the self-defined newly-built charging item of operation flow and define corresponding toll amount; Regulation management unit is used forDefine each charge node according to different operation flows, generate the nodename of each charge node simultaneously, withThis title is carried out User-defined Node combination; Rule converter, what produce for the above-mentioned man-machine interaction of Preliminary Analysis facesTime rule, generate the rule that the regulation engine of standard can be resolved; Regulation engine database, makes by oneself for storageThe context data producing when justice rule; Regulation engine, for resolution rules, returns to result of calculation.
With reference to figure 2a, 2b, shown the concrete technical step in regular constructive process, wherein Fig. 2 a withFig. 1 correspondence, Fig. 2 b has shown the link of inspection rule legitimacy in rule creation, for illegalCharging item, the interlock of for example charging project and the charging amount of money is modified, and is verified as illegally and returns, and gets back toThe configuration of charging item creates link, readjusts.

Claims (5)

1. the call charge service regulation engine combined system based on Command Line Parsing application rule, is characterized in that comprisingRegulation management unit, charging project node administration unit, regular converter, regulation engine database, ruleEngine; Wherein said charging project node administration unit is used for according to the self-defined newly-built charge of operation flowProject and define corresponding toll amount; Described regulation management unit is for fixed according to different operation flowsJustice each charge node, generate simultaneously each charge node nodename, carry out self-defined with this titleNode combination; Described regular converter, the interim rules producing for Preliminary Analysis man-machine interaction, generatesThe rule that the regulation engine of standard can be resolved; Described regulation engine database, for storing self-defined ruleThe context data producing time; Described regulation engine, for resolution rules, returns to result of calculation; ItsIn, described regular converter writes regulation engine database by business rule in the mode of JSON;
The regular data form that described regulation engine is resolved is the JSON form of standard;
Described context data comprises nodename, toll amount, rule name, principle combinations and the warp of definitionThe whole regular page info that rule converter generates;
Described call charge service regulation engine combined system operates in the following manner:
1) according to the self-defined newly-built charging item of operation flow and define corresponding toll amount;
2) define each charge node according to different operation flows, dynamically generate the joint of each charge node simultaneouslyPoint title, and carry out self-defined combination with this title;
3) carry out Mapping and Converting according to the combination of User-defined Node name and regular Transformation Service;
4) operation flow to appointment by the rule application after conversion, manages maintenance.
2. call charge service regulation engine combined system according to claim 1, is characterized in that described rule pipeThe node of reason unit definition is multiple.
3. call charge service regulation engine combined system according to claim 1, is characterized in that described rule drawsHold up and there is routine interface, for the rewriting of regulation engine analytical algorithm.
4. call charge service regulation engine combined system according to claim 1, is characterized in that described chargeOrder and toll amount are the relations of secondary linkage, select charging item automatically to load the amount of money, can not revise.
5. call charge service regulation engine combined system according to claim 1, is characterized in that described rule turnsThe information of changing comprises conversion between nodename that needs replace and corresponding actual node key-value pair, respectively savesArithmetic between point and/or attached discount information.
CN201310009560.9A 2013-01-10 2013-01-10 A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule Active CN103107895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310009560.9A CN103107895B (en) 2013-01-10 2013-01-10 A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310009560.9A CN103107895B (en) 2013-01-10 2013-01-10 A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule

Publications (2)

Publication Number Publication Date
CN103107895A CN103107895A (en) 2013-05-15
CN103107895B true CN103107895B (en) 2016-05-18

Family

ID=48315479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310009560.9A Active CN103107895B (en) 2013-01-10 2013-01-10 A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule

Country Status (1)

Country Link
CN (1) CN103107895B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341804B (en) 2015-07-08 2020-11-20 中兴通讯股份有限公司 Control method for application characteristic rule and application characteristic server
WO2016177167A1 (en) * 2015-07-08 2016-11-10 中兴通讯股份有限公司 Control method for application feature rules and application feature server
CN106598830B (en) * 2015-10-16 2019-06-07 阿里巴巴集团控股有限公司 The page script adjustment method and system of mobile terminal
CN107451846A (en) * 2016-05-31 2017-12-08 北京京东尚科信息技术有限公司 The management method and managing device of business rule
CN106682978A (en) * 2016-12-30 2017-05-17 深圳南北互联网金融服务有限公司 Clearing and settling rule generating method and device
CN106992870A (en) * 2017-03-31 2017-07-28 苏州乐麟无线信息科技有限公司 Compatible charging method based on json
CN107220757B (en) * 2017-05-23 2020-07-07 上海最会保网络科技有限公司 System and method for rule configuration and analysis
CN108536437A (en) * 2018-03-30 2018-09-14 上海嘉银金融科技股份有限公司 A kind of generation method and device of business rule
CN110019651A (en) * 2019-03-01 2019-07-16 广州亚美信息科技有限公司 A kind of streaming regulation engine and business data processing method
CN110941420A (en) * 2019-11-22 2020-03-31 绿漫科技有限公司 Rule engine system and method based on Actor model
CN112464620A (en) * 2020-09-23 2021-03-09 航天信息股份有限公司企业服务分公司 Implementation method and implementation system of financial rule engine
CN114022962A (en) * 2021-10-28 2022-02-08 深圳市科漫达智能管理科技有限公司 JSON format-based parking lot charging standard generation method and related device
CN115296942A (en) * 2022-07-22 2022-11-04 中电信数智科技有限公司 Combined API (application program interface) counting charging device based on weighted response

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6138156A (en) * 1998-10-05 2000-10-24 International Business Machines Corporation Selecting and applying content-reducing filters based on dynamic environmental factors
CN101582776B (en) * 2008-05-15 2012-11-21 浙江大学 Service charging method and service charging system
CN101763261B (en) * 2009-12-28 2013-01-23 山东中创软件商用中间件股份有限公司 Method and system for extracting, converting and loading data

Also Published As

Publication number Publication date
CN103107895A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
CN103107895B (en) A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule
CN101697120B (en) Relational database based generation method of J2EE code
CN103383645B (en) Code generating method and system
US20120278788A1 (en) Methods for code generation from semantic models and rules
CN104360859A (en) Visual service development method and system
CN104615617A (en) Dispatch monitoring information processing system for substation equipment
Avazpour et al. Engineering complex data integration, harmonization and visualization systems
CN106407170A (en) Rapid generation method and system for data report
CN106164867A (en) The increment parallel processing of data
CN111127196A (en) Credit wind control characteristic variable management method and system
CN104216845A (en) Process-oriented complex product final assembly data information transmitting method
US20190347341A1 (en) Method and system for schema transformation
Le et al. Domain-driven design using meta-attributes: A DSL-based approach
CN103699746B (en) CADDS5 piping three-dimensional design method based on data base and system
CN102109990A (en) Intelligent display system and method for report
Nemuraite et al. Representation of business rules in UML&OCL models for developing information systems
Roth et al. Visualizing differences of enterprise architecture models
Patwari et al. M&C ML: A modeling language for monitoring and control systems
Singer Agent-based business process modeling and execution: Steps towards a compiler-virtual machine architecture
Aveiro et al. Universal enterprise adaptive object model
CN104699472A (en) Method for solving contradiction between frequent changes in business process and software maintenance by adopting rule engine
CN103902282A (en) Model transformation method from Web service combination to colored Petri network
O’Brien et al. Challenges, approaches and architecture for distributed process integration in heterogeneous environments
CN108121537A (en) A kind of software assembly line system and its production method
Arsovski et al. Advantages of using an ontological model of the state development funds

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215300 22nd Floor, Zhongliao Plaza, 169 Huaan Road, Huaqiao Town, Kunshan City, Suzhou City, Jiangsu Province

Co-patentee after: Guangzhou City Biceng Technology Co., Ltd.

Patentee after: KUNSHAN ESEALSBB TECHNOLOGY CO., LTD.

Address before: 215300 Zhaofeng Road, Huaqiao Town, Kunshan City, Suzhou City, Jiangsu Province

Co-patentee before: Guangzhou City Biceng Technology Co., Ltd.

Patentee before: Kunshan Bairun Technology Co., Ltd.