CN114116063A - Business process processing method and device, computer equipment and storage medium - Google Patents

Business process processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114116063A
CN114116063A CN202111431525.7A CN202111431525A CN114116063A CN 114116063 A CN114116063 A CN 114116063A CN 202111431525 A CN202111431525 A CN 202111431525A CN 114116063 A CN114116063 A CN 114116063A
Authority
CN
China
Prior art keywords
business process
node
configuration file
metadata
data slot
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
CN202111431525.7A
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.)
Ping An Pension Insurance Corp
Original Assignee
Ping An Pension Insurance 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 Ping An Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN202111431525.7A priority Critical patent/CN114116063A/en
Publication of CN114116063A publication Critical patent/CN114116063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Technology Law (AREA)
  • Game Theory and Decision Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a business process processing method, a business process processing device, computer equipment and a storage medium, and belongs to the technical field of computers. The business process processing method can create the configuration file according to the operation of the user, simplify the configuration process and improve the development efficiency; acquiring a business process and metadata by analyzing the configuration file, loading the business process and the metadata, and distributing a data slot for the business process, so that the metadata is input into the data slot for unified management, and the lightweight storage is realized; and when the business process is executed, the metadata is directly acquired from the data slot, so that the execution efficiency is improved.

Description

Business process processing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a business process, a computer device, and a storage medium.
Background
As the product variety of internet services gradually diversifies, service providers generally use a unified management platform for service management.
Taking internet insurance service as an example, most of the existing insurance service management systems develop corresponding business logic for different insurance products, and the business logic is the core of the system and relates to internal logic calculation, caching, persistence, external resource reading, internal system remote process call and the like. The judgment and branch conditions of the hard code are more and more after long-time iteration. The coupling degree between the modules is higher and higher, and the code reuse rate is lower and lower. When a section of code logic needs to be adjusted, the code logic of other modules is easily influenced, each adjustment needs a complete regression test, and the flexibility is poor. Meanwhile, when the business logic is executed, a plurality of data slots need to be allocated, and the result of the business method is configured to the corresponding object in advance, so that the process is complicated, and the maintenance and the management are inconvenient.
Disclosure of Invention
Aiming at the problem that the existing business logic execution process is complicated and inconvenient to manage, a business flow processing method, a device, computer equipment and a storage medium which aim at simplifying the process and managing uniformly are provided.
In order to achieve the above object, the present invention provides a method for processing a business process, comprising:
creating a configuration file according to the operation of a user, wherein the configuration file comprises at least one node component and a business process for representing the logical relationship between the node components;
analyzing the configuration file to obtain a service process and metadata;
distributing a data slot for the business process, loading the business process and the metadata, and inputting the metadata into the data slot;
and acquiring the metadata from the data slot to execute the business process.
Optionally, the creating a configuration file according to the operation of the user includes:
displaying a service flow configuration interface;
acquiring the operation of the node components set by the user based on the business process configuration interface and the interactive operation among the node components;
and creating the configuration file according to the node assembly in the business process configuration interface and the logic relationship between the node assemblies.
Optionally, the node component includes a node component identifier, a node code, and a parameter;
the creating the configuration file according to the logical relationship between the node component and the node component in the business process configuration interface includes:
and extracting node codes of all node components in the business process configuration interface, and generating the configuration file based on the logic relationship among all the node components and the node codes of all the node components.
Optionally, the configuration file adopts an extensible markup language;
analyzing the configuration file to obtain the service process and the metadata, wherein the method comprises the following steps:
and analyzing the configuration file by adopting a DOM (document object model) analysis mode, an SAX (software object model) analysis mode, a JDOM analysis mode or a DOM4J analysis mode to acquire the business process and the metadata.
Optionally, the obtaining the metadata from the data slot to execute the business process includes:
and acquiring corresponding metadata from the data slot according to the sequence of each node component in the business process to execute the node component, and inputting the execution result of the node component into the data slot according to the execution sequence so as to be executed by the subsequent node components until the business process is finished.
Optionally, before analyzing the configuration file to obtain the service flow and the metadata, the method further includes:
monitoring the configuration file, and identifying whether the configuration file is a newly created configuration file;
and when the configuration file is a newly created configuration file, analyzing the configuration file to acquire a service process and metadata.
In order to achieve the above object, the present invention provides a business process processing apparatus, including:
the system comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for creating a configuration file according to the operation of a user, and the configuration file comprises at least one node component and a business process for representing the logical relationship between the node components;
the analysis unit is used for analyzing the configuration file to obtain a service process and metadata;
the processing unit is used for distributing a data slot for the business process, loading the business process and the metadata and inputting the metadata into the data slot;
and the execution unit is used for acquiring the metadata from the data slot and executing the business process.
Optionally, the creating unit includes:
the display module is used for displaying a business process configuration interface;
the acquisition module is used for acquiring the operation of the node components set by the user based on the business process configuration interface and the interactive operation among the node components;
and the creating module is used for creating the configuration file according to the node assembly in the business process configuration interface and the logical relationship between the node assemblies.
To achieve the above object, the present invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
To achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above method.
The business process processing method, the business process processing device, the computer equipment and the storage medium can create the configuration file according to the operation of the user, simplify the configuration process and improve the development efficiency; acquiring a business process and metadata by analyzing the configuration file, loading the business process and the metadata, and distributing a data slot for the business process, so that the metadata is input into the data slot for unified management, and the lightweight storage is realized; and when the business process is executed, the metadata is directly acquired from the data slot, so that the execution efficiency is improved.
Drawings
Fig. 1 is a flowchart of an embodiment of a business process processing method according to the present invention;
FIG. 2 is a flowchart of one embodiment of parsing a configuration file to obtain a business process and metadata in accordance with the present invention;
FIG. 3 is a block diagram of an embodiment of a business process processing apparatus according to the present invention;
FIG. 4 is a block diagram of one embodiment of a creation unit according to the present invention;
fig. 5 is a schematic diagram of a hardware architecture of an embodiment of a computer device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The business process processing method, the business process processing device, the computer equipment and the storage medium are suitable for the insurance field, such as: insurance inquiry price, underwriting flow and other scenes. The business process processing method can create the configuration file according to the operation of the user, simplify the configuration process and improve the development efficiency; acquiring a business process and metadata by analyzing the configuration file, loading the business process and the metadata, and distributing a data slot for the business process, so that the metadata is input into the data slot for unified management, and the lightweight storage is realized; and when the business process is executed, the metadata is directly acquired from the data slot, so that the execution efficiency is improved.
Example one
Referring to fig. 1, a method for processing a service flow according to the present embodiment may include the following steps:
s1, creating a configuration file according to the operation of a user.
Wherein the configuration file comprises at least one node component and a business process for representing the logical relationship between the node components; the node component includes a node component identification, a node code, and a parameter.
In this embodiment, the user may create the configuration file through the client. The node components in the configuration file may adopt the finest granularity functional method nodes (e.g., addition method nodes, subtraction method nodes, etc.), and the node codes included in the node components may be basic codes, which may be determined according to the actual application scenarios, and are not limited herein.
Further, step S1 referring to fig. 2 may include the following steps:
and S11, displaying a service flow configuration interface.
In this embodiment, the service flow configuration interface may be displayed through a service flow configuration system of the client, where the service flow configuration system includes a storage unit for storing node components, and the storage unit stores a plurality of preset node components.
And S12, acquiring the operation of the node components set by the user based on the business process configuration interface and the interactive operation among the node components.
In this embodiment, the user may select the node components in the presence unit through one or more selectable input modes such as an input box, or a drag, or an option, and configure the interaction logic between the node components in the business process configuration world.
Specifically, the operations of adding, modifying, and/or deleting the node components by the user based on the business process configuration interface and the interactive operations between all the node components in the business process configuration interface by the user are collected through step S12. The interaction operations include adjustments to the logical relationships between node components, such as: call relations, serial execution, parallel execution, etc.
In this embodiment, in the process of creating the configuration file, a user can edit and combine the preset node components in the service flow configuration interface according to the service function without manually writing or modifying a code, so as to implement the corresponding function.
S13, creating the configuration file according to the node assembly in the business process configuration interface and the logic relationship between the node assemblies.
Specifically, step S13 includes: and extracting node codes of all node components in the business process configuration interface, and generating the configuration file based on the logic relationship among all the node components and the node codes of all the node components.
The execution logic of the configuration file is as follows: method 1 → method 2 → method 3 → … … → method N for example, when the existing configuration file is adopted to adjust the configuration file, the code needs to be modified again, flexible configuration is not possible, and the time consumption is long. By decoupling the node assemblies, the combined node assembly production configuration file can be arranged quickly according to user requirements, and the method has the advantages of convenience in maintenance, high flexibility, high efficiency and the like.
And S2, analyzing the configuration file to obtain a service process and metadata.
In this embodiment, the configuration file may be in an extensible markup language, XML, format. A business process refers to a process that is composed of node components. The metadata comprises the identification, parameters and calling relations of each node component in the business flow (by which components the node component can be called); wherein, the parameters refer to input parameters and output parameters of the node components.
In this embodiment, the business process and the metadata obtained by parsing may be stored in the controller.
Further, in step S2, the configuration file may be parsed in a DOM parsing manner, an SAX parsing manner, a JDOM parsing manner, or a DOM4J parsing manner, so as to obtain the service flow and the metadata.
The DOM parsing is to store information in the data structure of a tree by converting a configuration file into a set of object models. Through the DOM interface, an application can access any part of data in the configuration file at any time, so the mode of access by using the DOM interface is also called random access. The DOM parsing mode is widely used, the tree structure adopted by the DOM parsing mode is matched with the XML information storage mode, and meanwhile random access of the DOM parsing mode can be utilized.
The SAX parsing approach is faster and lighter in weight to read and manipulate data than the DOM parsing approach. The SAX analysis mode can be processed in real time during configuration files, and operation is not needed to be taken after the whole configuration files are stored. The SAX parsing scheme is an event-based API function, and is adapted to process data streams, that is, data is processed sequentially as the data flows. When the configuration file is analyzed, a notification message is generated if a certain event occurs.
The JDOM parsing mode is based on a tree structure and realizes parsing, generation, serialization and various operations on XML documents by utilizing a pure JAVA technology. JDOMs can directly serve JAVA programming. JDOM effectively combines the SAX and DOM parsing functions by means of method overloading, aggregation concept and mapping. JDOM parsing can optimize API functions to the maximum extent on the premise of simplicity and high efficiency.
DOM4J is a package of components of a set of XML files used to read and write XML files. DOM4J is excellent in performance, powerful in function, and has the practicality, has wide application in many frameworks. The main interfaces of DOM4J are: attribute is used to define the attributes of XML, Branch is a node that can contain children (e.g., Element and Document), CDATA is used to define the CDATA region of XML, CharacterData is an identification interface used to identify character-based nodes (e.g., CDATA, Comment, Text), Comment defines the annotation of XML, Document defines the Document of XML, Element defines the Element of XML, Text defines the node of XML Text. The flow of parsing the XML document by DOM4J is as follows: firstly creating an SAXReader parser, reading a Document (XML) to be parsed into a Document object (loaded into a Document tree), then obtaining a Node object (Node objects have several categories, namely labels, attributes, texts and comments) through the Document object, parsing the Document to be parsed through the Node object, reading the Document to be parsed, obtaining a root Node and all nodes under the root Node, generating a service flow based on the root Node and all nodes under the root Node, and inquiring the corresponding attributes of the Node according to the Node name and the corresponding labels, thereby obtaining metadata. In a preferred embodiment, before performing step S2, the method further includes:
A. and monitoring the configuration file, and identifying whether the configuration file is a newly created configuration file. And when the configuration file is a newly created configuration file, analyzing the configuration file to acquire a service process and metadata, thereby realizing the purpose of monitoring the configuration file in real time.
And S3, distributing a data slot for the business process, loading the business process and the metadata, and inputting the metadata into the data slot.
In this embodiment, the service flow and the metadata are loaded from the controller, and at the same time, the slot manager is called to allocate a data slot, and the metadata is stored in the data slot, so as to uniformly manage the parameters of all the node components.
In one embodiment, after receiving the request sent by the user, step S3 is executed to invoke the slot manager to allocate a unique data slot according to the received request.
And S4, acquiring the metadata from the data slot and executing the business process.
Further, step S4 includes: and acquiring corresponding metadata from the data slot according to the sequence of each node component in the business process to execute the node component, and inputting the execution result of the node component into the data slot according to the execution sequence so as to be executed by the subsequent node components until the business process is finished.
In this embodiment, when the service flow is executed, a release message is generated and sent to the slot manager, and the slot manager releases the memory of the data slot.
By way of example and not limitation, taking the execution logic of the business process as method 1 → method 2 → method 3 → … … → method N as an example, methods 1, 2, and 3 … … N each correspond to a node component, and each method corresponds to a node component; the process of executing the business process comprises the following steps: acquiring input parameters of the method 1 from a data slot, executing the method 1, and storing output parameters of the method 1 into the data slot for use when a subsequent method is executed; acquiring input parameters for executing the method 2 from the data slot, executing the method 2, and storing the output parameters of the method 2 into the data slot; and acquiring input parameters for executing the method 3 from the data slot, executing the method 3, storing the output parameters of the method 3 into the data slot, and so on until executing the method N. When the existing business process is executed, a plurality of data slots need to be distributed, each data slot corresponds to one method, when one method is executed, the output parameters of the method need to be appointed to be transmitted to one or more methods, the process is complicated, errors are easy to occur, and the occupied storage space is large. However, in the embodiment, the upper and lower data are managed through one data slot, so that the input parameters and the output parameters of all node components can be uniformly managed, the configuration is light and convenient to manage, and the parameter calling process is simplified.
The node components in the service flow of the embodiment are independent of each other, support scenes such as serial, parallel and condition judgment, and can realize multiplexing of the components to the maximum extent.
In this embodiment, the business process processing method can create a configuration file according to the operation of the user, simplify the configuration process, and improve the development efficiency; acquiring a business process and metadata by analyzing the configuration file, loading the business process and the metadata, and distributing a data slot for the business process, so that the metadata is input into the data slot for unified management, and the lightweight storage is realized; and when the business process is executed, the metadata is directly acquired from the data slot, so that the execution efficiency is improved. The service flow processing method of the embodiment supports chain mode flow arrangement of complex service processing, realizes service functions by combining node components with the finest granularity, can realize multiplexing of the node components to the maximum extent, can uniformly manage context data through data slots, is safe and isolated for different thread data slots, removes role concepts compared with the existing workflow engine, is configured with lighter weight, and is easier to maintain the service flow.
Example two
Referring to fig. 3, a business process processing apparatus 1 of the present embodiment includes: a creation unit 11, a parsing unit 12, a processing unit 13 and an execution unit 14.
A creating unit 11 for creating a configuration file according to a user's operation.
Wherein the configuration file comprises at least one node component and a business process for representing the logical relationship between the node components; the node component includes a node component identification, a node code, and a parameter.
In this embodiment, the user may create the configuration file through the client. The node components in the configuration file may adopt the finest granularity functional method nodes (e.g., addition method nodes, subtraction method nodes, etc.), and the node codes included in the node components may be basic codes, which may be determined according to the actual application scenarios, and are not limited herein.
Further, the creation unit 11 may include, with reference to fig. 4: a display module 111, an acquisition module 112, and a creation module 113.
And the display module 111 is used for displaying the service flow configuration interface.
In this embodiment, the service flow configuration interface may be displayed through a service flow configuration system of the client, where the service flow configuration system includes a storage unit for storing node components, and the storage unit stores a plurality of preset node components.
An obtaining module 112, configured to obtain the operation of the node component set by the user based on the business process configuration interface and the interaction operation between the node components.
In this embodiment, the user may select the node components in the presence unit through one or more selectable input modes such as an input box, or a drag, or an option, and configure the interaction logic between the node components in the business process configuration world.
Specifically, the operation of adding, modifying, and/or deleting the node component based on the business process configuration interface by the user is collected through the obtaining module 112, and the interactive operation between all the node components in the business process configuration interface by the user is collected. The interaction operations include adjustments to the logical relationships between node components, such as: call relations, serial execution, parallel execution, etc.
In this embodiment, in the process of creating the configuration file, a user can edit and combine the preset node components in the service flow configuration interface according to the service function without manually writing or modifying a code, so as to implement the corresponding function.
A creating module 113, configured to create the configuration file according to the node component in the business process configuration interface and the logical relationship between the node components.
Specifically, the creating module 113 is used to extract node codes of each node component in the business process configuration interface, and generate the configuration file based on the logical relationship between all the node components and the node codes of each node component.
The execution logic of the configuration file is as follows: method 1 → method 2 → method 3 → … … → method N for example, when the existing configuration file is adopted to adjust the configuration file, the code needs to be modified again, flexible configuration is not possible, and the time consumption is long. By decoupling the node assemblies, the combined node assembly production configuration file can be arranged quickly according to user requirements, and the method has the advantages of convenience in maintenance, high flexibility, high efficiency and the like.
And the analysis unit 12 is configured to analyze the configuration file to obtain a service flow and metadata.
In this embodiment, the configuration file may be in an extensible markup language, XML, format. A business process refers to a process that is composed of node components. The metadata comprises the identification, parameters and calling relations of each node component in the business flow (by which components the node component can be called); wherein, the parameters refer to input parameters and output parameters of the node components.
In this embodiment, the business process and the metadata obtained by parsing may be stored in the controller.
Further, the parsing unit 12 may parse the configuration file in a DOM parsing manner, an SAX parsing manner, a JDOM parsing manner, or a DOM4J parsing manner, so as to obtain the service flow and the metadata.
The DOM parsing is to store information in the data structure of a tree by converting a configuration file into a set of object models. Through the DOM interface, an application can access any part of data in the configuration file at any time, so the mode of access by using the DOM interface is also called random access. The DOM parsing mode is widely used, the tree structure adopted by the DOM parsing mode is matched with the XML information storage mode, and meanwhile random access of the DOM parsing mode can be utilized.
The SAX parsing approach is faster and lighter in weight to read and manipulate data than the DOM parsing approach. The SAX analysis mode can be processed in real time during configuration files, and operation is not needed to be taken after the whole configuration files are stored. The SAX parsing scheme is an event-based API function, and is adapted to process data streams, that is, data is processed sequentially as the data flows. When the configuration file is analyzed, a notification message is generated if a certain event occurs.
The JDOM parsing mode is based on a tree structure and realizes parsing, generation, serialization and various operations on XML documents by utilizing a pure JAVA technology. JDOMs can directly serve JAVA programming. JDOM effectively combines the SAX and DOM parsing functions by means of method overloading, aggregation concept and mapping. JDOM parsing can optimize API functions to the maximum extent on the premise of simplicity and high efficiency.
DOM4J is a package of components of a set of XML files used to read and write XML files. DOM4J is excellent in performance, powerful in function, and has the practicality, has wide application in many frameworks. The main interfaces of DOM4J are: attribute is used to define the attributes of XML, Branch is a node that can contain children (e.g., Element and Document), CDATA is used to define the CDATA region of XML, CharacterData is an identification interface used to identify character-based nodes (e.g., CDATA, Comment, Text), Comment defines the annotation of XML, Document defines the Document of XML, Element defines the Element of XML, Text defines the node of XML Text. The flow of parsing the XML document by DOM4J is as follows: firstly, an SAXReader parser is created, the XML document is parsed, and a document object is reconstructed, so that the information of the document object is facilitated.
And the processing unit 13 is used for allocating a data slot for the business process, loading the business process and the metadata, and inputting the metadata into the data slot.
In this embodiment, the service flow and the metadata are loaded from the controller, and at the same time, the slot manager is called to allocate a data slot, and the metadata is stored in the data slot, so as to uniformly manage the parameters of all the node components.
In one embodiment, when a request from a user is received, the processing unit 13 calls the slot manager to allocate a unique data slot according to the received request.
And the execution unit 14 is configured to acquire the metadata from the data slot and execute the business process.
Further, the execution unit 14 is configured to obtain corresponding metadata from the data slot according to the sequence of each node component in the business process to execute the node component, and input an execution result of the node component into the data slot according to the execution sequence, so that the subsequent node component can execute the metadata until the business process is finished.
In this embodiment, when the service flow is executed, a release message is generated and sent to the slot manager, and the slot manager releases the memory of the data slot.
By way of example and not limitation, taking the execution logic of the business process as method 1 → method 2 → method 3 → … … → method N as an example, methods 1, 2, and 3 … … N each correspond to a node component, and each method corresponds to a node component; the process of executing the business process comprises the following steps: acquiring input parameters of the method 1 from a data slot, executing the method 1, and storing output parameters of the method 1 into the data slot for use when a subsequent method is executed; acquiring input parameters for executing the method 2 from the data slot, executing the method 2, and storing the output parameters of the method 2 into the data slot; and acquiring input parameters for executing the method 3 from the data slot, executing the method 3, storing the output parameters of the method 3 into the data slot, and so on until executing the method N. When the existing business process is executed, a plurality of data slots need to be distributed, each data slot corresponds to one method, when one method is executed, the output parameters of the method need to be appointed to be transmitted to one or more methods, the process is complicated, errors are easy to occur, and the occupied storage space is large. However, in the embodiment, the upper and lower data are managed through one data slot, so that the input parameters and the output parameters of all node components can be uniformly managed, the configuration is light and convenient to manage, and the parameter calling process is simplified.
The node components in the service flow of the embodiment are independent of each other, support scenes such as serial, parallel and condition judgment, and can realize multiplexing of the components to the maximum extent.
In this embodiment, the business process processing apparatus 1 can create a configuration file according to the operation of the user, simplify the configuration process, and improve the development efficiency; the configuration file is analyzed through the analysis unit 12 to obtain a business process and metadata, the business process and the metadata are loaded through the processing unit 13, and a data slot is distributed for the business process, so that the metadata is input into the data slot to be managed in a unified mode, and light storage weight is achieved; the execution unit 14 can directly obtain the metadata from the data slot when executing the business process, thereby improving the execution efficiency. The service flow processing method of the embodiment supports chain mode flow arrangement of complex service processing, realizes service functions by combining node components with the finest granularity, can realize multiplexing of the node components to the maximum extent, can uniformly manage context data through data slots, is safe and isolated for different thread data slots, removes role concepts compared with the existing workflow engine, is configured with lighter weight, and is easier to maintain the service flow.
In a preferred embodiment, the business process processing apparatus 1 may further include a listening unit.
And the monitoring unit is used for monitoring the configuration file and identifying whether the configuration file is a newly created configuration file. When the configuration file is a newly created configuration file, the control analysis unit 12 analyzes the configuration file to obtain a service flow and metadata, so as to achieve the purpose of monitoring the configuration file in real time.
EXAMPLE III
In order to achieve the above object, the present invention further provides a computer device 2, where the computer device 2 includes a plurality of computer devices 2, components of the business process processing apparatus 1 in the second embodiment may be dispersed in different computer devices 2, and the computer device 2 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including an independent server, or a server cluster formed by a plurality of servers) that executes programs, or the like. The computer device 2 of the present embodiment includes at least, but is not limited to: a memory 21, a processor 23, a network interface 22 and the business process processing apparatus 1 (refer to fig. 5) which can be communicatively connected to each other through a system bus. It is noted that fig. 5 only shows the computer device 2 with components, but it is to be understood that not all of the shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the memory 21 includes at least one type of computer-readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 21 may be an internal storage unit of the computer device 2, such as a hard disk or a memory of the computer device 2. In other embodiments, the memory 21 may also be an external storage device of the computer device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the computer device 2. Of course, the memory 21 may also comprise both an internal storage unit of the computer device 2 and an external storage device thereof. In this embodiment, the memory 21 is generally used to store an operating system installed in the computer device 2 and various application software, such as a program code of the business process processing method in the first embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 23 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 23 is typically used for controlling the overall operation of the computer device 2, such as performing control and processing related to data interaction or communication with the computer device 2. In this embodiment, the processor 23 is configured to run the program code stored in the memory 21 or process data, for example, run the business process processing apparatus 1.
The network interface 22 may comprise a wireless network interface or a wired network interface, and the network interface 22 is typically used to establish a communication connection between the computer device 2 and other computer devices 2. For example, the network interface 22 is used to connect the computer device 2 to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device 2 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 5 only shows the computer device 2 with components 21-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the business process processing apparatus 1 stored in the memory 21 can be further divided into one or more program modules, and the one or more program modules are stored in the memory 21 and executed by one or more processors (in this embodiment, the processor 23) to complete the present invention.
Example four
To achieve the above objects, the present invention also provides a computer-readable storage medium including a plurality of storage media such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by the processor 23, implements corresponding functions. The computer-readable storage medium of this embodiment is used for storing the business process processing apparatus 1, and when being executed by the processor 23, the business process processing method of the first embodiment is implemented.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A business process processing method is characterized by comprising the following steps:
creating a configuration file according to the operation of a user, wherein the configuration file comprises at least one node component and a business process for representing the logical relationship between the node components;
analyzing the configuration file to obtain a service process and metadata;
distributing a data slot for the business process, loading the business process and the metadata, and inputting the metadata into the data slot;
and acquiring the metadata from the data slot to execute the business process.
2. The business process processing method of claim 1, wherein the creating a configuration file according to the user's operation comprises:
displaying a service flow configuration interface;
acquiring the operation of the node components set by the user based on the business process configuration interface and the interactive operation among the node components;
and creating the configuration file according to the node assembly in the business process configuration interface and the logic relationship between the node assemblies.
3. The business process flow processing method of claim 2 wherein the node component comprises a node component identification, a node code and a parameter;
the creating the configuration file according to the logical relationship between the node component and the node component in the business process configuration interface includes:
and extracting node codes of all node components in the business process configuration interface, and generating the configuration file based on the logic relationship among all the node components and the node codes of all the node components.
4. The business process processing method of claim 1, wherein the configuration file employs extensible markup language;
analyzing the configuration file to obtain the service process and the metadata comprises the following steps:
and analyzing the configuration file by adopting a DOM (document object model) analysis mode, an SAX (software object model) analysis mode, a JDOM analysis mode or a DOM4J analysis mode to acquire the business process and the metadata.
5. The business process processing method of claim 1, wherein said retrieving said metadata from said data slot to execute said business process comprises:
and acquiring corresponding metadata from the data slot according to the sequence of each node component in the business process to execute the node component, and inputting the execution result of the node component into the data slot according to the execution sequence so as to be executed by the subsequent node components until the business process is finished.
6. The business process processing method of claim 1, wherein before parsing the configuration file to obtain the business process and the metadata, the method further comprises:
monitoring the configuration file, and identifying whether the configuration file is a newly created configuration file;
and when the configuration file is a newly created configuration file, analyzing the configuration file to acquire a service process and metadata.
7. A business process processing apparatus, comprising:
the system comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for creating a configuration file according to the operation of a user, and the configuration file comprises at least one node component and a business process for representing the logical relationship between the node components;
the analysis unit is used for analyzing the configuration file to obtain a service process and metadata;
the processing unit is used for distributing a data slot for the business process, loading the business process and the metadata and inputting the metadata into the data slot;
and the execution unit is used for acquiring the metadata from the data slot and executing the business process.
8. The business process processing apparatus of claim 7, wherein the creating unit comprises:
the display module is used for displaying a business process configuration interface;
the acquisition module is used for acquiring the operation of the node components set by the user based on the business process configuration interface and the interactive operation among the node components;
and the creating module is used for creating the configuration file according to the node assembly in the business process configuration interface and the logical relationship between the node assemblies.
9. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202111431525.7A 2021-11-29 2021-11-29 Business process processing method and device, computer equipment and storage medium Pending CN114116063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111431525.7A CN114116063A (en) 2021-11-29 2021-11-29 Business process processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111431525.7A CN114116063A (en) 2021-11-29 2021-11-29 Business process processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114116063A true CN114116063A (en) 2022-03-01

Family

ID=80371197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111431525.7A Pending CN114116063A (en) 2021-11-29 2021-11-29 Business process processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114116063A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324787A (en) * 2017-08-18 2019-02-12 深圳怡化电脑股份有限公司 A kind of business software development approach, device and terminal device
CN113435846A (en) * 2021-06-30 2021-09-24 深圳平安智汇企业信息管理有限公司 Business process arranging method and device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324787A (en) * 2017-08-18 2019-02-12 深圳怡化电脑股份有限公司 A kind of business software development approach, device and terminal device
CN113435846A (en) * 2021-06-30 2021-09-24 深圳平安智汇企业信息管理有限公司 Business process arranging method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MB5FF97A7F4D63D: "复杂***的解耦利器,这款可编排组件式引擎,真香!", Retrieved from the Internet <URL:mb5ff97a7f4d63d,https://blog.51cto.com/u_15080000/2601986> *
网页发布作者: "轻量,快速,稳定,可编排的组件式流程引擎LiteFlow(你值得拥有)", Retrieved from the Internet <URL:https://blog.csdn.net/qq_41777332/article/details/120908839> *

Similar Documents

Publication Publication Date Title
CN111625452B (en) Flow playback method and system
CN107491382B (en) Log output method and device
CN104598570B (en) The grasping means of resource and device
CN111552838A (en) Data processing method and device, computer equipment and storage medium
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN110188308B (en) Client automatic dotting reporting method, storage medium, equipment and system
CN112527411A (en) Real-time data visualization system based on plug-in and topic subscription mode
CN115480753A (en) Application integration system and corresponding computer device and storage medium
CN112084446A (en) Webpage editing method, editor, electronic equipment and readable storage medium
CN116360735A (en) Form generation method, device, equipment and medium
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN114185750A (en) Process monitoring method, device, equipment and storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN113568614A (en) Task issuing method, electronic device and storage medium
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN112346774A (en) Method and device for generating application installation package
CN115062084B (en) Method and device for constructing API (application programming interface) based on database metadata
CN114116063A (en) Business process processing method and device, computer equipment and storage medium
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN108628909B (en) Information pushing method and device
CN112817953A (en) Data verification method and device, computer equipment and computer-readable storage medium
CN113504898A (en) Front-end component rapid processing method, system and computer storage medium for realizing business arrangement
CN113568622A (en) Method and device for converting codes and electronic equipment
CN110727457A (en) Component management method, device, storage medium and electronic equipment
CN111639010A (en) Kong-based Prometheus plug-in transformation method

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