[go: up one dir, main page]

CN116737125A - Rule logic operation method and device - Google Patents

Rule logic operation method and device Download PDF

Info

Publication number
CN116737125A
CN116737125A CN202310512691.2A CN202310512691A CN116737125A CN 116737125 A CN116737125 A CN 116737125A CN 202310512691 A CN202310512691 A CN 202310512691A CN 116737125 A CN116737125 A CN 116737125A
Authority
CN
China
Prior art keywords
code
rule logic
preset
specified
preset rule
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
CN202310512691.2A
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.)
Bairong Zhixin Beijing Technology Co ltd
Original Assignee
Bairong Zhixin Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bairong Zhixin Beijing Technology Co ltd filed Critical Bairong Zhixin Beijing Technology Co ltd
Priority to CN202310512691.2A priority Critical patent/CN116737125A/en
Publication of CN116737125A publication Critical patent/CN116737125A/en
Priority to PCT/CN2024/091173 priority patent/WO2024230635A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for operating rule logic, relates to the technical field of data processing, and mainly aims to improve the efficiency of rule logic operation. The main technical scheme of the application is as follows: reading a preset rule logic code and a preset result acquisition code when a rule engine is started, wherein the preset result acquisition code is used for acquiring a processing result of the preset rule logic on input parameters; combining the preset rule logic code with the preset result acquisition code to obtain a combined specified code; and precompiling the appointed code by utilizing an appointed interface to obtain a compiled target code, and operating the target code. The application is used for running rule logic.

Description

Rule logic operation method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a rule logic operation method and apparatus.
Background
Currently, rule logic is involved in each industry to handle its own business with rule logic. Usually, a service personnel determines the rule logic expression and sends the rule logic expression to a developer to develop codes corresponding to the rule logic, then the rule logic codes are deployed in a server, and a rule engine responsible for running the rule logic can be started first after the rule logic codes are deployed, so that the rule logic codes in the server can be run subsequently.
However, at present, the rule engine compiles the rule logic code only when the rule logic needs to be operated, so that when the rule logic is complex, the compiling operation of the complex rule logic is executed while the complex logic is operated, and the operation efficiency of the rule logic is greatly reduced.
Disclosure of Invention
In view of the above problems, the present application provides a method and an apparatus for operating rule logic, which mainly aims to improve the efficiency of rule logic operation.
In order to solve the technical problems, the application provides the following scheme:
in a first aspect, the present application provides a method for operating rule logic, the method comprising:
reading a preset rule logic code and a preset result acquisition code when a rule engine is started, wherein the preset result acquisition code is used for acquiring a processing result of the preset rule logic code on input parameters;
combining the preset rule logic code with the preset result acquisition code to obtain a combined specified code;
and precompiling the appointed code by utilizing an appointed interface to obtain a compiled target code, and operating the target code.
In a second aspect, the present application provides an apparatus for running rule logic, the apparatus comprising:
the reading unit is used for reading a preset rule logic code and a preset result acquisition code when the rule engine is started, and the preset result acquisition code is used for acquiring a processing result of the preset rule logic code on input parameters;
the merging unit is used for merging the preset rule logic code read by the reading unit with the preset result acquisition code to obtain a merged designated code;
and the compiling unit is used for precompiling the specified codes obtained by the merging unit by utilizing the specified interface to obtain compiled target codes and running the target codes.
In order to achieve the above object, according to a third aspect of the present application, there is provided a storage medium including a stored program, wherein the program, when run, controls a device in which the storage medium is located to execute the running method of the rule logic of the first aspect.
In order to achieve the above object, according to a fourth aspect of the present application, there is provided a processor for executing a program, wherein the program executes the execution method of the rule logic of the first aspect.
By means of the technical scheme, the rule logic code and the result acquisition code are developed in advance, the rule logic code is responsible for processing input parameters, the result acquisition code is used for acquiring a processing result of the rule logic code on the input parameters, after the preset logic code and the result acquisition code are developed, the rule engine can be started, the preset rule logic code and the preset result acquisition code can be read from the server while the rule engine is started, then the preset rule logic code and the preset result acquisition code are combined, the combined specified code is obtained, after the combination, the specified code can be precompiled according to the specified interface, the compiled target code is obtained, and then the target code can be directly operated. That is, the method and the device perform precompiled on the appointed codes at the same time of service start, do not occupy extra time, and directly execute the compiled target codes subsequently, so that the efficiency of running rule logic can be improved to a certain extent.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart illustrating a method of operating rule logic provided by an embodiment of the present application;
FIG. 2 is a flow chart illustrating another method of operation of rule logic provided by an embodiment of the present application;
FIG. 3 is a block diagram showing the operation of rule logic according to an embodiment of the present application;
fig. 4 shows a block diagram of another rule logic operation device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Currently, rule logic is involved in each industry to handle its own business with rule logic. Usually, a service personnel determines the rule logic expression and sends the rule logic expression to a developer to develop codes corresponding to the rule logic, then the rule logic codes are deployed in a server, and a rule engine responsible for running the rule logic can be started first after the rule logic codes are deployed, so that the rule logic codes in the server can be run subsequently. However, at present, the rule engine compiles the rule logic code only when the rule logic needs to be operated, so that when the rule logic is complex, the compiling operation of the complex rule logic is executed while the complex logic is operated, and the operation efficiency of the rule logic is greatly reduced. Therefore, the application provides an operation method of rule logic, which can improve the efficiency of operating rule logic. The specific implementation steps are shown in fig. 1, including:
101. and reading a preset rule logic code and a preset result acquisition code when the rule engine is started.
In the application, a service personnel can determine the rule logic in advance according to the service to be processed, then the rule logic is transmitted to a research and development personnel to develop the rule logic code (preset rule logic code), and meanwhile, when the research and development personnel develop the rule logic code, the research and development personnel can also add a result acquisition code (preset result acquisition code) for acquiring the processing result of the rule logic on the input parameters.
After the codes corresponding to the rule logic and the result acquisition codes are developed, the preset rule logic codes and the preset result acquisition codes can be deployed into the server. The rule engine may then be started, after which the rule engine may read the preset rule logic code and the preset result acquisition code from the server. That is, the execution subject of the present application is a rule engine.
102. And combining the preset rule logic code with the preset result acquisition code to obtain a combined specified code.
103. And precompiling the appointed code by utilizing the appointed interface to obtain a compiled target code, and running the target code.
In step 102, after the rule engine reads the preset rule logic code and the preset result acquisition code, the preset rule logic code and the preset result acquisition code may be combined to form a combined specified code, and then in step 103, the rule engine may precompiled the specified code by using a call interface of the rule engine to obtain a compiled target code, so that the target code may be directly run in the following steps.
Specifically, when the target code is run, the rule engine may detect whether an input parameter is transmitted to an upstream system of the engine, where the input parameter corresponds to a preset rule logic code, and for example, if one of the preset rule logic codes is a+b+c=d, the input parameter may be a=3, b=2, and c=5.
If the input parameters transmitted by the upstream system of the engine exist, the rule engine can firstly acquire the input parameters transmitted by the upstream system by utilizing a self-contained designated interface, after the input parameters are acquired, the input parameters can be processed by utilizing a preset rule logic code in the target code, and the input parameters can be also understood to be brought into the preset rule logic to obtain a processing result.
Based on the implementation manner of fig. 1, it can be seen that, in the running method of rule logic provided by the application, rule logic codes and result acquisition codes are developed in advance, the rule logic codes are responsible for processing input parameters, the result acquisition codes are used for acquiring processing results of the rule logic codes on the input parameters, after the preset logic codes and result acquisition codes are developed, a rule engine can be started, the preset rule logic codes and the preset result acquisition codes can be read in a server while starting, then the preset rule logic codes and the preset result acquisition codes are combined to obtain combined specified codes, after the combined specified codes are combined, the specified codes can be precompiled according to a specified interface to obtain compiled target codes, and then the target codes can be directly run. That is, the method and the device perform precompiled on the appointed codes at the same time of service start, do not occupy extra time, and directly execute the compiled target codes subsequently, so that the efficiency of running rule logic can be improved to a certain extent.
Further, as a refinement and extension to the embodiment shown in fig. 1, the embodiment of the present application further provides another rule logic operation method, as shown in fig. 2, which specifically includes the following steps:
201. and reading a preset rule logic code and a preset result acquisition code when the rule engine is started.
The implementation of step 201 is the same as that of step 101, and the same technical effects can be achieved, thereby solving the same technical problems.
202. Detecting whether error parameter items exist in the preset rule logic codes and the preset result acquisition codes.
In this step, since the situation of code writing errors caused by negligence of work is not excluded when a developer writes codes, whether the read preset rule logic codes and the read preset result acquisition codes are correct or not can be detected first in this step, and a specific detection method can be to determine random parameters and then operate the two codes according to the random parameters; the method can also be a direct other detection method, and if the error parameter item is detected, a code error prompt can be sent to the display terminal, so that a worker can correct the preset rule logic code and the preset result acquisition code according to the code error prompt. After correction, step 203 may be performed; if it is detected that there is no error item in both the preset rule logic code and the preset result code, step 203 may be directly performed.
203. And combining the preset rule logic code with the preset result acquisition code to obtain a combined specified code.
The implementation of step 203 is the same as that of step 102, and the same technical effects can be achieved, thereby solving the same technical problems.
204. And precompiling the appointed code by utilizing the appointed interface to obtain a compiled target code, and running the target code.
Step 204 proposes a more preferred embodiment that differs from step 103.
In step 204, a specific implementation manner is proposed for processing the input parameter by using the preset rule logic code in the object code:
since a plurality of preset logic rules are stored in a preset rule logic code, and each preset logic rule may have different service types, after the input parameters transmitted by the upstream system of the engine are obtained by using the designated interface, the service types of the input parameters can be determined first, then a target preset rule logic matched with the service types of the input parameters can be determined in the plurality of preset rule logic of the preset rule logic code, and then the input parameters are processed by using the target preset rule logic.
In addition, after the compiled target code is obtained, the name of the preset rule logic code in the target code can be determined to be the code identification of the target code, and then the target code is stored in the memory of the server, so that when the target code is needed later, the target code can be searched in the memory according to the code identification.
Furthermore, if the existence of the input new parameters is detected, the target code corresponding to the code identifier can be called in the memory of the server according to the code identifier, and then the target code is utilized to process the input new parameters, so that development is not needed, the existing code processing input parameters can be directly called, and the efficiency of the operation rule logic can be greatly improved.
It should be noted that, when precompiled a specified code by using a specified interface, it needs to be determined whether to perform Global compilation or local compilation, in the present application, an active Object, that is, a Global Object (GO), may be created first, then a variable declaration (first specified parameter) is found in the Global, that is, all specified codes, then the variable declaration is set as an attribute of the Global Object, and then an attribute is assigned, which is exemplary:
GO{
b:undefined;
}
further, a function declaration (a second specified parameter) can be found in the global (specified code) and used as an attribute of the global object, and assignment is performed, and then the specified code can be executed row by row, so as to obtain the compiled target code.
Further, as an implementation of the method shown in fig. 1, the embodiment of the present application further provides a rule logic operation device, which is configured to implement the method shown in fig. 1. The embodiment of the device corresponds to the embodiment of the method, and for convenience of reading, details of the embodiment of the method are not repeated one by one, but it should be clear that the device in the embodiment can correspondingly realize all the details of the embodiment of the method. As shown in fig. 3, the apparatus includes:
the reading unit 301 is configured to read a preset rule logic code and a preset result acquisition code when the rule engine is started, where the preset result acquisition code is configured to acquire a processing result of the preset rule logic code on an input parameter;
a merging unit 302, configured to merge the preset rule logic code read by the reading unit 301 with the preset result acquisition code to obtain a merged specified code;
and the compiling unit 303 is configured to precompiled the specified code obtained by the merging unit 302 by using a specified interface, obtain a compiled target code, and run the target code.
Further, as an implementation of the method shown in fig. 2, the embodiment of the present application further provides another rule logic operation device, which is configured to implement the method shown in fig. 2. The embodiment of the device corresponds to the embodiment of the method, and for convenience of reading, details of the embodiment of the method are not repeated one by one, but it should be clear that the device in the embodiment can correspondingly realize all the details of the embodiment of the method. As shown in fig. 4, the apparatus includes:
the reading unit 301 is configured to read a preset rule logic code and a preset result acquisition code when the rule engine is started, where the preset result acquisition code is configured to acquire a processing result of the preset rule logic code on an input parameter;
a merging unit 302, configured to merge the preset rule logic code read by the reading unit 301 with the preset result acquisition code to obtain a merged specified code;
and the compiling unit 303 is configured to precompiled the specified code obtained by the merging unit 302 by using a specified interface, obtain a compiled target code, and run the target code.
In an alternative embodiment, the compiling unit 303 includes:
the parameter detection module 3031 is used for detecting whether an input parameter is transmitted into an upstream system of the engine;
a parameter obtaining module 3032, configured to obtain the input parameter by using the specified interface if the parameter detecting module 3031 detects yes;
and the parameter processing module 3033 is configured to process the input parameter acquired by the parameter acquiring module 3032 by using the preset rule logic code in the target code, so that a processing result is acquired by using the preset result acquiring code in the target code after processing, where the preset rule logic code includes a plurality of preset rule logics.
In an alternative embodiment, the parameter processing module 3033 is specifically configured to:
determining the service type of the input parameters;
determining target preset rule logic matched with the service type from a plurality of preset rule logic of the preset rule logic codes;
and processing the input parameters by utilizing the target preset rule logic.
In an alternative embodiment, after the compiling unit 303 obtains the compiled object code, the apparatus further includes a code storage unit 304, and the code storage unit 304 includes:
a name determining module 3041, configured to determine a code name of the preset rule logic code;
the identification determining module 3042 is configured to determine the code name determined by the name determining module 3041 as a code identification of the target code, and store the target code into a server memory based on the code identification.
In an alternative embodiment, after the code storage unit 304 stores the object code in the server memory, the apparatus further includes a code retrieving unit 305, where the code retrieving unit 305 includes:
the newly added parameter detection module 3051 is used for detecting whether newly added input parameters are transmitted into an upstream system of the engine;
a code retrieving module 3052, configured to retrieve the target code from the server memory based on the code identifier if the newly added parameter detecting module 3051 detects the presence;
and the new input parameter processing module 3053 is configured to process the new input parameter by using the target code fetched by the code fetching module 3052.
In an alternative embodiment, before the merging unit 302 merges the preset rule logic code with the preset result acquisition code, the apparatus further includes a code detection unit 306, where the code detection unit 306 includes:
the code detection module 3061 is configured to detect whether an error parameter item exists in the preset rule logic code and the preset result acquisition code;
and the prompt sending module 3062 is configured to send a code error prompt to a display terminal if the code detection module 3061 detects that the code error prompt is yes, so that a worker corrects the preset rule logic code and the preset result acquisition code based on the code error prompt.
In another alternative embodiment, the compiling unit 303 includes:
an object creating module 3034, configured to create an activation object in the specified code;
a first parameter searching module 3035, configured to search the specified code for a first specified parameter, and determine the first specified parameter as an attribute of the activation object created by the object creating module 3034;
a second parameter searching module 3036, configured to search a second specified parameter in the specified code, and determine the second specified parameter as an attribute of the activation object created by the object creating module 3034;
the code executing module 3037 is configured to execute the specified code after the first parameter searching module 3035 and the second parameter searching module 3036 determine the attribute of the activation object, so as to obtain the compiled target code.
Further, an embodiment of the present application further provides a storage medium, where the storage medium is configured to store a computer program, where the computer program controls, when running, a device where the storage medium is located to execute the running method of the rule logic described in fig. 1-2.
Further, an embodiment of the present application further provides a processor, where the processor is configured to execute a program, where the program executes the method for executing the rule logic described in fig. 1-2.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the methods and apparatus described above may be referenced to one another. In addition, the "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent the merits and merits of the embodiments.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present application is not directed to any particular programming language. It will be appreciated that the teachings of the present application described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present application.
Furthermore, the memory may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), in a computer readable medium, the memory including at least one memory chip.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method of operating rule logic, the method comprising:
reading a preset rule logic code and a preset result acquisition code when a rule engine is started, wherein the preset result acquisition code is used for acquiring a processing result of the preset rule logic code on input parameters;
combining the preset rule logic code with the preset result acquisition code to obtain a combined specified code;
and precompiling the appointed code by utilizing an appointed interface to obtain a compiled target code, and operating the target code.
2. The method of claim 1, wherein running the object code comprises:
detecting whether an input parameter is transmitted into an upstream system of an engine;
if yes, acquiring the input parameters by using the appointed interface;
and processing the input parameters by using the preset rule logic codes in the target codes so as to obtain processing results by using the preset result acquisition codes in the target codes after processing, wherein the preset rule logic codes comprise a plurality of preset rule logics.
3. The method of claim 2, wherein processing the input parameters using the preset rule logic code in the object code comprises:
determining the service type of the input parameters;
determining target preset rule logic matched with the service type from a plurality of preset rule logic of the preset rule logic codes;
and processing the input parameters by utilizing the target preset rule logic.
4. The method of claim 1, wherein after obtaining the compiled object code, the method further comprises:
determining the code name of the logic code of the preset rule;
and determining the code name as the code identification of the target code, and storing the target code into a server memory based on the code identification.
5. The method of claim 4, wherein after storing the object code in the server memory, the method further comprises:
detecting whether a newly added input parameter is transmitted into an upstream system of an engine;
if so, calling the target code in the server memory based on the code identification;
and processing the newly added input parameters by utilizing the target code.
6. The method of claim 1, wherein prior to merging the preset rule logic code with the preset result acquisition code, the method further comprises:
detecting whether error parameter items exist in the preset rule logic code and the preset result acquisition code;
if yes, a code error prompt is sent to a display terminal, so that a worker can correct the logic code of the preset rule and the obtained code of the preset result based on the code error prompt.
7. The method of claim 1, wherein precompiling the specified code with a specified interface comprises:
creating an activation object in the specified code;
searching a first specified parameter in the specified code, and determining the first specified parameter as the attribute of the activation object;
searching a second specified parameter in the specified code, and determining the second specified parameter as the attribute of the activation object;
and executing the specified code after determining the attribute of the activation object to obtain the compiled target code.
8. An apparatus for running rule logic, the apparatus comprising:
the reading unit is used for reading a preset rule logic code and a preset result acquisition code when the rule engine is started, and the preset result acquisition code is used for acquiring a processing result of the preset rule logic code on input parameters;
the merging unit is used for merging the preset rule logic code read by the reading unit with the preset result acquisition code to obtain a merged designated code;
and the compiling unit is used for precompiling the specified codes obtained by the merging unit by utilizing the specified interface to obtain compiled target codes and running the target codes.
9. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the method of operating the rule logic of any one of claims 1 to 7.
10. A processor for running a program, wherein the program when run performs the method of running rule logic according to any one of claims 1 to 7.
CN202310512691.2A 2023-05-08 2023-05-08 Rule logic operation method and device Pending CN116737125A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310512691.2A CN116737125A (en) 2023-05-08 2023-05-08 Rule logic operation method and device
PCT/CN2024/091173 WO2024230635A1 (en) 2023-05-08 2024-05-06 Rule logic operating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310512691.2A CN116737125A (en) 2023-05-08 2023-05-08 Rule logic operation method and device

Publications (1)

Publication Number Publication Date
CN116737125A true CN116737125A (en) 2023-09-12

Family

ID=87900159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310512691.2A Pending CN116737125A (en) 2023-05-08 2023-05-08 Rule logic operation method and device

Country Status (2)

Country Link
CN (1) CN116737125A (en)
WO (1) WO2024230635A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024230635A1 (en) * 2023-05-08 2024-11-14 百融至信(北京)科技有限公司 Rule logic operating method and apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508668B (en) * 2011-11-11 2014-11-05 西安交通大学 AOP (Aspect Oriented Programming) implementation method of EJB 3 (Enterprise Java Beans 3) containers based on dynamic stack
US11650982B2 (en) * 2019-04-01 2023-05-16 Sap Se Automatic selection of precompiled or code-generated operator variants
CN113703740A (en) * 2021-09-17 2021-11-26 厦门中盾安信科技有限公司 Method and system for configuring and executing service request command based on service rule
CN115358835A (en) * 2022-07-27 2022-11-18 上海浦东发展银行股份有限公司 Method, device, equipment and storage medium for executing business rules
CN116737125A (en) * 2023-05-08 2023-09-12 百融至信(北京)科技有限公司 Rule logic operation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024230635A1 (en) * 2023-05-08 2024-11-14 百融至信(北京)科技有限公司 Rule logic operating method and apparatus

Also Published As

Publication number Publication date
WO2024230635A1 (en) 2024-11-14

Similar Documents

Publication Publication Date Title
CN108628751B (en) Useless dependency item detection method and device
CN111241073B (en) Data quality inspection method and device
CN107015904B (en) Stack protection method and device
CN112947934A (en) Method, device and medium for dynamically transforming business logic
CN114328168B (en) Abnormality detection method, abnormality detection device, computer device, and storage medium
CN114817650B (en) Method, equipment and medium for automatically generating node diagram based on IROS system
CN103559123A (en) Function call stack analyzing method and device based on VxWorks operation system
CN107515739B (en) Method and device for improving code execution performance
CN116680015B (en) Function calling method, function calling device, electronic equipment and readable storage medium
CN112346761B (en) Front-end resource online method, device, system and storage medium
CN112905441A (en) Test case generation method, test method, device and equipment
US20120159515A1 (en) Sharing object representations
CN116737125A (en) Rule logic operation method and device
CN111124480A (en) Application package generation method and device, electronic equipment and storage medium
CN111552518B (en) Method and device for loading control for starting application
CN114840321B (en) Method and device for processing call relationship, storage medium and electronic device
US20090106764A1 (en) Support for globalization in test automation
CN111240987A (en) Migration program detection method and device, electronic equipment and computer readable storage medium
CN107301097B (en) Method and device for storing calling java object and reference address information of java object
CN113919683A (en) Calculation method, device, storage medium and processor for process man-hours
CN116432185B (en) Abnormality detection method and device, readable storage medium and electronic equipment
CN112612471B (en) Code processing method, device, equipment and storage medium
CN106610833B (en) Method and device for triggering overlapped HTML element mouse event
CN110968500A (en) Test case execution method and device
CN115016795A (en) Code similarity detection method and device, processor and electronic equipment

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