CN107742239A - The collocation method and device of a kind of conditional expression - Google Patents

The collocation method and device of a kind of conditional expression Download PDF

Info

Publication number
CN107742239A
CN107742239A CN201710922439.3A CN201710922439A CN107742239A CN 107742239 A CN107742239 A CN 107742239A CN 201710922439 A CN201710922439 A CN 201710922439A CN 107742239 A CN107742239 A CN 107742239A
Authority
CN
China
Prior art keywords
configuration
determine object
predicated expressions
expression formula
predicated
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
CN201710922439.3A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710922439.3A priority Critical patent/CN107742239A/en
Publication of CN107742239A publication Critical patent/CN107742239A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a kind of collocation method and device of conditional expression, is related to field of computer technology, can realize and carry out overall judgement to multiple objects.This method includes:Obtain the configuration-direct of user's input;According to the configuration-direct, determine object, at least one predicated expressions for judging the determine object are configured, and for establishing the logical connector of the logical relation between at least one predicated expressions;According to the determine object, at least one predicated expressions, and logical connector generation first condition expression formula, the first condition expression formula are the conditional expression of the determine object;Wherein, if the determine object is set, the sets match pattern that the first condition expression formula also includes the determine object determined according to the configuration-direct and at least one predicated expressions needs meet, the sets match pattern are used for the number for configuring the element that at least one predicated expressions are required to meet in the set.

Description

The collocation method and device of a kind of conditional expression
Technical field
The application is related to field of computer technology, more particularly to the collocation method and device of a kind of conditional expression.
Background technology
Generally, operation system before some business processing is performed, it is necessary to first carry out precondition judgement.I.e. in the business of execution Before handling process, the conditional expression in precondition is first carried out, need are determined whether according to the implementing result of conditional expression Perform business processing.The precondition that different users requires may be different.For example, customer relation management (CRM) system is The system delivered towards Telecom Carriers.For same business, each operator's precondition has very big difference.Example Such as, 18 clients more than one full year of life are only allowed to handle for the business of opening an account, some the country one belongs to of operator.And where some operators The client of the one full year of life of national requirements 16 handles.Operator also does not have condition requirement to client age, but is required to meet client Meet other conditions.These different conditions can all perform the precondition for business of opening an account as crm system.Therefore, preposition bar Conditional expression in part is configurable.
At present, a kind of configuration mode of conventional conditional expression is to provide a kind of configuration interface, provides on the surface The configuration feature of conditional expression is carried out to each independent object.Each independent object is directed to, based on configuration circle The option that face provides, the attribute judged successively each needs of the object carry out the configuration of conditional expression, including selection The attribute (such as price, type etc.) that needs to judge, operator (greater than, equal to or less than etc.) and decision content.Then will Multiple predicated expressions of the object are connected by logical AND, obtain the conditional expression of the object.When needing to multiple right During as being judged, then according to above-mentioned configuration process, the conditional expression of each object is configured successively.
As can be seen that the configuration mode of above-mentioned condition expression formula, only supports to carry out one by one each attribute of single object Judge.When needing to judge multiple objects, for example, it is desired to judge that the plurality of object requirement one or the no satisfaction of neither one will Ask.Then need to judge the plurality of object one by one, and overall judgement can not be carried out to multiple objects.
The content of the invention
The application provides a kind of collocation method and device of conditional expression, can realize that carrying out entirety to multiple objects sentences It is fixed.
In a first aspect, the application provides a kind of collocation method of conditional expression, including:The configuration for obtaining user's input refers to Order;According to the configuration-direct, configuration determine object, at least one predicated expressions for judging the determine object, Yi Jiyong The logical connector of logical relation between at least one predicated expressions are established;According to the determine object, this at least one Individual predicated expressions, and logical connector generation first condition expression formula, the first condition expression formula is the determine object Conditional expression;Wherein, if the determine object is set, the first condition expression formula also includes being determined according to the configuration-direct The determine object and at least one predicated expressions need the sets match pattern that meets, the sets match pattern is used to match somebody with somebody Put the number for the element that at least one predicated expressions are required to meet in the set.
The collocation method of the conditional expression provided using the application, can be overall as determine object using a set, Think at least one predicated expressions of set configured in one piece.And by configuration set match pattern, will in the set to configure Seek the number for the element for meeting at least one predicated expressions.It is achieved thereby that to the overall judgement of set.Without to collection Each element in conjunction carries out the configuration of predicated expressions one by one, improves the allocative efficiency of conditional expression, reduces bar The configuration complexity of part expression formula.
Optionally, each predicated expressions at least one predicated expressions correspond to an attribute to be determined, and this is treated Judge attribute of the attribute for determine object;For each predicated expressions, if attribute to be determined corresponding to the predicated expressions For the subobject of the determine object, the predicated expressions are configured according to configuration-direct, including:According to the configuration-direct, it is determined that should The second condition expression formula of subobject, the second condition expression formula are the predicated expressions.
In this optional mode, due to possessing nest relation between determine object and determine object, therefore, sentence at this In the configuration process for determining the predicated expressions of object, by the category that the subobject of determine object is used as to the determine object Property so that the conditional expression of subobject can be as a predicated expressions of determine object, it is achieved thereby that determine object Conditional expression and its subobject conditional expression between nesting.
Optionally, if it is determined that attribute to be determined corresponding to expression formula is the non-subobject attribute of determine object, according to configuration Instruction configures the predicated expressions, including:According to the configuration-direct, attribute to be determined corresponding to the predicated expressions, behaviour are configured Accord with and decision content, obtain the predicated expressions.
Optionally, this method also includes:By calling default definition database, object is shown on figure configuration interface Domain, logical connector, operator, decision content, the image of sets match pattern and/or list;The configuration for obtaining user's input refers to Order, including:The information that detection user inputs on the figure configuration interface, determines the configuration-direct.
In this optional mode, the conditional expression interface based on all-graphic is complete with all-graphic configuration mode Developed into conditional expression, the conditional expression for the configuration for being has preferably readable and maintainability, compared to DSL scripts The development scheme of code, customization personnel's skill set requirements are reduced, also improve the development efficiency of customization personnel.
Optionally, this method also includes:According to configuration-direct, the title and value of determine object, the determine object are configured Title be used to quote the determine object when configure first condition expression formula, the value of the determine object is at this first Initializing variable statement is generated in the executable file of part expression formula.
In this optional mode, the title and value of the configuration configuration determine object based on application scenarios, realize not With the definition of the different decision object of application scenarios.
Optionally, according to determine object, at least one predicated expressions, and logical connector generation first condition expression After formula, this method also includes:The first condition expression formula is preserved using the configuration file of standardization.
In this optional mode, first condition expression formula is preserved by using the configuration file of standardization, is no longer made With specific script, so that conditional expression can be advantageous to user to first condition table independently of concrete implementation form Exploitation is standardized up to formula.
Optionally, after preserving the first condition expression formula using the configuration file of standardization, this method also includes:Perform The configuration file of the standardization of the first condition expression formula is converted to executable file by engine;The enforcement engine perform this first The executable file of conditional expression.
Second aspect, the application provide a kind of configuration device of conditional expression, including:Acquiring unit, used for obtaining The configuration-direct of family input;Dispensing unit, for the configuration-direct obtained according to the acquiring unit, configuration determine object, use In at least one predicated expressions for judging the determine object, and for establishing patrolling between at least one predicated expressions The logical connector for the relation of collecting;Generation unit, for the determine object according to the configuration of described dispensing unit, at least one judgement Expression formula, and logical connector generation first condition expression formula, the first condition expression formula are the condition of the determine object Expression formula;Wherein, if the determine object is set, the first condition expression formula also includes the dispensing unit according to the configuration-direct The determine object determined and at least one predicated expressions need the sets match pattern met, and the sets match pattern is used In the number for configuring the element that at least one predicated expressions are required to meet in the set.
Optionally, each predicated expressions at least one predicated expressions correspond to an attribute to be determined, and this is treated Judge attribute of the attribute for determine object;For each predicated expressions, if attribute to be determined corresponding to the predicated expressions For the subobject of the determine object, dispensing unit configures the predicated expressions according to configuration-direct, specifically included:According to the configuration Instruction, determines the second condition expression formula of the subobject, the second condition expression formula is the predicated expressions.
Optionally, if it is determined that attribute to be determined corresponding to expression formula is the non-subobject attribute of determine object, dispensing unit The predicated expressions are configured according to configuration-direct, specifically included:According to the configuration-direct, configure and treated corresponding to the predicated expressions Judge attribute, operator and decision content, obtain the predicated expressions.
Optionally, configuration device also includes display unit;The display unit, for by calling default definition data Storehouse, shown on figure configuration interface object domain, logical connector, operator, decision content, sets match pattern image and/ Or list;
Acquiring unit obtains the configuration-direct of user's input, specifically includes:Detection user is somebody's turn to do what the display unit was shown The information inputted on figure configuration interface, determine the configuration-direct.
Optionally, dispensing unit, it is additionally operable to according to configuration-direct, configures the title and value of determine object, the judgement pair The title of elephant is used to quote the determine object when configure first condition expression formula, the value of the determine object for this first Initializing variable statement is generated in the executable file of conditional expression.
Optionally, configuration device also includes memory cell;The memory cell, for generation unit according to determine object, After at least one predicated expressions, and logical connector generation first condition expression formula, using the configuration file of standardization Preserve the first condition expression formula.
The technique effect of the configuration device for the conditional expression that the application provides may refer to above-mentioned first aspect or first The technique effect of each implementation of aspect, here is omitted.
With reference to above-mentioned first aspect and/or second aspect, optionally, the sets match pattern is in following four pattern It is a kind of:
Pattern one:Any match pattern, any match pattern require the arbitrary element in the set meet this at least one Individual predicated expressions;
Pattern two:Without match pattern, all elements required without match pattern in the set be unsatisfactory for this at least one Individual predicated expressions;
Pattern three:Full match pattern, the full match pattern require all elements in the set all meet this at least one Individual predicated expressions;
Pattern four:Size match pattern, the size match pattern require that the element of the specified number in the set meets to be somebody's turn to do At least one predicated expressions.
The third aspect, the application provide a kind of enforcement engine, including:Converting unit, for by first condition expression formula The configuration file of standardization is converted to executable file;Execution unit, for performing the executable text of the first condition expression formula Part.
Fourth aspect, this application provides a kind of configuration device of conditional expression, including processor, memory, input Module, display and bus;The memory, for storing computer executed instructions, display is used to show that figure configures boundary Face, input module are used for the configuration-direct for obtaining user's input;The processor, pass through the bus and the memory and input mould Block, display connection, when configuration device is run, the computer executed instructions that are stored in the computing device memory, with Realize the collocation method of the conditional expression described in the various implementations of first aspect and first aspect.
5th aspect, this application provides a kind of enforcement engine, including processor, memory, display and bus;Should Memory, for storing computer executed instructions;The processor, it is connected by the bus with the memory, display, works as execution When engine-operated, the computer executed instructions that are stored in the computing device memory, to realize the bar described in first aspect The step of enforcement engine performs in the collocation method of part expression formula.
6th aspect, the application also provide a kind of computer-readable storage medium, finger are stored with the computer-readable storage medium Order, when run on a computer so that computer performs any optional mode institute of above-mentioned first aspect or first aspect The method stated.
5th aspect, present invention also provides a kind of computer program product for including instruction, when it is transported on computers During row so that computer performs the method described in any optional mode of above-mentioned first aspect or first aspect.
Brief description of the drawings
Fig. 1 is a kind of schematic diagram for computer system that the application provides;
Fig. 2A is a kind of structural representation one of the configuration device for conditional expression that the application provides;
Fig. 2 B are a kind of structural representation one for enforcement engine that the application provides;
Fig. 3 is a kind of flow chart one of one embodiment of the collocation method for conditional expression that the application provides;
Fig. 4 is the schematic diagram that a kind of predicated expressions that the application provides add frame;
Fig. 5 is a kind of schematic diagram of the structural model for sequence information that the application provides;
Fig. 6 is a kind of schematic diagram for sets match model selection frame that the application provides;
Fig. 7 is a kind of non-subobject Attributions selection schematic diagram that the application provides;
Fig. 8 is a kind of schematic diagram of the choice box for logical connector that the application provides;
Fig. 9 is a kind of flowchart 2 of one embodiment of the collocation method for conditional expression that the application provides;
Figure 10 is a kind of schematic diagram of the determine object configuration block for application scenarios that the application provides;
Figure 11 is a kind of schematic diagram for figure configuration interface that the application provides;
Figure 12 is that a kind of figure for conditional expression that the application provides shows schematic diagram;
Figure 13 is a kind of flow chart 3 of one embodiment of the collocation method for conditional expression that the application provides;
Figure 14 is a kind of flow chart of one embodiment of the execution method for conditional expression that the application provides;
Figure 15 A are a kind of structural representation two of the configuration device for conditional expression that the application provides;
Figure 15 B are a kind of structural representation three of the configuration device for conditional expression that the application provides;
Figure 15 C are a kind of structural representation four of the configuration device for conditional expression that the application provides;
Figure 16 A are a kind of structural representation two for enforcement engine that the application provides;
Figure 16 B are a kind of structural representation three for enforcement engine that the application provides;
Figure 16 C are a kind of structural representation four for enforcement engine that the application provides.
Embodiment
First, the terms " system " and " network " are often used interchangeably herein.Herein except logic connects Symbol " and " beyond involved term " and ", only a kind of incidence relation for describing affiliated partner, expression may have three Kind relation, for example, A and B, can be represented:Individualism A, while A and B be present, these three situations of individualism B.In addition, this Character "/" in text, it is a kind of relation of "or" to typically represent forward-backward correlation object.
When the application refers to ordinal numbers such as " first ", " second ", " the 3rd " or " the 4th ", unless based on context its The meaning of certain order of representation, it is appreciated that being only that differentiation is used.
The collocation method for the conditional expression that the application provides, it can apply to need the system for carrying out precondition judgement In.Exemplary, as shown in figure 1, a kind of involved system architecture of the conditional expression provided for the application.Including condition The enforcement engine of the configuration device of expression formula, operation system and conditional expression.Wherein, configuration device can be completed to application The configuration of conditional expression needed for scene and each application scenarios.The configuration device can be based on IDE The device of (Integrated Development Environment, IDE).When operation system needs to carry out precondition judgement When, enforcement engine can be called, enforcement engine according to the application scenarios of operation system, can then obtain the condition table of configuration device configuration Performed up to formula, then return result to operation system.
As shown in Figure 2 A, for the application provide a kind of configuration device structural representation, including processor, memory, Input module, display, bus.
Wherein, processor is the control centre of the configuration device, utilizes various interfaces and the whole configuration device of connection Various pieces, by running or performing the software program and/or module that are stored in memory, and call and be stored in storage Data in device, the various functions and processing data of configuration device are performed, so as to carry out integral monitoring to configuration device.Processor Digital signal processor device, micro processor device, analog-digital converter, digital analog converter etc., these equipment energy can be included Enough control and the signal processing function of assignment configuration device according to respective ability.Input module can include physics and/or Virtual mouse, keyboard, configuration-direct is inputted for user.Display is used to show configuration interface.Configuration device can also wrap Communication interface is included, can be communicated with enforcement engine or storage device.
As shown in Figure 2 B, a kind of hardware configuration of the enforcement engine provided for the application, including it is processor, memory, defeated Enter module, display, bus and communication interface.
Wherein, processor is the control centre of the enforcement engine, utilizes various interfaces and the whole enforcement engine of connection Various pieces, by running or performing the software program and/or module that are stored in memory, and call and be stored in storage Data in device, the various functions and processing data of enforcement engine are performed, so as to carry out integral monitoring to enforcement engine.Processor Digital signal processor device, micro processor device, analog-digital converter, digital analog converter etc., these equipment energy can be included It is enough to distribute control and the signal processing function of enforcement engine according to respective ability.Input module can include physics and/or Virtual mouse, keyboard, configuration-direct is inputted for user.Display is used to show Debugging interface, can be right so as to obtain user Implementation procedure is monitored and debugged.Enforcement engine can also include communication interface, can be with configuration device or storage device Communicated.
As shown in figure 3, a kind of flow chart of one embodiment of the collocation method of the conditional expression provided for the application, This method comprises the following steps:
Step 301, configuration device obtains the configuration-direct of user's input.
Wherein, configuration device can be according to user on the configuration interface that the configuration device provides, and the information of input is come really Determine configuration-direct.
In one example, the configuration device of the application provides a kind of figure configuration interface.When user needs configuration condition During expression formula, configuration device can show object domain, logic by calling default definition database on figure configuration interface The contents such as connector, operator, decision content, the image of sets match pattern and/or list.Matched somebody with somebody by detecting user in the figure Put and the information such as click commands, numerical value, character and text are inputted on interface, determine a series of configuration-directs.
Step 302, configuration device configures determine object, for judging the determine object at least according to the configuration-direct One predicated expressions, and for establishing the logical connector of the logical relation between at least one predicated expressions.
Configuration for determine object, configuration device can determine the judgement needed according to configuration-direct from object domain Object.Wherein, object domain is corresponding with application scenarios, and different application scenarios have different object domains.It is provided herein Object domain include corresponding to application scenarios when carrying out precondition judgement, it is allowed to the name of all determine objects of judgement Claim, and each determine object allows all properties of judgement.
In this application, when configuration device determines to need to configure the conditional expression of a certain application scenarios according to configuration-direct When, corresponding object data structure can be read in database is defined, then in figure shows circle by the way of tree structure Each determine object that the application scenarios are related to is shown on face.
It is exemplary, when configuration be the conditional expression used in order application scenarios when, as shown in figure 4, configuration dress Putting can show that predicated expressions add frame on figure configuration interface, and configuration device can reach according to configuration-direct in decision table Order model tree, including modification personnel, old order, order, address information, coordinator, order item, project are shown in formula addition frame Determine object in the order application scenarios such as brief introduction, customer profile, order item stock, order item member.
It should be noted that can be nest relation between determine object and determine object in the application.For example, upper State in the determine object enumerated, business specific type, modification personnel, old order and order are single objects arranged side by side. And order and address information, coordinator and order item possess nest relation, i.e. address information, coordinator and order item is to order Single subobject.Order item and project brief, customer profile, order item stock and order item member possess nest relation, item Mesh brief introduction, customer profile, order item stock and order item member are the subobject of order item.In Fig. 4, a determine object If preceding marked symbol " > ", then it represents that the determine object has subobject.When configuration device detects that symbol " > " is clicked, The subobject list of i.e. deployable corresponding determine object.Each subobject is also a determine object.User can order at this Single model tree passes through the title of determine object corresponding to click, to select the determine object of conditional expression to be configured.For example, In Fig. 4, configuration device detects the title of the determine object of click before " completion " button is clicked, and is expressed for condition to be configured The determine object of formula.
What deserves to be explained is the determine object provided in itself asking can be a single object or one Set.For example, as shown in figure 5, structural model for sequence information, an order can include multiple order items, each order Item can include multiple order item stocks again.So, the structural model based on Fig. 5, the order in Fig. 4 are one and individually judged Object, order item and order item stock are a set respectively.Element in order item set is all orders of an order , the element in order item stock's set is all order item stocks in an order item.
In this application, it is that the determine object of set is associated with sets match pattern for each, the sets match Pattern is used for the number for configuring the element that at least one predicated expressions are required to meet in the set.Wherein, sets match pattern Including but not limited to following four:
Pattern one:Any matching (Any Item Matching) pattern, any match pattern require any in the set Element meets at least one predicated expressions for judging the set.As long as that is there is any one element in the set Meet at least one predicated expressions.
Pattern two:Without matching (Not Any Item Matching) pattern, no match pattern requires all in the set Element is unsatisfactory at least one predicated expressions.That is require there can not be element to meet that this is at least one in the set Predicated expressions.
Pattern three:Full matching (ALL) pattern, full match pattern require that all elements in the set all meet this at least One predicated expressions.
Pattern four:Size matches (Size Matching) pattern, and size match pattern requires the specified number in the set Element meet at least one predicated expressions.
When configuration device according to configuration-direct determine determine object be one set when, you can on figure configuration interface show Show sets match model selection frame, for selection by the user determine object (i.e. one set) and at least one predicated expressions Need the sets match pattern met.Exemplary, as shown in fig. 6, the sets match pattern choosing shown on figure configuration interface Selecting frame includes the select button of above-mentioned four kinds of patterns and each pattern.And for pattern four, in sets match model selection frame Size input selectionbar is also provided.When user clicks on selection mode four, user can be inputted in selectionbar in the size, input Concrete numerical value, meet at least one predicated expressions with the multiple elements configured in specific requirement set.Either pass through click The number list that corresponding triangular sign " ▼ " is provided with causing configuration device to deploy on the figure configuration interface, then selection need The numerical value wanted.So as to complete the configuration to determine object.
What deserves to be explained is in this application, by regarding a set as determine object, and associated for the determine object The sets match pattern that can use, realize the configuration process integrally judged the element in a set.Need not Predicated expressions are respectively configured to each element in the set.
After determine object configuration is completed, configuration device can be configured to judge the determine object according to configuration-direct At least one predicated expressions.Each predicated expressions correspond to an attribute to be determined, and the attribute to be determined is the judgement The attribute of object.
In this application, the attribute of determine object includes non-subobject attribute and subobject attribute.For example, order item is come Say, non-subobject attribute can include type of action (action type), modification correlation ID (amend rela ID), be applicable pair As attributes such as ID (apply object ID), applicable object types (apply object type).Subobject attribute includes ordering Individual event stock, order item member etc..That is, in this application, the subobject of a determine object, the judgement can be used as One attribute of object.
When configuring predicated expressions, if attribute to be determined corresponding to the predicated expressions is right for the non-son of the determine object As attribute, then the mode that configuration device configures the predicated expressions according to the configuration-direct of input is:According to the configuration-direct, Attribute, operator and decision content to be determined corresponding to the predicated expressions are configured, obtains the predicated expressions.
Exemplary, based on interface shown in Fig. 4, user can directly input Property Name to be determined in attribute column.Or It is to provide non-subobject Property Name list, Ran Houdian by clicking on triangular sign corresponding to attribute column " ▼ " to deploy configuration device Hit the Property Name of needs.Exemplary, as shown in Figure 7, it is assumed that the determine object of selection is order item, then configuration device exists When detecting that triangular sign corresponding to attribute column " ▼ " is clicked, you can the non-subobject Property Name list of expansion order item.Example Such as, type of action, modification correlation ID, applicable object ID, applicable object type etc..
When configuring operator, user can also input the behaviour of needs in the operator column directly on figure configuration interface Accord with.Triangular sign " ▼ " either corresponding to clicking operation symbol column (for example, operator column as shown in Figure 4), with expansion configuration dress The operator list of offer is provided, then clicks on the operator of needs.
It should be noted that configuration device can be according to the type of the decision content corresponding to attribute to be determined, to determine The operator list shown is needed, i.e., the operator that the type of decision content corresponding to displaying can be supported in operator list. Exemplary, the adapted relationships planted between operator and the type of decision content can be with as shown in table 1 below:
Table 1
Operator Character type Numeric type Date-time type
= Support Support Support
!= Support Support Support
in Support Support Do not support
notin Support Support Do not support
>= Do not support Support Support
> Do not support Support Support
< Do not support Support Support
<= Do not support Support Support
Configuration for decision content, the decision content that the application provides can be constant value (Constants), variate-value (Variables), enumerated value (enums), it can also be function expression value (function) etc..
Wherein, constant value can include " number of users under client, the maximum number parameter of allowance under acquisition system ", " obtain Take under system account number, the maximum number parameter of allowance under client ", " minimal ages that user permits under acquisition system ", " obtain Take the single account arrearage of client under system, the maximum number parameter of allowance " etc. numerical value.
Exemplary, the definition of constant metadata of the constant value in database is defined can be with as follows:
<entity-data>
<Constant name=" CUST_MAX_SUBCOUNT " type=" number-integer "
Number of users, the maximum number parameter of allowance under client under description=" the acquisition systems of Value=" 1 " "/ >
<Constant name=" CUST_MAX_ACCTCOUNT " type=" number-integer "
Account number, the maximum number parameter of allowance under client under description=" the acquisition systems of Value=" 1 " "/ >
<Constant name=" CUST_MIN_AGE " type=" number-integer " value=" 18 "
The minimal ages that user permits under description=" acquisition systems "/>
<Constant name=" CUST_OWE_SINGLE " type=" number-integer " value=" -50 "
The single account arrearage of client under description=" acquisition systems, the maximum number parameter of allowance "/>
Variate-value can include revocable values such as " current time ", " current date ".
Enumerated value can include newly-increased (add), activation (active), deletion (remove), reservation (remain), modification (amend), the identifier such as pre- cancellation (predeactivate).
Exemplary, the enumerated value of the attribute type of action of order item enumerates dictionary metadata in database is defined Definition can be with as follows:
<The action piece of enumeration name=" OrderItem_Action_type " display-name=" orders item Lift ">
<Enumeration-item name=" add " value=" add " description "=newly-increased display- Name=" add "/>
<Enumeration-item name=" activate " value=" activate " description "=activation Display-name=" activate "/>
<Enumeration-item name=" remove " value=" remove " description "=deletion Display-name=" remove "/>
<Enumeration-item name=" remain " value=" remain " description "=reservation Display-name=" remain "/>
<Enumeration-item name=" amend " value=" amend " description "=modification Display-name=" amend "/>
<Enumeration-item name=" predeactivate " value=" predeactivate " Description "=pre- cancellation display-name=" predeactivate "/>
For constant value, variate-value and enumerated value, user can be in the decision content column directly on figure configuration interface Input the decision content needed.Or triangular sign " ▼ " corresponding to decision content column (for example, decision content column as shown in Figure 4) is click on, To deploy the decision content for judging value list, then clicking on needs corresponding with attribute to be determined of configuration device offer.
Optionally, the figure configuration interface that the application provides also provides auxiliary input frame to carry out input constant value, variable Value and enumerated value input, by show determine object each attribute list and each attribute corresponding to decision content row Table, inputted with quickening value and prevent from manually entering easy error.
For function expression value, it is corresponding that configuration device can collect the acquisition attribute to be determined with this from definition database All function expressions definition, and each function expression support function enter ginseng (In Parameters) list, and Shown in figure configuration interface, for selection by the user.
Optionally, if it is determined that attribute to be determined corresponding to expression formula is the subobject of determine object, then the configuration device The second condition expression formula of the subobject can be determined according to configuration-direct, the second condition expression formula is the determine object One predicated expressions.
In this application, if second condition expression formula is the conditional expression being configured, then configuration device can Directly to quote the title of second condition expression formula, as the predicated expressions for judging determine object.
If second condition expression formula is not pre-configured with, then configuration device can configure second condition according to configuration-direct Expression formula includes determining that subobject is new determine object, is then configured to judge that at least one decision table of the subobject reaches Formula, and for establishing the logical connector of the logical relation between at least one predicated expressions.If subobject is collection Close, then configuration device also needs to configure the sets match relation of the subobject according to configuration-direct.
It is understood that when configuring the predicated expressions of second condition expression formula, for the non-subobject of subobject Attribute, then the predicated expressions of corresponding attribute to be determined are configured by configuring attribute, decision content and operator to be determined.It is right In the subobject attribute (assuming that referred to as sub- subobject) of subobject, it is determined that the conditional expression of sub- subobject is as the subobject A predicated expressions.
As can be seen that due to possessing nest relation between determine object and determine object, therefore, in sentencing for the determine object In the configuration process for determining expression formula, by the attribute that the subobject of determine object is used as to the determine object so that son is right The conditional expression of elephant can be as a predicated expressions of determine object, it is achieved thereby that the conditional expression of determine object Nesting between the conditional expression of its subobject.
Configuration for logical connector, the logical connection symbol in the application include " and (and) " and " or (or) ".Example Property, if configuration device gets the configuration-direct of addition logical connection symbol, configuration device then can be in figure configuration interface The choice box of logical connector as shown in Figure 8 is shown, by detecting the click commands of user, determines that the logic of user's selection connects Connect symbol.
In this application, by adding logical connector, each predicated expressions of determine object are subjected to logic connection, So as to by each predicated expressions, determine object, the subobject of determine object, subobject each predicated expressions and logic Connector connects into decision logic tree, with establish judge each predicated expressions, determine object, determine object subobject and Complicated, multi-level logical relation between each predicated expressions of subobject.
Step 303, configuration device is according to the determine object, at least one predicated expressions, and the logical connector First condition expression formula is generated, if it is determined that object is set, the first condition expression formula also includes determining according to the configuration-direct The determine object and at least one predicated expressions need the sets match pattern that meets.
It is understood that when configuration device is completed to determine object, predicated expressions, sets match according to configuration-direct After the configuration of pattern and logical connector, configuration device can be based on determine object, predicated expressions, sets match pattern And the logical relation between logical connector, automatically generate complete first condition expression formula.
What deserves to be explained is, it is necessary to carry out the configuration of application scenarios before determine object is configured, including configuration is each should With the object domain corresponding to scene, the definition to the determine object needed for the conditional expression of subsequent configuration is completed.I.e. with Determine object is put before, it is necessary to be defined based on application scenarios to determine object.
Exemplary, based on Fig. 3, as shown in figure 9, before above-mentioned steps 302, this method also includes:
Step 300, configuration device configures the title and value of determine object according to the configuration-direct, the determine object Title is used to quote the determine object when configuring the first condition expression formula, and the value of the determine object is used at this first Initializing variable statement is generated in the executable file of part expression formula.
Exemplary, using the ID of application scenarios as " OrderProcessingUnitScene ", application scenarios are entitled " to be ordered Singly fulfil node scene " application scenarios exemplified by.Configuration node can show the judgement pair of application scenarios in figure configuration interface As configuration block, as shown in Figure 10, including the ID of application scenarios, application scenarios title and the application scenarios description (are specially " to order Singly fulfil node needs to make precondition judgement before execution "), and the definition input frame of determine object.In the determine object Define in input frame, the title and value of determine object can be inputted, can also be inputted in type, description of determine object etc. Hold.
For example, for determine object order, title is configured to " order ", and value is configured to " $ BingdingContext (“oerdercontext”).OrderModel”.Title " order " can be quoted in order model tree as shown in Figure 4.Take " $ BingdingContext (" oerdercontext ") .OrderModel " is for the first condition expression formula in order for value Initializing variable statement is generated in executable file.The contents such as description that can also be to order, type configure, such as order Be described as " Order Instance object ", type is " com.huawei.bes.om.Order " etc..
As shown in Figure 10, for can also click on the definition of " addition " button or " deletion " button in determine object The definition of the determine object of application scenarios is added or deleted in input frame.
With reference to an example, the collocation method of the conditional expression provided the application illustrates.
It is a precondition expression formula of exchanging goods assuming that wanting configuration condition expression formula 1, for being carried out in application scenarios for order In row node field, the conditional expression used when the precondition that business of exchanging goods is carried out judges is performed.Conditional expression 1 will be completed The judgement of 5 conditions, it is respectively:Condition 1:The type of service of order=business of exchanging goods;Condition 2:All order item action types =operation of exchanging goods;Condition 3:Order item is worked as and only includes two stock items;Condition 4:One stock item action type=addition;Bar Part 5:One stock item action type=deletion.
When the configuration of conditional expression is proceeded by, configuration device can show that instruction adds in figure configuration interface Add the pattern of logical connector and the pattern of instruction addition predicated expressions.User adds the pattern of logical connector by clicking on Logical connector is added with the pattern of instruction addition predicated expressions with predicated expressions.
Exemplary, as shown in figure 11, configuration device can show instruction addition logical connector in figure configuration interface Pattern " ↓ " and instruction addition predicated expressions patternUser indicates the pattern of addition logical connector by clicking on " ↓ " come add logical connector " and " or "or".The pattern of addition predicated expressions is indicated by clicking onOn adding State each predicated expressions corresponding to 5 conditions.
Configuration device in the determine object of conditional expression 1, predicated expressions, is patrolled based on the mode described in step 302 During volume connector is configured, it can also show that figure configuration interface shows corresponding figure, finally give condition table Figure up to formula 1 is shown.
Exemplary, the figure displaying of conditional expression 1 can be as shown in figure 12, and what is added first is corresponding to condition 1 Predicated expressions.Configuration device determines determine object as after order, the dotted line frame of order is shown in figure configuration interface.Dotted line Inframe is all the elements of conditional expression 1.Represent that order is a single determine object by dashed box, condition 1 passes through The figures of predicated expressions " type of service=business of exchanging goods " is expressed, that is, illustrates the non-subobject attribute " service class of order Type " is required to meet predicated expressions " type of service=business of exchanging goods ".Condition 2-5 is the subobject attribute " order for order The judgement of item ".I.e. by the predicated expressions corresponding to subobject attribute " order item " come expression condition 2-5.Subobject attribute The figure of the predicated expressions of " order item " and predicated expressions (the i.e. condition of order item of non-subobject attribute " type of service " Expression formula 2) figure by logical connector " and " figure connect, represent that both are both needed to meet.
The configuration of the predicated expressions of child objects attribute " order item ", first configuration device configure according to configuration-direct After determine object " order item " (subobject of order), the solid box of order item, solid line are shown in the dotted line frame of order Inframe is all the elements of conditional expression 2, and solid box represents that order item is a set.Because all order items will expire Sufficient condition 2-4 requirement, it is therefore desirable to which configuration set match pattern is " full match pattern ".Then in the solid box of order item Add logical connector " and " figure, logic-based connector " and " figure difference adding conditional 2-5 corresponding to judgement Object is the predicated expressions of " order item ".
Condition 2 is expressed by the figure of predicated expressions " action type=operation of exchanging goods ", that is, illustrates order item Non- subobject attribute " action type " is required to meet predicated expressions " action type=operation of exchanging goods ".
Condition 3-5 is the judgement for the subobject attribute " order item stock " of order item.So, i.e., by corresponding to ordering The predicated expressions of individual event subobject attribute " order item stock " carry out expression condition 3-5.
Condition 3 is expressed by the figure of the size match pattern " size==2 " of determine object " order item stock ".I.e. Represent to require the order item of selection only two order item stocks in all order items.
Condition 4 is expressed by the figure of the conditional expression of determine object " order item stock ".I.e. configuration device according to Configuration-direct shows that order item stock's realizes frame, and shows that set match pattern is any match pattern.Order item stock's Realize and predicated expressions " action type=addition " are shown in frame, represent the non-subobject attribute " action type " of order item stock It is required to meet " action type=addition ".That is the conditional expression of determine object corresponding to condition 4 " order item stock " Figure represent an order item stock action type for addition.
Condition 5 is expressed by the figure of the conditional expression of determine object " order item stock ".I.e. configuration device according to Configuration-direct shows that order item stock's realizes frame, and shows that set match pattern is any match pattern.Order item stock's Realize and predicated expressions " action type=deletion " are shown in frame, represent the non-subobject attribute " action type " of order item stock It is required to meet " action type=deletion ".That is the conditional expression of determine object corresponding to condition 5 " order item stock " Figure represent an order item stock action type for delete.
In one example, configuration device is after completing to configure first condition expression formula, for the ease of user to first Conditional expression is standardized exploitation, can preserve first condition expression formula using the configuration file of standardization.It is exemplary , based on Fig. 3, as shown in figure 13, after above-mentioned steps 302, this method also includes:
Step 304, configuration device preserves first condition expression formula using the configuration file of standardization.
Wherein, the configuration file of standardization can be extensible markup language (eXtensible Markup Language, XML) the file of file or other standards.
First condition expression formula is preserved by using the configuration file of standardization, does not use specific script, so that Conditional expression is obtained to be advantageous to user independently of concrete implementation form and be standardized exploitation to first condition expression formula.
Exemplary, show that its XML file is for the figure of above-mentioned conditional expression 1 as shown in figure 12:
After configuration device completes the configuration to first condition expression formula and preservation, enter when needing execution first condition expression formula When precondition judges in the corresponding application scenarios of row, because the configuration file of standardization can not be performed directly, it is therefore desirable to first will First condition expression formula is converted to executable file, such as Domain Specific Language (Domain Specific Language, DSL) Script.Then the executable file of the first condition expression formula is being performed.
Exemplary, based on the collocation method of conditional expression as shown in fig. 13 that, the application also provides a kind of condition table Up to the execution method of formula, as shown in figure 14, this method includes:
Step 1401, the configuration file of the standardization of the first condition expression formula is converted to executable text by enforcement engine Part.
Step 1402, enforcement engine performs the executable file of the first condition expression formula.
Exemplary, using standard configurations file as XML file, executable file is exemplified by DSL script.Enforcement engine can Process in above-mentioned steps 1401 is realized with 140101-140113 as follows:
Step 140101, conditional expression is obtained.
The ID for the application scenarios that enforcement engine is sent according to operation system, either stored in the memory cell of configuration device The XML file of conditional expression corresponding to being read in device.
Step 140102, the XML file of analysis condition expression formula, and whether demonstrate the XML file correct.
Step 140103, determine object is obtained from the XML file of the conditional expression.
Step 140104, according to the value of the name acquiring of the determine object determine object, according to taking for the determine object The variable initial assignment fragment of value generation DSL scripts.
Step 140105, judge whether the determine object is gathered, if it is set to work as the determine object, corresponding to The loop body structure fragment of the DSL scripts of sets match schema creation control circulation running body.
Step 140106, the predicated expressions of the determine object are obtained, and parse the attribute in the predicated expressions, computing Symbol, decision content.
Step 140107, the logic decision fragment of DSL scripts is generated (including to decision content according to the predicated expressions of parsing Functional operation etc.).
Step 140108, if it is determined that the title for the conditional expression quoted in expression formula be present, then according to above-mentioned steps The step of 140101-1401078, generate the conditional expression fragment of DSL scripts by the way of recursive call, and by the fragment It is embedded into the DSL script fragments of the predicated expressions.
Step 140109, logical connector is obtained, determines the logical relation of each DSL fragments.
Step 140110, according to logical relation, each predicated expressions of the determine object are obtained after computing Boolean is connected by logical connector, that is, carries out each fragment assembly of DSL scripts, generates DSL scripts.
What deserves to be explained is the configuration file of the standardization of first condition is being converted into executable file by enforcement engine During, the executable file of conversion can be shown in Debugging interface.For example, the XML file conversion of above-mentioned condition expression formula 1 DSL scripts be:
By by the DSL scripts of conversion Debugging interface display so that the conversion of conditional expression can with implementation procedure Monitoring, it is adjustable.
It should be noted that the interface shown in above-mentioned Fig. 4-8 and 10-12, exemplary only explanation.This Shen can be based on The collocation method for the conditional expression that please be provided designs the appearance form of other figure configuration interfaces.
From above-described embodiment as can be seen that using the application provide conditional expression collocation method, can be by one Set is overall to be used as determine object, thinks at least one predicated expressions of set configured in one piece.And matched by configuration set Pattern, to configure the number for the element that at least one predicated expressions are required to meet in the set.It is achieved thereby that to set Overall judgement.Without carrying out the configuration of predicated expressions one by one to each element in set, condition expression is improved The allocative efficiency of formula, reduce the configuration complexity of conditional expression.
The above-mentioned scheme mainly provided from the angle of method flow the application is described.It is understood that bar In order to realize above-mentioned function, it comprises perform each corresponding hardware of function for the configuration device of part expression formula, enforcement engine etc. Structure and/or software module.Those skilled in the art should be readily appreciated that, be described with reference to the embodiments described herein Each example unit and algorithm steps, the application can realize with the combining form of hardware or hardware and computer software. Some function is performed in a manner of hardware or computer software driving hardware actually, application-specific depending on technical scheme And design constraint.Professional and technical personnel can realize described work(using distinct methods to each specific application Can, but this realization is it is not considered that exceed scope of the present application.
The application can carry out function mould according to above method example to the configuration device of conditional expression, enforcement engine etc. The division of block, for example, can correspond to each function divides each functional module, can also be by two or more function collection In Cheng Yi processing module.Above-mentioned integrated module can both be realized in the form of hardware, can also use software function The form of module is realized.It should be noted that the division in the application to module is schematical, only a kind of logic function Division, can there is other dividing mode when actually realizing.
In the case where dividing each functional module using corresponding each function, Figure 15 A show institute in above-described embodiment A kind of possible structural representation of the configuration device for the conditional expression being related to, the configuration of conditional expression include:Obtain single Member 1501, dispensing unit 1502, generation unit 1503, memory cell 1504 and display unit 1505.Acquiring unit 1501 is used The step 301 in Fig. 3,9,13 is performed in the configuration device of supports conditions expression formula;Dispensing unit 1502 is used for supports conditions table Configuration device up to formula performs step 302 in Fig. 3, the step 302 in step 300 and 302, Figure 13 in Fig. 9;Generation unit 1503 configuration devices for being used for supports conditions expression formula perform the step 303 in Fig. 3,9,13;Memory cell 1504 is used to support The configuration device of conditional expression performs the step 304 in Figure 13;Display unit 1505 is used for the configuration of supports conditions expression formula Device shows the related interfaces such as figure configuration interface.Wherein, all related contents for each step that above method embodiment is related to The function description of corresponding function module can be quoted, will not be repeated here.
In the case of using integrated unit, Figure 15 B show conditional expression involved in above-described embodiment A kind of possible structural representation of configuration device.The configuration device of conditional expression includes:Processing module 1511, input module 1512nd, output module 1513.The action that processing module 1511 is used for the configuration device of conditional expression is controlled management, example Such as, processing module 1511 be used for control input module 1512 perform Fig. 3 in step 301-303, Fig. 9 in step 301,300, 302nd, the step 301-304 in 303, and Figure 13;And/or other processes for techniques described herein.Condition is expressed The configuration device of formula can also include memory module 1514, the program code sum for the configuration device of storage condition expression formula According to.The configuration device of conditional expression can also include communication module 1515, for the configuration device of conditional expression and its He is communicated at device.
Wherein, processing module 1511 can be processor or controller, such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Application specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other PLDs, transistor logic, hard Part part or its any combination.What it can realize or perform with reference to described by present disclosure various exemplary patrols Collect square frame, module and circuit.The processor can also be the combination for realizing computing function, such as include one or more micro- places Manage device combination, combination of DSP and microprocessor etc..Input module 1512 can be the inputs such as mouse, keyboard, touch-screen dress Put.Output module 1513 can be display.Memory module 1514 can be memory.Communication module 1515 can be that communication connects Mouth, transceiver, transmission circuit etc..
When processing module 1511 is processor, input module 1512 is input unit, and output module 1513 is display, is deposited Storage module 1514 is memory, and when communication module 1515 can be communication interface, conditional expression involved by the application is matched somebody with somebody Put the configuration device that device can be the conditional expression shown in Figure 15 C.
Refering to shown in Figure 15 C, the configuration device of the conditional expression includes:Processor 1521, display 1522, input dress 1523, memory 1524, communication interface 1525 and bus 1526 is put to be connected with each other;Bus 1526 can be Peripheral Component Interconnect Standard (Peripheral Component Interconnect, PCI) bus or EISA (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, Controlling bus etc..For ease of representing, only represented in Figure 15 C with a thick line, it is not intended that an only bus or a species The bus of type.
In the case where dividing each functional module using corresponding each function, Figure 16 A show institute in above-described embodiment A kind of possible structural representation for the enforcement engine being related to, enforcement engine include:Converting unit 1601, execution unit 1602, Display unit 1603.Converting unit 1601 is used to support enforcement engine to perform the step 1401 in Figure 14;Execution unit 1602 is used The step 1402 in Figure 14 is performed in supporting enforcement engine;Display unit 1603 is used to support enforcement engine to show Debugging interface etc. Related interfaces.Wherein, all related contents for each step that above method embodiment is related to can quote corresponding function mould The function description of block, will not be repeated here.
In the case of using integrated unit, Figure 16 B show the one of enforcement engine involved in above-described embodiment The possible structural representation of kind.Enforcement engine includes:Processing module 1611, output module 1612.Processing module 1611 be used for pair The action of enforcement engine is controlled management, for example, processing module 1611 is used to perform the step 401-402 in Figure 14, and controls Output module 1612 processed shows Debugging interface, and/or other processes for techniques described herein.Enforcement engine can be with Including memory module 1613, for storing the program code and data of enforcement engine.Enforcement engine can also include input module 1614, for when subsequently needing debugging, the debugging instruction of user's input to be obtained under the control of processing module.Enforcement engine is also Communication module 1515 can be included, communicated for enforcement engine with other devices.
Wherein, processing module 1611 can be processor or controller, such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Application specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other PLDs, transistor logic, hard Part part or its any combination.What it can realize or perform with reference to described by present disclosure various exemplary patrols Collect square frame, module and circuit.The processor can also be the combination for realizing computing function, such as include one or more micro- places Manage device combination, combination of DSP and microprocessor etc..Input module 1614 can be the inputs such as mouse, keyboard, touch-screen dress Put.Output module 1612 can be display.Memory module 1613 can be memory.Communication module 1515 can be that communication connects Mouth, transceiver, transmission circuit etc..
When processing module 1611 is processor, input module 1614 is input unit, and output module 1612 is display, is deposited Storage module 1613 is memory, and communication module 1515 is communication interface etc..When, the enforcement engine involved by the application can be figure Enforcement engine shown in 16C.
Refering to shown in Figure 16 C, the enforcement engine includes:Processor 1621, display 1622, input unit 1624, storage Device 1623, communication interface 1625 and bus 1626 are connected with each other;Bus 1626 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or EISA (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, Controlling bus etc..For ease of representing, only represented in Figure 16 C with a thick line, it is not intended that an only bus or a species The bus of type.
The step of method or algorithm with reference to described by present disclosure, can be realized in a manner of hardware, also may be used By be by computing device software instruction in a manner of realize.Software instruction can be made up of corresponding software module, software mould Block can be stored on random access memory (Random Access Memory, RAM), flash memory, read-only storage (Read Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable ROM, EPROM), electricity can EPROM (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, read-only optical disc (CD-ROM) or in the storage medium of any other form well known in the art.A kind of exemplary storage medium is coupled to place Device is managed, so as to enable a processor to from the read information, and information can be write to the storage medium.Certainly, store Medium can also be the part of processor.Processor and storage medium can be located in ASIC.In addition, the ASIC can position In core network interface equipment.Certainly, processor and storage medium can also be present in core network interface as discrete assembly and set In standby.
In the specific implementation, the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can store Have program, the program perform when may include conditional expression provided by the invention collocation method each embodiment in part or Overall Steps.Described storage medium can be magnetic disc, CD, read-only memory (English:Read-only memory, letter Claim:ROM) or random access memory is (English:Random access memory, referred to as:RAM) etc..
It is required general that those skilled in the art can be understood that the technology in the application can add by software The mode of hardware platform is realized.Based on such understanding, the technical scheme in the application is substantially in other words to prior art The part to contribute can be embodied in the form of software product, and the computer software product can be stored in storage medium In, such as ROM/RAM, magnetic disc, CD, including some instructions to cause a computer equipment (can be personal computer, Server, either vpn gateway etc.) perform method described in some parts of each embodiment of the present invention or embodiment.
In this specification between each embodiment identical similar part mutually referring to.Implement especially for device For example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring in embodiment of the method Explanation.
Invention described above embodiment is not intended to limit the scope of the present invention..

Claims (16)

  1. A kind of 1. collocation method of conditional expression, it is characterised in that including:
    Obtain the configuration-direct of user's input;
    According to the configuration-direct, determine object, at least one predicated expressions for judging the determine object are configured, with And for establishing the logical connector of the logical relation between at least one predicated expressions;
    According to the determine object, at least one predicated expressions, and logical connector generation first condition table Up to formula, the first condition expression formula is the conditional expression of the determine object;
    Wherein, if the determine object is set, the first condition expression formula also includes what is determined according to the configuration-direct The determine object and at least one predicated expressions need the sets match pattern met, and the sets match pattern is used In the number for configuring the element that at least one predicated expressions are required to meet in the set.
  2. 2. according to the method for claim 1, it is characterised in that the sets match pattern is one in following four pattern Kind:
    Pattern one:Any match pattern, any match pattern require the arbitrary element in the set meet described at least One predicated expressions;
    Pattern two:Without match pattern, the no match pattern require all elements in the set be unsatisfactory for it is described at least One predicated expressions;
    Pattern three:Full match pattern, the full match pattern require all elements in the set all meet described at least One predicated expressions;
    Pattern four:Size match pattern, the size match pattern require that the element of the specified number in the set meets institute State at least one predicated expressions.
  3. 3. method according to claim 1 or 2, it is characterised in that each sentencing at least one predicated expressions Determine expression formula and correspond to an attribute to be determined, the attribute to be determined is the attribute of the determine object;
    For each described predicated expressions, if attribute to be determined corresponding to the predicated expressions is the determine object Subobject, it is described that the predicated expressions are configured according to the configuration-direct, including:
    According to the configuration-direct, the second condition expression formula of the subobject is determined, the second condition expression formula is described Predicated expressions.
  4. 4. according to the method for claim 3, it is characterised in that if attribute to be determined corresponding to the predicated expressions is institute The non-subobject attribute of determine object is stated, it is described that the predicated expressions are configured according to the configuration-direct, including:
    According to the configuration-direct, attribute, operator and decision content to be determined corresponding to the predicated expressions are configured, is obtained The predicated expressions.
  5. 5. according to the method described in claim any one of 1-4, it is characterised in that methods described also includes:
    By calling default definition database, object domain, logical connector are shown on figure configuration interface, operator, is sentenced Definite value, the image of sets match pattern and/or list;
    The configuration-direct for obtaining user's input, including:
    The information that the user inputs on the figure configuration interface is detected, determines the configuration-direct.
  6. 6. according to the method described in claim any one of 1-4, it is characterised in that methods described also includes:
    According to the configuration-direct, configure the title and value of the determine object, the title of the determine object be used for The determine object is quoted when putting the first condition expression formula, the value of the determine object is used in the first condition table Initializing variable statement is generated up in the executable file of formula.
  7. 7. according to the method described in claim any one of 1-6, it is characterised in that it is described according to the determine object, it is described extremely After few predicated expressions, and logical connector generation first condition expression formula, methods described also includes:
    The first condition expression formula is preserved using the configuration file of standardization.
  8. 8. according to the method for claim 7, it is characterised in that the configuration file using standardization preserves described first After conditional expression, methods described also includes:
    The configuration file of the standardization of the first condition expression formula is converted to executable file by enforcement engine;
    The enforcement engine performs the executable file of the first condition expression formula.
  9. A kind of 9. configuration device of conditional expression, it is characterised in that including:
    Acquiring unit, for obtaining the configuration-direct of user's input;
    Dispensing unit, it is configuration determine object, described for judging for the configuration-direct obtained according to the acquiring unit At least one predicated expressions of determine object, and for establishing the logical relation between at least one predicated expressions Logical connector;
    Generation unit, for the determine object according to the configuration of described dispensing unit, at least one predicated expressions, with And the logical connector generation first condition expression formula, the first condition expression formula are expressed for the condition of the determine object Formula;
    Wherein, if the determine object is set, the first condition expression formula is also matched somebody with somebody including the dispensing unit according to Put the determine object that instruction determines and at least one predicated expressions need the sets match pattern that meets, the collection Close the number that match pattern is used to configure the element for being required to meet at least one predicated expressions in the set.
  10. 10. configuration device according to claim 9, it is characterised in that the sets match pattern is following four pattern In one kind:
    Pattern one:Any match pattern, any match pattern require the arbitrary element in the set meet described at least One predicated expressions;
    Pattern two:Without match pattern, the no match pattern require all elements in the set be unsatisfactory for it is described at least One predicated expressions;
    Pattern three:Full match pattern, the full match pattern require all elements in the set all meet described at least One predicated expressions;
    Pattern four:Size match pattern, the size match pattern require that the element of the specified number in the set meets institute State at least one predicated expressions.
  11. 11. the configuration device according to claim 9 or 10, it is characterised in that at least one predicated expressions Each predicated expressions correspond to an attribute to be determined, and the attribute to be determined is the attribute of the determine object;
    For each described predicated expressions, if attribute to be determined corresponding to the predicated expressions is the determine object Subobject, the dispensing unit configure the predicated expressions according to the configuration-direct, specifically included:
    According to the configuration-direct, the second condition expression formula of the subobject is determined, the second condition expression formula is described Predicated expressions.
  12. 12. configuration device according to claim 11, it is characterised in that if category to be determined corresponding to the predicated expressions Property be the determine object non-subobject attribute, the dispensing unit configures the decision table according to the configuration-direct and reaches Formula, specifically include:
    According to the configuration-direct, attribute, operator and decision content to be determined corresponding to the predicated expressions are configured, is obtained The predicated expressions.
  13. 13. according to the configuration device described in claim any one of 9-12, it is characterised in that the configuration device also includes display Unit;
    The display unit is used to, by calling default definition database, object domain, logic are shown on figure configuration interface Connector, operator, decision content, the image of sets match pattern and/or list;
    The acquiring unit obtains the configuration-direct of user's input, specifically includes:
    The information that the user inputs on the figure configuration interface that the display unit is shown is detected, determines the configuration Instruction.
  14. 14. according to the configuration device described in claim any one of 9-12, it is characterised in that
    The dispensing unit, it is additionally operable to, according to the configuration-direct, configure the title and value of the determine object, the judgement The title of object is used to quote the determine object when configuring the first condition expression formula, and the value of the determine object is used Initializing variable statement is generated in the executable file in the first condition expression formula.
  15. 15. according to the configuration device described in claim any one of 9-14, it is characterised in that the configuration device also includes storage Unit;
    The memory cell, in the generation unit according to the determine object, at least one predicated expressions, with And after the logical connector generation first condition expression formula, the first condition table is preserved using the configuration file of standardization Up to formula.
  16. A kind of 16. enforcement engine, it is characterised in that including:
    Converting unit, for the configuration file of the standardization of first condition expression formula to be converted into executable file;
    Execution unit, for performing the executable file of the first condition expression formula.
CN201710922439.3A 2017-09-30 2017-09-30 The collocation method and device of a kind of conditional expression Pending CN107742239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710922439.3A CN107742239A (en) 2017-09-30 2017-09-30 The collocation method and device of a kind of conditional expression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710922439.3A CN107742239A (en) 2017-09-30 2017-09-30 The collocation method and device of a kind of conditional expression

Publications (1)

Publication Number Publication Date
CN107742239A true CN107742239A (en) 2018-02-27

Family

ID=61236661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710922439.3A Pending CN107742239A (en) 2017-09-30 2017-09-30 The collocation method and device of a kind of conditional expression

Country Status (1)

Country Link
CN (1) CN107742239A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966334A (en) * 2020-08-17 2020-11-20 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment
CN112749180A (en) * 2021-01-19 2021-05-04 上海复佳信息科技有限公司 Data management method, electronic device, and computer-readable storage medium
CN116560665A (en) * 2023-07-05 2023-08-08 京东科技信息技术有限公司 Method and device for generating and processing data and credit card marketing rule engine system

Citations (4)

* 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
WO2012164738A1 (en) * 2011-06-03 2012-12-06 株式会社日立製作所 Database management system, device, and method
CN105913316A (en) * 2016-04-15 2016-08-31 中国银行股份有限公司 Rule configuration method and apparatus
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device

Patent Citations (4)

* 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
WO2012164738A1 (en) * 2011-06-03 2012-12-06 株式会社日立製作所 Database management system, device, and method
CN105913316A (en) * 2016-04-15 2016-08-31 中国银行股份有限公司 Rule configuration method and apparatus
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966334A (en) * 2020-08-17 2020-11-20 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment
CN111966334B (en) * 2020-08-17 2023-06-27 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment
CN112749180A (en) * 2021-01-19 2021-05-04 上海复佳信息科技有限公司 Data management method, electronic device, and computer-readable storage medium
CN112749180B (en) * 2021-01-19 2023-06-23 上海复佳信息科技有限公司 Data management method, electronic device, and computer-readable storage medium
CN116560665A (en) * 2023-07-05 2023-08-08 京东科技信息技术有限公司 Method and device for generating and processing data and credit card marketing rule engine system
CN116560665B (en) * 2023-07-05 2023-11-03 京东科技信息技术有限公司 Method and device for generating and processing data and credit card marketing rule engine system

Similar Documents

Publication Publication Date Title
US10949748B2 (en) Deep learning of bots through examples and experience
US11087249B2 (en) Method and apparatus for triggering execution of a workflow over a network
US9043750B2 (en) Automated generation of two-tier mobile applications
US7181694B2 (en) Software customization objects for programming extensions associated with a computer system
US7584417B2 (en) Role-dependent action for an electronic form
CN106844190B (en) Automatic test script generation method and device
US7644099B2 (en) Dynamic generation and automated distribution of user interface from database model
US10671603B2 (en) Auto query construction for in-database predictive analytics
US8332509B2 (en) Parameterized computer monitoring system
US11093242B2 (en) Automatically mapping data while designing process flows
CN115658041B (en) Low-code enhanced service implementation method based on online service flow arrangement
US8903806B2 (en) Matching queries to data operations using query templates
US20050172261A1 (en) Architecture for creating a user interface using a data schema
US8630917B2 (en) Arrangement for guiding user design of comprehensive product solution using on-the-fly data validation
US20060107224A1 (en) Building a dynamic action for an electronic form
US8527452B2 (en) Construction of rules for use in a complex event processing system
US20140032472A1 (en) System, method, and software program product for enabling users to create and use rule patterns to generate custom product-configuration rules
CN107742239A (en) The collocation method and device of a kind of conditional expression
EP2610745A1 (en) Optimizing source code
US8010217B2 (en) Reconfiguration of assets for reuse during manufacturing
US11948084B1 (en) Function creation for database execution of deep learning model
CN117075878A (en) Visual editing system, method, equipment and medium for flow engine
US20140075416A1 (en) Graphical conversion between test program languages
CN109189897A (en) One kind being based on the matched chat method of data content and chat device
CN110796265B (en) Interactive operation method, device, terminal equipment and medium of decision tree model

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

RJ01 Rejection of invention patent application after publication