CN108595276A - Processing method, system, computer equipment and the storage medium of service logic - Google Patents

Processing method, system, computer equipment and the storage medium of service logic Download PDF

Info

Publication number
CN108595276A
CN108595276A CN201810221790.4A CN201810221790A CN108595276A CN 108595276 A CN108595276 A CN 108595276A CN 201810221790 A CN201810221790 A CN 201810221790A CN 108595276 A CN108595276 A CN 108595276A
Authority
CN
China
Prior art keywords
clearance
session
rule
interface
result
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.)
Pending
Application number
CN201810221790.4A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810221790.4A priority Critical patent/CN108595276A/en
Priority to PCT/CN2018/104728 priority patent/WO2019179067A1/en
Publication of CN108595276A publication Critical patent/CN108595276A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/16Real estate

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Development Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the processing method of service logic, system, computer equipment and storage medium, the method includes:Create rule script database and session;House prosperity transaction order is imported, indent queue is generated, the regulation engine continuous service calls the session realizing mapping and the clearance of the order data in indent queue, checking and curing clearance result in the session.Advantageous effects:The service logic in house prosperity transaction system is handled using the syntactic structure in regulation engine, reduces and uses other service logics;Using the superpower logic processing capability of regulation engine, all kinds of service logics are flexibly coped with, meanwhile, the change of service logic is realized by changing corresponding rule script.

Description

Processing method, system, computer equipment and the storage medium of service logic
Technical field
The present invention relates to computer communication fields, more particularly to the processing method, system, computer equipment of service logic And storage medium.
Background technology
Service logic is logic of the software in some business scope, is a high-level concept.General business logic is embedding Be sleeved on everywhere in system in code has the high degree of coupling, non-reusability and frequent mobility with other codes, drags down Other codes automatically generate efficiency.And current operation system mostly uses " hard coded " and MDA tools, existing MDA tools The mode of IBM Rational, open Architecture Ware (oAW), and these modes substantially supporting frame can be used Code automatically generates, and cannot support automatically generating for service logic completely, and the specific implementation of service logic then needs craft It completes.Meanwhile hard coded is to act on behalf of variant variables using fixed value one by one, realizes code building.Existing " hard coded " and For MDA tools there are still many drawbacks in the business logic processing of actual house prosperity transaction system, drawback is specific as follows:
1, current house prosperity transaction system uses " hard coded " or MDA tool modes, causes house prosperity transaction system flow numerous It is more, it is related to that personnel are wide, the required approval process period is long;
2, the most service logic of current house prosperity transaction system is complicated and is related to the calculating of multinomial formula, is handling such industry It mostly uses when logic of being engaged in and directly service logic or multinomial formula is written in code, but because being carried out by the way of " hard coded " The processing of service logic inevitably encounters multilayer and judges sentence or loop nesting, causes later maintenance service logic Cost is larger;In addition, when business demand amount increases, code causes larger risk once variation;
When 3, handling the service logic in house prosperity transaction system using " hard coded ", it is only applicable to handle simple business and patrols Volume, when the service logic for encountering complexity needs processing, then needs to use the progress of the sentences such as if nested, nesting of statements is caused to increase It is more, and after if nesting of statements completion, cause the modification of if sentences difficult.
Therefore, according to case above, it is badly in need of a kind of processing method of service logic, system, computer equipment and storage and is situated between Matter.
Invention content
Based on this, it is necessary to use " hard coded " or MDA tool modes for current house prosperity transaction system, cause house property A series of problems, such as transaction flow is complicated, and rule statements nesting is various, modification is difficult, provides the processing method of service logic, is System, computer equipment and storage medium.
A kind of processing method of service logic, the processing method of the service logic are as follows:
S1:Rule script database is created, the establishment of the rule script database is to read rule using regulation engine Script file, and the rule script file of reading is inserted into the rule script database;
S2:Create session, the session for reading, resolution rules script file, and make the regular foot This document terminate-and-stay-resident works;
S3:House prosperity transaction order is imported, the order data in house prosperity transaction order is arranged, generates indent queue;
S4:It serves in the session, obtains the order data in the indent queue, carried out according to mapping ruler Mapping generates mapping result;
S5:Mapping result is obtained, is cleared according to clearance rule, clearance result is generated;
S6:Clearance is obtained as a result, checking and curing clearance result.
In one embodiment, the step S1 includes:
S101:Memory is set in local computing file, and the memory stores lattice for storing with certain data The rule script file of formula storage;
S102:A selected house prosperity transaction system, setting reading interface, passes through the reading in the house prosperity transaction system The rule script file being stored in the memory is read in interface using regulation engine with parameter mode;
S103:The rule script file of reading is inserted into the rule script database, to complete the rule The establishment of script database.
In one embodiment, the step S2 includes:
S201:House prosperity transaction system creates a session control object to standard session manager request;
S202:The standard session manager will create a standard session object, and be stored in local session control In object set;Meanwhile the session id of newly-built standard session object and relevant session key value are sent to backup race pipe Manage device;
S203:Backup race manager can create new session according to session id and corresponding event.
In one embodiment, the step S3 includes:
S301:Order entry interface is set on house prosperity transaction system interface, by the order entry interface, using certainly House prosperity transaction order in dynamic or manual mode input line or under line;
S302:It is equipped with order database and perform script in the house prosperity transaction system, calls the perform script, institute It states generation indent queue after the order data in house prosperity transaction order is arranged according to an executing rule and is stored in the order In database.
In one embodiment, the step S4 includes:
S401:It is arranged at mapping ruler interface and reads interface, call the reading interface, reads the order in indent queue The order data is converted to the condition of mapping ruler by data;
S402:Regulation engine continuous service is in the session, using mapping ruler, by the condition of mapping ruler with Mapping result one-to-one relationship obtains mapping result.
In one embodiment, the step S5 includes:
S501:In the regular interface setting clearance interface of clearance, the clearance interface is corresponded with clearance rule, utilizes institute Clearance interface is stated, mapping result is imported;
S502:Regulation engine continuous service is completed using clearance rule to the clear of mapping result with the session It calculates, obtains clearance result.
In one embodiment, the step S6 includes:
S601:Interface is read in setting on review interface, and clearance is read as a result, in the review by the reading interface Setting continues switch and Returning switch on interface, and the switch that continues is connected with solidification interface, the Returning switch and mapping Regular interface is connected;Clearance is calculated using manual type as a result, when clearance result review is without mistaking, then chooses and continue out It closes, into solidification interface;When clearance result review is wrong, then Returning switch is chosen, S4 is back to, is counted again It calculates;
S602:Carry out traffic sign placement solidification to checking errorless house prosperity transaction order, by be arranged status indication with it is described It checks errorless house prosperity transaction order to be corresponded, be locked to identify the house prosperity transaction order.
Based on the same technical idea, the present invention also provides a kind of processing system of service logic, the service logic Processing system include create rule script Database Unit, create session units, generate indent queue unit, map unit, Clear unit and review solidified cell;
The establishment rule script Database Unit, for creating rule script database, the rule script database Establishment be to read rule script file using regulation engine, and the rule script file of reading is inserted into the rule Script database;
The establishment session units, for creating session, the session for reading, resolution rules script File, and make the rule script file terminate-and-stay-resident work;
The generation indent queue unit, for importing house prosperity transaction order, by the order data in house prosperity transaction order It is arranged, generates indent queue;
The map unit obtains the order data in the indent queue, root for serving in the session It is mapped according to mapping ruler, generates mapping result;
The clearance unit is cleared for obtaining mapping result according to clearance rule, and clearance result is generated;
The review solidified cell, for obtaining clearance as a result, checking and curing clearance result.
Based on the same technical idea, described the present invention also provides a kind of computer equipment, including memory and processor Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor so that the place The step of reason device executes the processing method of above-mentioned service logic.
Based on the same technical idea, the present invention also provides a kind of computer readable storage mediums, described computer-readable Computer-readable instruction is stored on storage medium to be made when the computer-readable instruction is executed by one or more processors Obtain the step of one or more processors execute the processing method such as above-mentioned service logic.
Processing method, system, computer equipment and the storage medium of above-mentioned service logic, by local computing file Interior setting memory is used for storage rule script file, and setting reading interface, reads described in being stored in house prosperity transaction system Rule script file in memory reads rule script file with parameter mode using regulation engine, and is inserted into rule Then in script database, to complete the establishment of the rule script database;Session is created, the session is for reading It takes, resolution rules script file, and makes the rule script file terminate-and-stay-resident work;It is set on house prosperity transaction system interface Order entry interface is set, house prosperity transaction order is inputted using the interface, order database is equipped in the house prosperity transaction system And perform script, call the perform script, the order data in the house prosperity transaction order to be arranged according to an executing rule Indent queue is generated after row to be stored in the order database;Regulation engine continuous service is in the session, using reflecting Rule is penetrated, by the condition of mapping ruler and mapping result one-to-one relationship, obtains mapping result;Utilize clearance rule completion pair The clearance of mapping result obtains clearance result;The review to house prosperity transaction order is completed on review interface, and errorless to checking House prosperity transaction order cured.Compared with prior art, the advantageous effects of the technical program are, are drawn using rule The syntactic structure held up handles the service logic in house prosperity transaction system, reduces and uses other service logics;Drawn using rule The superpower logic processing capability held up flexibly copes with all kinds of service logics, meanwhile, realize business by changing corresponding rule script The change of logic.
Description of the drawings
Fig. 1 is a kind of flow chart of the processing method of service logic in one embodiment of the invention;
Fig. 2 is the flow chart that rule script database is created in one embodiment of the invention;
Fig. 3 is the flow chart that session is created in one embodiment of the invention;
Fig. 4 is the flow chart that indent queue is generated in one embodiment of the invention;
Fig. 5 is the flow chart that order data maps in one embodiment of the invention;
Fig. 6 is the flow chart that mapping result is cleared in one embodiment of the invention;
Fig. 7 is the flow chart of solidification review order in one embodiment of the invention;
Fig. 8 is a kind of processing system schematic diagram of service logic in one embodiment of the invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of processing method of service logic, the processing side of the service logic Method may include steps of:
S1:Rule script database is created, the establishment of the rule script database is to read rule using regulation engine Script file, and the rule script file of reading is inserted into the rule script database;
Specially:By the way that memory is arranged in local computing file, it is used for storage rule script file, is handed in house property Interface is read in setting in easy system, the rule script file being stored in the memory is read, using regulation engine with parameter Mode reads rule script file, and is inserted into rule script database, to complete the rule script database It creates;
S2:Create session, the session for reading, resolution rules script file, and make the regular foot This document terminate-and-stay-resident works;
Specially:The session includes stateful session and stateless session, described stateful Session can be with memory-resident, and allows iteration to update over time, for system monitoring, the processing of logic clearance etc. Scene;The stateless session is for handling some simple scenes, such as verification, data calculating etc.;
S3:House prosperity transaction order is imported, the order data in house prosperity transaction order is arranged, generates indent queue;
Specially:Order entry interface is set on house prosperity transaction system interface, is ordered using interface input house prosperity transaction It is single, it is equipped with order database and perform script in the house prosperity transaction system, calls the perform script, the house prosperity transaction Order data in order generates indent queue after being arranged according to an executing rule and is stored in the order database;
S4:It serves in the session, obtains the order data in the indent queue, carried out according to mapping ruler Mapping generates mapping result;
Specially:Regulation engine continuous service is in the session, using mapping ruler, by the condition of mapping ruler With mapping result one-to-one relationship, mapping result is obtained;
S5:Mapping result is obtained, is cleared according to clearance rule, clearance result is generated;
Specially:The clearance to mapping result is completed using clearance rule, generates clearance result;
S6:Clearance is obtained as a result, checking and curing clearance result;
Specially:The review to house prosperity transaction order is completed on review interface, and is ordered to checking errorless house prosperity transaction Singly cured.
Fig. 2 is the flow chart that rule script database is created in one embodiment of the invention, as shown in Fig. 2, in step S1 In, by the way that memory is arranged in local computing file, it is used for storage rule script file, is arranged in house prosperity transaction system Interface is read, the rule script file being stored in the memory is read, rule is read with parameter mode using regulation engine Script file, and be inserted into rule script database, to complete the establishment of the rule script database, the present embodiment In, step S1 may comprise steps of:
Step S101:Memory is set, specially:Memory is set in local computing file, and the memory is used In the rule script file that storage is stored with preset data storage format;The memory in regulation engine using providing Resource Factory classes are set up to complete it;The rule script file selects the side any one of drl, xls and bpmn Formula is stored;In the drools rule scripts used, selection is stored in the form of drl rule files.
Step S102:Rule script file is read, specially:A selected house prosperity transaction system, in the house prosperity transaction system Interface is read in setting on system, and by the reading interface, the memory is stored in parameter mode reading using regulation engine In rule script file;In the reading interface, the character stream reads the mode of rule script file, mainly utilizes Reader classes complete the input to rule script file, using writer classes complete the output to rule script;
Step S103:Rule script database is created, specially:The rule script file of reading is inserted into described Rule script database, to complete the establishment of the rule script database;The rule script database mainly utilizes institute The Knowledge Builder classes in regulation engine are stated to complete.The rule script of reading is marked as Kbuilder, profit With the add methods in Knowledge Builder, markd rule script will be set and be inserted into add in a manner of parameter In Knowledge Packages, rule script is inserted by cycle with parameter mode, to complete to rule script database Establishment, meanwhile, one return value is set to storing to the rule script in the rule script database, the return value is denoted as package。
Fig. 3 is the flow chart that session is created in one embodiment of the invention, as shown in figure 3, in step s 2, creating Session, the session for read, resolution rules script file, and make the rule script file terminate-and-stay-resident work Make;The session includes stateful session and stateless session, and the stateful session can be normal In memory, and iteration is allowed to update over time, for scenes such as system monitoring, the processing of logic clearance;It is described ill-mannered The session of state is for handling some simple scenes, such as verification, data calculating etc., and in the present embodiment, step S2 can be wrapped Include following steps:
Step S201:Request creates session control object, specially:House prosperity transaction system can be asked to standard session manager It looks for novelty and builds a session control object;
Step S202:Newly-built standard session object, specially:The standard session manager will create a standard meeting Object is talked about, and is stored in local session control object set;Meanwhile by the session id and correlation of newly-built standard session object Session key value be sent to backup race manager;
Step S203:New session is created, specially:Backup race manager can be according to session id and corresponding Event creates new session.
Fig. 4 is the flow chart that indent queue is generated in one embodiment of the invention, as shown in figure 4, in step s3, importing House prosperity transaction order generates indent queue;Order entry interface is set on house prosperity transaction system interface, is inputted using the interface House prosperity transaction order calls the insert methods in session to put it into the session, realizes that house prosperity transaction is ordered The insertion of forms data is to generate indent queue, and in the present embodiment, step S3 may include step in detail below:
Step S301:House prosperity transaction order is inputted, specially:Order is set on house prosperity transaction system interface and inputs boundary Face, by the order entry interface, using the house prosperity transaction order in automatic or manual mode input line or under line;It is described House property trade order refers to the order of each shops under line;House property trade order refers to directly in house prosperity transaction website on the line The order of upper generation;House property trade order all needs to be input in the house prosperity transaction system on the line or under line, order The mode for automatically entering or being manually entered can be used in input mode;
Step S302:Indent queue is generated, specially:Order database and execution are equipped in the house prosperity transaction system Script, it is raw after calling the perform script, the order data in the house prosperity transaction order to be arranged according to an executing rule It is stored in the order database at indent queue.The executing rule includes timing executing rule, batch executing rule etc.; The timing executing rule is the time for setting executing rule in the house prosperity transaction system and starting to execute;The batch is held Line discipline refer to according to it is a certain number of by order data batch arranged after generate indent queue.
For example, the input of house prosperity transaction order is completed using timing executing rule, for example, daily 12 points, cycle Indent queue is generated to be stored in the order database after executing house prosperity transaction order.It is completed using batch executing rule The input of house prosperity transaction order, for example, generating order team after executing house prosperity transaction order according to 200 cycles for a batch Row are to be stored in the order database.
Fig. 5 is the flow chart that order data maps in one embodiment of the invention, as shown in figure 5, in step s 4, rule Engine continuous service, using mapping ruler, the condition of mapping ruler and mapping result is corresponded and closed in the session System obtains mapping result, and in the present embodiment, step S4 may include step in detail below:
Step S401:Order data is read, specially:It is arranged at mapping ruler interface and reads interface, calls the reading Interface reads the order data in indent queue, the order data is converted to the condition of mapping ruler;The mapping ruler The data that corresponding mapping ruler condition should be inserted are set to correspond to house prosperity transaction order data using the reading interface It is placed into the frame that the mapping ruler condition is divided into.
Step S402:Mapping result is obtained using mapping ruler, specially:Regulation engine continuous service is in described In session, the condition of mapping ruler and mapping result one-to-one relationship are obtained into mapping result using mapping ruler.Institute It states mapping ruler and when-then-end in drools regulation engines may be used, using the rule statements of when-then-end To obtain mapping result, wherein the condition of the mapping ruler is exactly when, and mapping result part is then.
For example, one as shown in table 1 below specific mapping ruler table;In certain house prosperity transaction system, mapping rule Then in table, it is indicated when bank is entitled " safety bank ", and address is " Shanghai City ", corresponding that the paying party will be arranged Entitled " Shanghai branch of limited liability company of safety bank ".And this " condition-result ", it can be used in drools regulation engines When-then-end indicate, wherein the condition part is when, and as a result part is then.
Bank Name City Paying party title
Safety bank Shanghai Shanghai branch of limited liability company of safety bank
Table 1
Fig. 6 is the flow chart that mapping result is cleared in one embodiment of the invention, as shown in fig. 6, in step s 5, utilizing Clearance rule completes the clearance to mapping result, obtains clearance as a result, in the present embodiment, step S5 may comprise steps of:
Step S501:Mapping result is imported, specially:In the regular interface setting clearance interface of clearance, the clearance interface It is corresponded with clearance rule, using the clearance interface, imports mapping result;The clearance rule is drawn using drools rules While-do-else rules in holding up, what while was indicated is the condition of clearance rule, and two kinds of differences are shown in do and else Clearance result;
Step S502:Using clearance Rule clearance as a result, being specially:Regulation engine continuous service is in described In session, the clearance to mapping result is completed using clearance rule, obtains clearance result.
For example, as shown in table 2 below, when the date of making loans being arranged under condition entry, type of service, commission label, put When the money time limit, corresponding set makes loans the time to be used in combination before 2017-5-31>2017-5-31 is marked, type of making loans mark It is denoted as sale or (sale+operation), commission label is new, and term of loan is set as 6 months or 12 months, according to upper, but it is clear Calculation condition is set as>2017-5-31and (sale or (sale+operation)) and new (6or12), according to clearance rule Condition, you can obtain following clearance result:Income-sale-unit price is 2.81%;Income-income from sales-amount of money is that $ makes loans gold Volume $ * 2.81%;Expenditure-intermediary's commission-unit price is 1.80%;Expenditure-intermediary's commission-amount of money is that $ makes loans amount of money $ * 1.80%.
Table 2
If can not obtain above-mentioned clearance result using the clearance rule, the state of " NO " can be shown as by clearing result, As shown in table 3 below.
Table 3
Fig. 7 is the flow chart of solidification review order in one embodiment of the invention, as shown in fig. 7, in step s 6, multiple The review to house prosperity transaction order is completed on core interface, and is cured to checking errorless house prosperity transaction order, the present embodiment In, step S6 may include step in detail below:
Step S601:Review clearance is as a result, be specially:Interface is read in setting on review interface, is connect by the reading Mouthful read clearance as a result, on the review interface setting continues switch and Returning switch, it is described continue switch and solidification interface It is connected, the Returning switch is connected with mapping ruler interface;Clearance is calculated using manual type as a result, when the clearance is tied Fruit review is then chosen without mistaking and continues to switch, into solidification interface;When clearance result review is wrong, then return is chosen Switch, is back to S4, is recalculated;
Step S602:Cure house prosperity transaction order, specially:Traffic sign placement is carried out to checking errorless house prosperity transaction order Solidification is corresponded by the way that the status indication house prosperity transaction order errorless with the review is arranged, to identify the house property Trade order has been locked.
Based on the same technical idea, the present invention also provides a kind of processing systems of service logic, as shown in figure 8, described The processing system of service logic includes creating rule script Database Unit, creating session units, generate indent queue list Member, map unit, clearance unit and review solidified cell;
The establishment rule script Database Unit, for creating rule script database, the rule script database Establishment be to read rule script file using regulation engine, and the rule script file of reading is inserted into the rule Script database;By the way that memory is arranged in local computing file, it is used for storage rule script file, in house prosperity transaction system Interface is read in setting on system, the rule script file being stored in the memory is read, using regulation engine with parameter mode Rule script file is read, and is inserted into rule script database, to complete the establishment of the rule script database;
The establishment session units, for creating session, the session for reading, resolution rules script File, and make the rule script file terminate-and-stay-resident work;The session includes stateful session and ill-mannered The session of state, the stateful session can be with memory-residents, and allow iteration to update over time, are used for The scenes such as system monitoring, the processing of logic clearance;The stateless session is used to handle some simple scenes, such as tests Card, data calculating etc.;
The generation indent queue unit, for importing house prosperity transaction order, by the order data in house prosperity transaction order It is arranged, generates indent queue;Order entry interface is set on house prosperity transaction system interface, house property is inputted using the interface Trade order is equipped with order database and perform script in the house prosperity transaction system, calls the perform script, the room Order data in production trade order generates indent queue after being arranged according to an executing rule and is stored in the order data In library;
The map unit obtains the order data in the indent queue, root for serving in the session It is mapped according to mapping ruler, generates mapping result;Regulation engine continuous service is in the session, using mapping ruler, By the condition of mapping ruler and mapping result one-to-one relationship, mapping result is obtained;
The clearance unit is cleared for obtaining mapping result according to clearance rule, and clearance result is generated;It utilizes Clearance rule completes the clearance to mapping result, generates clearance result;
The review solidified cell, for obtaining clearance as a result, checking and curing clearance result;It is completed on review interface Review to house prosperity transaction order, and cure to checking errorless house prosperity transaction order.
Based on the same technical idea, the present invention also provides a kind of computer equipment, including memory and processor, institutes It states and is stored with computer-readable instruction in memory, when the computer-readable instruction is executed by the processor so that described Processor executes the processing method of the service logic.The processing method specific steps of the service logic include:By at this Memory is set in ground computer file, is used for storage rule script file, setting reading interface, reads in house prosperity transaction system The rule script file being stored in the memory is taken, rule script file is read with parameter mode using regulation engine, and It is inserted into rule script database, to complete the establishment of the rule script database;Session is created, it is described Session for reading, resolution rules script file, and make rule script file terminate-and-stay-resident work;It is handed in house property Order entry interface is set on easy system interface, house prosperity transaction order is inputted using the interface, in the house prosperity transaction system Equipped with order database and perform script, the perform script is called, the order data in the house prosperity transaction order is according to one Executing rule generates indent queue after being arranged and is stored in the order database;Regulation engine continuous service is in described In session, the condition of mapping ruler and mapping result one-to-one relationship are obtained into mapping result using mapping ruler;Profit The clearance to mapping result is completed with clearance rule, obtains clearance result;It is completed to house prosperity transaction order on review interface Review, and cure to checking errorless house prosperity transaction order.
Based on the same technical idea, the present invention also provides a kind of storage medium being stored with computer-readable instruction, institutes When stating computer-readable instruction and being executed by one or more processors so that one or more processors execute the place of service logic The step of reason method.The specific steps of the processing method of the service logic include:By being arranged in local computing file Memory is used for storage rule script file, and setting reading interface, reads and be stored in the memory in house prosperity transaction system In rule script file, rule script file is read with parameter mode using regulation engine, and is inserted into rule script In database, to complete the establishment of the rule script database;Session is created, the session is for reading, parsing Rule script file, and make the rule script file terminate-and-stay-resident work;Order is set on house prosperity transaction system interface Input interface inputs house prosperity transaction order using the interface, order database and execution is equipped in the house prosperity transaction system Script, it is raw after calling the perform script, the order data in the house prosperity transaction order to be arranged according to an executing rule It is stored in the order database at indent queue;Regulation engine continuous service is advised in the session using mapping Then, by the condition of mapping ruler and mapping result one-to-one relationship, mapping result is obtained;It is completed to mapping using clearance rule As a result clearance obtains clearance result;The review to house prosperity transaction order is completed on review interface, and to checking errorless room Production trade order is cured.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between In matter, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be The non-volatile memory mediums such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random storage note Recall body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of processing method of service logic, which is characterized in that the processing method of the service logic includes:
S1:Rule script database is created, the establishment of the rule script database is to read rule script using regulation engine File, and the rule script file of reading is inserted into the rule script database;
S2:Create session, the session for reading, resolution rules script file, and make rule script text Part terminate-and-stay-resident works;
S3:House prosperity transaction order is imported, the order data in house prosperity transaction order is arranged, generates indent queue;
S4:It serves in the session, obtains the order data in the indent queue, mapped according to mapping ruler, Generate mapping result;
S5:Mapping result is obtained, is cleared according to clearance rule, clearance result is generated;
S6:Clearance is obtained as a result, checking and curing clearance result.
2. a kind of processing method of service logic according to claim 1, which is characterized in that the step S1 includes:
S101:Memory is set in local computing file, and the memory is deposited for storing with preset data storage format The rule script file of storage;
S102:A selected house prosperity transaction system, setting reading interface, passes through reading circle in the house prosperity transaction system The rule script file being stored in the memory is read in face using regulation engine with parameter mode;
S103:The rule script file of reading is inserted into the rule script database, to complete the rule script The establishment of database.
3. a kind of processing method of service logic according to claim 1, which is characterized in that the step S2 includes:
S201:House prosperity transaction system creates a session control object to standard session manager request;
S202:The standard session manager will create a standard session object, and be stored in local session control object In set;Meanwhile the session id of newly-built standard session object and relevant session key value are sent to backup race manager;
S203:Backup race manager can create new session according to session id and corresponding event.
4. a kind of processing method of service logic according to claim 1, which is characterized in that the step S3 includes:
S301:Order entry interface is set on house prosperity transaction system interface, by the order entry interface, using automatic or House prosperity transaction order in manual mode input line or under line;
S302:It is equipped with order database and perform script in the house prosperity transaction system, calls the perform script, the room Order data in production trade order generates indent queue after being arranged according to an executing rule and is stored in the order data In library.
5. a kind of processing method of service logic according to claim 1, which is characterized in that the step S4 includes:
S401:It is arranged at mapping ruler interface and reads interface, call the reading interface, reads the order numbers in indent queue According to the order data to be converted to the condition of mapping ruler;
S402:Regulation engine continuous service is in the session, using mapping ruler, by the condition of mapping ruler and mapping As a result one-to-one relationship obtains mapping result.
6. a kind of processing method of service logic according to claim 1, which is characterized in that the step S5 includes:
S501:In the regular interface setting clearance interface of clearance, the clearance interface is corresponded with clearance rule, using it is described clearly Interface is calculated, mapping result is imported;
S502:Regulation engine continuous service is completed, to the clearance of mapping result, to obtain with the session using clearance rule Take clearance result.
7. a kind of processing method of service logic according to claim 1, which is characterized in that the step S6 includes:
S601:Interface is read in setting on review interface, and clearance is read as a result, at the review interface by the reading interface Upper setting continues switch and Returning switch, and the switch that continues is connected with solidification interface, the Returning switch and mapping ruler Interface is connected;Clearance is calculated using manual type as a result, when clearance result review is without mistaking, then chooses and continue to switch, Into solidification interface;When clearance result review is wrong, then Returning switch is chosen, S4 is back to, is recalculated;
S602:Traffic sign placement solidification is carried out to checking errorless house prosperity transaction order, by the way that status indication and the review is arranged Errorless house prosperity transaction order is corresponded, and has been locked to identify the house prosperity transaction order.
8. a kind of processing system of service logic, which is characterized in that the processing system of the service logic includes creating regular foot Database unit, establishment session units generate indent queue unit, map unit, clearance unit and review solidification list Member;
The establishment rule script Database Unit, for creating rule script database, the wound of the rule script database Build is to read rule script file using regulation engine, and the rule script file of reading is inserted into the rule script Database;
The establishment session units, for creating session, the session for reading, resolution rules script file, And make the rule script file terminate-and-stay-resident work;
The generation indent queue unit carries out the order data in house prosperity transaction order for importing house prosperity transaction order Arrangement generates indent queue;
The map unit obtains the order data in the indent queue for serving in the session, according to reflecting It penetrates rule to be mapped, generates mapping result;
The clearance unit is cleared for obtaining mapping result according to clearance rule, and clearance result is generated;
The review solidified cell, for obtaining clearance as a result, checking and curing clearance result.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor so that the processor is executed as described in any one of claim 1 to 7 The step of processing method of service logic.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Readable instruction, when the computer-readable instruction is executed by processor so that the processor is executed as in claim 1 to 7 The step of processing method of any one service logic.
CN201810221790.4A 2018-03-18 2018-03-18 Processing method, system, computer equipment and the storage medium of service logic Pending CN108595276A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810221790.4A CN108595276A (en) 2018-03-18 2018-03-18 Processing method, system, computer equipment and the storage medium of service logic
PCT/CN2018/104728 WO2019179067A1 (en) 2018-03-18 2018-09-08 Service logic processing method and system, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810221790.4A CN108595276A (en) 2018-03-18 2018-03-18 Processing method, system, computer equipment and the storage medium of service logic

Publications (1)

Publication Number Publication Date
CN108595276A true CN108595276A (en) 2018-09-28

Family

ID=63626703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810221790.4A Pending CN108595276A (en) 2018-03-18 2018-03-18 Processing method, system, computer equipment and the storage medium of service logic

Country Status (2)

Country Link
CN (1) CN108595276A (en)
WO (1) WO2019179067A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636317A (en) * 2018-11-23 2019-04-16 山东中创软件工程股份有限公司 Service control method, device, system and storage medium
CN109741174A (en) * 2018-12-27 2019-05-10 深圳前海微众银行股份有限公司 Inter-agency settle accounts calculation method, apparatus, equipment and computer readable storage medium
CN111078747A (en) * 2019-11-20 2020-04-28 北京中电飞华通信股份有限公司 Novel business logic setting method for power operation enterprise
WO2020103728A1 (en) * 2018-11-19 2020-05-28 中国银联股份有限公司 Transaction settlement method and apparatus
CN113485737A (en) * 2021-07-15 2021-10-08 苏州工业园区凌志软件股份有限公司 Business rule management system and method
CN115686621A (en) * 2022-12-29 2023-02-03 四川新网银行股份有限公司 Method and device for generating rule script of rule engine

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427277A (en) * 2020-03-16 2020-07-17 明珞汽车装备(上海)有限公司 Sensor digital-analog creating method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542414A (en) * 2011-12-28 2012-07-04 焦点科技股份有限公司 Business process and loose coupling method and system of business data processing based on rule engine
CN103164206A (en) * 2011-12-16 2013-06-19 上海博腾信息科技有限公司 Software customization system based on software as a service (SAAS)
CN105630617A (en) * 2015-12-28 2016-06-01 山东中创软件工程股份有限公司 Business processing method and system based on rule engine
CN107450919A (en) * 2017-07-25 2017-12-08 上海壹账通金融科技有限公司 BPM method, equipment and computer-readable recording medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281466A (en) * 2008-05-27 2008-10-08 北京中企开源信息技术有限公司 Service object modeling method based on service main body characteristic
CN101539855A (en) * 2008-12-25 2009-09-23 厦门亿力吉奥信息科技有限公司 Service basic software platform
CN102033743B (en) * 2010-09-02 2013-03-20 西安赛斐软件科技有限公司 System and method for expanding model driving development capability by applying plug-in
CN102231162A (en) * 2011-07-01 2011-11-02 福建富士通信息软件有限公司 Dynamic rule engine configuration method based on service processing
CN104966239A (en) * 2015-06-30 2015-10-07 天津爱蔻科技有限公司 Intelligent underwriting platform based on rule engine
CN105260189A (en) * 2015-11-02 2016-01-20 江苏马上游科技股份有限公司 Code generating method and system based on model driving
CN105787059A (en) * 2016-02-29 2016-07-20 四川长虹电器股份有限公司 Data warehouse based financial data integration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164206A (en) * 2011-12-16 2013-06-19 上海博腾信息科技有限公司 Software customization system based on software as a service (SAAS)
CN102542414A (en) * 2011-12-28 2012-07-04 焦点科技股份有限公司 Business process and loose coupling method and system of business data processing based on rule engine
CN105630617A (en) * 2015-12-28 2016-06-01 山东中创软件工程股份有限公司 Business processing method and system based on rule engine
CN107450919A (en) * 2017-07-25 2017-12-08 上海壹账通金融科技有限公司 BPM method, equipment and computer-readable recording medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020103728A1 (en) * 2018-11-19 2020-05-28 中国银联股份有限公司 Transaction settlement method and apparatus
US11887068B2 (en) 2018-11-19 2024-01-30 China Unionpay Co., Ltd. Transaction settlement method and apparatus
CN109636317A (en) * 2018-11-23 2019-04-16 山东中创软件工程股份有限公司 Service control method, device, system and storage medium
CN109636317B (en) * 2018-11-23 2023-06-30 山东中创软件工程股份有限公司 Service control method, device, system and storage medium
CN109741174A (en) * 2018-12-27 2019-05-10 深圳前海微众银行股份有限公司 Inter-agency settle accounts calculation method, apparatus, equipment and computer readable storage medium
CN111078747A (en) * 2019-11-20 2020-04-28 北京中电飞华通信股份有限公司 Novel business logic setting method for power operation enterprise
CN113485737A (en) * 2021-07-15 2021-10-08 苏州工业园区凌志软件股份有限公司 Business rule management system and method
CN115686621A (en) * 2022-12-29 2023-02-03 四川新网银行股份有限公司 Method and device for generating rule script of rule engine
CN115686621B (en) * 2022-12-29 2023-06-06 四川新网银行股份有限公司 Rule engine rule script generation method and device

Also Published As

Publication number Publication date
WO2019179067A1 (en) 2019-09-26

Similar Documents

Publication Publication Date Title
CN108595276A (en) Processing method, system, computer equipment and the storage medium of service logic
CN107274023A (en) Flow of insuring generation method, insure request processing method and device and electronic equipment
US11093521B2 (en) Just-in-time data quality assessment for best record creation
CN109791592A (en) The sensitive data in application program is handled using external treatment
CN104765745B (en) Loading data in database are carried out with the method and system of logic checking
WO2020197624A1 (en) Method for predicting the successfulness of the execution of a devops release pipeline
US20130304517A1 (en) System and method to screen insurance claims to identify subrogation potential
US20120036089A1 (en) System and Method for Dynamic, Real-Time Data Management and Processing to Facilitate Business Decisions
CN106485390A (en) The generation method of examination & approval stream and device
CN104106066A (en) System to view and manipulate artifacts at temporal reference point
CN109710237A (en) A kind of online modification method of calibration and equipment based on customized two-dimentional report
JPH04505227A (en) Document generation device and method
CN115018656B (en) Risk identification method, and training method, device and equipment of risk identification model
CN110264361A (en) A kind of data analysis method and device of block chain
CN107045695A (en) A kind of invoice new line information variation, device and managing bill system
CN111061679A (en) Method and system for rapid configuration of technological innovation policy based on rete and drools rules
CN104933621A (en) Big data analysis system and method for guarantee ring
CN113377740A (en) Railway metadata management method, application method and device
CN115881106A (en) Intelligent form filling method, equipment and medium based on multi-scene semantic analysis
US11853698B2 (en) Natural language text processing for automated product gap clustering and display
CN114491662B (en) Block chain-based data asset auditing method, system and equipment
US20090319403A1 (en) Dimension-based financial reporting using multiple combinations of dimensions
CN115600972A (en) Method, device, equipment and storage medium for verifying and selling of bad assets
CN114881739A (en) Order event processing method and device, electronic equipment and storage medium
EP2601627B1 (en) Transaction processing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180928

RJ01 Rejection of invention patent application after publication