CN112990850A - Flow implementation method and system based on rule engine - Google Patents

Flow implementation method and system based on rule engine Download PDF

Info

Publication number
CN112990850A
CN112990850A CN202110174989.8A CN202110174989A CN112990850A CN 112990850 A CN112990850 A CN 112990850A CN 202110174989 A CN202110174989 A CN 202110174989A CN 112990850 A CN112990850 A CN 112990850A
Authority
CN
China
Prior art keywords
business
module
rule
rule engine
data
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
CN202110174989.8A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110174989.8A priority Critical patent/CN112990850A/en
Publication of CN112990850A publication Critical patent/CN112990850A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

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

Abstract

The invention discloses a flow implementation method and a system based on a rule engine, which are applied to a flow implementation system based on the rule engine. The method comprises the following steps: acquiring service data according to the service flow interface module; the business process interface module sends the business data to the rule engine module; the rule engine module obtains a first decision result according to the service data; the rule engine module returns the first decision result to the business process interface module; and the business process interface module sends the first decision result to the workflow engine module to complete process creation and circulation. The method solves the technical problem that the switching of the flow template and the adjustment of the approval level in the prior art are mainly realized in a predefined form and cannot be dynamically adjusted in the actual use process after the definition is finished.

Description

Flow implementation method and system based on rule engine
Technical Field
The invention relates to the field of workflow engines, in particular to a flow implementation method and system based on a rule engine.
Background
The workflow engine is a core solution for a business system to decide information transfer routing, content level and the like according to different roles, division of labor and conditions. The rule engine is developed by an inference engine, is a component embedded in an application program, and realizes the separation of business decisions from application program codes and the writing of the business decisions by using a predefined semantic module. And receiving data input, interpreting business rules, and making business decisions according to the business rules. The workflow engine of the mainstream at present has realized flow branch control in a form of a predefined script, and has realized a flow hierarchy relationship between a current step and a next step by predetermining a relationship with a currently executed flow hierarchy when determining a flow step when designing a flow template.
In the process of implementing the technical scheme of the invention in the embodiment of the present application, the inventor of the present application finds that the above-mentioned technology has at least the following technical problems:
at present, the switching of the flow template and the adjustment of the approval level of the main workflow engine are mainly realized through a predefined form, and the dynamic adjustment cannot be realized in the actual use process after the definition is finished.
Disclosure of Invention
The embodiment of the application provides a method and a system for realizing a flow based on a rule engine, solves the technical problem that in the prior art, the current main workflow engine mainly realizes the switching of a flow template and the adjustment of an approval level through a predefined form and cannot dynamically adjust in the actual use process after the definition is finished, and achieves the technical purpose of realizing the configurable dynamic control of flow application by combining the rule engine and the workflow engine.
The embodiment of the application provides a flow implementation method based on a rule engine, wherein the method is applied to a flow implementation system based on the rule engine, the system comprises a business flow interface module, the rule engine module and a workflow engine module, and the method comprises the following steps: acquiring service data according to the service flow interface module; the business process interface module sends the business data to the rule engine module; the rule engine module obtains a first decision result according to the service data; the rule engine module returns the first decision result to the business process interface module; and the business process interface module sends the first decision result to the workflow engine module to complete process creation and circulation.
On the other hand, the application also provides a flow implementation system based on the rule engine, wherein the system comprises: the first obtaining unit is used for obtaining service data according to the service flow interface module; the first sending unit is used for sending the business data to a rule engine module by the business process interface module; a second obtaining unit, configured to obtain, by the rule engine module, a first decision result according to the service data; a second sending unit, configured to return the first decision result to the business process interface module by the rule engine module; and the third sending unit is used for sending the first decision result to the workflow engine module by the business process interface module to complete process creation and circulation.
On the other hand, an embodiment of the present application further provides a flow implementation system based on a rule engine, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the program.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the rule engine and the workflow engine are combined, so that the configurable dynamic control of the process application is realized; and the dynamic control of the flow circulation is completed in a flow template and approval authority mode. Through the characteristics of good visibility and high configurability of the rule engine, the complex and difficult-to-modify logic judgment in the workflow engine is completed by the rule engine, and the characteristics of flow configurability, flow branch configurability and approval level configurability are realized.
The foregoing is a summary of the present disclosure, and embodiments of the present disclosure are described below to make the technical means of the present disclosure more clearly understood.
Drawings
Fig. 1 is a schematic flowchart of a method for implementing a rule engine-based process according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a system for implementing a rule engine based process according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
Description of reference numerals: a first obtaining unit 11, a first sending unit 12, a second obtaining unit 13, a second sending unit 14, a third sending unit 15, a bus 300, a receiver 301, a processor 302, a sender 303, a memory 304, and a bus interface 305.
Detailed Description
The embodiment of the application provides a flow implementation and a system based on a rule engine, and solves the technical problem that in the prior art, the current main workflow engine mainly realizes the switching of the flow template and the adjustment of the approval level and cannot dynamically adjust in the actual use process after the definition is completed because the main workflow engine mainly realizes the switching of the flow template and the adjustment of the approval level in a predefined form, so that the technical purpose of configurable dynamic control of flow application is realized by combining the rule engine and the workflow engine. Hereinafter, example embodiments of the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are merely some embodiments of the present application and not all embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein.
Summary of the application
The workflow engine is a core solution for a business system to decide information transfer routing, content level and the like according to different roles, division of labor and conditions. The rule engine is developed by an inference engine, is a component embedded in an application program, and realizes the separation of business decisions from application program codes and the writing of the business decisions by using a predefined semantic module. And receiving data input, interpreting business rules, and making business decisions according to the business rules. The workflow engine of the mainstream at present has realized flow branch control in a form of a predefined script, and has realized a flow hierarchy relationship between a current step and a next step by predetermining a relationship with a currently executed flow hierarchy when determining a flow step when designing a flow template. The prior art also has the technical problem that the switching of the flow template and the adjustment of the approval level of the current main workflow engine are mainly realized through a predefined form and cannot be dynamically adjusted in the actual use process after the definition is finished.
In view of the above technical problems, the technical solution provided by the present application has the following general idea:
the embodiment of the application provides a flow implementation method based on a rule engine, wherein the method is applied to a flow implementation system based on the rule engine, the system comprises a business flow interface module, the rule engine module and a workflow engine module, and the method comprises the following steps: acquiring service data according to the service flow interface module; the business process interface module sends the business data to the rule engine module; the rule engine module obtains a first decision result according to the service data; the rule engine module returns the first decision result to the business process interface module; and the business process interface module sends the first decision result to the workflow engine module to complete process creation and circulation.
Having thus described the general principles of the present application, various non-limiting embodiments thereof will now be described in detail with reference to the accompanying drawings.
Example one
As shown in fig. 1, an embodiment of the present application provides a method for implementing a process based on a rule engine, where the method is applied to a system for implementing a process based on a rule engine, where the system includes a business process interface module, a rule engine module, and a workflow engine module, and the method includes:
step S100: acquiring service data according to the service flow interface module;
specifically, the workflow is mainly characterized in that the processing process is automated, the tasks are executed and monitored according to certain rules and processes by decomposing the work into well-defined tasks and roles, and people and various application tools coordinate with each other to complete certain work, so that the aims of improving the office efficiency, reducing the production cost and improving the production, operation and management level and the competitiveness of enterprises are fulfilled. In the embodiment of the application, the flow implementation system based on the rule engine comprises a business flow interface module, a rule engine module and a workflow engine module. The business process interface module is a module combining a rule engine and a workflow engine, firstly, the business process interface module acquires business related information, and the business data comprises task data such as documents, information and the like which need to be transmitted and executed through a workflow.
Step S200: the business process interface module sends the business data to the rule engine module;
specifically, after obtaining the business data, the business process interface module transmits the business data to the rule engine, and the rule engine interprets a business rule and makes a business decision according to the business rule.
Step S300: the rule engine module obtains a first decision result according to the service data;
specifically, the rule engine is a service that parses, invokes, and executes the rule package. The rule engine separates a business process from a business rule, is responsible for separating the business decision from an application program code, and writes the business decision by using a predefined semantic module so as to obtain the first decision result, and the rule engine and the process business interface module cooperate to perform process template calculation and approval authority calculation, wherein the process template refers to a process definition and comprises the steps of the process, the trend of the process, the branching and aggregation of the process and the flow circulation conditions.
Step S400: the rule engine module returns the first decision result to the business process interface module;
in particular, most business processes contain multiple decision points at which certain conditions are evaluated and the business processes modify their behavior according to these criteria or business rules. And the rule engine makes a decision according to the relevant service information and returns an obtained result to the service flow interface module.
Step S500: and the business process interface module sends the first decision result to the workflow engine module to complete process creation and circulation.
Specifically, the business process interface module and the workflow engine module cooperate to create and circulate a process, the workflow engine module comprises a process definition module and a process circulation module, and a user can define relevant information of the process through the process definition module, wherein the relevant information comprises steps of the process, branches of the process, branch conditions of the process and limiting conditions of the process trend; and determining the state of the process according to the information transmitted by the business process interface module, such as submitting the next process, returning the previous process, returning the specified process, ending the process, terminating the process and the like. The main content of the workflow engine module is to provide a set of effective modeling language for describing the business process, define a correct process model and complete the conversion from the actual business process to the formal definition which can be processed by a computer.
Further, step S200 in the embodiment of the present application further includes:
step S201: assembling and obtaining a first json object according to the service data;
step S202: and the business process interface module sends the first json object to the rule engine module.
In particular, json (javascript Object notification) is a lightweight data exchange format that is easy for human reading and writing, and also easy for machine parsing and generation. JSON is built in two structures: a collection of "name/value" pairs, an ordered list of values. In different languages it is understood as an object, record, structure, dictionary, hash table, keyed list or associative array, in most languages it is understood as an array. And the business process interface module assembles the business data into the first json object and sends the first json object to the rule engine module.
Further, step S400 in the embodiment of the present application further includes:
step S401: obtaining a second json object according to the first decision result;
step S402: and the rule engine module returns the second json object to the business process interface module.
Specifically, the rule engine module makes a decision according to the related business information, and returns the decision information as the second json object to the business process interface module.
Further, step S300 in the embodiment of the present application further includes:
step S301 a: and the business process interface module obtains the process template information according to the business data by calculating the interface of the process template.
Further, step S301a in the embodiment of the present application further includes:
step S301a 1: and the business process interface module obtains the examination and approval level information according to the business data by calculating the interface of the examination and approval level.
Further, step S301a1 in the embodiment of the present application further includes:
step S301a 11: the business process interface module obtains the information of the circulation condition according to the business data by calculating the interface of the circulation condition;
step S301a 12: and obtaining a first decision result according to the process template information, the approval level information and the circulation condition information.
Specifically, the interfaces of the business process interface module and the rule engine include an interface for calculating a process template, an interface for calculating an approval level, and an interface for calculating a circulation condition. The business process interface module obtains process template information according to the business data by calculating an interface of a process template; obtaining the information of the approval levels according to the service data by calculating interfaces of the approval levels; and acquiring the information of the circulation condition according to the service data through an interface for calculating the circulation condition. The flow template refers to the definition of a flow, and comprises the steps of the flow, the trend of the flow, the branching and aggregation of the flow and the flow circulation condition; the process level refers to the organizational level of steps through which the process passes; the flow circulation condition is a condition for judging the flow trend.
Further, step S500 in the embodiment of the present application further includes:
step S501 a: and sending the first decision result to the workflow engine module through a process creation interface, a next task information acquisition interface and a process submission interface to complete process creation and circulation.
Specifically, the business process interface module sends the first decision result to the workflow engine module by respectively calling a process creation interface, a next task information acquisition interface and a process submission interface, so as to complete process creation and circulation, including process creation and submission, an inquiry process and process state management.
Further, step S500 in the embodiment of the present application further includes:
step S501 b: obtaining first workflow return information;
step S502 b: and determining an executor of the next process according to the first workflow return information through the process executor interface.
Specifically, after the business process interface module obtains the first workflow return information, the business process interface module determines an executor of the next process by calling a process executor interface.
Further, step S300 in the embodiment of the present application further includes:
step S301 b: obtaining a predetermined business rule logic;
step S302 b: acquiring service rule data according to the service data;
step S303 b: and obtaining a first decision result according to the business rule data and the preset business rule logic.
Specifically, after receiving the business rule data transmitted by the business process interface module, the rule engine module makes a decision according to the business rule data and the preset business rule logic, and returns a decision result to the business process interface module.
Further, step S302b in the embodiment of the present application further includes:
step S302b 1: obtaining a predetermined data object;
step S302b 2: and converting the business data into business rule data according to the preset data object.
Specifically, the predetermined data object is a predefined data object, and the business process interface module converts the business data into the business rule data that can be used by the rule engine module according to the predetermined data object after obtaining the business data.
Further, step S301b in the embodiment of the present application further includes:
step S301b 1: obtaining the editing information of a first user in the rule engine module;
step S301b 2: and obtaining the preset business rule logic according to the editing information of the first user in the rule engine module.
Specifically, the business rule logic is decision logic edited in the rule engine by the first user. The rule engine module comprises a management and monitoring interface for workflow, and is used for performing process state management, process monitoring management, resource control operation and the like on the workflow by a user.
Further, step S501a in this embodiment of the present application further includes:
step S501a1 a: the workflow engine module obtains first user-defined process information through a process definition module.
Specifically, the first user may define, through the process definition module of the workflow engine module, information related to a process, including steps of the process, branches of the process, branch conditions of the process, and constraints on a flow direction.
Further, step S501a in this embodiment of the present application further includes:
step S501a1 b: the workflow engine module determines a process state according to the first decision result through a process flow module;
step S501a2 b: and the workflow engine module sends the process state to the process service interface module.
Specifically, the workflow engine module determines the state of the process according to the information transmitted by the business process interface module, such as the next step of process submission, the last step of process return, the specified step of process return, process end, and process termination. And then the workflow engine module sends the process state to the process business interface module.
To sum up, the flow implementation method based on the rule engine provided by the embodiment of the application has the following technical effects:
the rule engine and the workflow engine are combined, so that the configurable dynamic control of the process application is realized; and the dynamic control of the flow circulation is completed in a flow template and approval authority mode. Through the characteristics of good visibility and high configurability of the rule engine, the complex and difficult-to-modify logic judgment in the workflow engine is completed by the rule engine, and the characteristics of flow configurability, flow branch configurability and approval level configurability are realized. The scheme is strong in universality and can be adapted to various process applications, workflow engines and rule engines.
Example two
Based on the same inventive concept as the flow implementation method based on the rule engine in the foregoing embodiment, the present invention further provides a flow implementation system based on the rule engine, as shown in fig. 2, the system includes:
a first obtaining unit 11, where the first obtaining unit 11 is configured to obtain service data according to a service flow interface module;
the first sending unit 12, where the first sending unit 12 is configured to send the business data to a rule engine module by the business process interface module;
a second obtaining unit 13, where the second obtaining unit 13 is configured to obtain, by the rule engine module, a first decision result according to the service data;
a second sending unit 14, where the second sending unit 14 is configured to return the first decision result to the business process interface module by the rule engine module;
and a third sending unit 15, where the third sending unit 15 is configured to send the first decision result to a workflow engine module by the business process interface module, so as to complete process creation and flow.
Further, the system further comprises:
a third obtaining unit, configured to obtain a first json object according to the service data assembly;
a fourth sending unit, configured to send the first json object to the rule engine module by the business process interface module.
Further, the system further comprises:
a fourth obtaining unit, configured to obtain a second json object according to the first decision result;
a fifth sending unit, configured to return, by the rule engine module, the second json object to the business process interface module.
Further, the system further comprises:
and the fifth obtaining unit is used for obtaining the flow template information according to the service data by the service flow interface module through calculating the interface of the flow template.
Further, the system further comprises:
and the sixth obtaining unit is used for obtaining the approval level information according to the service data by calculating an interface of an approval level through the service process interface module.
Further, the system further comprises:
a seventh obtaining unit, configured to obtain, by the service process interface module, the information of the flow condition according to the service data through an interface for calculating the flow condition;
an eighth obtaining unit, configured to obtain a first decision result according to the flow template information, the approval level information, and the flow condition information.
Further, the system further comprises:
and the sixth sending unit is used for sending the first decision result to the workflow engine module through a process creation interface, a next task information acquisition interface and a process submission interface so as to complete process creation and flow.
Further, the system further comprises:
a ninth obtaining unit, configured to obtain first workflow return information;
a tenth obtaining unit, configured to determine, through a process executor interface, an executor of a next process according to the first workflow return information.
Further, the system further comprises:
an eleventh obtaining unit, configured to obtain a predetermined business rule logic;
a twelfth obtaining unit, configured to obtain service rule data according to the service data;
a thirteenth obtaining unit, configured to obtain, according to the service rule data and according to the predetermined service rule logic, a first decision result.
Further, the system further comprises:
a fourteenth obtaining unit for obtaining a predetermined data object;
a fifteenth obtaining unit, configured to convert the business data into business rule data according to the predetermined data object.
Further, the system further comprises:
a sixteenth obtaining unit, configured to obtain editing information of the first user in the rule engine module;
a seventeenth obtaining unit, configured to obtain a predetermined business rule logic according to edit information of the first user in the rule engine module.
Further, the system further comprises:
an eighteenth obtaining unit, configured to obtain, by the workflow engine module, the flow information defined by the first user through a flow definition module.
Further, the system further comprises:
a nineteenth obtaining unit, configured to determine, by the workflow engine module, a flow state according to the first decision result through a flow circulation module;
a seventh sending unit, configured to send the flow state to the flow service interface module by the workflow engine module.
Various changes and specific examples of the rule engine based flow implementation method in the first embodiment of fig. 1 are also applicable to the rule engine based flow implementation system in the present embodiment, and through the foregoing detailed description of the rule engine based flow implementation method, those skilled in the art can clearly know the rule engine based flow implementation system in the present embodiment, so for the sake of brevity of the description, detailed descriptions are not provided herein again.
Exemplary electronic device
The electronic device of the embodiment of the present application is described below with reference to fig. 3.
Fig. 3 illustrates a schematic structural diagram of an electronic device according to an embodiment of the present application.
Based on the inventive concept of the flow implementation method based on the rule engine in the foregoing embodiments, the present invention further provides a flow implementation system based on the rule engine, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the foregoing flow implementation methods based on the rule engine.
Where in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 305 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other systems over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
The embodiment of the application provides a flow implementation method based on a rule engine, wherein the method is applied to a flow implementation system based on the rule engine, the system comprises a business flow interface module, the rule engine module and a workflow engine module, and the method comprises the following steps: acquiring service data according to the service flow interface module; the business process interface module sends the business data to the rule engine module; the rule engine module obtains a first decision result according to the service data; the rule engine module returns the first decision result to the business process interface module; and the business process interface module sends the first decision result to the workflow engine module to complete process creation and circulation.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a system 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 an instruction system 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. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A flow implementation method based on a rule engine is applied to a flow implementation system based on the rule engine, the system comprises a business flow interface module, a rule engine module and a workflow engine module, and the method comprises the following steps:
acquiring service data according to the service flow interface module;
the business process interface module sends the business data to the rule engine module;
the rule engine module obtains a first decision result according to the service data;
the rule engine module returns the first decision result to the business process interface module;
and the business process interface module sends the first decision result to the workflow engine module to complete process creation and circulation.
2. The method of claim 1, wherein the business process interface module sending the business data to the rules engine module comprises:
assembling and obtaining a first json object according to the service data;
and the business process interface module sends the first json object to the rule engine module.
3. The method of claim 1, wherein the rule engine module returning the first decision result to the business process interface module comprises:
obtaining a second json object according to the first decision result;
and the rule engine module returns the second json object to the business process interface module.
4. The method of claim 1, wherein the rule engine module obtains a first decision result based on the business data, comprising:
and the business process interface module obtains the process template information according to the business data by calculating the interface of the process template.
5. The method of claim 4, wherein the method comprises:
and the business process interface module obtains the examination and approval level information according to the business data by calculating the interface of the examination and approval level.
6. The method of claim 5, wherein the method comprises:
the business process interface module obtains the information of the circulation condition according to the business data by calculating the interface of the circulation condition;
and obtaining a first decision result according to the process template information, the approval level information and the circulation condition information.
7. The method of claim 1, wherein the business process interface module sends the first decision result to the workflow engine module to complete process creation and flow, comprising:
and sending the first decision result to the workflow engine module through a process creation interface, a next task information acquisition interface and a process submission interface to complete process creation and circulation.
8. The method of claim 1, wherein the business process interface module sends the first decision result to the workflow engine module, and after completing process creation and flow, comprises:
obtaining first workflow return information;
and determining an executor of the next process according to the first workflow return information through the process executor interface.
9. The method of claim 1, wherein the rule engine module obtaining a first decision result based on the business data comprises:
obtaining a predetermined business rule logic;
acquiring service rule data according to the service data;
and obtaining a first decision result according to the business rule data and the preset business rule logic.
10. The method of claim 9, wherein the obtaining business rule data from the business data comprises:
obtaining a predetermined data object;
and converting the business data into business rule data according to the preset data object.
11. The method of claim 9, wherein the obtaining predetermined business rule logic comprises:
obtaining the editing information of a first user in the rule engine module;
and obtaining the preset business rule logic according to the editing information of the first user in the rule engine module.
12. The method of claim 7, wherein the method comprises:
the workflow engine module obtains first user-defined process information through a process definition module.
13. The method of claim 7, wherein the method comprises:
the workflow engine module determines a process state according to the first decision result through a process flow module;
and the workflow engine module sends the process state to the process service interface module.
14. A system for implementing a process based on a rules engine, wherein the system comprises:
the first obtaining unit is used for obtaining service data according to the service flow interface module;
the first sending unit is used for sending the business data to a rule engine module by the business process interface module;
a second obtaining unit, configured to obtain, by the rule engine module, a first decision result according to the service data;
a second sending unit, configured to return the first decision result to the business process interface module by the rule engine module;
and the third sending unit is used for sending the first decision result to the workflow engine module by the business process interface module to complete process creation and circulation.
15. A system for implementing a rule engine based process, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 13 when executing the program.
CN202110174989.8A 2021-02-09 2021-02-09 Flow implementation method and system based on rule engine Pending CN112990850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110174989.8A CN112990850A (en) 2021-02-09 2021-02-09 Flow implementation method and system based on rule engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110174989.8A CN112990850A (en) 2021-02-09 2021-02-09 Flow implementation method and system based on rule engine

Publications (1)

Publication Number Publication Date
CN112990850A true CN112990850A (en) 2021-06-18

Family

ID=76347947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110174989.8A Pending CN112990850A (en) 2021-02-09 2021-02-09 Flow implementation method and system based on rule engine

Country Status (1)

Country Link
CN (1) CN112990850A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537943A (en) * 2021-07-30 2021-10-22 苏州工业园区测绘地理信息有限公司 Universal workflow engine and construction method thereof
CN114757592A (en) * 2022-06-15 2022-07-15 北京乐开科技有限责任公司 Arrangement method and system for integrating workflow engine and RPA
CN114862099A (en) * 2022-03-23 2022-08-05 华院计算技术(上海)股份有限公司 Online continuous casting quality pre-judgment model system based on rule engine
CN115170048A (en) * 2022-04-07 2022-10-11 唐旸 Workflow implementation method, system, and medium based on model and rule

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537943A (en) * 2021-07-30 2021-10-22 苏州工业园区测绘地理信息有限公司 Universal workflow engine and construction method thereof
CN114862099A (en) * 2022-03-23 2022-08-05 华院计算技术(上海)股份有限公司 Online continuous casting quality pre-judgment model system based on rule engine
CN114862099B (en) * 2022-03-23 2023-10-13 华院计算技术(上海)股份有限公司 Continuous casting quality prejudging model online system based on rule engine
CN115170048A (en) * 2022-04-07 2022-10-11 唐旸 Workflow implementation method, system, and medium based on model and rule
CN114757592A (en) * 2022-06-15 2022-07-15 北京乐开科技有限责任公司 Arrangement method and system for integrating workflow engine and RPA
CN114757592B (en) * 2022-06-15 2022-10-21 北京乐开科技有限责任公司 Workflow engine and RPA (resilient packet Access) fusion arrangement method and system

Similar Documents

Publication Publication Date Title
CN112990850A (en) Flow implementation method and system based on rule engine
WO2018180970A1 (en) Information processing system, feature value explanation method and feature value explanation program
CN109858019B (en) Dialogue state tracking method and device, storage medium and semantic recognition system
EP1868091A1 (en) Systems and methods for adapting service interface behaviors
US8307366B2 (en) Post-processing phase in a distributed processing system using assignment information
CN101957745A (en) Method for converting ladder diagram language into structure text language
WO2020228063A1 (en) Method and device for developing service functions
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN111930489B (en) Task scheduling method, device, equipment and storage medium
CN110430444A (en) A kind of video stream processing method and system
KR102555607B1 (en) Method and apparatus for annotating data, device, storage medium and computer program
CN112860356B (en) API call control method and device, electronic equipment and storage medium
CN117035318A (en) Robot automation flow design and scheduling method and device based on large language model
CN104424555A (en) Control method and equipment used in publication/subscription system
CN116258469B (en) Service data processing method, system, equipment and medium based on communication software
CN109446146B (en) State transition sequence generation method of application layer communication protocol
CN109344050B (en) Interface parameter analysis method and device based on structure tree
CN116301735A (en) Method, device and storage medium for organizing software elements into software data links
CN114185938B (en) Project traceability analysis method and system based on digital finance and big data traceability
WO2022253165A1 (en) Scheduling method, system, server and computer readable storage medium
CN107526573B (en) Method for processing remote sensing image by adopting parallel pipeline
US8495033B2 (en) Data processing
CN111027196A (en) Simulation analysis task processing method and device for power equipment and storage medium
CN116957170B (en) Constraint intensive reduction method and system for power system optimization problem
CN103927153A (en) System configuration method and device and system

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