CN106649212A - Business data processing method and device - Google Patents

Business data processing method and device Download PDF

Info

Publication number
CN106649212A
CN106649212A CN201610818003.5A CN201610818003A CN106649212A CN 106649212 A CN106649212 A CN 106649212A CN 201610818003 A CN201610818003 A CN 201610818003A CN 106649212 A CN106649212 A CN 106649212A
Authority
CN
China
Prior art keywords
natural language
business
operation expression
script
data processing
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
CN201610818003.5A
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.)
Jinan Inspur Hi Tech Investment and Development Co Ltd
Original Assignee
Jinan Inspur Hi Tech Investment and Development 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 Jinan Inspur Hi Tech Investment and Development Co Ltd filed Critical Jinan Inspur Hi Tech Investment and Development Co Ltd
Priority to CN201610818003.5A priority Critical patent/CN106649212A/en
Publication of CN106649212A publication Critical patent/CN106649212A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities

Abstract

The invention provides a business data processing method and device. The method comprises the steps that a business data processing rule is defined through a natural language to form a natural language operation expression; the natural language operation expression is analyzed according to a preset analysis rule to form a corresponding operation expression script; field information related in the operation expression script is acquired; needed business data is acquired from business data according to the field information and processed according to the operation expression script. The device comprises a definition unit, an analysis unit, an acquisition unit and a processing unit. According to the scheme, the business data processing efficiency can be improved.

Description

A kind of method and device of business data processing
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of method and device of business data processing.
Background technology
Various business activities, such as emolument definition, sale price plan can be related to during business administration Slightly, special promotion and reimbursement examination & approval etc., each business activity is required for processing corresponding business datum, by There are different rules in different business activities, so that according to the rule of business activity, each business being defined respectively and being lived Dynamic operation expression, is processed the business datum of corresponding service activity by operation expression.
At present, when processing business datum, needs realize details according to the technology of computer software, by calculating Machine language writes corresponding operation expression to process business datum.
The method that prior art is processed business datum is directed to, needs to be realized carefully according to the technology of computer software Section, by computer language corresponding operation expression is write, because computer language is not readily understood, when needing to expend longer Between go to write corresponding operation expression, that causes to process business datum is less efficient.
The content of the invention
Embodiments provide a kind of method and device of business data processing, it is possible to increase business datum is carried out The efficiency of process.
A kind of method of business data processing is embodiments provided, including:
The rule of business data processing is defined by natural language, forms natural language operation expression;
The natural language operation expression is parsed according to resolution rules set in advance, forms corresponding computing Expression formula script;
Obtain the field information involved by the operation expression script;
The business datum according to needed for the field information is obtained from the business datum, by the operation expression pin This is processed the required business datum.
Preferably,
It is described the rule of business data processing is defined by natural language, form natural language operation expression bag Include:
By the business function of natural language description and/or the operator of natural language description to the business data processing Rule be defined, formation includes the natural language computing of operator described in business function or at least one described at least one Expression formula.
Preferably,
The business function includes:It is applied to the alternative business function of general service scene and is applied to specific transactions field The self-defined business function of scape;
Wherein, each described alternative business function and each described self-defined business function are provided with corresponding letter Scold bright, input/output argument explanation and example.
Preferably,
The alternative business function includes:Any one in polymerization, type conversion, date-time, mathematics and character string Or it is multiple.
Preferably,
The operator includes:If, otherwise, so and or, it is non-, add, subtract, any one in multiplication and division, true and false Or it is multiple.
Preferably,
It is described the natural language operation expression is parsed according to resolution rules set in advance, formed corresponding Operation expression script includes:
Key message is extracted from the natural language operation expression, according to resolution rules set in advance by the pass Key information resolves to corresponding parameter and variable;
According to the process logic of the parameter and variable in the natural language operation expression, corresponding computing is formed Expression formula script.
Preferably,
The content of the operation expression script meets international standard ECMAScript syntax gauge.
Preferably,
Further included before the business datum according to needed for the field information is obtained from the business datum:
Data model, tables of data and field name according to residing for the field information, by the field information is stored into In one field information list.
Preferably,
Further included before the business datum according to needed for the field information is obtained from the business datum:
With the storage form of path language XPath in expandable mark language XML, the field information is stored into into second In field information list.
The embodiment of the present invention additionally provides a kind of device of business data processing, including:Definition unit, resolution unit, obtain Take unit and processing unit;
The definition unit, for being defined to the rule of business data processing by natural language, forms nature language Speech operation expression;
The resolution unit, for the natural language fortune formed to the definition unit according to resolution rules set in advance Operator expression formula is parsed, and forms corresponding operation expression script;
The acquiring unit, for obtaining the field involved by the operation expression script that the resolution unit is formed Information;
The processing unit, the field information for being obtained according to the acquiring unit obtains institute from the business datum Business datum is needed, the operation expression script formed by the resolution unit is processed the required business datum.
Preferably,
The definition unit, for by the operator of the business function of natural language description and/or natural language description The rule of the business data processing is defined, formation includes being transported described in business function or at least one described at least one The natural language operation expression of operator.
Preferably,
The resolution unit, for extracting key message from the natural language operation expression, according to presetting Resolution rules the key message is resolved to into corresponding parameter and variable;And according to the parameter and variable in the nature Process logic in language operation expression, forms corresponding computing sheet format script.
A kind of method and device of business data processing is embodiments provided, by natural language to business datum The rule of process is defined, and forms natural language operation expression;By carrying out parsing shape to natural language operation expression Into corresponding operation expression script, and obtain the field information involved by operation expression script;Obtained according to field information Required business datum, is processed required business datum by operation expression script, finishing service data processing.Due to industry Business data processing rule defined by natural language, and natural language relative to computer language it is more readily appreciated that therefore use Family can be completed in a relatively short time the definition of business data processing rule, form natural language operation expression, and then contract It is short business datum is processed needed for time, improve the efficiency processed business datum.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of method flow diagram of business data processing that one embodiment of the invention is provided;
Fig. 2 is a kind of method flow diagram of business data processing that another embodiment of the present invention is provided;
Fig. 3 is a kind of method flow diagram of business data processing that another embodiment of the invention is provided;
Fig. 4 is a kind of schematic diagram of service data processing apparatus place equipment of an offer of the invention;
Fig. 5 is a kind of schematic device of business data processing that one embodiment of the invention is provided.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention, rather than the embodiment of whole, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, embodiments providing a kind of method of business data processing, the method can include following Step:
Step 101:The rule of business data processing is defined by natural language, is formed natural language operation table and is reached Formula;
Step 102:The natural language operation expression is parsed according to resolution rules set in advance, it is right to be formed The operation expression script answered;
Step 103:Obtain the field information needed for the operation expression script;
Step 104:The business datum according to needed for the field information is obtained from the business datum, by the computing Expression formula script is processed the required business datum.
A kind of method of business data processing is embodiments provided, by natural language to business data processing Rule is defined, and forms natural language operation expression;Correspondence is formed by carrying out parsing to natural language operation expression Operation expression script, and obtain the field information involved by operation expression script;The industry according to needed for field information is obtained Business data, are processed required business datum, finishing service data processing by operation expression script.Due to business datum Process rule to define by natural language, and natural language relative to computer language it is more readily appreciated that therefore user can be with The definition of business data processing rule is completed in a relatively short time, natural language operation expression is formed, and then is shortened to industry Business data processed needed for time, improve the efficiency processed business datum.
In an embodiment of the invention, when being defined to the rule of business data processing by natural language, can With the rule by the business function of natural language description or by the operator of natural language description to business data processing It is defined, then or the operator of the business function of natural language description and natural language description can be combined to industry The rule of business data processing is defined, and formation includes the natural language fortune of at least one business function or at least one operator Operator expression formula.
Specifically,
User define business data processing it is regular when, by the combination of business function, operator or both to industry The processing procedure of business data is described, and business function and operator are described by natural language, such as business Function can be total train value, statistics number etc., operator can to add, subtracting, multiplication and division etc..For fairly simple business number According to rule is processed, it is fixed the rule of the business data processing can be carried out separately through business function or separately through operator Justice;For more complicated business data processing rule, business function and operator can be combined to come to the business datum The rule of reason is defined.
By business function and operator that these use natural language description, user can easily to various types of industry Business data processing rule is defined, due to need not consider software concrete implementation process, it is only necessary to be capable of identify that with software Natural language is described to data handling procedure, and natural language operation expression just can be converted to phase by data processing software The shell script on ground is answered, user's business datum to be dealt with is processed by shell script;Directly use relative to user The method that computer language defines data handling procedure, can shorten the time for defining business data processing rule, it is ensured that can The process of business datum is completed in a relatively short time, the experience of user is improved.
In an embodiment of the invention, business function includes two classes, a class be applied to it is alternative under generic scenario Business function, another kind of is the self-defined business function being applied under specific transactions scene;Either alternative business function is still Self-defined business function, each business function is both provided with corresponding function declaration, input/output argument explanation and example.
Specifically,
Alternative business function is provided by arithmetic system acquiescence, can be used in miscellaneous service activity;Self-defined business Function only can be made by user's self-defined generation according to demand, the self-defined business function of formation in specific business activity With.So, except arithmetic system give tacit consent to provide alternative business function, user can with according to the demand of business data processing from Definition business function, to meet the demand processed miscellaneous service data, improves the suitable of the business data processing method The property used.In addition, the self-defined business function formed by User Defined can be stored under corresponding business activity, so as to phase Using when being processed again with the data of business activity, all redefining during without the need for using every time, further improve to business The efficiency that data are processed.
Either alternative business function or self-defined business function, in the definition interfaces of natural language operation expression On, user can see the function declaration of each business function, input/output argument explanation and example, and such user can be more Plus it is clearly understood from the effect of each business function and using the call format during business function, allow user easily Natural language operation expression is defined, the ease for use of the business data processing method is improved;In addition, according to each business function Function declaration, input/output argument explanation and example, it is ensured that user can define accurate response business data processing rule And meet the natural language operation expression that parsing is required, enable natural language operation expression to resolve to correspondence with being prepared Operation expression script, so as to the accuracy for ensureing to process business datum.
In an embodiment of the invention, alternative business function can include polymerization, type conversion, date-time, mathematics And it is any one or more in character string, there is provided polytype alternative business function is alternative, is being defined certainly with meeting user So demand during language operation expression, reduces the quantity of User Defined business function, and such that it is able to shorten nature language is defined Time needed for speech operation expression.
In an embodiment of the invention, it is similar with alternative business function, if operator can also include, otherwise, that And or, it is non-, add, subtract, it is any one or more in multiplication and division, true and false, for fairly simple business data processing is advised Then, natural language operation expression can be defined separately through business function or separately through operator, for more complicated Business data processing rule, business function and operator can be combined to define natural language operation expression.There is provided many The operator of type, on the one hand can define fairly simple natural language operation expression separately through each operator, On the other hand operator can be defined more complicated natural language operation expression in combination with business function, it is ensured that energy The natural language operation expression corresponding to miscellaneous service data processing rule is enough defined, the business data processing method is improved Applicability.
In an embodiment of the invention, corresponding operation expression script is being formed according to natural language operation expression When, key message is extracted from natural language operation expression, key message is resolved to according to resolution rules set in advance Corresponding parameter and variable, according to process logic of the parameter and variable for parsing in natural language operation expression, form Corresponding operation expression script.
Specifically,
After the definition of natural language operation expression is completed, natural language operation expression is split first, carried Wherein included key message in taking;After key message is obtained, according to resolution rules set in advance, by under natural language Key message resolve to parameter and variable under computer language;Reached in natural language operation table according to parameters and variable Description logic in formula, is combined parameters and variable by corresponding function, operator under computer language, and it is right to be formed Should be in the operation expression script of natural language operation expression.
For example, natural language operation expression for " total train value (【Goods movement application _ goods movement application row _ contain tax The amount of money】) ", the key message for therefrom extracting for " in goods movement application form in each goods movement application row containing tax Volume ", according to resolution rules set in advance will " in goods movement application form in each goods movement application row containing tax Volume " resolves to variable, and the variable for being formed is " GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue "; According to being total to the process logic of variable in natural language operation expression, correspondingly operation expression script is formed: “SumCol(DefaultFunction.GetFieldCode(" GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue"))”.
In an embodiment of the invention, the operation expression script for being formed according to natural language operation expression meets state Border standard ECMAScript syntax gauge.Because ECMAScript is with ECMA-26 and ECMA- by ECMA International Standards Organization The form of 402 specifications is standardized what is formed, and ECMAScript includes variable, keyword, reserved word, value, fundamental type, class The specifications such as type conversion, reference type, operator, sentence, function.Formation meets the fortune of international standard ECMAScript syntax gauge Operator expression formula script, it is ensured that the operation expression script for being formed can run under different running environment, improve the industry The versatility of business data processing method.
In an embodiment of the invention, after the field information involved by operation expression script is obtained, can basis Data model, tables of data and field name residing for field information, field information is stored in the first field information list.Field Information includes the parameter and variable involved by operation expression script, such as GMReqBillsInitDS.GMReqBillItemsInit.ReqQuantity " is represented in this operation expression and is related to goods Move the shifting storehouse amount field of goods movement application form body in the request for data model of storehouse.By field information storage to field information list It is middle as an independent information field, to identify operation expression script in variable design content, to enter to business datum Carry out unifying to replace in row calculating process, improve the speed processed business datum.
In an embodiment of the invention, obtaining involved by operation expression script from natural language operation expression Field information after, can be with the storage form of XML (extensible markup language) path language XPath, field information being inserted Groove is in the second field information list.The storage form of Xpath is stored to field information in be similar to XmlDOM structures, such as {GMReqBillsInitDS:GMReqBillsInitDS/Item/GMReqBillItemsInit/ReqQuantity }, it is this Storage organization calculate meet the business datum of XmlDOM structures when can greatly simplified operation process, improve operation efficiency.
Below with to often the volume containing tax of row carries out being added the business data processing process for taking aggregate value in shifting storehouse application form As a example by, business data processing method provided in an embodiment of the present invention is described further, as shown in Fig. 2 the method can be wrapped Include following steps:
Step 201:Business data processing rule is defined by natural language, natural language operation expression is formed.
In an embodiment of the invention, when needing to process business datum, business datum is determined according to demand Process rule, determine business datum process rule after, by the business function and/or natural language of natural language description The operator of description is defined to the rule of business data processing, forms corresponding natural language operation expression.
For example, it is desired to when often the volume containing tax of row carries out addition and takes aggregate value in moving storehouse application form, according to calculating purpose Form following natural language operation expression:
Total train value (【Goods movement application _ goods movement application row _ volume containing tax】).
Step 202:Natural language operation expression is parsed, corresponding operation expression script is formed.
In an embodiment of the invention, after natural language operation expression is formed, from natural language operation expression It is middle to extract corresponding key message, key message is parsed according to resolution rules set in advance, form corresponding parameter And variable, the process logic according to parameter and variable in natural language operation expression, form the computing under computer language Expression formula script.
For example, from language operation expression " total train value (【Goods movement application _ goods movement application row _ contain tax Volume】) " middle extraction key message " goods movement application _ goods movement application row _ volume containing tax ", the key message is resolved to Corresponding variable;Aggregate value is taken according to needing to carry out variable addition in language operation expression, following operation expression is formed Script:
<ExprEntity Version=" V3 " ChExpr=" add up to train value (【Goods movement application _ goods movement application Row _ volume containing tax】) " EnExpr=" SumCol (DefaultFunction.GetFieldCode (&quot; GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue&quot;))">.
Wherein, ExpreEntity is operation expression entity class name;ChExpr is in attribute record semantization information field Hold;EnExpr is attribute record computing script information domain content, and wherein SumCol () is the built-in total function of system, DefaultFunction is the built-in expression formula class of system, and the present embodiment has used such built-in method GetFieldCode (), this method is used for obtaining specific field name;GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue It is the practical business literary name section name being related in this example, SumCol () function can be called according to field name when computation engine is calculated Complete total process.
Step 203:Obtain the field information involved by operation expression script.
In an embodiment of the invention, formed after operation expression script, according to involved by operation expression script Variable and parameter, obtain these variables and the field information corresponding to parameter.
For example, from operation expression script "<ExprEntity Version=" V3 " ChExpr=" add up to train value (【Goods Thing moves application _ goods movement application row _ volume containing tax】) " EnExpr=" SumCol (DefaultFunction.GetFieldCode(&quot; GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue&quot;))">" in extract operation expression ginseng Several field informations, the field information is " GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue ".
Step 204:The field information for getting is stored in the first field information list.
In an embodiment of the invention, after field information is extracted from operation expression script, can be according to institute Data model, tables of data and field name residing for extraction field information, by the field information the first field information row are stored into In table.
For example, the number residing for field information " GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue " It is GMReqBillsInitDS according to model, residing tables of data is GMReqBillItemsInit, and residing field is entitled TaxInValue, according to above- mentioned information, field information is stored in the first field information list FieldList, wherein Record field list information domain content under FieldList nodes, be in the present embodiment GMReqBillsInitDS.GMReqBillItemsInit.TaxInValue。
Step 205:The field information for getting is stored in the second field information list.
In an embodiment of the invention, after field information is extracted from operation expression script, can be with XML The storage form of (extensible markup language) path language XPath, by the field information for extracting the second field information is stored into In list.
For example, field information is stored in the second field information list XpathFieldList by following script, its XPath information field contents are recorded under middle XpathFieldList nodes, this example is GMReqBillsInitDS: GMReqBillsInitDS/Item/GMReqBillItemsInit/TaxInValue。
Step 206:According to the field information stored in the first field information list or the second field information list, institute is obtained Business datum is needed, required business datum is processed by operation expression script.
In an embodiment of the invention, the business datum of ordinary construction is directed to, according in the first field information list The field information of storage obtains corresponding business datum, by business datum correspondingly to the variable in operation expression script Change content to be replaced, operation expression script completes the process to corresponding service data;It is directed to and meets XmlDOM structures Business datum, obtains corresponding business datum, by correspondingly industry according to the field information stored in the second field information list Business data are replaced to the variable design content in operation expression script, and operation expression script is completed to corresponding service data Process.
Embodiment illustrated in fig. 2 is directed to, is given below a kind of including the operation expression script for obtaining field information script:
As shown in figure 3, one embodiment of the invention provides a kind of number of automatic route approval process next node activity According to processing method, the method may comprise steps of:
Step 301:The condition of next node activity is routed automatically in setting approval process, natural language operation table is formed Up to formula.
In embodiments of the present invention, system manager sets next node activity in the approval process of the business of definition Automatically route conditions, form following natural language operation expression:
If (goods movement application _ goods movement application _ class of service==" delivery ")
{
So " delivery flow process ";
Otherwise
{
So " general flow ";
}。
Step 302:According to natural language operation expression, corresponding operation expression script is formed.
In an embodiment of the invention, according to the natural language operation expression formed in step 301, formed following Budget expression script:
Wherein ExpreEntity is operation expression entity class name;ChExpr attribute record semantization information field contents, its In " if ", " so ", " otherwise " be system-key, the IF-Then-Else that similar machine word is called the turn;" goods movement Shen Please _ goods movement application _ class of service==&quot;Delivery &quot;" be a logic judgment, i.e. class of service be delivery Shi Zhihang delivery flow processs, otherwise perform general flow;EnExpr attribute record computing script informations domain content, wherein DefaultFunction is the built-in expression formula class of system, and this example has used such built-in method GetDefaultFieldValue (), this method is used for obtaining the value of current data row specific field, GMReqBillsInitDS.GMReqBillItemsInit.BusinessType is the practical business literary name section being related in this example Name;Record field list information domain content under FieldList nodes, the present embodiment is GMReqBillsInitDS.GMReqBillItemsInit.BusinessType;Record under XpathFieldList nodes XPath information field contents, the present embodiment is GMReqBillsInitDS:GMReqBillsInitDS/Item/ GMReqBillItemsInit/BusinessType。
Step 303:Business approval flow process is route automatically by operation expression script.
In embodiments of the present invention, system operation user operation person is preserving business paper and when submitting examination & approval to, system table Redirected according to the flow process and route that above-mentioned definition calculates next examination & approval active node automatically up to formula computation engine.
As shown in Figure 4, Figure 5, a kind of device of business data processing is embodiments provided.Device embodiment can be with Realized by software, it is also possible to realized by way of hardware or software and hardware combining.From for hardware view, as shown in figure 4, For a kind of hardware structure diagram of the device place equipment of business data processing provided in an embodiment of the present invention, except shown in Fig. 4 Outside processor, internal memory, network interface and nonvolatile memory, the equipment that device is located in embodiment generally can be with Including other hardware, such as it is responsible for processing the forwarding chip of message.As a example by implemented in software, as shown in figure 5, patrolling as one The device in meaning is collected, is to be read corresponding computer program instructions in nonvolatile memory by the CPU of its place equipment Get what operation in internal memory was formed.The device of the business data processing that the present embodiment is provided, including:Definition unit 501, parsing are single Unit 502, acquiring unit 503 and processing unit 504;
The definition unit 501, for being defined to the rule of business data processing by natural language, forms nature Language operation expression;
The resolution unit 502, for the nature formed to the definition unit 501 according to resolution rules set in advance Language operation expression is parsed, and forms corresponding operation expression script;
The acquiring unit 503, for obtaining involved by the operation expression script that the resolution unit 502 is formed Field information;
The processing unit 504, for the field information that obtained according to the acquiring unit 503 from the business datum Business datum needed for obtaining, the operation expression script formed by the resolution unit 502 is entered to the required business datum Row is processed.
In an embodiment of the invention, definition unit 501 is for by the business function of natural language description and/or certainly So the operator of language description is defined to the rule of business data processing, and formation includes at least one business function or at least The natural language operation expression of one operator.
In an embodiment of the invention, resolution unit 502 is used to extract crucial letter from natural language operation expression Breath, corresponding parameter and variable are resolved to according to resolution rules set in advance by key message;And existed according to parameter and variable Process logic in natural language operation expression, forms corresponding computing sheet format script.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The method and device of business data processing provided in an embodiment of the present invention, at least has the advantages that:
1st, in the method and device of business data processing provided in an embodiment of the present invention, by natural language to business number It is defined according to the rule for processing, forms natural language operation expression;By parsing to natural language operation expression Corresponding operation expression script is formed, and obtains the field information involved by operation expression script;Obtained according to field information Required business datum is taken, required business datum is processed by operation expression script, finishing service data processing.Due to Business data processing rule is defined by natural language, and natural language relative to computer language it is more readily appreciated that therefore User can be completed in a relatively short time the definition of business data processing rule, form natural language operation expression, and then Shorten the time needed for being processed business datum, improve the efficiency processed business datum.
2nd, in the method and device of business data processing provided in an embodiment of the present invention, except arithmetic system acquiescence is provided Alternative business function outside, also allow User Defined business function;User, can be with root under business activity model correspondingly According to the self-defined business function of demand, to realize the processing procedure that alternative business function cannot be realized, different user is met to industry The demand that business data are processed, improves the applicability of the business data processing method and device.
3rd, in the method and device of business data processing provided in an embodiment of the present invention, reached according to natural language operation table The operation expression script that formula is formed meets international standard ECMAScript syntax gauge, meets international standard ECMAScript language The operation expression script of method specification can run under different running environment, improve the logical of the business data processing method The property used.
4th, in the method and device of business data processing provided in an embodiment of the present invention, obtain from operation expression script After taking the field information being related to, acquired field information is stored into into field information list, field information is operation expression Variable design content in script, using field information list as a single information field, can be in operation expression script pair Business datum carries out unifying to replace during being processed to the variable in operation expression script, and raising is entered to business datum The speed that row is processed.
5th, in the method and device of business data processing provided in an embodiment of the present invention, obtain from operation expression script After taking the field information being related to, field information can be stored with the storage form with XML Path Language XPath, it is this Storage organization calculate meet the business datum of XmlDOM structures when can greatly simplified operation process, improve operation efficiency.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply presence between these entities or operation Any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to non- Exclusiveness is included, so that a series of process, method, article or equipment including key elements not only includes those key elements, But also including other key elements being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element for being limited by sentence " including a 〃 ", does not arrange Except also there is other identical factor in including the process of the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of said method embodiment can pass through Completing, aforesaid program can be stored in the storage medium of embodied on computer readable the related hardware of programmed instruction, the program Upon execution, the step of including said method embodiment is performed;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate Art scheme, is not intended to limit protection scope of the present invention.All any modifications made within the spirit and principles in the present invention, Equivalent, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of method of business data processing, it is characterised in that include:
The rule of business data processing is defined by natural language, forms natural language operation expression;
The natural language operation expression is parsed according to resolution rules set in advance, is formed corresponding operation table and is reached Formula script;
Obtain the field information involved by the operation expression script;
The business datum according to needed for the field information is obtained from the business datum, by the operation expression script pair Business datum needed for described is processed.
2. method according to claim 1, it is characterised in that
Described the rule of business data processing is defined by natural language, forming natural language operation expression includes:
By the rule of the business function of natural language description and/or the operator of natural language description to the business data processing Then it is defined, formation includes that the natural language operation table of operator described in business function or at least one described at least one reaches Formula.
3. method according to claim 2, it is characterised in that
The business function includes:It is applied to the alternative business function of general service scene and is applied to specific transactions scene Self-defined business function;
Wherein, each described alternative business function and each described self-defined business function are provided with corresponding function and say Bright, input/output argument explanation and example.
4. method according to claim 3, it is characterised in that
The alternative business function includes:In polymerization, type conversion, date-time, mathematics and character string any one or it is many It is individual;
And/or,
The operator includes:If, otherwise, so and or, it is non-, add, subtract, in multiplication and division, true and false any one or it is many It is individual.
5. method according to claim 1, it is characterised in that
It is described the natural language operation expression is parsed according to resolution rules set in advance, form corresponding computing Expression formula script includes:
Key message is extracted from the natural language operation expression, is believed the key according to resolution rules set in advance Breath resolves to corresponding parameter and variable;
According to the process logic of the parameter and variable in the natural language operation expression, form corresponding operation table and reach Formula script.
6. method according to claim 5, it is characterised in that
The content of the operation expression script meets international standard ECMAScript syntax gauge.
7. according to arbitrary described method in claim 1 to 6, it is characterised in that
Further included before the business datum according to needed for the field information is obtained from the business datum:
Data model, tables of data and field name according to residing for the field information, by the field information the first word is stored into In segment information list;
And/or,
With the storage form of path language XPath in expandable mark language XML, the field information is stored into into the second field In information list.
8. a kind of device of business data processing, it is characterised in that include:Definition unit, resolution unit, acquiring unit and process Unit;
The definition unit, for being defined to the rule of business data processing by natural language, forms natural language fortune Operator expression formula;
The resolution unit, for the natural language operation table formed to the definition unit according to resolution rules set in advance Parsed up to formula, formed corresponding operation expression script;
The acquiring unit, for obtaining the field letter involved by the operation expression script that the resolution unit is formed Breath;
The processing unit, for industry needed for being obtained from the business datum according to the field information that the acquiring unit is obtained Business data, the operation expression script formed by the resolution unit is processed the required business datum.
9. device according to claim 8, it is characterised in that
The definition unit, for passing through the business function of natural language description and/or the operator of natural language description to institute The rule for stating business data processing is defined, and formation includes operator described in business function or at least one described at least one Natural language operation expression.
10. device according to claim 8, it is characterised in that
The resolution unit, for extracting key message from the natural language operation expression, according to solution set in advance The key message is resolved to corresponding parameter and variable by analysis rule;And according to the parameter and variable in the natural language Process logic in operation expression, forms corresponding computing sheet format script.
CN201610818003.5A 2016-09-12 2016-09-12 Business data processing method and device Pending CN106649212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610818003.5A CN106649212A (en) 2016-09-12 2016-09-12 Business data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610818003.5A CN106649212A (en) 2016-09-12 2016-09-12 Business data processing method and device

Publications (1)

Publication Number Publication Date
CN106649212A true CN106649212A (en) 2017-05-10

Family

ID=58851629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610818003.5A Pending CN106649212A (en) 2016-09-12 2016-09-12 Business data processing method and device

Country Status (1)

Country Link
CN (1) CN106649212A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399066A (en) * 2018-01-25 2018-08-14 链家网(北京)科技有限公司 A kind of regulation engine implementation method and device
CN108491207A (en) * 2018-03-02 2018-09-04 平安科技(深圳)有限公司 Expression processing method, apparatus, equipment and computer readable storage medium
CN109144493A (en) * 2018-07-18 2019-01-04 平安科技(深圳)有限公司 Generation method, electronic device and the readable storage medium storing program for executing of business rule
CN109284106A (en) * 2018-07-18 2019-01-29 平安科技(深圳)有限公司 Method for release management, electronic device and the readable storage medium storing program for executing of business rule
CN109426972A (en) * 2017-08-21 2019-03-05 阿里巴巴集团控股有限公司 Processing method, the device and system of the order page
CN109558134A (en) * 2017-09-27 2019-04-02 北京京东尚科信息技术有限公司 The method and apparatus of business datum verification
CN109583832A (en) * 2018-11-16 2019-04-05 上海浦东发展银行股份有限公司信用卡中心 A kind of Workflow intelligent circulation management system for bank management
CN109597638A (en) * 2019-01-22 2019-04-09 深圳市蒂蒙技术有限公司 The method and device of data processing, equipment linkage is solved based on real-time computing engines
CN110007914A (en) * 2017-12-29 2019-07-12 珠海市君天电子科技有限公司 A kind of big data calculation method and device
CN110413267A (en) * 2019-08-08 2019-11-05 四川爱创科技有限公司 Self-adapted service flow modeling method based on business rule
CN110991191A (en) * 2019-12-05 2020-04-10 南京品微智能科技有限公司 Method for realizing flow self-definition based on natural semantic conversion
CN111368549A (en) * 2018-12-25 2020-07-03 深圳市优必选科技有限公司 Natural language processing method, device and system supporting multiple services
CN111443905A (en) * 2019-01-16 2020-07-24 阿里巴巴集团控股有限公司 Service data processing method, device and system and electronic equipment
CN111444727A (en) * 2020-04-01 2020-07-24 神州数码融信软件有限公司 Business rule analysis method
CN112087486A (en) * 2020-07-30 2020-12-15 山东浪潮通软信息科技有限公司 Data integration method, equipment and medium for Internet of things equipment
CN112631733A (en) * 2020-12-31 2021-04-09 中电长城网际安全技术研究院(北京)有限公司 Data acquisition method and device
CN113516412A (en) * 2021-08-06 2021-10-19 上海中通吉网络技术有限公司 Business assessment method
CN115577060A (en) * 2022-09-27 2023-01-06 清华大学 DAS-based efficient field calculation expression method, device, medium and product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377768A (en) * 2008-09-09 2009-03-04 金蝶软件(中国)有限公司 Method and system for calculating salary
CN101930428A (en) * 2009-06-18 2010-12-29 万继华 System and method for ensuring computer to understand natural languages
CN104657439A (en) * 2015-01-30 2015-05-27 欧阳江 Generation system and method for structured query sentence used for precise retrieval of natural language

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377768A (en) * 2008-09-09 2009-03-04 金蝶软件(中国)有限公司 Method and system for calculating salary
CN101930428A (en) * 2009-06-18 2010-12-29 万继华 System and method for ensuring computer to understand natural languages
CN104657439A (en) * 2015-01-30 2015-05-27 欧阳江 Generation system and method for structured query sentence used for precise retrieval of natural language

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426972A (en) * 2017-08-21 2019-03-05 阿里巴巴集团控股有限公司 Processing method, the device and system of the order page
CN109558134A (en) * 2017-09-27 2019-04-02 北京京东尚科信息技术有限公司 The method and apparatus of business datum verification
CN110007914A (en) * 2017-12-29 2019-07-12 珠海市君天电子科技有限公司 A kind of big data calculation method and device
CN108399066A (en) * 2018-01-25 2018-08-14 链家网(北京)科技有限公司 A kind of regulation engine implementation method and device
CN108491207A (en) * 2018-03-02 2018-09-04 平安科技(深圳)有限公司 Expression processing method, apparatus, equipment and computer readable storage medium
CN109144493A (en) * 2018-07-18 2019-01-04 平安科技(深圳)有限公司 Generation method, electronic device and the readable storage medium storing program for executing of business rule
CN109284106A (en) * 2018-07-18 2019-01-29 平安科技(深圳)有限公司 Method for release management, electronic device and the readable storage medium storing program for executing of business rule
CN109583832A (en) * 2018-11-16 2019-04-05 上海浦东发展银行股份有限公司信用卡中心 A kind of Workflow intelligent circulation management system for bank management
CN111368549A (en) * 2018-12-25 2020-07-03 深圳市优必选科技有限公司 Natural language processing method, device and system supporting multiple services
CN111443905A (en) * 2019-01-16 2020-07-24 阿里巴巴集团控股有限公司 Service data processing method, device and system and electronic equipment
CN111443905B (en) * 2019-01-16 2023-04-11 阿里巴巴集团控股有限公司 Service data processing method, device and system and electronic equipment
CN109597638A (en) * 2019-01-22 2019-04-09 深圳市蒂蒙技术有限公司 The method and device of data processing, equipment linkage is solved based on real-time computing engines
CN109597638B (en) * 2019-01-22 2022-07-08 深圳市蒂蒙技术有限公司 Method and device for solving data processing and equipment linkage based on real-time computing engine
CN110413267A (en) * 2019-08-08 2019-11-05 四川爱创科技有限公司 Self-adapted service flow modeling method based on business rule
CN110413267B (en) * 2019-08-08 2023-05-26 四川爱创科技有限公司 Self-adaptive business process modeling method based on business rules
CN110991191A (en) * 2019-12-05 2020-04-10 南京品微智能科技有限公司 Method for realizing flow self-definition based on natural semantic conversion
CN111444727A (en) * 2020-04-01 2020-07-24 神州数码融信软件有限公司 Business rule analysis method
CN112087486A (en) * 2020-07-30 2020-12-15 山东浪潮通软信息科技有限公司 Data integration method, equipment and medium for Internet of things equipment
CN112631733A (en) * 2020-12-31 2021-04-09 中电长城网际安全技术研究院(北京)有限公司 Data acquisition method and device
CN112631733B (en) * 2020-12-31 2024-01-02 中电长城网际安全技术研究院(北京)有限公司 Data acquisition method and device
CN113516412A (en) * 2021-08-06 2021-10-19 上海中通吉网络技术有限公司 Business assessment method
CN115577060A (en) * 2022-09-27 2023-01-06 清华大学 DAS-based efficient field calculation expression method, device, medium and product

Similar Documents

Publication Publication Date Title
CN106649212A (en) Business data processing method and device
AU2018272840B2 (en) Automated dependency analyzer for heterogeneously programmed data processing system
CN104866426B (en) Software test integrated control method and system
US8707248B2 (en) Transformation framework
CN103902456B (en) Test script processing meanss, system and method
CN107894953A (en) A kind of generation method and device of Bank application test data
US9098630B2 (en) Data selection
US20120158625A1 (en) Creating and Processing a Data Rule
CN109376093B (en) Insurance product testing method and device, storage medium and electronic equipment
US20130332897A1 (en) Creating a user model using component based approach
CN107943691A (en) A kind of method and device for the functional test page for automatically generating intelligent contract
CN107704436A (en) Sampling of data method, terminal, equipment and computer-readable recording medium
CN103095726A (en) Processing method and device of protocol interpreter
CN109241494A (en) Page processing method, system, computer equipment and storage medium
CN115599359A (en) Code generation method, device, equipment and medium
CN103455476B (en) The processing method of the network information and the method for building up of abstract syntax tree and device thereof
Niemetz et al. Bitwuzla
CN105867886B (en) Method and device for writing table
CN111176980B (en) Data analysis method, device and system for separating debugging environment and running environment
CN104616168B (en) A kind of method and device of marketing tool legitimacy verifies
CN110019177A (en) The method and apparatus of rule storage
JP2006350901A (en) Structured document processing system
CN114140232A (en) Accounting data conversion method and device and electronic equipment
CN106951273A (en) The method and apparatus that a kind of dynamic configuration generates professional workstation
US9471890B2 (en) Enterprise decision management

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: 20170510

RJ01 Rejection of invention patent application after publication