CN115048156B - Method and device for determining business decision, electronic equipment and storage medium - Google Patents
Method and device for determining business decision, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115048156B CN115048156B CN202210965834.0A CN202210965834A CN115048156B CN 115048156 B CN115048156 B CN 115048156B CN 202210965834 A CN202210965834 A CN 202210965834A CN 115048156 B CN115048156 B CN 115048156B
- Authority
- CN
- China
- Prior art keywords
- target
- configuration
- rule
- business
- action
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application provides a method and a device for determining a business decision, an electronic device and a storage medium, which relate to the technical field of rule engines and comprise the following steps: for each rule configuration area, generating a target condition in response to a first configuration operation executed for the condition configuration area, wherein the target condition corresponds to a target enterprise parameter associated with a target business under a target object; for each rule configuration area, in response to a second configuration operation executed for the action configuration area, generating a target action executed meeting a target condition and a target execution object of the target action; forming a target business rule corresponding to the rule configuration area by the target condition, the target action and the target execution object; and forming and storing a business decision aiming at the target business under the target object by a plurality of target business rules. The method and the device simplify the generation process of the business decision by providing the configuration method of the visual business decision.
Description
Technical Field
The present application relates to the technical field of rule engines, and in particular, to a method and an apparatus for determining a business decision, an electronic device, and a storage medium.
Background
With the continuous development of modern information technology, the requirements of users are more and more complex, so that in order to meet different requirements of users, the related design of a business scene is more and more complex, in order to simplify a business process, some complex business logics need to be abstracted, and a rule engine is provided in the prior art.
However, although the types of rule engines are many, the configuration process of the business decisions corresponding to different businesses is difficult, the structure is complex, and professional developers are often required to complete the configuration of the business decisions, for example, for a certain business decision for acquiring the credit level of an enterprise, 100 business rules may need to be configured, and custom expansion is also required.
Disclosure of Invention
In view of the above, an object of the present application is to provide at least a method, an apparatus, an electronic device and a storage medium for determining a business decision, which simplify a process of generating a business decision by providing a configuration method for visualizing a business decision.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides a method for determining a service decision, where the method includes:
responding to a decision configuration triggering event, and displaying a decision configuration interface, wherein the decision configuration interface comprises a rule adding identifier; generating a corresponding rule configuration area each time a selection operation executed aiming at the rule addition identifier is received, wherein the rule configuration area comprises a condition configuration area and an action configuration area; for each rule configuration area, generating a target condition in response to a first configuration operation performed for the condition configuration area; for each rule configuration area, in response to a second configuration operation executed for the action configuration area, generating a target action executed meeting a target condition and a target execution object of the target action; forming a target business rule corresponding to the rule configuration area by the target condition, the target action and the target execution object; and forming and storing a business decision aiming at the target business under the target object by a plurality of target business rules.
In one possible implementation, the condition configuration area includes a logical relationship configuration item, the first configuration operation includes a logical relationship configuration operation, a business variable configuration operation, a first selection operation, an inequality relationship configuration operation, and an inequality threshold configuration operation, wherein for each rule configuration area, the target condition is generated by: determining a target logical relationship in response to a logical relationship configuration operation performed on the logical relationship configuration item; generating at least one condition configuration item corresponding to the target logic relationship according to the target logic relationship, wherein the condition configuration item comprises a service variable configuration item, an inequality relationship configuration item and an inequality threshold configuration item; receiving a service variable configuration operation executed aiming at a service variable configuration item, pulling and displaying a target service variable list corresponding to a target service from a preset variable database, wherein the target service variable list comprises a plurality of service variables related to the target service; determining a target business variable in response to a first selection operation performed on the target business variable of the plurality of business variables; determining a target inequality relationship in response to an inequality relationship configuration operation performed on an inequality relationship configuration item; generating a target threshold corresponding to the target business variable in response to an inequality threshold configuration operation performed on the inequality threshold configuration item; and forming a target condition by the target business variable, the target inequality relation and the target threshold.
In one possible implementation, the action configuration area includes an action addition identifier, the second configuration operation includes a second selection operation, an action configuration operation, a third selection operation, and an execution object configuration operation, and for each rule configuration area, the target action and the target execution object of the target action are determined by: receiving a second selection operation executed aiming at the action addition identifier, and generating a target action configuration item, wherein the target action configuration item comprises an action configuration item and an execution object configuration item; in response to an action configuration operation executed for an action configuration item, pulling and displaying an action list from a preset action database, wherein the action list comprises a plurality of actions; receiving a third selection operation executed aiming at a target preset action, and determining a target action executed when a target condition is met; and acquiring a target execution object of the target action in response to the execution object configuration operation executed aiming at the execution object configuration item.
In one possible implementation, the execution object configuration operation includes a fourth selection operation, a fifth selection operation, an execution object editing operation, a sixth selection operation, a seventh selection operation, an eighth selection operation, and a ninth selection operation, and the step of acquiring the target execution object of the target action in response to the execution object configuration operation executed for the execution object configuration item includes: in response to a fourth selection operation performed on the execution object configuration item, displaying a direct input selection item, a business variable selection item, and an instance variable selection item; generating an editing area for the execution object configuration item in response to a fifth selection operation performed for the direct input selection item, and determining a target execution object in response to an execution object editing operation performed for the editing area; or, in response to executing a sixth selection operation for the business variable selection item, pulling and displaying a target business variable list from the preset variable database, and in response to executing a seventh selection operation for the target business variable in the target business variable list, determining a target execution object; or, in response to an eighth selection operation executed on the instance variable selection item, pulling and displaying an instance variable list from a preset instance variable database, and in response to a ninth selection operation executed on the target regular expression, generating a target execution object, wherein the instance variable list comprises a plurality of regular expressions.
In a possible implementation manner, the rule configuration area further includes a rule attribute configuration area, and the rule attribute configuration area includes a priority configuration item, an execution number configuration item, and a mutual exclusion group configuration item, where for each rule configuration area, the method further includes: responding to the priority configuration operation executed aiming at the priority attribute configuration item, and generating an execution sequence aiming at a target business rule corresponding to the rule configuration area; in response to the mutual exclusion group configuration operation executed aiming at the mutual exclusion group configuration item, adding a mutual exclusion group identifier for the target service rule corresponding to the rule configuration area; and generating the target execution times of the target business rule corresponding to the rule configuration area in response to the execution time configuration operation executed for the execution time configuration item.
In one possible embodiment, the method further comprises: and calling and operating the service decision of the target service under the target object to obtain an execution result aiming at the target service.
In one possible implementation, the execution result for the target service is obtained by: calling a service decision of a target service, and acquiring a priority sequence, a mutual exclusion group identifier and target execution times corresponding to each target service rule in the service decision; executing a plurality of target business rules according to the priority order corresponding to each target business rule; for each target business rule, judging whether the current execution times of the target business rule reach the corresponding target execution times; if the current execution times of the target service rule reach the target execution times, giving up executing the target service rule, and directly obtaining an operation result corresponding to the target service rule; if the current execution times of the target business rule does not reach the target execution times, judging whether the current execution times of the target business rule is zero or not; if the current execution times of the target business rule is more than zero, executing the target business rule and obtaining an operation result corresponding to the target business rule; if the current execution times of the target service rule is zero, judging whether other target services which reach the target execution times exist in other target service rules which have the same mutual exclusion group identification with the target service rule; if other target services which reach the target execution times in other target service rules, giving up executing the target service rule; if other target services which reach the target execution times do not exist in other target service rules, judging whether other target service rules of which the current execution times are larger than zero exist in other target service rules or not; if other target business rules with the current execution times larger than zero exist in other target business rules, giving up executing the target business rule; if other target business rules with the current execution times larger than zero do not exist in the other target business rules, executing the target business rule and obtaining an operation result corresponding to the target business rule; and determining an execution result aiming at the target service according to the operation results corresponding to the target service rules.
In a second aspect, an embodiment of the present application further provides a device for determining a service decision, where the device includes:
the trigger device is used for responding to a decision configuration trigger event and displaying a decision configuration interface, and the decision configuration interface comprises a rule adding identifier; the selection device is used for generating a corresponding rule configuration area every time a selection operation executed aiming at the rule addition identifier is received, wherein the rule configuration area comprises a condition configuration area and an action configuration area; first configuration means for generating, for each rule configuration area, a target condition in response to a first configuration operation performed for the condition configuration area; second configuration means for generating, for each rule configuration area, in response to a second configuration operation performed for the action configuration area, a target action to be performed that satisfies a target condition and a target execution object of the target action; rule generating means for forming a target business rule corresponding to the rule configuration area from the target condition, the target action, and the target execution object; and the business decision generating device is used for forming and storing the business decision aiming at the target business under the target object by a plurality of target business rules.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processor and the memory communicate with each other through the bus, and the machine-readable instructions are executed by the processor to perform the steps of the business decision determination method according to the first aspect or any one of the possible embodiments of the first aspect.
In a fourth aspect, this embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the step of determining the business decision described in the first aspect or any one of the possible implementation manners of the first aspect.
The embodiment of the application provides a method, a device, an electronic device and a storage medium for determining a business decision, and relates to the following steps: for each rule configuration area, generating a target condition in response to a first configuration operation executed for the condition configuration area, wherein the target condition corresponds to a target enterprise parameter associated with a target business under a target object; for each rule configuration area, in response to a second configuration operation executed for the action configuration area, generating a target action executed meeting a target condition and a target execution object of the target action; forming a target business rule corresponding to the rule configuration area by the target condition, the target action and the target execution object; and forming and storing a business decision aiming at the target business under the target object by a plurality of target business rules. The method and the device simplify the generation process of the business decision by providing the configuration method of the visual business decision.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a method for determining a business decision according to an embodiment of the present application;
fig. 2 is a schematic structural diagram illustrating a business decision determining apparatus provided in an embodiment of the present application;
fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, a business decision is often determined through a rule engine, specifically, the rule engine is developed by an inference engine, and is a component embedded in an application program, so that the business decision is separated from an application program code, and is compiled by using a predefined semantic module, and the specific execution of the rule engine can be divided into several processes of receiving data input, interpreting a business rule, and making the business decision according to the business rule.
The development of the rule engine replaces hard coding to realize different services, but the existing rule engine has no configuration interface aiming at the configuration of service decision, and only can write the engine rule by service personnel and generally store the engine rule in a database or a file, and the mode does not completely liberate the coupling of the service personnel and the development personnel, thereby improving the configuration difficulty of the service decision and reducing the generation efficiency of the service decision.
Based on this, embodiments of the present application provide a method and an apparatus for determining a business decision, an electronic device, and a storage medium, which simplify a generation process of the business decision by providing a configuration method of a visual business decision, and specifically include the following steps:
referring to fig. 1, fig. 1 is a flowchart illustrating a method for determining a business decision according to an embodiment of the present application. As shown in fig. 1, a method for determining a service decision provided in the embodiment of the present application includes the following steps:
and S100, responding to a decision configuration triggering event, and displaying a decision configuration interface.
Specifically, the decision configuration interface includes a rule addition identifier, and is specifically applied to a rule engine platform, a user can log in the rule engine platform through a user account and an account password, after logging in the rule engine platform, a service management interface is displayed, the service management interface includes a plurality of service identifiers, each service identifier corresponds to a decision editing option, a system option and an object option, and in response to selection operations executed respectively for the decision editing option, the system option and the object option executed respectively for a target service identifier, a service decision for implementing a target service, a system where a service variable is located, and a target object to which the target service belongs are determined, a decision configuration trigger event may be a selection operation executed for the decision editing option, for example, the determined target service is an enterprise level, the target object is an enterprise a, and the system where the service variable is located is determined as a credit supervision system, the generated decision configuration interface is used for configuring a service decision for obtaining the enterprise level of the enterprise a enterprise, and a service variable corresponding to the credit system can be invoked in the decision configuration interface.
S200, generating a corresponding rule configuration area each time a selection operation executed aiming at the rule addition identification is received.
The rule configuration area includes a condition configuration area and an action configuration area, specifically, the condition configuration area is used for configuring a condition for forming a service rule, and the action configuration area is used for configuring an execution action corresponding to the condition.
S300, aiming at each rule configuration area, responding to the first configuration operation executed aiming at the condition configuration area, and generating a target condition.
Wherein, the condition configuration area includes a logical relationship configuration item, and the logical relationship configuration item includes but is not limited to and/or.
The first configuration operation includes a logical relationship configuration operation, a business variable configuration operation, a first selection operation, an inequality relationship configuration operation, and an inequality threshold configuration.
Wherein, for each rule configuration area, a target condition is generated by:
the method comprises the steps of responding to logical relation configuration operation executed aiming at a logical relation configuration item, determining a target logical relation, generating at least one condition configuration item corresponding to the target logical relation according to the target logical relation, wherein the condition configuration item comprises a business variable configuration item, an inequality relation configuration item and an inequality threshold configuration item, receiving the business variable configuration operation executed aiming at the business variable configuration item, pulling and displaying a target business variable list corresponding to a target business from a preset variable database, wherein the target business variable list comprises a plurality of business variables relevant to the target business, responding to a first selection operation executed aiming at a target business variable in the business variables, determining a target business variable, responding to the inequality relation configuration operation executed aiming at the inequality relation configuration item, determining the target inequality relation, and responding to the inequality threshold configuration operation executed aiming at the inequality threshold configuration item, and generating a target threshold corresponding to the target business variable; and forming a target condition by the target business variable, the target inequality relation and the target threshold.
Inequality relationships include, but are not limited to, greater than or equal to, less than or equal to, less than and matching.
In a specific embodiment, a preset variable database for different services may be preconfigured, and a service variable refers to a data amount that can be changed during operation of a service decision, where the service variable includes, but is not limited to, at least one of the following items: specifically, for the target service under the target object, when a corresponding service decision is called or operated, the data value of the relevant target service variable under the target object corresponding to the service decision is given to the target service variable.
For example, if the target business variable is the number of businesses, the target inequality relationship is less than or equal to 20, and the target threshold is 20, the target condition is to determine whether the number of businesses of the target object is less than 20, and if the number of businesses of the target object is less than 20, the number of businesses of the target object is considered to satisfy the target condition.
And S400, generating a target action which meets the target condition and a target execution object of the target action in response to the second configuration operation executed for the action configuration area for each rule configuration area.
The action configuration area comprises an action adding identifier, and the second configuration operation comprises a second selection operation, an action configuration operation, a third selection operation and an execution object configuration operation.
Wherein, aiming at each rule configuration area, determining a target action and a target execution object of the target action by the following modes:
receiving a second selection operation executed aiming at the action addition identifier, generating a target action configuration item, wherein the target action configuration item comprises an action configuration item and an execution object configuration item, pulling and displaying an action list from a preset action database in response to the action configuration operation executed aiming at the action configuration item, wherein the action list comprises a plurality of actions, receiving a third selection operation executed aiming at the target action, determining a target action executed by meeting a target condition, and acquiring a target execution object of the target action in response to the execution object configuration operation executed aiming at the execution object configuration item.
In a specific embodiment, the preset variable database may be preconfigured, wherein the action includes, but is not limited to, at least one of: result assignment, SQL filling, query array, variable replication, trigger rule, query value, query character, query Map, variable assignment, method filling and method calling, wherein the result assignment is an output result of assigning a rule operation result to a rule, the SQL filling indicates packaging a selected SQL variable into an execution body, the SQL filling is generally used in combination with the query array, the query value, the query character and the query Map, the database can be operated, the query array is used for querying array type data corresponding to the SQL variable in the execution body, the variable replication is used for assigning an execution object to another execution object, the trigger rule is used for operating a business rule corresponding to a business decision once again after a business variable is changed, the query value is used for querying numerical type data corresponding to the SQL variable in the execution body, the query character queries character data corresponding to the SQL variable in the execution body, the query Map is used for querying Map type data corresponding to the SQL variable in the execution body, the variable assignment is used for the business variable, the method filling is used for putting a class expanded by a user into the execution body, and the method calling is used for calling and executing the method calling and self-defining.
In a preferred embodiment, the user may preset an SQL library, which includes a plurality of SQL variables that need to be executed by an action.
Specifically, the execution of the action needs to have a corresponding execution object, for example, if the action is a variable assignment, it needs to specify which variable or value is assigned to which variable, that is, specifying the assignment object, that is, the execution object, to which the variable is assigned.
In a preferred embodiment, the execution object configuration operation includes a fourth selection operation, a fifth selection operation, an execution object editing operation, a sixth selection operation, a seventh selection operation, an eighth selection operation, and a ninth selection operation, and the step of acquiring the target execution object of the target action in response to the execution object configuration operation performed on the execution object configuration item includes: and in response to a fourth selection operation performed on the execution object configuration item, displaying a direct input selection item, a business variable selection item and an instance variable selection item.
In response to a fifth selection operation performed with respect to the direct input selection item, an editing area for the execution object configuration item is generated, and in response to an execution object editing operation performed with respect to the editing area, a target execution object is determined.
Or, in response to executing a sixth selection operation for the business variable selection item, pulling and displaying a target business variable list from the preset variable database, and in response to executing a seventh selection operation for the target business variable in the target business variable list, determining a target execution object.
Or, in response to an eighth selection operation executed on the instance variable selection item, pulling and displaying an instance variable list from a preset instance variable database, and in response to a ninth selection operation executed on the target regular expression, generating a target execution object, wherein the instance variable list comprises a plurality of regular expressions.
S500, forming a target business rule corresponding to the rule configuration area by the target condition, the target action and the target execution object.
In a preferred embodiment, taking the target business as an example of obtaining the enterprise level, the target conditions are that the number of the enterprises is less than 20 and the annual revenue of the enterprises is less than 300 ten thousand, the target action is the result assignment of 0.5, and the target execution object is the target business rule score, then one of the target business rules which can form the determined business decision is formed, and for the rule, if the number of the enterprises of the target object a and the annual revenue of the enterprises meet the target conditions, the target action is executed, that is, the target action is assigned to the target business rule score of 0.5.
In a specific embodiment, the rule configuration area further includes a rule attribute configuration area, and the rule attribute configuration area includes a priority configuration item, an execution time configuration item, and a mutual exclusion group configuration item, where, for each rule configuration area, the method further includes:
responding to the priority configuration operation executed aiming at the priority attribute configuration item, generating an execution sequence of the target business rule corresponding to the rule configuration area, responding to the mutual exclusion group configuration operation executed aiming at the mutual exclusion group configuration item, adding a corresponding mutual exclusion group identifier for the target business rule corresponding to the rule configuration area, responding to the execution times configuration operation executed aiming at the execution times configuration item, and generating the target execution times of the target business rule corresponding to the rule configuration area.
In a preferred embodiment, the target service rules with the same mutual exclusion group identifier represent the same rule, and only one of the rules is executed according to the priority order, and all the rules are not required to be executed.
In a preferred embodiment, each rule configuration area further comprises a plurality of rule edit selections, the plurality of rule edit selections comprising a delete rule, a save rule, an add rule, and a copy rule.
S600, forming and storing a business decision for the target business under the target object by a plurality of target business rules.
S700, calling and operating a service decision of the target service under the target object, and acquiring an execution result aiming at the target service.
In a preferred embodiment, the execution result for the target service is obtained by:
calling a service decision of a target service, acquiring a priority sequence, a mutual exclusion group identifier and a target execution frequency corresponding to each target service rule in the service decision, executing a plurality of target service rules according to the priority sequence corresponding to each target service rule, judging whether the current execution frequency of the target service rule reaches the corresponding target execution frequency or not aiming at each target service rule, if so, giving up executing the target service rule, and directly acquiring an operation result corresponding to the target service rule.
If the current execution times of the target service rule does not reach the target execution times, judging whether the current execution times of the target service rule is zero, if the current execution times of the target service rule is more than zero, executing the target service rule, and obtaining an operation result corresponding to the target service rule, if the current execution times of the target service rule is zero, judging whether other target services which have reached the target execution times exist in other target service rules which have the same mutual exclusion group identifier with the target service rule, if other target services which have reached the target execution times exist in other target service rules, giving up executing the target service rule, and if other target services which have reached the target execution times do not exist in other target service rules, judging whether other target service rules of which the current execution times are more than zero exist in other target service rules.
If other target business rules with the current execution times larger than zero exist in other target business rules, the target business rule is abandoned to be executed, if other target business rules with the current execution times larger than zero do not exist in other target business rules, the target business rule is executed, the operation result corresponding to the target business rule is determined according to the operation results corresponding to the target business rules.
Based on the same application concept, a device for determining a service decision corresponding to the method for determining a service decision provided in the foregoing embodiment is also provided in the embodiments of the present application.
Referring to fig. 2, fig. 2 is a schematic structural diagram illustrating a device for determining a business decision according to an embodiment of the present application, where the device includes:
a triggering device 800, configured to respond to a decision configuration triggering event, and display a decision configuration interface, where the decision configuration interface includes a rule addition identifier;
a selecting unit 810, configured to generate, each time a selection operation performed on the rule addition identifier is received, a corresponding rule configuration area, where the rule configuration area includes a condition configuration area and an action configuration area;
first configuration means 820 for generating, for each rule configuration area, a target condition in response to a first configuration operation performed for the condition configuration area;
a second configuration means 830 for generating, for each rule configuration area, a target action to be executed satisfying the target condition and a target execution object of the target action in response to a second configuration operation executed for the action configuration area;
rule generating means 840 for forming a target business rule corresponding to the rule configuration area from the target condition, the target action and the target execution object;
and a business decision generating device 850, configured to form and store a business decision for the target business under the target object by using the plurality of target business rules.
Based on the same application concept, please refer to fig. 3, fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 3, the electronic device 900 includes: a processor 910, a memory 920 and a bus 930, wherein the memory 920 stores machine-readable instructions executable by the processor 910, the processor 910 communicates with the memory 920 via the bus 930 when the electronic device 900 is running, and the machine-readable instructions are executed by the processor 910 to perform the steps of the method for determining business decisions as described in any of the above embodiments.
Based on the same application concept, the embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method for determining a business decision provided by the above embodiment.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solutions of the present application, which are essential or part of the technical solutions contributing to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A method for determining a business decision, the method comprising:
responding to a decision configuration triggering event, and displaying a decision configuration interface, wherein the decision configuration interface comprises a rule adding identifier;
generating a corresponding rule configuration area each time a selection operation executed for a rule addition identifier is received, wherein the rule configuration area comprises a condition configuration area and an action configuration area;
for each rule configuration area, generating a target condition in response to a first configuration operation performed for the condition configuration area;
for each rule configuration area, in response to a second configuration operation executed for the action configuration area, generating a target action executed meeting the target condition and a target execution object of the target action;
forming a target business rule corresponding to the rule configuration area according to the target condition, the target action and the target execution object;
forming and storing a service decision aiming at the target service under the target object by a plurality of target service rules;
the rule configuration area also comprises a rule attribute configuration area, and the rule attribute configuration area comprises an execution time configuration item and a mutual exclusion group configuration item;
wherein for each rule configuration region, the method further comprises:
in response to the execution times configuration operation executed for the execution times configuration item, generating the target execution times of the target business rule corresponding to the rule configuration area
And responding to the mutual exclusion group configuration operation executed aiming at the mutual exclusion group configuration item, and adding a mutual exclusion group identifier for the target service rule corresponding to the rule configuration area.
2. The method of claim 1, wherein the conditional configuration area comprises a logical relationship configuration item, wherein the first configuration operation comprises a logical relationship configuration operation, a business variable configuration operation, a first selection operation, an inequality relationship configuration operation, and an inequality threshold configuration operation,
wherein, for each rule configuration area, a target condition is generated by:
determining a target logical relationship in response to a logical relationship configuration operation performed on the logical relationship configuration item;
generating at least one conditional configuration item corresponding to the target logic relationship according to the target logic relationship, wherein the conditional configuration item comprises a service variable configuration item, an inequality relationship configuration item and an inequality threshold configuration item;
receiving a service variable configuration operation executed aiming at the service variable configuration item, and pulling and displaying a target service variable list corresponding to a target service from a preset variable database, wherein the target service variable list comprises a plurality of service variables related to the target service;
determining a target business variable in response to a first selection operation performed on the target business variable of the plurality of business variables;
determining a target inequality relationship in response to an inequality relationship configuration operation performed on an inequality relationship configuration item;
generating a target threshold corresponding to the target business variable in response to inequality threshold configuration operation executed for the inequality threshold configuration item;
and forming a target condition by the target business variable, the target inequality relation and the target threshold.
3. The method of claim 1, wherein the action configuration area comprises an action addition identifier, wherein the second configuration operation comprises a second selection operation, an action configuration operation, a third selection operation, and an execution object configuration operation,
wherein, aiming at each rule configuration area, determining a target action and a target execution object of the target action by the following modes:
receiving a second selection operation executed aiming at the action addition identifier, and generating a target action configuration item, wherein the target action configuration item comprises an action configuration item and an execution object configuration item;
in response to an action configuration operation executed for an action configuration item, pulling and displaying an action list from a preset action database, wherein the action list comprises a plurality of actions;
receiving a third selection operation executed aiming at a target preset action, and determining a target action executed when the target condition is met;
and acquiring a target execution object of the target action in response to the execution object configuration operation executed aiming at the execution object configuration item.
4. The method of claim 3, wherein performing an object configuration operation comprises performing a fourth selection operation, a fifth selection operation, performing an object editing operation, a sixth selection operation, a seventh selection operation, an eighth selection operation, a ninth selection operation,
wherein, in response to the execution object configuration operation executed for the execution object configuration item, the step of obtaining the target execution object of the target action comprises:
in response to a fourth selection operation performed on the execution object configuration item, displaying a direct input selection item, a business variable selection item, and an instance variable selection item;
generating an edit region for an execution object configuration item in response to a fifth selection operation performed for the direct input selection item, determining a target execution object in response to an execution object edit operation performed for the edit region;
or, in response to executing a sixth selection operation for the business variable selection item, pulling and displaying a target business variable list from the preset variable database, and in response to executing a seventh selection operation for the target business variable in the target business variable list, determining a target execution object;
or, in response to an eighth selection operation executed on the instance variable selection item, pulling and displaying an instance variable list from a preset instance variable database, and in response to a ninth selection operation executed on the target regular expression, generating a target execution object, wherein the instance variable list comprises a plurality of regular expressions.
5. The method of claim 1, wherein the rule configuration area further comprises a rule attribute configuration area, wherein the rule attribute configuration area comprises a priority configuration item,
wherein for each rule configuration region, the method further comprises:
and generating an execution sequence of the target business rule corresponding to the rule configuration area in response to the priority configuration operation executed on the priority attribute configuration item.
6. The method of claim 5, further comprising:
and calling and operating the service decision of the target service under the target object to obtain an execution result aiming at the target service.
7. The method of claim 6, wherein the execution result for the target service is obtained by:
calling a service decision of the target service, and acquiring a priority sequence, a mutual exclusion group identifier and target execution times corresponding to each target service rule in the service decision;
executing a plurality of target business rules according to the priority sequence corresponding to each target business rule;
for each target business rule, judging whether the current execution times of the target business rule reach the corresponding target execution times;
if the current execution times of the target service rule reach the target execution times, giving up executing the target service rule, and directly obtaining an operation result corresponding to the target service rule;
if the current execution times of the target business rule does not reach the target execution times, judging whether the current execution times of the target business rule is zero or not;
if the current execution times of the target business rule is more than zero, executing the target business rule and obtaining an operation result corresponding to the target business rule;
if the current execution times of the target service rule is zero, judging whether other target services which reach the target execution times exist in other target service rules which have the same mutual exclusion group identification with the target service rule;
if other target services which reach the target execution times in other target service rules, giving up executing the target service rule;
if other target services which reach the target execution times do not exist in other target service rules, judging whether other target service rules of which the current execution times are larger than zero exist in other target service rules or not;
if other target business rules with the current execution times larger than zero exist in other target business rules, giving up executing the target business rule;
if other target business rules with the current execution times larger than zero do not exist in the other target business rules, executing the target business rule and obtaining an operation result corresponding to the target business rule;
and determining an execution result aiming at the target service according to the operation results corresponding to the target service rules.
8. An apparatus for determining a business decision, the apparatus comprising:
the trigger device is used for responding to a decision configuration trigger event and displaying a decision configuration interface, and the decision configuration interface comprises a rule adding identifier;
the selection device is used for generating a corresponding rule configuration area every time a selection operation executed aiming at the rule addition identifier is received, wherein the rule configuration area comprises a condition configuration area and an action configuration area;
first configuration means for generating, for each rule configuration area, a target condition in response to a first configuration operation performed for the condition configuration area;
second configuration means for generating, for each rule configuration area, in response to a second configuration operation performed for the action configuration area, a target action to be performed that satisfies the target condition and a target execution object of the target action;
the rule generating device is used for forming a target business rule corresponding to the rule configuration area by the target condition, the target action and the target execution object;
the business decision generating device is used for forming and storing a business decision aiming at the target business under the target object by a plurality of target business rules;
the rule configuration area also comprises a rule attribute configuration area, and the rule attribute configuration area comprises an execution time configuration item and a mutual exclusion group configuration item;
wherein the apparatus further comprises a third configuration means for:
in response to the execution times configuration operation executed for the execution times configuration item, generating the target execution times of the target business rule corresponding to the rule configuration area
And in response to the mutual exclusion group configuration operation executed aiming at the mutual exclusion group configuration item, adding a mutual exclusion group identifier for the target service rule corresponding to the rule configuration area.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when an electronic device is run, the machine-readable instructions when executed by the processor performing the steps of the business decision determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the business decision determination method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210965834.0A CN115048156B (en) | 2022-08-12 | 2022-08-12 | Method and device for determining business decision, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210965834.0A CN115048156B (en) | 2022-08-12 | 2022-08-12 | Method and device for determining business decision, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115048156A CN115048156A (en) | 2022-09-13 |
CN115048156B true CN115048156B (en) | 2022-11-08 |
Family
ID=83167679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210965834.0A Active CN115048156B (en) | 2022-08-12 | 2022-08-12 | Method and device for determining business decision, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115048156B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115718825B (en) * | 2022-11-25 | 2024-05-31 | 中电金信软件有限公司 | Method and device for determining duration label and electronic equipment |
CN116909649A (en) * | 2023-07-17 | 2023-10-20 | 中设数字技术有限公司 | Visual configuration method, device and equipment for standard rule specification |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6272482B1 (en) * | 1998-08-14 | 2001-08-07 | International Business Machines Corporation | Managing business rules using jurisdictions |
CN110045953A (en) * | 2019-04-22 | 2019-07-23 | 第四范式(北京)技术有限公司 | Generate the method and computing device of business rule expression formula |
CN111427906A (en) * | 2020-03-30 | 2020-07-17 | 深圳市康拓普信息技术有限公司 | Dragging type data visualization system for multi-component mixed application |
CN112394922A (en) * | 2020-12-02 | 2021-02-23 | 成都新希望金融信息有限公司 | Decision configuration method, business decision method and decision engine system |
CN114691122A (en) * | 2020-12-25 | 2022-07-01 | 第四范式(北京)技术有限公司 | Service operation method and device, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111951010A (en) * | 2020-07-26 | 2020-11-17 | 中国建设银行股份有限公司 | Business decision method and device based on rule engine, electronic equipment and readable storage medium |
-
2022
- 2022-08-12 CN CN202210965834.0A patent/CN115048156B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6272482B1 (en) * | 1998-08-14 | 2001-08-07 | International Business Machines Corporation | Managing business rules using jurisdictions |
CN110045953A (en) * | 2019-04-22 | 2019-07-23 | 第四范式(北京)技术有限公司 | Generate the method and computing device of business rule expression formula |
CN111427906A (en) * | 2020-03-30 | 2020-07-17 | 深圳市康拓普信息技术有限公司 | Dragging type data visualization system for multi-component mixed application |
CN112394922A (en) * | 2020-12-02 | 2021-02-23 | 成都新希望金融信息有限公司 | Decision configuration method, business decision method and decision engine system |
CN114691122A (en) * | 2020-12-25 | 2022-07-01 | 第四范式(北京)技术有限公司 | Service operation method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115048156A (en) | 2022-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115048156B (en) | Method and device for determining business decision, electronic equipment and storage medium | |
KR101499599B1 (en) | Data logging in graph-based computations | |
US20180137424A1 (en) | Methods and systems for identifying gaps in predictive model ontology | |
US20050125401A1 (en) | Wizard for usage in real-time aggregation and scoring in an information handling system | |
US9983890B2 (en) | Collaborative generation of configuration technical data for a product to be manufactured | |
WO2006047532A1 (en) | Probabilistic model for record linkage | |
JP2016100005A (en) | Reconcile method, processor and storage medium | |
CN113986241A (en) | Configuration method and device of business rules based on knowledge graph | |
CN111930366A (en) | Rule engine implementation method and system based on JIT real-time compilation | |
EP2548141B1 (en) | A system and method for evaluating a reverse query | |
CN107633080B (en) | User task processing method and device | |
CN112230900A (en) | Development engine system and method for self-defining setting form model | |
CN112068812A (en) | Micro-service generation method and device, computer equipment and storage medium | |
US20050125280A1 (en) | Real-time aggregation and scoring in an information handling system | |
CN113010441B (en) | Model issuing method and device, electronic equipment and storage medium | |
d'Aloisio et al. | Modeling quality and machine learning pipelines through extended feature models | |
CN114881521A (en) | Service evaluation method, device, electronic equipment and storage medium | |
KR20170088469A (en) | A stepwise method for mining association rules based on a Boolean expression for dynamic datasets | |
CN113742116A (en) | Abnormity positioning method, abnormity positioning device, abnormity positioning equipment and storage medium | |
CN110597572B (en) | Service call relation analysis method and computer system | |
CN111951355A (en) | Animation processing method and device, computer equipment and storage medium | |
Abdullah et al. | Tracing significant association rules using critical least association rules model | |
CN111078522A (en) | Method and device for identifying to-be-optimized area of page, electronic equipment and storage medium | |
CN115221211B (en) | Graph calculation processing method and device, electronic equipment and storage medium | |
CN116860227B (en) | Data development system and method based on big data ETL script arrangement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |