CN117112262A - Visual configuration method and device for event processing flow - Google Patents

Visual configuration method and device for event processing flow Download PDF

Info

Publication number
CN117112262A
CN117112262A CN202311100892.8A CN202311100892A CN117112262A CN 117112262 A CN117112262 A CN 117112262A CN 202311100892 A CN202311100892 A CN 202311100892A CN 117112262 A CN117112262 A CN 117112262A
Authority
CN
China
Prior art keywords
node
event
editing
configuration
area
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
CN202311100892.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.)
Guangzhou Boyuan Software Technology Co ltd
Original Assignee
Guangzhou Boyuan Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Boyuan Software Technology Co ltd filed Critical Guangzhou Boyuan Software Technology Co ltd
Priority to CN202311100892.8A priority Critical patent/CN117112262A/en
Publication of CN117112262A publication Critical patent/CN117112262A/en
Pending legal-status Critical Current

Links

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • 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

Landscapes

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

Abstract

The invention discloses a visual configuration method and a visual configuration device for an event processing flow, wherein the method comprises the following steps: generating a visual interface comprising a node selection area and a node editing area, responding to the connection operation of a user on each selected functional node, then generating an unconfigured event processing logic chain, responding to the configuration operation of the user on each functional node in the unconfigured event processing logic chain, generating a corresponding configuration interface for configuring the functional node parameters, and generating configuration information of each functional node after receiving the configuration parameters input by the user in each configuration interface, thereby generating the configured event processing logic chain according to the configuration information. The invention can complete the configuration of logic judgment of the reported data of the external event by a visual configuration method without the need of an engineer to write a large number of codes to complete the logic judgment, thereby reducing the development time consumption in the process of arranging and designing the event processing and improving the generation efficiency of the event processing.

Description

Visual configuration method and device for event processing flow
Technical Field
The present invention relates to the field of configuration technology of event processing, and in particular, to a method and an apparatus for visual configuration of an event processing flow.
Background
Complex Event Processing (CEP) is an emerging Event stream based technology that treats system data as different types of events, builds a sequence library of different Event relationships by analyzing the relationships between the events, and finally generates advanced events or business processes from simple events using filtering, correlation, aggregation, etc. techniques.
However, when the complex event processing is arranged and configured in the prior art, a code writer is required to write script codes of each event node in the complex event processing, and when logic judgment is required to be performed on data reported by an event node, for example, when filtering or screening is required to be performed on data output by a last event node, the code writer is also required to write codes on linkage logic of data between event nodes or filtering or screening corresponding judgment logic, so that engineers are often required to write a large amount of codes by hand to complete logic processing and arrangement between event nodes of the complex event processing in the prior art, so that development time is long in the arrangement design process of completing the complex event processing, and the efficiency of configuration or generation of the complex event processing is low.
Disclosure of Invention
The embodiment of the invention provides a visual configuration method and a visual configuration device for an event processing flow, which can effectively solve the problems that in the prior art, engineers are required to write a large amount of codes to complete logic processing and arrangement among event nodes of complex event processing, so that development time is long in the arrangement design process of completing complex event processing, and the configuration or generation efficiency of complex event processing is low.
An embodiment of the present invention provides a method for configuring visualization of an event processing procedure, including:
generating a visual interface comprising a node selected area and a node editing area; the node selection area comprises a plurality of functional nodes, wherein the functional nodes comprise a starting node for indicating the start of the execution of an event, an event input source node for binding an external event, a data processing node for setting data processing logic and an event output editing node for editing the attribute corresponding to the event when the event is output;
responding to the function node selection operation of the user in the node selection area, and generating each selected function node in the node editing area;
responding to the connection operation of the user on each selected functional node by taking the starting node as a starting point and taking the event output editing node as an end point, and then generating an unconfigured event processing logic chain;
Responding to the configuration operation of a user on each functional node in an unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, and generating configuration information of each functional node after receiving the configuration parameters input by the user in each configuration interface;
and generating an event processing logic chain with completed configuration according to the configuration information of each functional node.
Preferably, the generating, in response to a configuration operation of a user on each functional node in the unconfigured event processing logic chain, a configuration interface corresponding to each functional node and used for configuring parameters of the functional node includes:
responding to the configuration operation of a user on the event input source node, and generating a first configuration interface for configuring the event input source node parameters;
the first configuration interface comprises an event name binding area for binding the external event selected by the user with the event input source node, an area for editing event codes, an area for editing event theme and an area for editing event attributes.
Preferably, the data processing node comprises: a data filtering node;
responding to the configuration operation of a user on each functional node in an unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, wherein the configuration interface comprises the following steps:
Responding to the configuration operation of the user on the data filtering node, and generating a second configuration interface for configuring the data filtering node parameters;
the second configuration interface comprises an area for editing node names, an area for setting event filtering conditions and an area for editing event attributes; the area for setting the event filtering condition comprises a first selection area for setting the object type, a second selection area for setting an operator and a third selection area for setting a preset threshold value.
Preferably, the generating, in response to a configuration operation of a user on each functional node in the unconfigured event processing logic chain, a configuration interface corresponding to each functional node and used for configuring parameters of the functional node includes:
responding to the configuration operation of the user on the event output editing node, and generating a third configuration interface for configuring the event output editing node parameters;
the third configuration interface comprises a region for editing a node name, a region for editing an event code, a region for editing an event theme and a region for editing an event attribute; the area for editing the event attribute comprises an editing area for encoding the output data of the previous node, an editing area for editing the name of the output data of the previous node, an editing area for editing the data type of the output data of the previous node, an editing area for editing the field type of the output data of the previous node and an editing area for editing the value of the output data of the previous node.
Preferably, the data processing node further comprises: a time window node;
responding to the configuration operation of a user on each functional node in an unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, wherein the configuration interface comprises the following steps:
responding to the configuration operation of the user on the time window node, and generating a fourth configuration interface for configuring the time window node parameters;
the fourth configuration interface comprises an area for editing the name of the node, an editing area in a window triggering mode, an editing area for setting filtering conditions and an editing area for calculating mapping;
the editing area of the window triggering mode comprises an editing area used for setting window duration;
the edit area of the computation map includes a selected area for event selection and a type setting area for setting a computation type of event data.
Preferably, the generating, in response to a configuration operation of a user on each functional node in the unconfigured event processing logic chain, a configuration interface corresponding to each functional node and used for configuring parameters of the functional node includes:
responding to the configuration operation of the user on the starting node, and generating a fifth configuration interface for configuring the parameters of the starting node;
The fifth configuration interface comprises an editing area for editing the node name and an editing area for entering the parameter; the parameter entering editing area comprises an editing area for setting parameter names, an editing area for setting parameter codes and an editing area for setting parameter types.
Preferably, when generating the third selection area for setting the preset threshold value, it includes:
and taking the parameter input by the user in the editing area for setting the parameter name as a preset threshold corresponding to the third selection area.
Preferably, the functional node further includes: a data lookup node for binding a data table;
when the node editing area generates a selected functional node as a data searching node, responding to the configuration operation of a user on each functional node in the unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the functional node parameters, wherein the configuration interface comprises the following steps:
responding to the configuration operation of the user on the data searching node, and generating a sixth configuration interface for configuring the data searching node parameters; the sixth configuration interface comprises an editing area for editing the name of the node, a selection area for binding the data table and a display area for inquiring each field in the data table;
When generating the third selection area for setting the preset threshold value, the method includes:
and taking each numerical value in the data table selected by the user in the selection area for binding the data table as a preset threshold value to be selected corresponding to the third selection area.
Preferably, after generating the configured event processing logic chain, the method further comprises:
generating an algorithm instance according to the configured event processing logic chain;
and the algorithm instance is issued to an external server, so that the external server analyzes an event processing logic chain in the algorithm instance, and a corresponding operation instance is generated based on the analysis result of the event processing logic chain.
On the basis of the method embodiment, the invention correspondingly provides the device item embodiment.
An embodiment of the present invention provides a visual configuration device for an event processing flow, including: the system comprises a visual interface generation module, a functional node selection module, a connection module, a configuration module and a logic chain generation module;
the visual interface generation module is used for generating a visual interface comprising a node selected area and a node editing area; the node selection area comprises a plurality of functional nodes, wherein the functional nodes comprise a starting node for indicating the start of the execution of an event, an event input source node for binding an external event, a data processing node for setting data processing logic and an event output editing node for editing the attribute corresponding to the event when the event is output;
The function node selecting module is used for responding to the function node selecting operation of the user in the node selecting area and generating each selected function node in the node editing area;
the connection module is used for responding to the connection operation of a user on each selected functional node by taking a starting node as a starting point and taking an event output editing node as an end point, and then generating an unconfigured event processing logic chain;
the configuration module is used for responding to the configuration operation of a user on each functional node in the unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, and generating configuration information of each functional node after receiving the configuration parameters input by the user in each configuration interface;
the logic chain generation module is used for generating configured event processing logic chains according to the configuration information of each functional node.
The invention has the following beneficial effects:
the embodiment of the invention provides a visual configuration method and a device for an event processing flow, wherein the visual configuration method realizes visual editing of each node in event processing by generating a visual interface comprising a node selected area and a node editing area so as to complete logic configuration of event processing. In response to the configuration operation of the user on each functional node in the unconfigured event processing logic chain, a corresponding configuration interface for configuring the parameters of the functional node can be generated, and after the configuration parameters input by the user in each configuration interface are received, configuration information of each functional node is generated, so that the configured event processing logic chain is generated according to the configuration information. In the whole configuration process of the functional node, when the external event is bound to the event input source node for binding the external event, the invention can acquire the data reported by the external event and transmit the reported data to the data processing node corresponding to the next node for processing, namely, the invention can complete the logic processing of the data of the previous node through the logic setting operation of the data processing node, thereby completing the configuration operation of logic judgment of the external event data. Therefore, when the new process of logic judgment is performed on the data reported by the external event, the configuration of the logic judgment can be completed through a visual configuration method, so that the new event processing is generated, an engineer does not need to write a large number of codes to complete the logic judgment and regenerate the new event processing, the development time consumption in the process of programming and designing the completion of the event processing is reduced, and the generation efficiency of the event processing is improved.
Drawings
Fig. 1 is a flow chart of a visual configuration method for an event processing flow according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a configuration interface of an event input source node according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a configuration interface of a data filtering node according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of a configuration interface of an event output editing node according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a configuration interface of a time window node according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a configuration interface of a start node according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of a configuration interface of a data lookup node according to an embodiment of the present invention.
FIG. 8 is a schematic diagram of a complex event processing procedure according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a visual configuration device for an event processing flow according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flow chart of a visual configuration method of an event processing flow according to an embodiment of the present invention, where the visual configuration method includes:
step S1: generating a visual interface comprising a node selected area and a node editing area; the node selection area comprises a plurality of functional nodes, wherein the functional nodes comprise a starting node for indicating the start of the execution of an event, an event input source node for binding an external event, a data processing node for setting data processing logic and an event output editing node for editing the attribute corresponding to the event when the event is output;
step S2: responding to the function node selection operation of the user in the node selection area, and generating each selected function node in the node editing area;
step S3: responding to the connection operation of the user on each selected functional node by taking the starting node as a starting point and taking the event output editing node as an end point, and then generating an unconfigured event processing logic chain;
step S4: responding to the configuration operation of a user on each functional node in an unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, and generating configuration information of each functional node after receiving the configuration parameters input by the user in each configuration interface;
Step S5: and generating an event processing logic chain with completed configuration according to the configuration information of each functional node.
For step S1, in a preferred embodiment, the visual interface includes a node selection area and a node editing area; the node selection area is used for presenting a plurality of function nodes to be selected, and the node editing area is used for providing users with editing of the selected function nodes.
For step S2, in a preferred embodiment, in response to a user operation of selecting a function node in the node selection area, generating each selected function node in the node editing area specifically includes:
the user can drag the functional node in the node selected area or select the functional node to the node editing area for editing, and after responding to the operation of dragging the node to the node editing area by the user, the functional node selected by the user can be generated and displayed in the node editing area.
For step S3, in a preferred embodiment, in response to a user' S connection operation with the start node and the event output editing node as the start point for each selected functional node, an unconfigured event processing logic chain is then generated, comprising:
The user can connect the selected function nodes in the node editing area, takes the starting node as a starting point and takes the event output editing node as an end point to form an executable unconfigured event processing logic chain, so that each function node in the unconfigured event processing logic chain can be configured subsequently.
For step S4, in a preferred embodiment, when the user clicks on each functional node in the unconfigured event processing logic chain, a configuration interface for configuring parameters of the functional node corresponding to each functional node is generated. Specifically, the functional nodes comprise a start node, an event input source node, a data processing node and an event output editing node;
generating a first configuration interface for configuring event input source node parameters in response to clicking configuration operation of the event input source node by a user; the configuration interface of the event input source node shown in fig. 2, wherein the first configuration interface includes an event name binding area for binding an external event selected by a user with the event input source node, an area for editing event codes, an area for editing event theme, and an area for editing event attributes.
The event input source node can be used for a user to configure the theme of an event and the data structure of the event after binding an external event, and schematically, the attribute editing of the event can be performed by acquiring the data structure of the external event.
In a preferred embodiment, the data processing node may be a data filtering node, and the data filtering node may set filtering conditions for data.
Generating a second configuration interface for configuring parameters of the data filtering node in response to the configuration operation of the data filtering node by the user, as shown in a schematic diagram of the configuration interface of the data filtering node in fig. 3;
the second configuration interface comprises an area for editing node names, an area for setting event filtering conditions and an area for editing event attributes;
the area for setting the event filtering condition comprises a first selection area for setting the object type, a second selection area for setting an operator and a third selection area for setting a preset threshold value.
In a preferred embodiment, when the event input source node binds externally input temperature data, the data filtering node may set a filtering or screening condition of temperature, for example, in a first selection area for setting an object type, an average value of the temperature data is selected as a target object, an operator greater than is selected in a second selection area for setting an operator, a temperature value of 50 degrees is selected as a threshold in a third selection area for setting a preset threshold, after parameter setting of the data filtering node is completed, the temperature data of the event input source node after passing through the data filtering node, the temperature data or the temperature event of greater than 50 degrees is screened out, that is, the temperature data or the temperature event of less than 50 degrees is filtered out, so that a temperature event stream meeting the filtering condition is transferred to a next node. Therefore, the data filtering node can filter the output of the upstream node, and the data meeting the filtering condition can continue to flow to the downstream node.
In a preferred embodiment, in response to a user's configuration operation of the event output editing node, a third configuration interface for configuring event output editing node parameters is generated, as shown in FIG. 4;
the third configuration interface comprises a region for editing a node name, a region for editing an event code, a region for editing an event theme and a region for editing an event attribute;
the area for editing the event attribute comprises an editing area for encoding the output data of the previous node, an editing area for editing the name of the output data of the previous node, an editing area for editing the data type of the output data of the previous node, an editing area for editing the field type of the output data of the previous node and an editing area for editing the value of the output data of the previous node.
The event output editing node can configure the data structure of the output event and configure the event as a kafka theme so that the processed event is output to the kafka and can be used for subscription processing of other services.
In a preferred embodiment, after the user completes the configuration of the functional nodes in each configuration interface, configuration parameters input by the user in each configuration interface are received, and configuration information of each functional node is generated according to each set parameter, so that the configuration of the whole event processing logic chain can be completed according to the configuration information of each functional node.
For step S5, in a preferred embodiment, according to the parameters configured by the user in step 4, configuration information of each functional node may be obtained, and further, according to the configuration information of each functional node, a configured event processing logic chain is generated.
The function nodes comprise a start node, an event input source node, a data processing node and an event output editing node; the four functional nodes can form an event processing logic chain of simple processing logic, for example, the temperature data of the external temperature event is bound through an event input source node, and the temperature data or the temperature event with the filtering condition set to be more than 50 degrees is output to an event output editing node through the data processing node, so that the event output editing node can further edit the temperature data or the temperature event with the temperature of more than 50 degrees, and a new event processing flow, such as a new event for early warning the temperature data or the temperature event with the temperature of more than 50 degrees, can be generated.
Specifically, the start node is used for indicating the start execution of an event, and the event input source node is used for providing the user with the binding external event so as to acquire the data of the external event and transmit the data downwards; the data processing node is used for setting data processing logic, such as filtering, screening or aggregation, so that after the data processing node processes the data, the data is sent to the next node; the event output editing node is used for editing the corresponding attribute of the event during output, then generating a new event which is different from an external event, and the new event processing flow can further process data of the external event, so that the invention can realize the complete visual configuration of the event processing, thereby completing the configuration operation of logic judgment of the external event data, and the invention does not need to write codes on the linkage logic of the data between the nodes, and completes the configuration of logic judgment by a visual configuration method, thereby generating new event processing.
In a preferred embodiment, the data processing node further comprises: a time window node; batch processing of external event input data can be completed through the time window node, for example: setting the average temperature of event temperature data reported within 2 minutes;
generating a fourth configuration interface for configuring the time window node parameters in response to the configuration operation of the user on the time window node, as shown in a schematic diagram of the configuration interface of the time window node in fig. 5;
the fourth configuration interface comprises an area for editing the name of the node, an editing area in a window triggering mode, an editing area for setting filtering conditions and an editing area for calculating mapping;
the editing area of the window triggering mode comprises an editing area used for setting window duration; such as setting the window duration to 2 minutes.
The edit area of the computation map includes a selected area for event selection and a type setting area for setting a computation type of event data. If the event is selected as the event input source node and the external event is the temperature reporting of the unmanned aerial vehicle, the average temperature of the calculated temperature is selected in the type setting area of the calculation type, so that the function of configuring the time window node as the average temperature of all temperature data reported within 2 minutes is completed.
Furthermore, the editing area for setting the filtering condition can set the filtering condition of the next step for the data in the preset time. It will be appreciated that the time window node may be substituted for the data filtering node, with the time window node being a data processing node, to complete the logical setting of event processing.
Furthermore, the invention can also use two data processing nodes, one is a data filtering node and the other is a time window node, after the temperature which is more than 50 ℃ is screened out through the data filtering node, the temperature data which is more than 50 ℃ is calculated and the average temperature in 2 minutes is reported after entering the time window node, so that the invention can configure the generation of complex event processing which can realize a plurality of logic processing, and can complete the processing of the complex event in a visual configuration mode, thereby greatly reducing the development cost. And when new demands need to be added for the follow-up new functions, the new functional demands can be realized by adding functional nodes in the event processing logic chain, namely, the functions of the platform can be expanded without rewriting codes.
In an preferred embodiment, the invention can also allow the user to customize input variables or input parameters for use in processing complex events, so that the generated complex event processing logic chain can be directly used as a template, the template application of the same data processing logic is realized, and the generation efficiency of the events is quickened.
Specifically, the start node of the present invention may be further configured to configure parameters, and in response to a user's configuration operation on the start node, generate a fifth configuration interface for configuring parameters of the start node, as shown in fig. 6;
the fifth configuration interface comprises an editing area for editing the node name and an editing area for entering the parameter; the parameter entering editing area comprises an editing area for setting parameter names, an editing area for setting parameter codes and an editing area for setting parameter types.
Illustratively, after the user sets the temperature threshold value in the edit area of the parameter name and sets the corresponding temperature threshold value, when the second configuration interface for configuring the parameters of the data filtering node is generated, that is, when the third selection area for setting the preset threshold value is generated, the parameters input by the user in the edit area for setting the parameter name may be used as the preset threshold value corresponding to the third selection area.
Therefore, the invention can realize the user-defined threshold value or other variables, and can be used by the subsequent data processing nodes, and when the user uses an event processing logic chain with the early warning exceeding the threshold value, the user can realize different early warning events by taking the user-defined threshold value and the event processing logic chain with the early warning exceeding the threshold value as templates.
Furthermore, the user can also use the same event processing logic chain with the early warning exceeding the threshold value as a template to realize the temperature early warning and the humidity early warning events, and the user can directly apply one completed event processing logic chain with the early warning exceeding the threshold value to generate different early warning events only by setting the parameters of the starting node through the configuration method of the invention, so that the development efficiency is improved.
In a preferred embodiment, the functional node further comprises: a data lookup node for binding a data table;
if a user drags a functional node in a node selected area or selects a data searching node to edit the node editing area, generating the data searching node in the node editing area, and generating a configuration interface corresponding to each functional node and used for configuring the functional node parameters in response to configuration operation of the user on each functional node in an unconfigured event processing logic chain, wherein the configuration interface comprises the following steps:
Generating a sixth configuration interface for configuring parameters of the data searching node when responding to the configuration operation of the data searching node by the user, wherein the configuration interface schematic diagram of the data searching node is shown in fig. 7;
the sixth configuration interface comprises an editing area for editing the name of the node, a selection area for binding the data table and a display area for inquiring each field in the data table;
illustratively, after the data searching node binds a data table, when the second configuration interface for configuring parameters of the data filtering node is generated, that is, when the third selection area for setting the preset threshold is generated, each value in the data table selected by the user in the selection area for binding the data table is used as a preset threshold to be selected corresponding to the third selection area. The invention can adopt the user-defined parameters as the parameters of the data processing nodes, and can also provide threshold parameters for the data processing nodes by configuring a data searching node.
In a preferred embodiment, the event processing logic chain, whether by employing the user-defined parameters as parameters of the data processing node or by configuring a data lookup node to provide the data processing node with threshold parameters, after generating the configured event processing logic chain, further comprises:
Generating an algorithm instance according to the configured event processing logic chain;
and the algorithm instance is issued to an external server, so that the external server analyzes an event processing logic chain in the algorithm instance, and a corresponding operation instance is generated based on the analysis result of the event processing logic chain.
As shown in the schematic diagram of the complex event processing flow shown in fig. 8, the present invention can support user-defined variables, and the user can input different variables or parameters, and during event processing, the configured event processing logic chain and the parameters or variables configured by the user can be converted into an algorithm DSL template, so that the algorithm DSL template can also have placeholders of the variables defined by the user, and when an algorithm instance needs to be generated, a final algorithm instance is formed according to the configured event processing logic chain and the parameters defined by the user;
and calling an interface of the self-research complex event operation service of the platform, issuing the algorithm instance into the operation service, and analyzing logic required to process the complex event by the operation service according to the algorithm instance DSL to generate an operation instance. If the user performs early warning through the custom temperature threshold value of 50, an event processing logic chain with the early warning exceeding the threshold value is used, so that an operation instance corresponding to the early warning event with the implementation temperature of more than 50 can be generated according to the event processing logic chain with the early warning exceeding the threshold value and the temperature threshold value of 50.
The invention can configure complex event processing logic by dragging page control in a graphical configuration mode, and when external events are bound, the external event sources can be of various types and can be sourced kafka, http, tcp, etc., and the configuration method also supports the setting of complex logic processing such as time window and judgment of event sequence occurrence, etc., for example, events with overhigh temperature and overlow humidity occur simultaneously within 1 minute.
The invention can realize that different types of functions correspond to different node controls, package logic functions into function nodes, allow users to arrange and process logic, and after the users configure the event processing logic chain, the event processing logic chain which is completed to be configured can be generated, namely, the event output editing node edits the attribute of the newly generated event, so that new event processing can be generated. Therefore, when the new process of logic judgment is performed on the data reported by the external event, the configuration of the logic judgment can be completed through a visual configuration method, so that the new event processing is generated, an engineer does not need to write a large number of codes to complete the logic judgment and regenerate the new event processing, the development time consumption in the process of programming and designing the completion of the event processing is reduced, and the generation efficiency of the event processing is improved.
As shown in fig. 9, on the basis of the embodiments of the visual configuration methods of the various event processing flows, the present invention correspondingly provides an embodiment of a device item;
an embodiment of the present invention provides a visual configuration device for an event processing flow, including: the system comprises a visual interface generation module, a functional node selection module, a connection module, a configuration module and a logic chain generation module;
the visual interface generation module is used for generating a visual interface comprising a node selected area and a node editing area; the node selection area comprises a plurality of functional nodes, wherein the functional nodes comprise a starting node for indicating the start of the execution of an event, an event input source node for binding an external event, a data processing node for setting data processing logic and an event output editing node for editing the attribute corresponding to the event when the event is output;
the function node selecting module is used for responding to the function node selecting operation of the user in the node selecting area and generating each selected function node in the node editing area;
the connection module is used for responding to the connection operation of a user on each selected functional node by taking a starting node as a starting point and taking an event output editing node as an end point, and then generating an unconfigured event processing logic chain;
The configuration module is used for responding to the configuration operation of a user on each functional node in the unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, and generating configuration information of each functional node after receiving the configuration parameters input by the user in each configuration interface;
the logic chain generation module is used for generating configured event processing logic chains according to the configuration information of each functional node.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be clearly understood by those skilled in the art that, for convenience and brevity, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (10)

1. A method for visual configuration of an event processing flow, comprising:
generating a visual interface comprising a node selected area and a node editing area; the node selection area comprises a plurality of functional nodes, wherein the functional nodes comprise a starting node for indicating the start of the execution of an event, an event input source node for binding an external event, a data processing node for setting data processing logic and an event output editing node for editing the attribute corresponding to the event when the event is output;
responding to the function node selection operation of the user in the node selection area, and generating each selected function node in the node editing area;
Responding to the connection operation of the user on each selected functional node by taking the starting node as a starting point and taking the event output editing node as an end point, and then generating an unconfigured event processing logic chain;
responding to the configuration operation of a user on each functional node in an unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, and generating configuration information of each functional node after receiving the configuration parameters input by the user in each configuration interface;
and generating an event processing logic chain with completed configuration according to the configuration information of each functional node.
2. The method for visual configuration of an event processing flow according to claim 1, wherein generating a configuration interface for configuring parameters of a functional node corresponding to each functional node in response to a user's configuration operation on each functional node in an unconfigured event processing logic chain comprises:
responding to the configuration operation of a user on the event input source node, and generating a first configuration interface for configuring the event input source node parameters;
the first configuration interface comprises an event name binding area for binding the external event selected by the user with the event input source node, an area for editing event codes, an area for editing event theme and an area for editing event attributes.
3. The method of visual configuration of an event processing flow of claim 1, wherein said data processing node comprises: a data filtering node;
responding to the configuration operation of a user on each functional node in an unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, wherein the configuration interface comprises the following steps:
responding to the configuration operation of the user on the data filtering node, and generating a second configuration interface for configuring the data filtering node parameters;
the second configuration interface comprises an area for editing node names, an area for setting event filtering conditions and an area for editing event attributes; the area for setting the event filtering condition comprises a first selection area for setting the object type, a second selection area for setting an operator and a third selection area for setting a preset threshold value.
4. The method for visual configuration of an event processing flow according to claim 1, wherein generating a configuration interface for configuring parameters of a functional node corresponding to each functional node in response to a user's configuration operation on each functional node in an unconfigured event processing logic chain comprises:
Responding to the configuration operation of the user on the event output editing node, and generating a third configuration interface for configuring the event output editing node parameters;
the third configuration interface comprises a region for editing a node name, a region for editing an event code, a region for editing an event theme and a region for editing an event attribute; the area for editing the event attribute comprises an editing area for encoding the output data of the previous node, an editing area for editing the name of the output data of the previous node, an editing area for editing the data type of the output data of the previous node, an editing area for editing the field type of the output data of the previous node and an editing area for editing the value of the output data of the previous node.
5. A method of visual configuration of an event processing flow as in claim 3 wherein said data processing node further comprises: a time window node;
responding to the configuration operation of a user on each functional node in an unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, wherein the configuration interface comprises the following steps:
Responding to the configuration operation of the user on the time window node, and generating a fourth configuration interface for configuring the time window node parameters;
the fourth configuration interface comprises an area for editing the name of the node, an editing area in a window triggering mode, an editing area for setting filtering conditions and an editing area for calculating mapping;
the editing area of the window triggering mode comprises an editing area used for setting window duration;
the edit area of the computation map includes a selected area for event selection and a type setting area for setting a computation type of event data.
6. The method for visual configuration of an event processing flow according to claim 5, wherein generating a configuration interface for configuring function node parameters corresponding to each function node in response to a user's configuration operation on each function node in an unconfigured event processing logic chain comprises:
responding to the configuration operation of the user on the starting node, and generating a fifth configuration interface for configuring the parameters of the starting node;
the fifth configuration interface comprises an editing area for editing the node name and an editing area for entering the parameter; the parameter entering editing area comprises an editing area for setting parameter names, an editing area for setting parameter codes and an editing area for setting parameter types.
7. The method for visual configuration of an event processing flow according to claim 6, wherein when generating a third selection area for setting a preset threshold value, comprising:
and taking the parameter input by the user in the editing area for setting the parameter name as a preset threshold corresponding to the third selection area.
8. The method for visual configuration of an event processing flow according to claim 6, wherein said functional node further comprises: a data lookup node for binding a data table;
when the node editing area generates a selected functional node as a data searching node, responding to the configuration operation of a user on each functional node in the unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the functional node parameters, wherein the configuration interface comprises the following steps:
responding to the configuration operation of the user on the data searching node, and generating a sixth configuration interface for configuring the data searching node parameters; the sixth configuration interface comprises an editing area for editing the name of the node, a selection area for binding the data table and a display area for inquiring each field in the data table;
when generating the third selection area for setting the preset threshold value, the method includes:
And taking each numerical value in the data table selected by the user in the selection area for binding the data table as a preset threshold value to be selected corresponding to the third selection area.
9. The method for visual configuration of an event processing flow according to claim 7 or 8, further comprising, after generating the configured event processing logic chain:
generating an algorithm instance according to the configured event processing logic chain;
and the algorithm instance is issued to an external server, so that the external server analyzes an event processing logic chain in the algorithm instance, and a corresponding operation instance is generated based on the analysis result of the event processing logic chain.
10. A visual configuration apparatus for an event processing flow, comprising: the system comprises a visual interface generation module, a functional node selection module, a connection module, a configuration module and a logic chain generation module;
the visual interface generation module is used for generating a visual interface comprising a node selected area and a node editing area; the node selection area comprises a plurality of functional nodes, wherein the functional nodes comprise a starting node for indicating the start of the execution of an event, an event input source node for binding an external event, a data processing node for setting data processing logic and an event output editing node for editing the attribute corresponding to the event when the event is output;
The function node selecting module is used for responding to the function node selecting operation of the user in the node selecting area and generating each selected function node in the node editing area;
the connection module is used for responding to the connection operation of a user on each selected functional node by taking a starting node as a starting point and taking an event output editing node as an end point, and then generating an unconfigured event processing logic chain;
the configuration module is used for responding to the configuration operation of a user on each functional node in the unconfigured event processing logic chain, generating a configuration interface corresponding to each functional node and used for configuring the parameters of the functional node, and generating configuration information of each functional node after receiving the configuration parameters input by the user in each configuration interface;
the logic chain generation module is used for generating configured event processing logic chains according to the configuration information of each functional node.
CN202311100892.8A 2023-08-29 2023-08-29 Visual configuration method and device for event processing flow Pending CN117112262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311100892.8A CN117112262A (en) 2023-08-29 2023-08-29 Visual configuration method and device for event processing flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311100892.8A CN117112262A (en) 2023-08-29 2023-08-29 Visual configuration method and device for event processing flow

Publications (1)

Publication Number Publication Date
CN117112262A true CN117112262A (en) 2023-11-24

Family

ID=88810704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311100892.8A Pending CN117112262A (en) 2023-08-29 2023-08-29 Visual configuration method and device for event processing flow

Country Status (1)

Country Link
CN (1) CN117112262A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117742834A (en) * 2024-02-20 2024-03-22 北京德塔精要信息技术有限公司 Method and device for configuring page component of low-code platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117742834A (en) * 2024-02-20 2024-03-22 北京德塔精要信息技术有限公司 Method and device for configuring page component of low-code platform

Similar Documents

Publication Publication Date Title
CN106600238B (en) Method and device for realizing network service opening based on Activiti process engine
CN110851134A (en) Low-code page design device and page design method
CN117112262A (en) Visual configuration method and device for event processing flow
CN112433702B (en) Lightweight process design system and method
CN112130993A (en) Power edge Internet of things agent edge calculation method and system based on graphical modeling
CN111722842A (en) Pipeline arranging method and device, electronic equipment and storage medium
CN109542985B (en) Universal stream data analysis model and construction method thereof
CN109635211A (en) Promote the implementation method and server of the page
CN115480746A (en) Method, device, equipment and medium for generating execution file of data processing task
CN114185750A (en) Process monitoring method, device, equipment and storage medium
CN111861418A (en) Task generation method and device and electronic equipment
CN114385816A (en) Conversation flow mining method and device, electronic equipment and computer storage medium
CN114253530A (en) Data visualization method, device, equipment and storage medium
CN116594733B (en) Flow visual modeling method, computer equipment and computer readable storage medium
CN115545401A (en) City physical examination evaluation method and system based on visual index model configuration and computer equipment
CN110334001A (en) A kind of method and apparatus that batch automatically generates echo test
CN109933308A (en) The customed general-purpose system of remote sensing satellite data prediction flow path visual based on MPI+CUDA
CN111027196A (en) Simulation analysis task processing method and device for power equipment and storage medium
CN112256978A (en) Data processing method, device and medium based on data model
CN117544520A (en) Topology-based visual association relation configuration method and system
CN111401020A (en) Interface loading method and system and computing equipment
CN113703748B (en) Method, device and equipment for visualizing running logic in configuration web application program
CN110866675B (en) Product design platform design flow management and control method and device
CN114785847B (en) Network control software development configuration method, terminal and storage medium
CN116185522A (en) Visual event stream definition method, system, device and readable storage medium

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