CN110309142A - The method and apparatus of regulation management - Google Patents

The method and apparatus of regulation management Download PDF

Info

Publication number
CN110309142A
CN110309142A CN201810213257.3A CN201810213257A CN110309142A CN 110309142 A CN110309142 A CN 110309142A CN 201810213257 A CN201810213257 A CN 201810213257A CN 110309142 A CN110309142 A CN 110309142A
Authority
CN
China
Prior art keywords
rule
input
output
business rule
parameter
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.)
Granted
Application number
CN201810213257.3A
Other languages
Chinese (zh)
Other versions
CN110309142B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810213257.3A priority Critical patent/CN110309142B/en
Publication of CN110309142A publication Critical patent/CN110309142A/en
Application granted granted Critical
Publication of CN110309142B publication Critical patent/CN110309142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the present invention provides a kind of method and apparatus of regulation management, rapid configuration and can update business rule, save research and development, test manpower, so that business rule is online without redeploying, is conducive to that system is stable and business support, realizes the Quick Extended of business.This method comprises: being pre-configured with business rule in a manner of bivariate table, wherein, the row information of the bivariate table indicates input and/or output parameter, column information indicates input and/or output parameter value, row information and column information under identical row number form a business rule, indicate that output parameter is output parameter value if inputting parameter meets corresponding input parameter value;And when regular judgement demand, using the actual value of input parameter, the output result under corresponding service rule is calculated according to the bivariate table.

Description

The method and apparatus of regulation management
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of regulation management.
Background technique
With the continuous development of business, when progress rule judges, the factor for influencing result also can may constantly change.Example Such as, in warehouse logistics field, what the attribute dimensions that task distribution group list strategy is generally basede on order outbound type were realized, i.e., A kind of a kind of group of list strategy of order outbound type Control;But as warehouse management system order type increases the extension with attribute, Some service orders need multiple attributes to compare a group list strategy, i.e., during being judged using business rule, influence As a result factor is changed.Same situation all may durings initialization storage order type, inventory strategy etc. Occur.
At present for business development during, the variation of business rule, be typically only capable to be by rewrite code realize, As the extension of business constantly encodes, tests, again online, realize that business rule adapts to new operation expanding demand, thus To carry out accurately rule judgement and result output.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
With the extension of business, demand is judged for the business newly increased, research staff is needed constantly to encode, test, again It is new it is online realize, be unfavorable for the stabilization of operation system, waste of manpower resource;In addition, the configuration and update of business rule in this way Mode is also unfavorable for the Quick Extended of type of service.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of regulation management, it being capable of rapid configuration and update Business rule saves research and development, test manpower, so that business rule is online without redeploying, is conducive to system stabilization and business Support, realizes the Quick Extended of business.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of method of regulation management is provided.
A kind of method of regulation management of the embodiment of the present invention includes: that business rule is pre-configured in a manner of bivariate table, Wherein, the row information of the bivariate table indicates input and/or output parameter, and column information indicates input and/or output parameter value, phase With the row information and column information one business rule of composition under row number, indicate if inputting parameter meets corresponding input parameter Value, then output parameter is output parameter value;And when regular judgement demand, using the actual value of input parameter, according to institute State the output result under bivariate table calculating corresponding service rule.
Optionally, include one or more business rules in the bivariate table, include one or more in a business rule A input parameter and one or more output parameters.
Optionally, it when regular judgement demand, using the actual value of input parameter, is calculated according to the bivariate table corresponding Output result under business rule includes: that the actual value of the input parameter is utilized to match in the bivariate table for rule judgement Business rule;Using the output parameter value of the output parameter of the business rule for being used for rule judgement as output result.
Optionally, the business rule in the bivariate table for rule judgement is matched using the actual value of the input parameter It include: business rule in the traversal bivariate table, when the actual value of input parameter and all input parameters of specific transactions rule Input parameter value when matching, then using the specific transactions rule as the business rule for being used for rule judgement.
Optionally, the input and/or output parameter includes at least one of: order type, production model, group folk prescription Formula, bin system.
Optionally, the input parameter includes order type and production model, and corresponding input parameter value is followed successively by single-piece And order form mode;The output parameter is group folk prescription formula, and corresponding output parameter value is single-piece strategy.
To achieve the above object, according to another aspect of an embodiment of the present invention, a kind of device of regulation management is provided.
A kind of device of regulation management of the embodiment of the present invention includes: configuration module, for preparatory in a manner of bivariate table Configuration service rule, wherein the row information of the bivariate table indicates input and/or output parameter, column information indicate input and/or Output parameter value, row information and column information under identical row number form a business rule, indicate if inputting parameter meets phase The input parameter value answered, then output parameter is output parameter value;And judgment module, it is used for when regular judgement demand, benefit With the actual value of input parameter, the output result under corresponding service rule is calculated according to the bivariate table.
Optionally, include one or more business rules in the bivariate table, include one or more in a business rule A input parameter and one or more output parameters.
Optionally, the judgment module is also used to: being matched in the bivariate table and is used using the actual value of the input parameter In the business rule of rule judgement;Using the output parameter value of the output parameter of the business rule for being used for rule judgement as defeated Result out.
Optionally, the judgment module is also used to: business rule in the bivariate table is traversed, when the actual value of input parameter When being matched with the input parameter value of all input parameters of specific transactions rule, then using the specific transactions rule as being used for The business rule of rule judgement.
Optionally, the input and/or output parameter includes at least one of: order type, production model, group folk prescription Formula, bin system.
Optionally, the input parameter includes order type and production model, and corresponding input parameter value is followed successively by single-piece And order form mode;The output parameter is group folk prescription formula, and corresponding output parameter value is single-piece strategy.
To achieve the above object, according to an embodiment of the present invention in another aspect, providing a kind of electronic equipment.
The a kind of electronic equipment of the embodiment of the present invention includes: one or more processors;Storage device, for storing one Or multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of The method that processor realizes the regulation management of the embodiment of the present invention.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is processed The method of the regulation management of the embodiment of the present invention is realized when device executes.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because uses with dynamically configurable two Dimension table form is as regulation engine, to the technological means that rule is pre-configured with and is saved, so overcoming in the prior art It needs research staff to recompile when needing to update business rule, test, online technical problem, and then reaching demand dynamic and match Business rule is set, is encoded without research staff, without test, a line Quality Control or business personnel can complete dynamic configuration business Rule, according to business demand dynamic update business rule logical condition, so as to realize business Quick Extended technology Effect;By saving one or more business rules in a bivariate table, and it is set as in a business rule comprising one A or multiple input parameters and one or more output parameters are timely, high so as to improve the allocative efficiency of business rule Effect, the demand for accurately adapting to operation expanding;By traversal bivariate table in business rule, when input parameter actual value with it is specific When the input parameter value of all input parameters of business rule matches, then sentence using the specific transactions rule as rule is used for Disconnected business rule, so as to the actual value pass corresponding with specific input parameter foundation that will accurately represent influence factor System, it is then accurate to determine the corresponding specific transactions rule of specific input parameter;By being matched to use from the bivariate table In rule judgement business rule after, using it is described be used for rule judgement business rule output parameter output parameter value as Output is as a result, so as to quickly and accurately obtain the judging result of business rule according to the influence factor of particular traffic type.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the key step of the method for regulation management according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of bivariate table in the method for regulation management according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of the main modular of the device of regulation management according to an embodiment of the present invention;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
The embodiment of the present invention proposes a kind of technical solution of regulation management, can carry out business rule according to business demand Dynamic configuration, and the output that condition judgement carries out judging result is carried out using the business rule.Two are utilized in the embodiment of the present invention The form of dimension table realizes the regulation engine of a dynamic configuration, (influences the attribute for determining business game as input parameter As a result factor), business game is then output parameter (i.e. final service rule judging result).Regulation engine is accomplished that " such as Fruit ... is then ... the business rule of .. ", i.e., if input parameter meets corresponding input parameter value, output parameter is output ginseng Numerical value.
Fig. 1 is the schematic diagram of the key step of the method for regulation management according to an embodiment of the present invention.
As shown in Figure 1, a kind of method of regulation management of the embodiment of the present invention mainly includes the following steps:
Step S101: business rule is pre-configured in a manner of bivariate table, wherein the row information of bivariate table indicates input And/or output parameter, column information indicate input and/or output parameter value, row information and column information composition one under identical row number A business rule indicates that output parameter is output parameter value if inputting parameter meets corresponding input parameter value.
It may include one or more business rules in the embodiment of the present invention, in bivariate table, it can be in a business rule Include one or more input parameter and one or more output parameters.
After step S101 configures completion business rule, step S102 carries out condition using configured business rule and sentences The output of disconnected and result.
Step S102: when regular judgement demand, using the actual value of input parameter, phase is calculated according to the bivariate table Answer the output result under business rule.
Carrying out condition judgement and result output using business rule, detailed process is as follows: utilizing the reality of the input parameter Actual value matches the business rule in the bivariate table for rule judgement;By the output of the business rule for being used for rule judgement The output parameter value of parameter is as output result.Wherein, it is matched in the bivariate table and is used using the actual value of the input parameter It include: to traverse business rule in the bivariate table in the business rule that rule judges, when the actual value and specific industry of input parameter When the input parameter value of all input parameters for rule of being engaged in matches, then using the specific transactions rule as being used for regular judgement Business rule.
With the continuous development of business, when progress rule judges, the factor for influencing result also can may constantly change, this hair The regulation engine of a dynamic configuration may be implemented in the method for the regulation management of bright embodiment, will affect the factor conduct of result Parameter is inputted, the result judged using configured business rule create-rule.
By taking warehouse logistics field as an example, for the order commodity that Inventory positioning arrives, need to generate picking for storage picking personnel Goods task, i.e. progress task distribution.Because the order type of storage production includes single-piece (i.e. having a commodity in an order), More than one piece (i.e. has more than one piece commodity, and more than one piece commodity are in a logic area in warehouse) in an order, a variety of order classes such as large Type needs to carry out a group single strategy therefore, it is necessary to which the commodity for order of storing in a warehouse are generated picking task according to optimal picking mode Determination.In the judgement for carrying out task distribution group list strategy, it can use the configuration of the business rule of the embodiment of the present invention and sentence Disconnected method realizes that, using the attribute of decision group list strategy as input parameter (factor for influencing result), organizing single strategy then is output Parameter (final result).
Fig. 2 is the schematic diagram of bivariate table in the method for regulation management according to an embodiment of the present invention.Below in conjunction with Fig. 2, with For order group list Policy Service, the configuration process of business rule in embodiment that the present invention will be described in detail.
Three structure objects are defined first, as follows:
Regular main information: TZIndicate that rule name is the rule of z;TZIn contain variable R ows, Cells.
Regular row information: Rows={ P1n,P2n...Pmn, wherein m identification row serial number, m value range m >=1 it is just whole Number;N identification parameter is input or output, and value is i or o, and expression parameter is input parameter when being i, and expression parameter is defeated when being o Parameter out;PinIdentify the i-th row input parameter or output parameter.
Regular value information: Cells={ V1j,V2j...Vmj, wherein m identification row serial number, value range is the same as regular row information In m it is identical, j identifies row number, j value range j >=1 positive integer;VijIndicate the input or output parameter of the i-th row jth column Value.
By above structure object, as an example with group single policing rule:
The business rule configuration of " the single strategy of group " is as follows:
Regular main information: TThe single strategy of group
Regular row information: Rows={ order type1i, production model2i, organize folk prescription formula3o}
Regular value information: Cells={ single-piece11, order form mode21, single-piece strategy31}
TThe single strategy of groupBusiness rule show as shown in Fig. 2, bivariate table that one is classified as a rule, a rule solution with bivariate table Be interpreted as " if ... if ... ".
Wherein, 1 interpretation of rules of column illustrates:
Column 1: if " order type is single-piece " and " production model is order form mode ", " group folk prescription formula " is " single-piece Strategy ".
A dynamically configurable regulation engine is realized using bivariate table, will affect group factor of single strategy as practical Value substitutes into the bivariate table, when the actual value matches one by one with the input parameter value (such as single-piece, order form mode) of corresponding input parameter When, illustrate that the T can be usedThe single strategy of groupBusiness rule carry out rule judgement and result output, therefore, by TThe single strategy of groupBusiness rule Output parameter output parameter value as final regular judging result (such as single-piece strategy).
After having configured business rule, using business rule operation process, i.e., business judgement is carried out using business rule Process is as follows:
Step A: first by TZIn the actual value of all input parameter be defined as map={ q1,q2...qx, qx=< pxi, Value >, pxiIndicate parameter of x-th of type for input type, i expression input parameter, q in RowsxIn the form of key-value pair It is present in the set of map, indicates x-th of input parameter pxiWith the corresponding relationship of actual value value;X value range is Rows The m value of all input parameters of middle n=i;Value is the actual value for inputting parameter.
Step B: strictly all rules are defined as Rules={ R1,R2...Rj, wherein j value range is that j is identical in Cells; All row informations of identical row number and column information are as a rule R in Cellsy={ V1y,V2y…Vmy, m value is the same as m in Rows Identical, y value range is the value of column serial number in Cells;Wherein, m value herein can be made of { mi, mo } two parts, mi Indicate all input parameter p in RowsmiCorresponding m, mo indicate all output parameter p in RowsmoCorresponding m.RyIndicate Rows Input or output parameter column serial number y value.
Step C: the output result that actual value in step A obtains after business rule judges is defined as outMap= {s1,s2…su},su=< puo,VuyAll output parameter p in >, u value RowsmoThe value of corresponding m, puoIndicate u-th it is defeated Parameter out, o indicate output parameter type in Rows;VuyIndicate value of u-th of output parameter in column serial number y in Rows.
Rules in above-mentioned B is traversed, by each business rule RyMiddle input parameter pmi, substitute into qxThe p of key-value pairxiIn, it obtains To RyMiddle input parameter pmiWith the corresponding relationship of actual value value, by actual value value and RyMiddle input parameter pmiIt is corresponding defeated Enter parameter value VmyCompare, if all actual value value and corresponding input parameter value VmyIdentical (match), the then business Rule is set up and (business rule can be used to carry out business judgement);By output parameter pmoSubstitute into suPuo, obtain with the industry The output parameter value of all output parameters for rule of being engaged in is as final output outMap={ s1,s2…su}。
The dynamic configuration of the business rule of generation group list strategy not only may be implemented in the regulation engine of the embodiment of the present invention, right In other newly-increased business, such as in the business such as storage order type, the inventory strategy for initializing warehouse management system wms, It can configure and realize corresponding business rule, as long as business rule is to meet the formal rule " if ... if ... ".
The technical solution of regulation management according to an embodiment of the present invention can be seen that because using with dynamically configurable two Dimension table form is as regulation engine, to the technological means that rule is pre-configured with and is saved, so overcoming in the prior art It needs research staff to recompile when needing to update business rule, test, online technical problem, and then reaching demand dynamic and match Business rule is set, is encoded without research staff, without test, a line Quality Control or business personnel can complete configuration, quickly real The technical effect of existing operation expanding;By saving one or more business rules, and a business rule in a bivariate table It is set as in then comprising one or more input parameters and one or more output parameters, so as to improve business rule Allocative efficiency in time, efficiently and accurately adapts to the demand of operation expanding;By business rule in traversal bivariate table, when input is joined When several actual values is matched with the input parameter value of all input parameters of specific transactions rule, then the specific transactions are advised Then as the business rule for rule judgement, so as to will accurately represent the actual value and specific input of influence factor Parameter establishes corresponding relationship, then accurate to determine the corresponding specific transactions rule of specific input parameter;By from described two After being matched to the business rule for rule judgement in dimension table, by the output parameter of the business rule for being used for rule judgement Output parameter value is as output as a result, so as to quickly and accurately obtain business rule according to the influence factor of particular traffic type Judging result then.
Fig. 3 is the schematic diagram of the main modular of the device of regulation management according to an embodiment of the present invention.
As shown in figure 3, the device 300 of the regulation management of the embodiment of the present invention mainly includes following module: configuration module 301 And judgment module 302.
Wherein, configuration module 301 in a manner of bivariate table for being pre-configured with business rule, wherein the bivariate table Row information indicates input and/or output parameter, and column information indicates input and/or output parameter value, the row information under identical row number A business rule is formed with column information, indicates that output parameter is defeated if inputting parameter meets corresponding input parameter value Parameter value out;And judgment module 302 can be used for when regular judgement demand, using the actual value of input parameter, according to institute State the output result under bivariate table calculating corresponding service rule.
Include one or more business rules in the embodiment of the present invention, in bivariate table, includes one in a business rule Or multiple input parameters and one or more output parameter.
Judgment module 302 can also be used in: the actual value of the input parameter being utilized to match in the bivariate table for rule The business rule of judgement;The output parameter value of the output parameter of the business rule for being used for rule judgement is tied as output Fruit.Moreover, it is judged that module 302 can also be used in: traverse business rule in the bivariate table, when input parameter actual value with it is specific When the input parameter value of all input parameters of business rule matches, then sentence using the specific transactions rule as rule is used for Disconnected business rule.
From the above, it can be seen that because using using dynamically configurable two-dimentional sheet form as regulation engine, to rule The technological means for being then pre-configured with and being saved needs to research and develop so overcoming when needing to update business rule in the prior art Personnel recompile, test, online technical problem, and then reach demand dynamic configuration business rule, compile without research staff Code, without test, a line Quality Control or business personnel can complete configuration, fast implement the technical effect of operation expanding;Pass through One or more business rules are saved in a bivariate table, and are set as in a business rule comprising one or more defeated Enter parameter and one or more output parameters, so as to improve the allocative efficiency of business rule, in time, efficiently and accurately Adapt to the demand of operation expanding;By business rule in traversal bivariate table, when the actual value and specific transactions rule of input parameter The input parameter value of all input parameters when matching, then using the specific transactions rule as the business for being used for rule judgement Rule, it is then quasi- so as to which the actual value for representing influence factor and specific input parameter are accurately established corresponding relationship Determine the corresponding specific transactions rule of specific input parameter;By being matched to from the bivariate table for rule judgement Business rule after, using it is described be used for rule judgement business rule output parameter output parameter value as export as a result, So as to quickly and accurately obtain the judging result of business rule according to the influence factor of particular traffic type.
Fig. 4 is shown can be using the regulation management method of the embodiment of the present invention or the exemplary system of regulation management device Framework 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that regulation management method provided by the embodiment of the present invention is generally executed by server 405, accordingly Ground, regulation management device are generally positioned in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include configuration module and judgment module.Wherein, the title of these modules does not constitute the limit to the module itself under certain conditions It is fixed, for example, configuration module is also described as " for being pre-configured with the module of business rule in a manner of bivariate table ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: that business rule is pre-configured in a manner of bivariate table, wherein the row information of the bivariate table indicates input And/or output parameter, column information indicate input and/or output parameter value, row information and column information composition one under identical row number A business rule indicates that output parameter is output parameter value if inputting parameter meets corresponding input parameter value;And work as When regular judgement demand, using the actual value of input parameter, the output under corresponding service rule is calculated according to the bivariate table As a result.
Technical solution according to an embodiment of the present invention is drawn using dynamically configurable two-dimentional sheet form as rule because using It holds up, to the rule technological means that is pre-configured with and is saved, so overcoming when needing to update business rule in the prior art It needs research staff to recompile, test, online technical problem, and then reaching demand dynamic configuration business rule, without grinding Hair personnel coding, without test, a line Quality Control or business personnel can complete configuration, fast implement the technology effect of operation expanding Fruit;By saving one or more business rules in a bivariate table, and it is set as in a business rule comprising one Or multiple input parameters and one or more output parameter, so as to improve the allocative efficiency of business rule, in time, high Effect, the demand for accurately adapting to operation expanding;By traversal bivariate table in business rule, when input parameter actual value with it is specific When the input parameter value of all input parameters of business rule matches, then sentence using the specific transactions rule as rule is used for Disconnected business rule, so as to the actual value pass corresponding with specific input parameter foundation that will accurately represent influence factor System, it is then accurate to determine the corresponding specific transactions rule of specific input parameter;By being matched to use from the bivariate table In rule judgement business rule after, using it is described be used for rule judgement business rule output parameter output parameter value as Output is as a result, so as to quickly and accurately obtain the judging result of business rule according to the influence factor of particular traffic type.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (14)

1. a kind of method of regulation management characterized by comprising
Business rule is pre-configured in a manner of bivariate table, wherein the row information of the bivariate table indicates input and/or output ginseng Number, column information indicate input and/or output parameter value, and the row information and column information under identical row number form a business rule, Indicate that output parameter is output parameter value if inputting parameter meets corresponding input parameter value;And
When regular judgement demand, using the actual value of input parameter, calculated under corresponding service rule according to the bivariate table Output result.
2. the method according to claim 1, wherein comprising one or more business rules in the bivariate table, Include one or more input parameters and one or more output parameters in one business rule.
3. the method according to claim 1, wherein utilizing the reality of input parameter when regular judgement demand Actual value, calculating the output result under corresponding service rule according to the bivariate table includes:
The business rule in the bivariate table for rule judgement is matched using the actual value of the input parameter;
Using the output parameter value of the output parameter of the business rule for being used for rule judgement as output result.
4. according to the method described in claim 3, it is characterized in that, matching the two dimension using the actual value of the input parameter Include: for the regular business rule judged in table
Business rule in the bivariate table is traversed, when actual value and all input parameters of specific transactions rule of input parameter When input parameter value matches, then using the specific transactions rule as the business rule for being used for rule judgement.
5. the method according to claim 1, wherein the input and/or output parameter include it is following at least it One: order type, production model, group folk prescription formula, bin system.
6. the method according to claim 1, wherein the input parameter includes order type and production model, Corresponding input parameter value is followed successively by single-piece and order form mode;The output parameter is group folk prescription formula, corresponding output parameter value For single-piece strategy.
7. a kind of device of regulation management characterized by comprising
Configuration module, for being pre-configured with business rule in a manner of bivariate table, wherein the row information of the bivariate table indicates defeated Enter and/or output parameter, column information indicate input and/or output parameter value, row information and column information composition under identical row number One business rule indicates that output parameter is output parameter value if inputting parameter meets corresponding input parameter value;And
Judgment module, for using the actual value of input parameter, calculating phase according to the bivariate table when regular judgement demand Answer the output result under business rule.
8. device according to claim 7, which is characterized in that it include one or more business rules in the bivariate table, Include one or more input parameters and one or more output parameters in one business rule.
9. device according to claim 7, which is characterized in that the judgment module is also used to:
The business rule in the bivariate table for rule judgement is matched using the actual value of the input parameter;
Using the output parameter value of the output parameter of the business rule for being used for rule judgement as output result.
10. device according to claim 7, which is characterized in that the judgment module is also used to:
Business rule in the bivariate table is traversed, when actual value and all input parameters of specific transactions rule of input parameter When input parameter value matches, then using the specific transactions rule as the business rule for being used for rule judgement.
11. device according to claim 7, which is characterized in that the input and/or output parameter include it is following at least it One: order type, production model, group folk prescription formula, bin system.
12. device according to claim 7, which is characterized in that the input parameter includes order type and production model, Corresponding input parameter value is followed successively by single-piece and order form mode;The output parameter is group folk prescription formula, corresponding output parameter value For single-piece strategy.
13. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-7.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-7 is realized when row.
CN201810213257.3A 2018-03-15 2018-03-15 Method and device for rule management Active CN110309142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810213257.3A CN110309142B (en) 2018-03-15 2018-03-15 Method and device for rule management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810213257.3A CN110309142B (en) 2018-03-15 2018-03-15 Method and device for rule management

Publications (2)

Publication Number Publication Date
CN110309142A true CN110309142A (en) 2019-10-08
CN110309142B CN110309142B (en) 2022-04-12

Family

ID=68073650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810213257.3A Active CN110309142B (en) 2018-03-15 2018-03-15 Method and device for rule management

Country Status (1)

Country Link
CN (1) CN110309142B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104497A (en) * 2019-11-21 2020-05-05 北京明略软件系统有限公司 Rule matching method and device and computer readable storage medium
CN111158649A (en) * 2019-12-23 2020-05-15 中国建设银行股份有限公司 Method and device for configuring multi-level parameters
CN112150257A (en) * 2020-11-26 2020-12-29 炬星科技(深圳)有限公司 Order processing method, cloud system, electronic device and storage medium
CN112230890A (en) * 2020-09-11 2021-01-15 重庆誉存大数据科技有限公司 Rule configuration method and device and result reliability judgment method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122983A (en) * 2007-08-28 2008-02-13 南京联创科技股份有限公司 Condition configuration management method
CN102096694A (en) * 2009-08-23 2011-06-15 美国银行公司 Display rendering system with supporting components
CN103019726A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Management method and device of software system service rules
CN103838706A (en) * 2012-11-22 2014-06-04 江苏现代造船技术有限公司 Flexible management information system with process and form customization function
US20140250072A1 (en) * 2013-03-04 2014-09-04 Avaya Inc. System and method for in-memory indexing of data
US20160292166A1 (en) * 2015-04-03 2016-10-06 Oracle International Corporation Method and system for parameterizing log file location assignments for a log analytics system
CN107450919A (en) * 2017-07-25 2017-12-08 上海壹账通金融科技有限公司 BPM method, equipment and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122983A (en) * 2007-08-28 2008-02-13 南京联创科技股份有限公司 Condition configuration management method
CN102096694A (en) * 2009-08-23 2011-06-15 美国银行公司 Display rendering system with supporting components
CN103838706A (en) * 2012-11-22 2014-06-04 江苏现代造船技术有限公司 Flexible management information system with process and form customization function
CN103019726A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Management method and device of software system service rules
US20140250072A1 (en) * 2013-03-04 2014-09-04 Avaya Inc. System and method for in-memory indexing of data
US20160292166A1 (en) * 2015-04-03 2016-10-06 Oracle International Corporation Method and system for parameterizing log file location assignments for a log analytics system
CN107450919A (en) * 2017-07-25 2017-12-08 上海壹账通金融科技有限公司 BPM method, equipment and computer-readable recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104497A (en) * 2019-11-21 2020-05-05 北京明略软件系统有限公司 Rule matching method and device and computer readable storage medium
CN111158649A (en) * 2019-12-23 2020-05-15 中国建设银行股份有限公司 Method and device for configuring multi-level parameters
CN112230890A (en) * 2020-09-11 2021-01-15 重庆誉存大数据科技有限公司 Rule configuration method and device and result reliability judgment method thereof
CN112230890B (en) * 2020-09-11 2023-09-12 重庆誉存大数据科技有限公司 Rule configuration method and device and result reliability judging method thereof
CN112150257A (en) * 2020-11-26 2020-12-29 炬星科技(深圳)有限公司 Order processing method, cloud system, electronic device and storage medium
CN112150257B (en) * 2020-11-26 2021-03-26 炬星科技(深圳)有限公司 Order processing method, cloud system, electronic device and storage medium

Also Published As

Publication number Publication date
CN110309142B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN110309142A (en) The method and apparatus of regulation management
CN110472207A (en) List generation method and device
CN109697537A (en) The method and apparatus of data audit
CN113239317A (en) Method and device for determining order fulfillment warehouse
CN107590678A (en) Method of Commodity Recommendation and system
CN112365202B (en) Method for screening evaluation factors of multi-target object and related equipment thereof
CN110209677A (en) The method and apparatus of more new data
CN107506256A (en) A kind of method and apparatus of crash data monitoring
CN109634833A (en) A kind of Software Defects Predict Methods and device
CN108776692A (en) Method and apparatus for handling information
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN110119445A (en) The method and apparatus for generating feature vector and text classification being carried out based on feature vector
CN109901987A (en) A kind of method and apparatus generating test data
CN107908662A (en) The implementation method and realization device of search system
CN107346344A (en) The method and apparatus of text matches
CN109002925A (en) Traffic prediction method and apparatus
CN109784407A (en) The method and apparatus for determining the type of literary name section
CN110019367A (en) A kind of method and apparatus of statistical data feature
CN110232487A (en) A kind of task allocating method and device
CN109960212A (en) Task sending method and device
CN115619448A (en) User loss prediction method and device, computer equipment and storage medium
CN109753424A (en) The method and apparatus of AB test
CN110263791A (en) A kind of method and apparatus in identification function area
CN108985805A (en) A kind of method and apparatus that selectivity executes push task
CN110020876A (en) A kind of information generating method and device

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
GR01 Patent grant
GR01 Patent grant