Node event configuration method, device and system, electronic equipment and storage medium
By obtaining and displaying the configuration templates for node events, obtaining configuration information and configuring it, the problems of low efficiency and high threshold for node event configuration in the existing technology are solved, and an efficient and simplified configuration process is achieved.
Patent Information
- Application Number
- CN202411324812.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the node event configuration is inefficient and has a high threshold, and relevant personnel need to have a good code foundation, resulting in complex configuration and low efficiency.
By obtaining the type of the target node event, determining and displaying the corresponding configuration template, obtaining configuration information based on the template, and configuring it based on the information, using preset event types and test scripts for verification and update, reducing the configuration threshold and improving efficiency.
Efficient configuration of node events can be achieved without the need for relevant personnel to have a good code foundation, which lowers the configuration threshold and improves efficiency, and simplifies the node event configuration process in workflow events.
Smart Images

Figure CN119201495A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a node event configuration method, device, system, electronic device and storage medium. Background Art
[0002] At present, it is usually necessary to configure corresponding node events in workflow events so that external notifications can be triggered through node events during the execution of workflow events. However, when configuring node events in workflow events, relevant personnel are required to have a good code foundation, which makes the configuration threshold of node events high. In addition, different node events may need to be configured for different workflow events, which will affect the configuration efficiency of node events. Summary of the invention
[0003] The present application provides a node event configuration method, device, system, electronic device and storage medium to solve the technical problems of low configuration efficiency and high configuration threshold in the prior art for node event configuration.
[0004] In a first aspect, the present application provides a node event configuration method, comprising:
[0005] Get the target event type corresponding to the target node event to be configured;
[0006] According to the target event type, determining a target event configuration template corresponding to the target node event, and displaying the target event configuration template;
[0007] Based on the displayed target event configuration template, obtain the target configuration information corresponding to the target node event;
[0008] The target node event is configured according to the target configuration information.
[0009] In an optional implementation, configuring the target node event according to the target configuration information includes:
[0010] Determine a target test script template corresponding to the target event type;
[0011] Filling the target configuration information into the target test script template to generate a target test script;
[0012] Run the target test script to obtain the target test result;
[0013] When the target test result is that the test passes, the target node event is configured according to the target configuration information.
[0014] In an optional implementation, determining, according to the target event type, a target event configuration template corresponding to the target node event includes:
[0015] According to the target event type, a query operation is performed on the first association relationship to obtain a target event configuration template corresponding to the target event type, wherein the first association relationship stores a correspondence between multiple groups of preset event types and preset event configuration templates;
[0016] Determine the target event configuration template corresponding to the target event type as the target event configuration template corresponding to the target node event;
[0017] The determining of the target test script template corresponding to the target event type includes:
[0018] According to the target event type, a query operation is performed on the second association relationship to obtain a target test script template corresponding to the target event type, wherein the second association relationship stores a plurality of corresponding relationships between preset event types and preset test script templates.
[0019] In an optional implementation, acquiring target configuration information corresponding to the target node event based on the displayed target event configuration template includes:
[0020] Based on the displayed target event configuration template, determining whether target modification information corresponding to the target event configuration template is acquired;
[0021] When the target modification information corresponding to the target event configuration template is acquired, the target event configuration template is processed using the target modification information to obtain the processed target event configuration template;
[0022] Displaying the processed target event configuration template;
[0023] Based on the displayed processed target event configuration template, the target configuration information corresponding to the target node event is obtained.
[0024] In an optional implementation, after executing the step of configuring the target node event according to the target configuration information, the method further includes:
[0025] Displaying a plurality of preset workflow events, and determining a target workflow event from the plurality of preset workflow events;
[0026] Binding the configured target node event with the target workflow event to obtain the processed target workflow event;
[0027] Each time the target node event in the processed target workflow event is executed, a target execution result corresponding to the target node event is recorded;
[0028] The target configuration information is updated according to the target execution results corresponding to all the recorded target node events, so as to configure the target node events using the updated target configuration information.
[0029] In an optional implementation, the updating of the target configuration information according to the target execution results corresponding to all the recorded target node events, so as to configure the target node events using the updated target configuration information, includes:
[0030] Determine all the target execution results that meet a preset condition from the target execution results corresponding to all the recorded target node events, wherein the preset condition includes that the target execution result is an execution failure;
[0031] Determine a target number of all the target execution results that meet the preset conditions;
[0032] When the number of targets is greater than a preset number threshold, the target configuration information is updated to configure the target node event using the updated target configuration information.
[0033] In an optional implementation, the step of obtaining the target event type corresponding to the target node event to be allocated includes:
[0034] Display multiple preset event types;
[0035] Determine whether a triggering operation of one of the plurality of preset event types is detected;
[0036] When a trigger operation of the preset event type is detected, the preset event type is determined as the target event type corresponding to the target node event to be configured.
[0037] In a second aspect, the present application provides a node event configuration device, comprising:
[0038] A type acquisition module is used to acquire the target event type corresponding to the target node event to be configured;
[0039] A processing module, used to determine a target event configuration template corresponding to the target node event according to the target event type, and display the target event configuration template;
[0040] An information acquisition module, used to acquire target configuration information corresponding to the target node event based on the displayed target event configuration template;
[0041] A configuration module is used to configure the target node event according to the target configuration information.
[0042] In a third aspect, the present application provides a node event configuration system, the system comprising: a configuration terminal and a configuration server, the configuration terminal and the configuration server being in communication connection;
[0043] The configuration terminal is used to input a target event type corresponding to a target node event to be configured, and send the target event type to the configuration server;
[0044] The configuration server is used to execute the node event configuration method as described above after acquiring the target event type, so as to configure the target node event.
[0045] In a fourth aspect, the present application provides an electronic device, a processor and a memory, wherein the processor is used to execute a node event configuration program stored in the memory to implement the node event configuration method as described above.
[0046] In a fifth aspect, the present application provides a storage medium storing one or more programs, and the one or more programs can be executed by one or more processors to implement the node event configuration method as described above.
[0047] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art. The node event configuration method provided by the embodiment of the present application includes: obtaining the target event type corresponding to the target node event to be configured; determining the target event configuration template corresponding to the target node event according to the target event type, and displaying the target event configuration template; obtaining the target configuration information corresponding to the target node event based on the displayed target event configuration template; configuring the target node event according to the target configuration information. In the above manner, the present application pre-sets a target event configuration template corresponding to the target event type, so that after the target event type is obtained, the target event configuration template corresponding to the target event type is displayed, thereby obtaining the target configuration information corresponding to the target node event according to the displayed target event configuration template, and then using the target configuration information to realize the configuration of the target node event, without the need for relevant personnel to have a good code foundation, thereby reducing the configuration threshold of node events and improving the configuration efficiency of node events. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0050] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0051] Figure 1 A schematic diagram of a process flow of a node event configuration method provided in an embodiment of the present application;
[0052] Figure 2 A flowchart of another node event configuration method provided in an embodiment of the present application;
[0053] Figure 3 A flowchart of another node event configuration method provided in an embodiment of the present application;
[0054] Figure 4 A schematic diagram of the structure of a node event configuration device provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of the structure of a node event configuration system provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0057] In the above attached figure:
[0058] 10. Type acquisition module; 20. Processing module; 30. Information acquisition module; 40. Configuration module;
[0059] 500, configure the terminal; 501, configure the server;
[0060] 600, electronic device; 601, processor; 602, memory; 6021, operating system; 6022, application; 603, user interface; 604, network interface; 605, bus system. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0062] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0063] refer to Figure 1 , Figure 1 A schematic diagram of a node event configuration method provided in an embodiment of the present application. A node event configuration method provided in an embodiment of the present application comprises the following steps:
[0064] S101: Obtain a target event type corresponding to a target node event to be configured.
[0065] In this embodiment, the target node event is used to trigger a notification at a specific node, and the target event type is used to characterize the way of triggering the notification. The target event type can be set according to actual needs, and is not specifically limited in this embodiment. For example, the target event type can be a push information type, a target event type can also be an email type, and a target event type can also be a text message type.
[0066] When obtaining the target event type corresponding to the target node event to be configured, a first interface can be displayed, and multiple preset event types can be displayed through the first interface, so that relevant personnel can select the preset event type, thereby obtaining the target event type corresponding to the target node event to be configured. Similarly, the setting of the preset event type can refer to the setting of the target event type described above, and will not be repeated in this embodiment.
[0067] Specifically, in step S101, the target event type corresponding to the target node event to be configured is obtained, including:
[0068] Display multiple preset event types;
[0069] Determining whether a triggering operation of a preset event type among a plurality of preset event types is detected;
[0070] When a trigger operation of a preset event type is detected, the preset event type is determined as the target event type corresponding to the target node event to be configured.
[0071] In this embodiment, multiple preset event types may include push information types, email types, and text message types. Each preset event type is displayed in the first interface with a corresponding control. When relevant personnel need to configure a target node event, they can select the corresponding control through the controls corresponding to the multiple preset event types displayed in the first interface, so that the preset event type corresponding to the selected control is determined as the target event type corresponding to the target node event. The triggering operation of the preset event type can be understood as a click operation or a touch operation. In this embodiment, the specific form of the triggering operation of the preset event type is not limited, and it can be set according to actual needs. In this embodiment, a method for obtaining a target event type is provided, by detecting the triggering operation of multiple preset event types to obtain the target event type, so as to automatically complete the configuration of the target node event according to the target event type.
[0072] S102: Determine a target event configuration template corresponding to a target node event according to the target event type, and display the target event configuration template.
[0073] In this embodiment, the correspondence between each preset event type and the preset event configuration template may be preset, so that after the target event type is acquired, the target event configuration template corresponding to the target event type may be determined.
[0074] Among them, the preset event configuration templates corresponding to each preset event type can be set by relevant technical personnel according to the actual needs of different preset event types. In this way, after designing each preset event configuration template, relevant business personnel can fill in the corresponding configuration information based on the preset event configuration template, thereby obtaining the configuration information corresponding to different preset event types, and even if the business personnel have no coding ability, they can still realize the configuration of the final target node event.
[0075] Specifically, for the preset event type, the push information type, this type of node event involves calling the API (Application Programming Interface) of the external system or using a message queue to send a message. When designing the preset event configuration template corresponding to the push information type, a common interface or adapter needs to be defined so that it can be integrated with different external systems or software. At the same time, security and error handling mechanisms need to be considered so that the event can be retried or recorded when the push information fails.
[0076] For the preset event type of sending email, this type of node event involves the internal SMTP (Simple Mail Transfer Protocol) server or third-party email service. When designing the preset event configuration template corresponding to the email type, the email content can be dynamically generated according to the text content defined by the user, ensuring that the email sending process includes necessary error handling and logging. At the same time, the email sending frequency and concurrency need to be considered to ensure the reliability of the email service.
[0077] For the preset event type of SMS, this type of node event needs to integrate SMS gateway service. Similar to the email type, when designing the preset event configuration template corresponding to the SMS type, the SMS content can be dynamically generated according to the text content defined by the user. At the same time, it is necessary to deal with the quota and rate limit of SMS sending, and determine whether the SMS sending process includes necessary error handling and logging.
[0078] More specifically, after determining the target event configuration template corresponding to the target node event, the target event configuration template can be displayed on the second interface, so that the relevant business personnel can fill in the relevant information into the target event configuration template based on the displayed target event configuration template. After filling in the relevant information, the target configuration information corresponding to the target node event can be generated based on the target event configuration template, so that the target configuration information can be used to complete the configuration of the target node event.
[0079] It should be noted that the target event configuration template includes a trigger condition template and an event parameter input template. The trigger conditions include before the node, after the node, field content reaching certain conditions (such as: sending an email notification when the amount exceeds a certain amount), timing (such as sending a workflow status every Monday), etc. The event parameter input template is different for different target event types. When the target event type is a push information type, if the API method is used, there is no event parameter input (the flow process passes all field contents of the form by default). If it is a message queue method, you need to enter the queue name as the event parameter; when the target event type is an email type, you need to define the recipient, cc, title, content, etc.; when the target event type is a text message type, you need to define the recipient, title, content, etc.
[0080] S103: Based on the displayed target event configuration template, obtain target configuration information corresponding to the target node event.
[0081] In this embodiment, after the target event configuration template is displayed, user input information can be obtained based on the target event configuration template, and target configuration information corresponding to the target node event can be generated according to the user input information and the target event configuration template.
[0082] S104: Configure the target node event according to the target configuration information.
[0083] In this embodiment, after obtaining the target configuration information corresponding to the target node event, the target configuration information can be used to configure the target node event, and the configured target node event can be bound to the corresponding workflow event, so that when the workflow event is executed, the target node event can be used to trigger a notification at a specific node.
[0084] A node event configuration method provided in this embodiment pre-sets a target event configuration template corresponding to the target event type, so that after the target event type is obtained, the target event configuration template corresponding to the target event type is displayed, thereby obtaining the target configuration information corresponding to the target node event based on the displayed target event configuration template, and then using the target configuration information to realize the configuration of the target node event, without the need for relevant personnel to have a good code foundation, thereby lowering the configuration threshold of node events and improving the configuration efficiency of node events.
[0085] refer to Figure 2 , Figure 2 A schematic diagram of another node event configuration method provided in an embodiment of the present application. A node event configuration method provided in an embodiment of the present application comprises the following steps:
[0086] S201: Obtain a target event type corresponding to a target node event to be configured.
[0087] In this embodiment, step S201 is consistent with the above-mentioned step S101, and the details can be referred to above, which will not be described in detail in this embodiment.
[0088] S202: Determine a target event configuration template corresponding to a target node event according to the target event type, and display the target event configuration template.
[0089] In this embodiment, in step S202, according to the target event type, a target event configuration template corresponding to the target node event is determined, which specifically includes:
[0090] According to the target event type, a query operation is performed on the first association relationship to obtain a target event configuration template corresponding to the target event type, wherein the first association relationship stores a plurality of corresponding relationships between preset event types and preset event configuration templates;
[0091] The target event configuration template corresponding to the target event type is determined as the target event configuration template corresponding to the target node event.
[0092] Among them, the preset event types and preset event configuration templates can refer to the above description, which will not be described in detail in this embodiment. In this embodiment, the preset event configuration templates corresponding to each preset event type are pre-set by relevant technical personnel. In this way, even business personnel without code foundation can configure different node events based on the pre-designed preset event configuration templates, thereby improving the configuration efficiency of node events and lowering the configuration threshold of node events. It should be noted that the step of displaying the target event configuration template in step S202 can refer to the above-mentioned step S102, which will not be described in detail in this embodiment.
[0093] S203: Based on the displayed target event configuration template, obtain target configuration information corresponding to the target node event.
[0094] In this embodiment, in step S203, based on the displayed target event configuration template, target configuration information corresponding to the target node event is obtained, including:
[0095] Based on the displayed target event configuration template, determining whether target modification information corresponding to the target event configuration template is obtained;
[0096] When the target modification information corresponding to the target event configuration template is obtained, the target event configuration template is processed using the target modification information to obtain a processed target event configuration template;
[0097] Display the processed target event configuration template;
[0098] Based on the displayed processed target event configuration template, the target configuration information corresponding to the target node event is obtained.
[0099] Among them, in order to ensure that the target configuration information corresponding to the target node event finally obtained is more in line with user needs, the target event configuration template displayed in this embodiment can support modification, and business personnel can modify the target event configuration template based on the displayed target event configuration template, so that the target configuration information finally obtained meets user needs.
[0100] Specifically, each template element in the target event configuration template is displayed in the form of a control in the corresponding interface, and the business personnel can operate each displayed control to modify the target event configuration template. After detecting the operation on the control in the target event configuration template, it can be determined that the target modification information corresponding to the target event configuration template is obtained, so that the target event configuration template is modified using the target modification information to obtain the processed target event configuration template, and the processed target event configuration template is displayed. After displaying the processed target event configuration template, the user input information can be obtained based on the processed target event configuration template, so as to generate the target configuration information corresponding to the target node event according to the user input information and the processed target event configuration template.
[0101] S204: Determine a target test script template corresponding to the target event type.
[0102] S205: Fill the target configuration information into the target test script template to generate a target test script.
[0103] S206: Run the target test script to obtain the target test result.
[0104] S207: When the target test result is that the test passes, the target node event is configured according to the target configuration information.
[0105] For the above-mentioned steps S204 to S207, in order to ensure the accuracy of the target node event configured by the target configuration information, in this embodiment, after obtaining the target configuration information of the target node event, the target test script template corresponding to the target event type can be determined by the target event type, so as to fill the target configuration information into the target test script template, generate the target test script, and then run the target test script to test the target configuration information to obtain the target test result. When the target test result is a test pass, it indicates that the use of the target configuration information to configure the target node event can ensure the accuracy of the configured target node event. At this time, the target configuration information can be directly used to configure the target node event; when the target test result is a test failure, it indicates that the use of the target configuration information to configure the target node event cannot ensure the accuracy of the configured target node event. At this time, it is necessary to return to execute step S203 until the target test result is a test pass, and the target configuration information is used to realize the configuration of the target node event.
[0106] The target test script template corresponding to the target event type is determined in step S204, specifically including:
[0107] According to the target event type, a query operation is performed on the second association relationship to obtain a target test script template corresponding to the target event type, and the second association relationship stores a plurality of sets of corresponding relationships between preset event types and test script templates.
[0108] In this embodiment, in order to ensure the accuracy of configuring the target node event using the target configuration information, a preset test script template corresponding to each preset event type is preset in this embodiment, so that after obtaining the target configuration information, the corresponding target test script template can be determined according to the target event type, so that the determined target test script template can be used to implement the test of the target configuration information, thereby testing that the determined target configuration information can ensure the accuracy of the configuration of the target node event, and then after the test passes, the determined target configuration information can be used to implement the configuration of the target node event.
[0109] In this embodiment, after executing step S207, a node event configuration method provided in this embodiment further includes the following steps:
[0110] Displaying multiple preset workflow events, and determining a target workflow event from the multiple preset workflow events;
[0111] Bind the configured target node event with the target workflow event to obtain the processed target workflow event;
[0112] Each time a target node event in a processed target workflow event is executed, a target execution result corresponding to the target node event is recorded;
[0113] The target configuration information is updated according to the target execution results corresponding to all the recorded target node events, so as to configure the target node events using the updated target configuration information.
[0114] Among them, after the target node event is configured, in order to realize the execution of the target node event, multiple preset workflow events can be displayed in the third interface, and the business personnel can select the preset workflow event through the third interface, and determine the selected preset workflow event as the target workflow event, so as to bind the target workflow event with the configured target node event, so that when the target workflow event is executed, the notification can be triggered by the target node event. In order to ensure the user's experience, when the target node event in the processed target workflow event is executed each time, the target execution result corresponding to the target node event can be recorded, so as to determine whether the obtained target configuration information meets the requirements through the target execution results corresponding to all the recorded target node events. When the obtained target configuration information does not meet the requirements, the determined target configuration information is updated so that the updated target configuration information meets the requirements, thereby improving the subsequent user experience.
[0115] Specifically, when it is determined that the target configuration information does not meet the requirements based on the target execution results corresponding to all recorded target node events, the process can return to step S203 to reacquire the target configuration information, thereby updating the target configuration information, and then using the updated target configuration information to configure the target node events.
[0116] In the above, according to the target execution results corresponding to all recorded target node events, the target configuration information is updated, so as to configure the target node event using the updated target configuration information, specifically including:
[0117] Determine all target execution results that meet preset conditions from the target execution results corresponding to all recorded target node events, where the preset conditions include that the target execution result is execution failure;
[0118] Determine the target number of all target execution results that meet the preset conditions;
[0119] When the number of targets is greater than a preset number threshold, the target configuration information is updated to configure the target node event using the updated target configuration information.
[0120] Among them, the preset number threshold can be set according to actual needs, and the specific value of the preset number threshold is not limited in this embodiment. When determining whether it is necessary to update the target configuration information, all target execution results whose target execution results are failed to execute are determined from the target execution results corresponding to all recorded target node events, and the target number of all target execution results that failed to execute is determined. When the target number is greater than the preset number threshold, it indicates that the determined target configuration information does not meet the requirements, and the target configuration information needs to be updated, so that the target node event is configured using the updated target configuration information; when the target number is less than or equal to the preset number threshold, it indicates that the determined target configuration information meets the requirements, and there is no need to update the target configuration information at this time. Similarly, when updating the target configuration information, it is necessary to return to step S203 to obtain the target configuration information, so as to use the obtained target configuration information to complete the update of the target configuration information. In this embodiment, the target execution results corresponding to all recorded target node events are used to determine whether the target configuration information needs to be updated. When the target configuration information needs to be updated, the target configuration information is updated, and the updated target configuration information is used to implement the configuration of the target node events, thereby improving the user experience.
[0121] A node event configuration method provided in this embodiment pre-sets a target event configuration template corresponding to the target event type, so that after the target event type is obtained, the target event configuration template corresponding to the target event type is displayed, thereby obtaining the target configuration information corresponding to the target node event based on the displayed target event configuration template, and then using the target configuration information to realize the configuration of the target node event, without the need for relevant personnel to have a good code foundation, thereby lowering the configuration threshold of node events and improving the configuration efficiency of node events.
[0122] As an example, refer to Figure 3 As shown in the figure, the entire node event configuration process is introduced in detail, as follows:
[0123] The developer pre-designs multiple preset event types and a preset event configuration template corresponding to each preset event type;
[0124] After the developer completes the design of the preset event type and the corresponding preset event configuration template, the business personnel can select a preset event type based on the corresponding interface to obtain the target event type corresponding to the target node event;
[0125] According to the target event type, determine the target event configuration template corresponding to the target node event, and display the target event configuration template;
[0126] Based on the displayed target event configuration template, the business personnel enter relevant information to obtain the target configuration information corresponding to the target node event;
[0127] After obtaining the target configuration information, testing the target configuration information;
[0128] If the test fails, return to execute the display target event configuration template;
[0129] When the test passes, the target workflow event bound to the target node event is determined;
[0130] Each time a target node event in a processed target workflow event is executed, a target execution result corresponding to the target node event is recorded;
[0131] The target configuration information is updated according to the target execution results corresponding to all the recorded target node events, so as to configure the target node events using the updated target configuration information.
[0132] refer to Figure 4 , Figure 4 A schematic diagram of the structure of a node event configuration device provided in an embodiment of the present application. A node event configuration device provided in an embodiment of the present application includes: a type acquisition module 10, a processing module 20, an information acquisition module 30 and a configuration module 40. Among them, the type acquisition module 10 is used to obtain the target event type corresponding to the target node event to be configured; the processing module 20 is used to determine the target event configuration template corresponding to the target node event according to the target event type, and display the target event configuration template; the information acquisition module 30 is used to obtain the target configuration information corresponding to the target node event based on the displayed target event configuration template; the configuration module 40 is used to configure the target node event according to the target configuration information.
[0133] In this embodiment, the configuration module 40 is further used for:
[0134] Determine a target test script template corresponding to the target event type;
[0135] Filling the target configuration information into the target test script template to generate a target test script;
[0136] Run the target test script to obtain the target test result;
[0137] When the target test result is that the test passes, the target node event is configured according to the target configuration information.
[0138] In this embodiment, the processing module 20 is further used for:
[0139] According to the target event type, a query operation is performed on the first association relationship to obtain a target event configuration template corresponding to the target event type, wherein the first association relationship stores a correspondence between multiple groups of preset event types and preset event configuration templates;
[0140] The target event configuration template corresponding to the target event type is determined as the target event configuration template corresponding to the target node event.
[0141] In this embodiment, the configuration module 40 is further used for:
[0142] According to the target event type, a query operation is performed on the second association relationship to obtain a target test script template corresponding to the target event type, wherein the second association relationship stores a plurality of corresponding relationships between preset event types and preset test script templates.
[0143] In this embodiment, the information acquisition module 30 is used to:
[0144] Based on the displayed target event configuration template, determining whether target modification information corresponding to the target event configuration template is acquired;
[0145] When the target modification information corresponding to the target event configuration template is acquired, the target event configuration template is processed using the target modification information to obtain the processed target event configuration template;
[0146] Displaying the processed target event configuration template;
[0147] Based on the displayed processed target event configuration template, the target configuration information corresponding to the target node event is obtained.
[0148] In this embodiment, the configuration module 40 is further used for:
[0149] After obtaining the configured target node event, displaying multiple preset workflow events, and determining the target workflow event from the multiple preset workflow events;
[0150] Binding the configured target node event with the target workflow event to obtain the processed target workflow event;
[0151] Each time the target node event in the processed target workflow event is executed, a target execution result corresponding to the target node event is recorded;
[0152] The target configuration information is updated according to the target execution results corresponding to all the recorded target node events, so as to configure the target node events using the updated target configuration information.
[0153] In this embodiment, the configuration module 40 is further used for:
[0154] Determine all the target execution results that meet a preset condition from the target execution results corresponding to all the recorded target node events, wherein the preset condition includes that the target execution result is an execution failure;
[0155] Determine a target number of all the target execution results that meet the preset conditions;
[0156] When the number of targets is greater than a preset number threshold, the target configuration information is updated to configure the target node event using the updated target configuration information.
[0157] A node event configuration device provided in this embodiment is pre-set with a target event configuration template corresponding to the target event type, so that after the target event type is obtained, the target event configuration template corresponding to the target event type is displayed, so that the target configuration information corresponding to the target node event is obtained according to the displayed target event configuration template, and then the target node event is configured using the target configuration information, without the need for relevant personnel to have a good code foundation, thereby lowering the configuration threshold of node events and improving the configuration efficiency of node events.
[0158] Figure 5 A schematic diagram of a node event configuration system provided in an embodiment of the present application. A node event configuration system provided in an embodiment of the present application comprises a configuration terminal 500 and a configuration server 501, wherein the configuration terminal 500 and the configuration server 501 are in communication connection.
[0159] The configuration terminal 500 is used to input a target event type corresponding to a target node event to be configured, and send the target event type to the configuration server.
[0160] The configuration terminal 500 may be a terminal used by relevant configuration personnel, and the configuration terminal may be a smart phone, a laptop computer, etc. When a node event needs to be configured, the relevant configuration personnel may input the target event type corresponding to the target node event to be configured based on the interface displayed by the configuration terminal, and send the target event type to the configuration server 501.
[0161] After acquiring the target event type, the configuration server 501 executes the node event configuration method as described above to configure the target node event.
[0162] A node event configuration system provided by the present embodiment pre-sets a target event configuration template corresponding to the target event type, so that after the target event type is obtained, the target event configuration template corresponding to the target event type is displayed, so that the target configuration information corresponding to the target node event is obtained according to the displayed target event configuration template, and then the target node event is configured using the target configuration information, without the need for relevant personnel to have a good code foundation, thereby lowering the configuration threshold of node events and improving the configuration efficiency of node events.
[0163] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 6 The electronic device 600 shown includes: at least one processor 601, a memory 602, at least one network interface 604, and other user interfaces 603. The various components in the electronic device 600 are coupled together via a bus system 605. It is understood that the bus system 605 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 605 is not shown in FIG. Figure 6 Various buses are labeled as bus system 605 .
[0164] The user interface 603 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0165] It can be understood that the memory 602 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 602 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0166] In some implementations, the memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 6021 and an application 6022 .
[0167] The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 6022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 6022.
[0168] In an embodiment of the present invention, by calling a program or instruction stored in the memory 602, specifically, a program or instruction stored in the application 6022, the processor 601 is used to execute the method steps provided by each method embodiment, for example, including: obtaining a target event type corresponding to a target node event to be configured; determining a target event configuration template corresponding to the target node event according to the target event type, and displaying the target event configuration template; obtaining target configuration information corresponding to the target node event based on the displayed target event configuration template; and configuring the target node event according to the target configuration information.
[0169] The method disclosed in the above embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 601 or the instruction in the form of software. The above processor 601 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.
[0170] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0171] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0172] The electronic device provided in this embodiment may be Figure 6 The electronic device shown in FIG. 1 may perform the following steps: Figure 1 to Figure 3 All steps of the node event configuration method are implemented Figure 1 to Figure 3 For details, please refer to the technical effect of the node event configuration method shown in Figure 1 to Figure 3 For the sake of brevity, the relevant description is not repeated here.
[0173] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0174] When one or more programs in the storage medium can be executed by one or more processors, the node event configuration method executed on the node event configuration device side is implemented.
[0175] The processor is used to execute the node event configuration program stored in the memory to implement the following steps of the node event configuration method executed on the node event configuration device side: obtaining the target event type corresponding to the target node event to be configured; determining the target event configuration template corresponding to the target node event according to the target event type, and displaying the target event configuration template; based on the displayed target event configuration template, obtaining the target configuration information corresponding to the target node event; and configuring the target node event according to the target configuration information.
[0176] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0177] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0178] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A node event configuration method, characterized in that: include: Get the target event type corresponding to the target node event to be configured; According to the target event type, determining a target event configuration template corresponding to the target node event, and displaying the target event configuration template; Based on the displayed target event configuration template, obtain the target configuration information corresponding to the target node event; The target node event is configured according to the target configuration information.
2. The method according to claim 1, characterized in that The configuring the target node event according to the target configuration information includes: Determine a target test script template corresponding to the target event type; Filling the target configuration information into the target test script template to generate a target test script; Run the target test script to obtain the target test result; When the target test result is that the test passes, the target node event is configured according to the target configuration information.
3. The method according to claim 2, characterized in that The step of determining a target event configuration template corresponding to the target node event according to the target event type includes: According to the target event type, a query operation is performed on the first association relationship to obtain a target event configuration template corresponding to the target event type, wherein the first association relationship stores a correspondence between multiple groups of preset event types and preset event configuration templates; Determine the target event configuration template corresponding to the target event type as the target event configuration template corresponding to the target node event; The determining of the target test script template corresponding to the target event type includes: According to the target event type, a query operation is performed on the second association relationship to obtain a target test script template corresponding to the target event type, wherein the second association relationship stores a plurality of corresponding relationships between preset event types and preset test script templates.
4. The method according to claim 1, characterized in that: The acquiring, based on the displayed target event configuration template, target configuration information corresponding to the target node event includes: Based on the displayed target event configuration template, determining whether target modification information corresponding to the target event configuration template is acquired; When the target modification information corresponding to the target event configuration template is acquired, the target event configuration template is processed using the target modification information to obtain the processed target event configuration template; Displaying the processed target event configuration template; Based on the displayed processed target event configuration template, the target configuration information corresponding to the target node event is obtained.
5. The method according to claim 1, characterized in that After executing the step of configuring the target node event according to the target configuration information, the method further includes: Displaying a plurality of preset workflow events, and determining a target workflow event from the plurality of preset workflow events; Binding the configured target node event with the target workflow event to obtain the processed target workflow event; Each time the target node event in the processed target workflow event is executed, a target execution result corresponding to the target node event is recorded; The target configuration information is updated according to the target execution results corresponding to all the recorded target node events, so as to configure the target node events using the updated target configuration information.
6. The method according to claim 5, characterized in that The updating of the target configuration information according to the target execution results corresponding to all the recorded target node events, so as to configure the target node events using the updated target configuration information, includes: Determine all the target execution results that meet a preset condition from the target execution results corresponding to all the recorded target node events, wherein the preset condition includes that the target execution result is an execution failure; Determine a target number of all the target execution results that meet the preset conditions; When the number of targets is greater than a preset number threshold, the target configuration information is updated to configure the target node event using the updated target configuration information.
7. The method according to claim 1, characterized in that The step of obtaining the target event type corresponding to the target node event to be allocated includes: Display multiple preset event types; Determine whether a triggering operation of one of the plurality of preset event types is detected; When a trigger operation of the preset event type is detected, the preset event type is determined as the target event type corresponding to the target node event to be configured.
8. A node event configuration device, characterized in that: include: A type acquisition module is used to acquire the target event type corresponding to the target node event to be configured; A processing module, used to determine a target event configuration template corresponding to the target node event according to the target event type, and display the target event configuration template; An information acquisition module, used to acquire target configuration information corresponding to the target node event based on the displayed target event configuration template; A configuration module is used to configure the target node event according to the target configuration information.
9. A node event configuration system, characterized in that: The system comprises: a configuration terminal and a configuration server, wherein the configuration terminal and the configuration server are in communication connection; The configuration terminal is used to input a target event type corresponding to a target node event to be configured, and send the target event type to the configuration server; The configuration server is used to execute the node event configuration method described in any one of claims 1 to 7 above after acquiring the target event type, so as to realize the configuration of the target node event.
10. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a node event configuration program stored in the memory to implement the node event configuration method according to any one of claims 1 to 7.
11. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the node event configuration method according to any one of claims 1 to 7.