Event-driven implementation method, system and device based on process control and storage medium

Through a process-based control method, the complexity of data transmission in the event-driven architecture is solved, the unified management of event governance specifications is realized, and the scalability and flexibility of the application system are improved.

CN120256166APending Publication Date: 2025-07-04DIGITAL CHINA FINANCIAL SOFTWARE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510392080.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

In the event-driven architecture, during the data transmission process between the event publisher and the subscriber, due to inconsistent data security and standards, the message conversion is complicated, which increases the additional processing mechanism and reduces the reusability of events and the difficulty of implementing governance specifications.

Method used

The process control-based method is adopted to send request messages through the event publisher, query process information, and execute message sending according to the process configuration. The process is formulated based on the business attributes of the event, including message format, unique identification, subscription relationship, etc., and dynamic compilation technology is used to generate program code to realize unified management of event processing processes.

Benefits of technology

It realizes unified management of event governance specifications, reduces the complexity of application integration, improves application scalability and flexibility, and ensures consistency and flexibility of message delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120256166A_ABST
    Figure CN120256166A_ABST
Patent Text Reader

Abstract

The invention discloses an event-driven implementation method, system and device based on process control and a storage medium. The method comprises the steps that an event publisher sends a request message; querying flow information based on the request message; executing the process according to the process configuration based on the process information, and completing message sending according to the event subscription relationship; the process is formulated according to the business attributes of the event, and the business attributes comprise the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event and the request mode of the event-related service party; the flow configuration comprises an event source, an event target, event and flow binding, an event subscriber, a service request, an event processing flow and a message conversion rule. The event processing process is developed and configured in a process mode, data mapping and message formats of complex events can be processed, an application system can process messages according to a unified format, application integration complexity under an event-driven architecture is reduced, and application expandability and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of event-driven, and particularly to an event-driven implementation method, system, device and storage medium based on process control. Background Art

[0002] In the context of an event-driven architecture, usually an event needs to transfer data between a publisher and multiple subscribers. The event message specification is formulated by the event publisher. Due to the inconsistency of data security and data standards, the transmission process of the event will involve the conversion of communication messages between the event publisher and the subscriber. However, the commonly used message conversion methods can only be adapted by the subscriber itself or the event publisher publishes different events according to the needs of different subscribers, which leads to the need for many additional processing mechanisms for the event publisher and the subscriber in the implementation process of the event-driven architecture. At the same time, the reusability of the event is also greatly reduced, and the event governance specification cannot be truly implemented. Summary of the Invention

[0003] Aiming at the deficiencies existing in the above problems, the present invention provides an event-driven implementation method, system, device and storage medium based on process control.

[0004] To achieve the above object, the present invention provides an event-driven implementation method based on process control, including:

[0005] The event publisher sends a request message;

[0006] Query process information based on the request message;

[0007] Execute the process according to the process configuration based on the process information, and complete the message sending according to the event subscription relationship;

[0008] Among them, the process is formulated according to the business attributes of the event, and the business attributes include the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event, and the request method of the event-related service party; the process configuration includes the event source, the event target, the binding of the event and the process, the event subscriber, the service request, the event processing process, and the message conversion rule.

[0009] Preferably, the request message includes event identification conditions and necessary attributes for event processing.

[0010] Preferably, the execution of the process includes a message parsing and process handling program, and the process handling program includes a process scheduling program, a message adaptation program, and a data mapping program, and each program is uniquely bound to the event.

[0011] Preferably, the process handler uses dynamic compilation technology to parse the configuration information into program code, dynamically compile the program running code and load it, identify and call the process according to the request message, and call the business service according to the process configuration during the process handling, and query the service subscription relationship to complete the event process.

[0012] Preferably, the supported types in the process handling process include:

[0013] Serial: The nodes in the process are executed sequentially in order, and the subsequent nodes can obtain the execution results of the previous nodes when executing;

[0014] Parallel: The nodes in the process are executed in parallel, and the calls between the parallel nodes are independent of each other and occur simultaneously;

[0015] Branch: Use one or several fields in the request message described by the event as conditions. The part that meets the conditions in the branch is executed, and the part that does not meet the conditions is skipped directly;

[0016] Loop: The nodes in the process will be executed multiple times according to the specified number of times.

[0017] The present invention also provides an event-driven implementation system based on process control, including:

[0018] A sending module for the event publisher to send a request message;

[0019] A query module for querying process information based on the request message;

[0020] An execution module for executing the process according to the process configuration based on the process information and completing the message sending according to the event subscription relationship;

[0021] Wherein, the process is formulated according to the business attributes of the event, and the business attributes include the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event, and the request method of the event-related service party; the process configuration includes the event source, event target, event-process binding, event subscriber, service request, event processing process, and message conversion rule.

[0022] The present invention also provides a device, including at least one processing unit and at least one storage unit. Among them, the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit is made to execute the above method.

[0023] The present invention also provides a storage medium, which stores a computer program executable by an electronic device. When the program runs on the electronic device, the electronic device is made to execute the above method.

[0024] Compared with the prior art, the beneficial effects of the present invention are:

[0025] The present invention develops and configures the processing flow of the entire event in accordance with the event governance specification, thereby realizing the unified management of the event governance specification. By developing and configuring the event processing process in a process-oriented manner, it can handle the data mapping and message formats of complex events. The application system can process messages in a unified format, reducing the complexity of application integration under the event-driven architecture and improving the scalability and flexibility of the application. Brief Description of the Drawings

[0026] Figure 1 It is a flowchart of the method for implementing event-driven based on process control of the present invention. Detailed Embodiments

[0027] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0028] Referring to Figure 1 , the present invention provides a method for implementing event-driven based on process control, including:

[0029] The event publisher sends a request message, and the request message includes event identification conditions and necessary attributes for event processing;

[0030] Query process information based on the request message;

[0031] Execute the process according to the process configuration based on the process information, and complete the message sending according to the event subscription relationship;

[0032] Among them, the process is formulated according to the business attributes of the event, and the business attributes include the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event, and the request method of the event-related service party; the process configuration includes the event source, event target, event-process binding, event subscriber, service request, event processing process, and message conversion rule.

[0033] In this embodiment, executing the process includes a message parsing and process handling program, and the process handling program includes a process scheduling program, a message adaptation program, and a data mapping program. Each program is uniquely bound to the event. The process handling program uses dynamic compilation technology to parse the configuration information into program code, dynamically compiles and runs the program code and loads it, identifies and invokes the process according to the request message, and calls the business service according to the process configuration during the process handling to query the service subscription relationship to complete the event process.

[0034] Specifically, the present application provides an event-driven architecture system, which realizes the orchestration of event processes in a process-based manner. Messages are transmitted between applications through a unified event specification, and data filling and message format conversion are realized through a configuration-based method.

[0035] Furthermore, during the event processing, the event publisher and the event subscriber transmit messages according to the event governance specification, and message conversion is realized by the event processing flow.

[0036] The event publisher and the event subscriber send and receive messages according to the event governance specification;

[0037] According to the process configuration information, the process parsing is completed. After receiving the request from the event publisher, the process processing realizes the scheduling and running of the process according to the binding relationship between the event and the process.

[0038] During the process running, it supports organizing the request information according to the event request content, and completing the data content filling and data mapping through the service call method.

[0039] After the process processing is completed, according to the subscription and publication relationship of the event, messages are sent according to the event governance specification.

[0040] In this embodiment, in the event-driven architecture, the event process is formulated according to the specific business attributes of the event, including the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event, the request method of the event-related service party, etc. The event processing flow is configured in an interface-based manner, and the configuration includes: event source, event target, binding between event and process, event subscriber, service request, event processing flow, message conversion rule, etc. The event process method reduces the difficulty of implementing the event-driven architecture through a configuration-based method, realizes the unified management of the event governance specification, and improves the flexibility and consistency of event communication in the distributed system.

[0041] Specifically, the processing program for process parsing and process scheduling after receiving the requester. When the platform starts, the process processing module parses and dynamically generates a process processing program according to the configured process processing information. The process processing program includes a process scheduling program, a message adaptation program, a data mapping program, etc., and each process is uniquely bound to an event.

[0042] The process handler completes event process parsing and data mapping based on the event process developed by event developers. The process handling uses dynamic compilation technology to parse the process configuration information into program code, dynamically compile the running code and load it. After receiving an event request, the process handling module will complete the identification and invocation of the process according to the event request message information. During the process handling, the business service will be invoked according to the process configuration, and the service subscription relationship will be queried to complete the event process

[0043] The supported types during the process handling include:

[0044] Serial: The nodes in the process are executed in sequence one by one, and the subsequent nodes can obtain the execution results of the previous nodes when executing;

[0045] Parallel: The nodes in the process are executed in parallel, and the invocations between parallel nodes are independent of each other and occur simultaneously;

[0046] Branch: Using one or several fields in the event request message as conditions, the part that meets the conditions in the branch is executed, and the part that does not meet the conditions is skipped directly;

[0047] Loop: The nodes in the process will be executed multiple times according to the specified number of times.

[0048] In this embodiment, under the event-driven architecture, there are various situations such as one-to-one and one-to-many in the event subscription and publication process. During the event handling process, the process handling module will uniformly handle each link in the event handling.

[0049] The roles included in the event-driven architecture include the event producer, event subscriber, event process control module, etc. The event process control module identifies the binding relationship between the event and the process based on the event request, and schedules the entire event handling process according to the process configuration, and finally sends the message that conforms to the event governance specification after processing to the message subscriber.

[0050] The present invention also provides an event-driven implementation system based on process control, including:

[0051] A sending module, used to send a request message for the event publisher;

[0052] A query module, used to query process information based on the request message;

[0053] An execution module, used to execute the process according to the process configuration based on the process information, and complete the message sending according to the event subscription relationship;

[0054] Among them, the process is formulated according to the business attributes of the event, and the business attributes include the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event, and the request method of the service party related to the event; the process configuration includes the event source, the event target, the binding of the event and the process, the event subscriber, the service request, the event processing process, and the message conversion rule.

[0055] The present invention also provides a device, including at least one processing unit and at least one storage unit. Among them, the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit is caused to execute the above method.

[0056] The present invention also provides a storage medium, which stores a computer program executable by an electronic device. When the program runs on the electronic device, the electronic device is caused to execute the above method.

[0057] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An event-driven implementation method based on process control, characterized in that, Including: The event publisher sends a request message. Query process information based on the request message. Execute the process according to the process configuration based on the process information, and complete the message sending according to the event subscription relationship. Among them, the process is formulated according to the business attributes of the event, and the business attributes include the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event, and the request method of the event-related service party. The process configuration includes the event source, event target, event-process binding, event subscriber, service request, event processing process, and message conversion rule.

2. The event-driven implementation method based on process control according to claim 1, wherein The request message includes event recognition conditions and necessary attributes for event processing.

3. The event-driven implementation method based on process control according to claim 2, characterized in that Executing the process includes a message parsing and process handling program, and the process handling program includes a process scheduling program, a message adaptation program, and a data mapping program, and each program is uniquely bound to an event.

4. The event-driven implementation method based on process control according to claim 3, characterized in that, The process handling program uses dynamic compilation technology to parse the configuration information into program code, dynamically compiles the program code and loads it, and completes the recognition and invocation of the process according to the request message. During the process handling, the business service will be invoked according to the process configuration, and the service subscription relationship will be queried to complete the event process.

5. The method for event-driven implementation based on process control according to claim 4, wherein The supported types of process handling include: Serial: The nodes in the process are executed sequentially in order, and the subsequent nodes can obtain the execution results of the previous nodes when they execute. Parallel: The nodes in the process are executed in parallel, and the calls between the parallel nodes are independent of each other and occur simultaneously. Branch: Use one or several fields in the request message of the event as conditions. The part that meets the conditions in the branch is executed, and the part that does not meet the conditions is skipped directly. Loop: The nodes in the process will be executed multiple times according to the specified number of times.

6. An event-driven implementation system based on process control, characterized in that, Including: A sending module for the event publisher to send a request message. A query module for querying process information based on the request message. An execution module for executing the process according to the process configuration based on the process information and completing the message sending according to the event subscription relationship. Among them, the process is formulated according to the business attributes of the event, and the business attributes include the message format of the event, the unique identifier of the event, the message content of the event, the subscription relationship of the event, and the request method of the event-related service party. The process configuration includes the event source, event target, event-process binding, event subscriber, service request, event processing process, and message conversion rule.

7. A device, characterized in that, It includes at least one processing unit and at least one storage unit. Among them, the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the method described in any one of claims 1 to 5.

8. A storage medium, characterized in that, It stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device executes the method described in any one of claims 1 to 5.