Data set processing method, electronic equipment, storage medium and computer program product
By introducing a state machine model into the data set management system of the intelligent transportation system, and verifying state and actions in response to data set processing requests, the problem of data set process management in the prior art is solved, and efficient and secure data set management is achieved.
Patent Information
- Application Number
- CN202411963261.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-25
AI Technical Summary
The prior art is difficult to achieve data set process management in intelligent transportation systems that are both safe and efficient. Enumeration variable control has problems of insufficient data integrity and reliability, while the structure of workflow control is complex and performance overhead is large, resulting in low execution efficiency and slow response speed.
By introducing a state machine model in the data set management system, in response to the data set processing request, the corresponding relationship between the data set state and actions is checked, the current state of the data set is updated, the verification mechanism of process transformation is ensured, and efficient data set management is achieved.
It realizes a high processing speed and a strict process verification mechanism to ensure the integrity and consistency of the data set during the circulation process, and improves the execution efficiency and flexibility of the data set management system.
Smart Images

Figure CN119884132A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field related to data processing, and in particular to a data set processing method, electronic equipment, storage medium and computer program product. Background Art
[0002] In intelligent transportation systems, there are a large amount of traffic collection data and event reporting data of various types and huge quantities. Reasonably dividing these data into data sets and performing efficient and flexible process management has become a difficult problem that the industry needs to solve urgently. The data set process management methods in the prior art mainly include enumeration variable control and workflow control. The advantages of enumeration variable control are simple implementation and fast processing speed, but due to the lack of a verification mechanism for process conversion, data is prone to tampering or accidental overwriting during the flow process, resulting in insufficient data integrity and reliability. Workflow control supports flexible configuration and process verification mechanisms, and can achieve more sophisticated process control, but its structure is complex and has a large performance overhead. It often shows low execution efficiency, slow response speed and operational complexity in the management and call of data sets. Summary of the invention
[0003] Based on this, it is necessary to provide a data set processing method, electronic device, storage medium and computer program product to address the technical problem that the data set process management in the prior art cannot achieve both security and efficiency.
[0004] The present invention provides a data set processing method, comprising:
[0005] In response to a data set processing request for executing a requested action on a data set to be processed, obtaining a current state of the data set to be processed, wherein the data set processing request is triggered by an operation of a user of one or more roles or when the data set to be processed meets a preset condition;
[0006] The allowed action corresponding to the current state is searched from the state table. If the requested action is consistent with one of the allowed actions, the arrival state of the current state with respect to the requested action is searched from the state table, and the current state of the data set to be processed is updated to the arrival state. The state table includes multiple states, the allowed actions corresponding to each state, and the arrival state of each state with respect to each allowed action.
[0007] Further, the types of the data set include: a standard data set and a custom data set, and searching the state table for the allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for the arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, includes:
[0008] Obtain a state table for the data set type, search the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, search the state table for an arrival state of the current state with respect to the requested action, and update the current state of the data set to be processed to the arrival state.
[0009] Furthermore, when the data set is a standard data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, includes:
[0010] When the current state is the start state, if the requested action is a save action, the current state of the to-be-processed data set is updated to a to-be-submitted state; if the requested action is a submit action, the current state of the to-be-processed data set is updated to a generating state;
[0011] When the current state is a pending submission state, if the requested action is a submission action, the current state of the to-be-processed data set is updated to a generating state;
[0012] When the current state is the generating state, if the requested action is a stop action, the current state of the to-be-processed data set is updated to the stopped state; if the requested action is a pause action, the current state of the to-be-processed data set is updated to the paused state; if the requested action is a data generation completion action, the current state of the to-be-processed data set is updated to the to-be-online state;
[0013] When the current state is a paused state, if the requested action is a continue action, the current state of the to-be-processed data set is updated to a generating state;
[0014] When the current state is a waiting-to-go-online state, if the requested action is an online action, updating the current state of the to-be-processed data set to an online state;
[0015] When the current state is the online state, if the requested action is an offline action, updating the current state of the to-be-processed data set to the offline state;
[0016] When the current state is an offline state, if the requested action is an online action, the current state of the to-be-processed data set is updated to an online state.
[0017] Furthermore, when the data set is a standard data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, includes:
[0018] When the current state is the online state, if the request action is a subscription application submission action, the current state of the to-be-processed data set is updated to a pending review state;
[0019] When the current state is the pending review state, if the requested action is a passing action, the current state of the pending data set is updated to the passing state; if the requested action is a rejecting action, the current state of the pending data set is updated to the rejecting state;
[0020] When the current state is a rejected state, if the request action is a subscription application submission action, the current state of the to-be-processed data set is updated to a pending review state;
[0021] When the current state is a passed state, if the requested action is an automatic program execution action, the current state of the to-be-processed data set is updated to an enabled state;
[0022] When the current state is the enabled state, if the requested action is a disabled action, the current state of the to-be-processed data set is updated to the disabled state; if the requested action is a service expired action, the current state of the to-be-processed data set is updated to the expired state;
[0023] When the current state is a disabled state, if the requested action is an enabling action, the current state of the to-be-processed data set is updated to an enabled state; if the requested action is an offline action, the current state of the to-be-processed data set is updated to an offline state;
[0024] When the current state is expired, if the requested action is a renewal action, the current state of the to-be-processed data set is updated to an enabled state; if the requested action is an offline action, the current state of the to-be-processed data set is updated to an offline state.
[0025] Furthermore, when the data set is a custom data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, includes:
[0026] When the current state is the start state, if the requested action is a save action, the current state of the to-be-processed data set is updated to a to-be-submitted state; if the requested action is a submit action, the current state of the to-be-processed data set is updated to a to-be-reviewed state;
[0027] When the current state is a pending submission state, if the request action is a submission action, the current state of the pending data set is updated to a pending review state;
[0028] When the current state is the pending review state, if the requested action is a passing action, the current state of the pending data set is updated to the passing state; if the requested action is a rejecting action, the current state of the pending data set is updated to the rejecting state;
[0029] When the current state is a rejected state, if the request action is a submit action, the current state of the to-be-processed data set is updated to a pending review state;
[0030] When the current state is a passed state, if the requested action is an automatic program execution action, the current state of the to-be-processed data set is updated to a generating state;
[0031] When the current state is the generating state, if the requested action is a stop action, the current state of the to-be-processed data set is updated to the stopped state; if the requested action is a pause action, the current state of the to-be-processed data set is updated to the paused state; if the requested action is a data generation completion action, the current state of the to-be-processed data set is updated to the enabled state;
[0032] When the current state is the enabled state, if the requested action is a disabled action, the current state of the to-be-processed data set is updated to the disabled state; if the requested action is a service expired action, the current state of the to-be-processed data set is updated to the expired state;
[0033] When the current state is a disabled state, if the requested action is an enabled action, updating the current state of the to-be-processed data set to an enabled state;
[0034] When the current state is an expired state, if the requested action is a renewal action, the current state of the to-be-processed data set is updated to an enabled state.
[0035] Further, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the to-be-processed data set to the arrival state, further includes:
[0036] When the current state is enabled or expired, if the requested action is to publish as a standard dataset action, the current state of the dataset to be processed is updated to a to-be-online state, and the type of the dataset to be processed is updated to a standard dataset.
[0037] Furthermore, it also includes: when the requested action is inconsistent with any of the allowed actions, an alarm is issued.
[0038] The present invention provides an electronic device, comprising:
[0039] at least one processor; and,
[0040] a memory communicatively connected to at least one of the processors; wherein,
[0041] The memory stores instructions that can be executed by at least one of the processors. The instructions are executed by at least one of the processors to enable the at least one of the processors to perform the data set processing method as described above.
[0042] The present invention provides a storage medium, wherein the storage medium stores computer instructions, and when a computer executes the computer instructions, it is used to execute all steps of the data set processing method as described above.
[0043] The present invention provides a computer program product, comprising a computer program / instruction, which implements the data set processing method as described above when executed by a processor.
[0044] When responding to a data set processing request, the present invention performs verification through the correspondence between the state of the data set and the action, which not only achieves a higher processing speed, but also introduces a strict process verification mechanism to ensure the integrity and consistency of the data set during the circulation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a data set processing method according to an embodiment of the present invention;
[0046] Figure 2 An interactive diagram of a data set management system according to a preferred embodiment of the present invention;
[0047] Figure 3 A flowchart of a data set processing method according to another embodiment of the present invention;
[0048] Figure 4 A schematic diagram of setting a state table for a preferred embodiment of the present invention;
[0049] Figure 5 A schematic diagram of the state flow in the standard data set creation process of the best embodiment of the present invention;
[0050] Figure 6 A schematic diagram of the state flow in the standard data set subscription process in the best embodiment of the present invention;
[0051] Figure 7 A schematic diagram of the state flow in the process of creating a subscription for a custom data set in the best embodiment of the present invention;
[0052] Figure 8 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION
[0053] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. The same components are represented by the same reference numerals. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0054] like Figure 1 The figure shows a workflow diagram of a data set processing method according to an embodiment of the present invention, including:
[0055] Step S101, in response to a data set processing request for executing a requested action on a data set to be processed, obtaining a current state of the data set to be processed, wherein the data set processing request is triggered by an operation of a user of one or more roles or when the data set to be processed meets a preset condition;
[0056] Step S102, searching the state table for the allowed action corresponding to the current state; if the requested action is consistent with one of the allowed actions, searching the state table for the arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state; the state table includes multiple states, the allowed actions corresponding to each state, and the arrival state of each state with respect to each allowed action.
[0057] Specifically, the present invention can be applied to electronic devices with processing capabilities, such as computers.
[0058] The data set processing method of the present invention is applied in a data set management system for traffic data. The data set of this embodiment is preferably a traffic information data set. This embodiment is preferably a method for processing a traffic information data set.
[0059] In the data set management system for traffic data, a wide variety of traffic data are involved, including roadside equipment data, roadside perception data, vehicle-side CAN data, vehicle-side video data, and vehicle abnormal event data. The management requirements for these data are complex and diverse. To ensure the generation of high-quality and reliable data sets, this system performs standardized control and packaging of data sets, and publishes them to third-party users through a permission control mechanism, thereby providing high-quality data service support for intelligent transportation systems and external partners.
[0060] like Figure 2 The diagram shows the interaction of the data set management system in the best embodiment of the present invention, showing the interaction between the modules and components in the system, and the reference arrows are used to transfer between components. When inputting data information, the user is authenticated through the single sign-on (SSO) service module 2. If the user does not meet the requirements, the authentication ends. Otherwise, the metadata is stored through the MySQL database 3.
[0061] The task processing module 4 performs data set task disassembly, and the state machine processing module 1 performs data set state flow. The task processing module 4 can also retrieve data set business data through the DORIS interface 5, the Geographic Information System (GIS) interface 6, and the GBS video interface 7. The data set file is generated and stored in the MinIO storage system 8 and the File Transfer Protocol (FTP) module 9, and is managed by the data set management module 10, and the data set subscription module 11 subscribes to the data set, and the data set statistics module 12 performs statistics. When the data set management module 10 and the data set subscription module 11 perform management and subscription operations, the state of the data set is transferred based on the state machine processing module 1. Among them, the DORIS interface 5 is the interface of the DORIS database, and Doris is a high-performance, real-time analytical database. The GBS video interface 7 refers to the video interface of the relevant streaming media service or platform that complies with the national standard. MinIO is a high-performance, distributed object storage system.
[0062] The state machine processing module 1 executes the data processing method of the present invention. As the core control unit of the system, the state machine processing module undertakes the key functions of data set state flow, task scheduling and execution control, and its execution efficiency directly affects the performance and stability of the entire data set management system.
[0063] Specifically, when a dataset processing request is triggered, step S101 is executed, and in response to a dataset processing request for executing a requested action on a dataset to be processed, a current state of the dataset to be processed is obtained, wherein the dataset processing request is triggered by an operation of a user of one or more roles or when the dataset to be processed meets a preset condition.
[0064] When a user operates on a dataset, it will trigger the generation of a dataset processing request. For example, when a user in a data provider role submits a dataset, or when a user in an audit role audits data, the operations of users in different roles will generate dataset processing requests including different request actions. In addition, during the flow of various states of a dataset, the system will also trigger a dataset processing request based on conditions. For example, when the state of a dataset is in the generating state, when the dataset generation is completed, a dataset processing request including a data generation completion action is triggered, where dataset generation refers to the generation of traffic indicator data by the dataset. The request action is the action of the user performing the corresponding operation, or the action triggered when the dataset meets the preset conditions. The specific correspondence between operations and actions, as well as the correspondence between conditions and actions, are preset by the system.
[0065] Then execute step S102, search the state table for the allowed action corresponding to the current state, if the requested action is consistent with one of the allowed actions, search the state table for the arrival state of the current state with respect to the requested action, update the current state of the data set to be processed to the arrival state, the state table includes multiple states, the allowed actions corresponding to each state and the arrival state of each state with respect to each allowed action.
[0066] Specifically, the state table is pre-set. The allowed actions of each state and the arrival state corresponding to each allowed action are recorded in the state table. Therefore, when executing step S102, the corresponding allowed action is searched from the state table according to the current state of the data set. If the requested action is one of the allowed actions, the arrival state of the allowed action whose current state is consistent with the requested action is searched from the state table, and then the current state of the data set to be processed is updated to the arrival state.
[0067] Therefore, when the data set management system is used, it only needs to transfer the current state and the action to be performed to automatically flow to the arrival state without additional verification. If the current state does not match the action to be performed, it will automatically verify and alarm, thus realizing the verification mechanism of data set process conversion.
[0068] At the same time, the state machine-based design of this embodiment can significantly improve the execution efficiency of the data set management system. Its superiority can be explained by the formula:
[0069] Assuming that there are n states and m actions in the system, the time complexity of state change can be reduced to O(n+m) through the transition method controlled by the state machine. Compared with the workflow complexity O(n×m) of the existing technology, the state machine implementation significantly reduces the system overhead, thereby showing higher response speed and processing efficiency when processing large data sets.
[0070] When responding to a data set processing request, the present invention performs verification through the correspondence between the state of the data set and the action, which not only achieves a higher processing speed, but also introduces a strict process verification mechanism to ensure the integrity and consistency of the data set during the circulation process.
[0071] like Figure 3 FIG. 1 is a flowchart of a data set processing method according to another embodiment of the present invention, comprising:
[0072] Step S301, in response to a data set processing request for executing a requested action on a data set to be processed, obtaining the current state of the data set to be processed, wherein the data set processing request is triggered by an operation of a user of one or more roles or when the data set to be processed meets a preset condition, and the types of the data sets include: standard data sets and custom data sets.
[0073] Step S302, obtain a status table for the data set type, search the status table for the allowed action corresponding to the current state, if the requested action is consistent with one of the allowed actions, search the status table for the arrival state of the current state with respect to the requested action, and update the current state of the data set to be processed to the arrival state.
[0074] Step S303: When the requested action is inconsistent with any of the allowed actions, an alarm is issued.
[0075] Specifically, the dataset processing method of this embodiment is applied in a dataset management system for traffic data. The types of datasets include standard datasets and custom datasets. Among them, the standard dataset is submitted by the data publisher and reviewed by the reviewer. After passing the review and going online, it is subscribed and used by the data subscriber. The custom dataset is submitted by the user, reviewed by the reviewer, and then used directly by the user.
[0076] When a dataset processing request is triggered, step S301 is executed. In response to the dataset processing request for executing a requested action on a dataset to be processed, a current state of the dataset to be processed is obtained. The dataset processing request is triggered by an operation of a user of one or more roles or when the dataset to be processed meets a preset condition. The types of the datasets include: standard datasets and custom datasets.
[0077] Then, execute step S302, obtain a status table for the data set type, search the status table for the allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, search the status table for the arrival state of the current state with respect to the requested action, and update the current state of the data set to be processed to the arrival state.
[0078] Specifically, two sets of state tables may be preset, and different state tables are used for the standard data set and the custom data set.
[0079] Decompose the status of standard and custom datasets.
[0080] In the creation process, the standard dataset states include: pending submission, indicating that the dataset has not been submitted yet and is in the initial preparation stage; generating, indicating that the dataset is being generated or downloaded; paused or stopped, indicating temporary suspension or complete stop, respectively; waiting to be online, indicating that the dataset has been generated and is waiting to be put online for use; online, indicating that users can access and use it normally; offline, indicating that users can no longer access or use it.
[0081] In the subscription process, the standard dataset statuses include: pending review status, indicating that the subscription application has been submitted and is awaiting review; approved status, indicating that the subscription application has been approved and the user can use the dataset; rejected status, indicating that the definition application has not passed the review and the user needs to modify or resubmit; enabled status, indicating that the dataset has been generated and enabled, and the user can access and use it normally; disabled status, indicating that the dataset has been disabled for some reason and the user can no longer access it; expired status, indicating that the dataset has expired and the user can no longer use it.
[0082] Custom datasets include: pending submission status, which means the dataset has not been submitted yet and is in the initial preparation stage; pending review status, which means the dataset has been submitted and is awaiting review; rejected status, which means the dataset has not passed the review and needs to be modified or resubmitted by the user; passed status, which means the dataset has passed the review and can enter the generation stage; generating status, which means the dataset is in the generation process; paused or stopped status, which means the generation process is temporarily suspended or completely stopped respectively; enabled status, which means the dataset has been generated and enabled and users can access and use it normally; disabled status, which means the dataset has been disabled for some reason and users can no longer access it; expired status, which means the dataset has expired and users can no longer use it.
[0083] The actions to decompose the standard dataset and custom dataset are:
[0084] In the creation process, standard data set actions include: save, submit, pause, stop, continue, data generation completed, go online, and go offline.
[0085] In the subscription process, the actions of the standard data set include: submitting a subscription application, approval, rejection, automatic execution of the program, service expiration, renewal, disabling, and enabling.
[0086] The actions of custom data sets include: save, submit, reject, pass, program automatic execution generation, pause, stop, continue, generation completion, enable, disable, service expiration and renewal.
[0087] Through the above decomposed states and actions, the flow relationship between the standard data set and the custom data set is constructed respectively, and then the state table is set. Among them, two different state tables can be set for the standard data set and the custom data set respectively. Figure 4 This is a schematic diagram of the setting of one of the state tables. After completion, the effect is satisfactory. Figures 5 to 7 Defined process functionality.
[0088] When the data set management system is used, Figure 4 As shown, only the current state and the action to be performed need to be transmitted to automatically flow to the arrival state without additional verification. If the current state does not match the action to be performed, step S303 is executed to perform automatic verification and alarm, thus realizing the verification mechanism of data set process conversion.
[0089] The state machine-based design can significantly improve the execution efficiency of the data set management system. Its superiority can be explained by the formula: Assuming that there are n states and m actions in the system, the time complexity of state change can be reduced to O(n+m) through the state machine-controlled transition method. Compared with the complexity of traditional workflows O(n×m), the state machine implementation significantly reduces system overhead, thereby showing higher response speed and processing efficiency when processing large data sets.
[0090] This embodiment uses different state tables for different types of data sets to adaptively perform state and action verification. By introducing the state machine model, this embodiment achieves orderly management of data sets between various states, greatly improving the efficiency and flexibility of traffic information data set management. At the same time, through automated control and monitoring of the process, it effectively reduces the need for human intervention and reduces management costs, which is of great significance to improving the overall efficiency of the intelligent transportation system.
[0091] In one embodiment, when the data set is a standard data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, comprises:
[0092] When the current state is the start state, if the requested action is a save action, the current state of the to-be-processed data set is updated to a to-be-submitted state; if the requested action is a submit action, the current state of the to-be-processed data set is updated to a generating state;
[0093] When the current state is a pending submission state, if the requested action is a submission action, the current state of the to-be-processed data set is updated to a generating state;
[0094] When the current state is the generating state, if the requested action is a stop action, the current state of the to-be-processed data set is updated to the stopped state; if the requested action is a pause action, the current state of the to-be-processed data set is updated to the paused state; if the requested action is a data generation completion action, the current state of the to-be-processed data set is updated to the to-be-online state;
[0095] When the current state is a paused state, if the requested action is a continue action, the current state of the to-be-processed data set is updated to a generating state;
[0096] When the current state is a waiting-to-go-online state, if the requested action is an online action, updating the current state of the to-be-processed data set to an online state;
[0097] When the current state is the online state, if the requested action is an offline action, updating the current state of the to-be-processed data set to the offline state;
[0098] When the current state is an offline state, if the requested action is an online action, the current state of the to-be-processed data set is updated to an online state.
[0099] Specifically, the state table of the standard data set is set as:
[0100] The allowed actions of the start state are save action and submit action. The arrival state of the save action is the pending submission state, and the arrival state of the submit action is the generating state.
[0101] The allowed action of the pending state is the commit action, and the reached state is the generating state;
[0102] The allowed actions of the generating state are stop action, pause action and data generation completion action. The arrival state corresponding to the stop action is the stopped state, the arrival state corresponding to the pause action is the paused state, and the arrival state corresponding to the data generation completion action is the waiting to go online state;
[0103] The allowed action of the paused state is the continue action, and the reached state is the generating state;
[0104] The allowed action in the waiting-to-go-online state is the go-online action, and the reached state is the online state;
[0105] The allowed action for the online state is the offline action, and the reached state is the offline state;
[0106] The allowed action for the offline state is the online action, and the reached state is the online state.
[0107] like Figure 5 The diagram is a schematic diagram of the state transition in the standard data set creation process of the best embodiment of the present invention, including:
[0108] In the creation process, when the initial state of the standard dataset is the start state 501, if the data publisher uploads the dataset and clicks the Save button, the save action is a request action. At this time, by checking the state table, it is determined that the save action is a start permission action, and the current state of the dataset is updated to the pending submission state 502. If the data publisher clicks the Submit button, the request action is a submit action, which is also a permission action, so the current state of the dataset is updated to the generating state 503;
[0109] When the current state of the standard data set is the pending submission state 502, if the data publisher clicks the submit button, the generated request action is a submit action, and the current state of the data set is updated to the generating state 503;
[0110] When the current state of the standard data set is the generating state 503, if the data publisher clicks the stop button, the request action generated is the stop action, and the current state of the data set is updated to the stopped state 504. If the data publisher clicks the pause button, the request action generated is the pause action, and the current state of the data set is updated to the paused state 505. If the system determines that the data generation is completed, the system automatically generates the data generation completion action, and updates the current state of the data set to the waiting to be online state 506.
[0111] When the current state of the standard data set is the paused state 505, if the data publisher clicks the continue button, the generated request action is the continue action, and the current state of the data set is updated to the generating state 503;
[0112] When the current state of the standard data set is the waiting-to-go-online state 506, the reviewer decides whether to go online. If the reviewer clicks the go-online button, the request action is the go-online action, and the current state of the data set is updated to the online state 507;
[0113] When the current state of the standard data set is the online state 507, if the reviewer clicks the offline button, the requested action is an offline action, and the current state of the data set is updated to the offline state 508;
[0114] When the current state of the standard data set is the offline state 508 , if the reviewer clicks the online button, the requested action is an online action, and the current state of the data set is updated to the online state 507 .
[0115] The state flow in this embodiment is clear and easy to verify, which is convenient for later expansion.
[0116] In one embodiment, when the data set is a standard data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, comprises:
[0117] When the current state is the online state, if the request action is a subscription application submission action, the current state of the to-be-processed data set is updated to a pending review state;
[0118] When the current state is the pending review state, if the requested action is a passing action, the current state of the pending data set is updated to the passing state; if the requested action is a rejecting action, the current state of the pending data set is updated to the rejecting state;
[0119] When the current state is a rejected state, if the request action is a subscription application submission action, the current state of the to-be-processed data set is updated to a pending review state;
[0120] When the current state is a passed state, if the requested action is an automatic program execution action, the current state of the to-be-processed data set is updated to an enabled state;
[0121] When the current state is the enabled state, if the requested action is a disabled action, the current state of the to-be-processed data set is updated to the disabled state; if the requested action is a service expired action, the current state of the to-be-processed data set is updated to the expired state;
[0122] When the current state is a disabled state, if the requested action is an enabling action, the current state of the to-be-processed data set is updated to an enabled state; if the requested action is an offline action, the current state of the to-be-processed data set is updated to an offline state;
[0123] When the current state is expired, if the requested action is a renewal action, the current state of the to-be-processed data set is updated to an enabled state; if the requested action is an offline action, the current state of the to-be-processed data set is updated to an offline state.
[0124] Specifically, the state table of the standard data set also includes:
[0125] The allowed action for the online status is submitting a subscription application, and the corresponding arrival status is pending review;
[0126] The allowed actions of the pending review state are pass action and reject action. The arrival state corresponding to the pass action is the pass state, and the arrival state corresponding to the reject action is the reject state.
[0127] The allowed action for the rejected status is submitting a subscription application, and the corresponding arrival status is pending review;
[0128] The allowed action of the passing state is the program automatically executing the action, and the corresponding arrival state is the enabled state;
[0129] The allowed action of the enabled state is the disabled action and the service expired action, the arrival state corresponding to the allowed action is the disabled state, and the arrival state corresponding to the service expired action is the expired state;
[0130] The allowed actions of the disabled state are the enable action and the offline action. The arrival state corresponding to the enable action is the enabled state, and the arrival state corresponding to the offline action is the offline state.
[0131] The allowed actions for the expired state are renewal action and offline action. The arrival state corresponding to the renewal action is the enabled state, and the arrival state corresponding to the offline action is the offline state.
[0132] like Figure 6 The diagram is a schematic diagram of the state transition in the standard data set creation process of the best embodiment of the present invention, including:
[0133] In the subscription process, the initial status of the standard dataset is the online status 507 in the creation process. At this time, if the subscriber clicks the Submit Subscription Application button, the request action is the Submit Subscription Application action, and the current status of the pending dataset is updated to the pending review status 601;
[0134] When the current state of the standard data set is the pending state 601, the reviewer conducts the review. If the reviewer clicks the pass button, the request action is the pass action, and the current state of the pending data set is updated to the pass state 602. If the reviewer clicks the reject button, the request action is the reject action, and the pending data set is updated to the reject state 603.
[0135] When the current status of the standard dataset is the rejected status 603, the subscriber can make a request again. If the subscriber clicks the Submit Subscription Application button, the request action is the Submit Subscription Application action, and the current status of the pending dataset is updated to the pending review status 601;
[0136] When the current state of the standard data set is the passing state 602, the system determines that the current state satisfies the passing state, and then generates a program automatic execution action to update the data set to be processed to the enabled state 604. The program automatic execution action is automatically generated by the system when the current state is the passing state, so that the background state machine automatically transfers the state flow to the enabled state;
[0137] When the current state of the standard data set is the enabled state 604, if the reviewer clicks the disable button, the requested action is the disable action, and the current state of the pending data set is updated to the disabled state 605. At the same time, the standard data set sets a service expiration time. Therefore, when the service expiration time is reached, the system determines that the service expiration condition is met, triggers the service expiration action, and updates the current state of the pending data set to the expired state 606.
[0138] When the current state of the standard dataset is disabled 605, if the reviewer clicks the Enable button, the requested action is the Enable action, and the current state of the dataset to be processed is updated to the Enabled state 604. After the service is not subscribed or all subscriptions are disabled, the offline operation can be performed. If the reviewer clicks the Offline button, the requested action is the Offline action, and the current state of the dataset to be processed is updated to the Offline state 508 in the standard dataset creation process;
[0139] When the current status of the standard dataset is the expired status 606, the subscriber clicks the renewal button, and the requested action is the renewal action, which updates the current status of the dataset to be processed to the enabled status 604. After all services have expired, the reviewer can click the offline button to perform the offline operation, and the requested action is the offline action, which updates the current status of the dataset to be processed to the offline status 508 in the standard dataset creation process. Among them, when the offline dataset is activated, it will prompt: "The dataset is offline and cannot be activated", or when the offline dataset is renewed, it will prompt: "The dataset is offline and cannot be renewed".
[0140] The state flow in this embodiment is clear and easy to verify, which is convenient for later expansion.
[0141] In one embodiment, when the data set is a custom data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, comprises:
[0142] When the current state is the start state, if the requested action is a save action, the current state of the to-be-processed data set is updated to a to-be-submitted state; if the requested action is a submit action, the current state of the to-be-processed data set is updated to a to-be-reviewed state;
[0143] When the current state is a pending submission state, if the request action is a submission action, the current state of the pending data set is updated to a pending review state;
[0144] When the current state is the pending review state, if the requested action is a passing action, the current state of the pending data set is updated to the passing state; if the requested action is a rejecting action, the current state of the pending data set is updated to the rejecting state;
[0145] When the current state is a rejected state, if the request action is a submit action, the current state of the to-be-processed data set is updated to a pending review state;
[0146] When the current state is a passed state, if the requested action is an automatic program execution action, the current state of the to-be-processed data set is updated to a generating state;
[0147] When the current state is the generating state, if the requested action is a stop action, the current state of the to-be-processed data set is updated to the stopped state; if the requested action is a pause action, the current state of the to-be-processed data set is updated to the paused state; if the requested action is a data generation completion action, the current state of the to-be-processed data set is updated to the enabled state;
[0148] When the current state is the enabled state, if the requested action is a disabled action, the current state of the to-be-processed data set is updated to the disabled state; if the requested action is a service expired action, the current state of the to-be-processed data set is updated to the expired state;
[0149] When the current state is a disabled state, if the requested action is an enabled action, updating the current state of the to-be-processed data set to an enabled state;
[0150] When the current state is an expired state, if the requested action is a renewal action, the current state of the to-be-processed data set is updated to an enabled state.
[0151] The state table of a custom data set includes:
[0152] The allowed actions of the start state are save action and submit action. The arrival state corresponding to the save action is the pending submission state, and the arrival state corresponding to the submit action is the pending review state.
[0153] The allowed action of the pending submission state is the submit action, and the corresponding arrival state is the pending review state;
[0154] The allowed actions of the pending review state are pass action and reject action. The arrival state corresponding to the pass action is the pass state, and the arrival state corresponding to the reject action is the reject state.
[0155] The allowed action for the rejected state is the submit action, and the corresponding arrival state is the pending review state;
[0156] The allowed action of the passing state is the program's automatic execution action, and the corresponding arrival state is the generating state;
[0157] The allowed actions of the generating state are stop action, pause action and data generation completion action. The arrival state corresponding to the stop action is the stopped state, the arrival state corresponding to the pause action is the paused state, and the arrival state corresponding to the data generation completion action is the enabled state;
[0158] The allowed actions of the enabled state are the disabled action and the service expired action. The arrival state corresponding to the disabled action is the disabled state, and the arrival state corresponding to the service expired action is the expired state.
[0159] The allowed action of the disabled state is the enabling action, and the corresponding arrival state is the enabled state;
[0160] The allowed action for the expired state is the renewal action, and the corresponding arrival state is the enabled state.
[0161] like Figure 7 The diagram is a schematic diagram of the state transition in the process of creating a subscription for a custom data set according to the best embodiment of the present invention, including:
[0162] The initial state of the custom dataset is the start state 701. At this time, if the data publisher clicks the Save button after uploading the dataset, the request action is the Save action, and the current state of the dataset to be processed is updated to the Submit state 702. If the data publisher clicks the Submit button, the request action generated is the Submit action, and the current state of the dataset to be processed is updated to the Review state 703. The Submit action in the custom dataset means submitting the subscription application and generating data.
[0163] When the current state of the custom data set is the pending submission state 702, if the data publisher clicks the submit button, the request action is a submit action, and the current state of the pending data set is updated to the pending review state 703;
[0164] When the current status of the custom data set is the pending status 703, the reviewer will review it. If the reviewer clicks the pass button, the requested action is the pass action, and the current status of the pending data set is updated to the pass status 704. If the reviewer clicks the reject button, the requested action is the reject action, and the pending data set is updated to the reject status 705.
[0165] When the current status of the custom data set is the rejected status 705, the data publisher can submit again. If the data publisher clicks the submit button, the request action is the submit action, and the current status of the pending data set is updated to the pending review status 703;
[0166] When the current state of the custom data set is the passing state 704, the system determines that the current state satisfies the passing state, and then generates a program to automatically execute an action, and updates the data set to be processed to the generating state 706;
[0167] When the current state of the custom data set is the generating state 706, if the data publisher clicks the stop button, the requested action is the stop action, and the current state of the data set to be processed is updated to the stopped state 707; if the data publisher clicks the pause button, the requested action is the pause action, and the current state of the data set to be processed is updated to the paused state 708; if the system determines that the data generation is completed, the data generation completion action is automatically generated, and the current state of the data set to be processed is updated to the enabled state 709;
[0168] When the current state of the custom data set is the enabled state 709, if the reviewer clicks the disable button, the requested action is the disable action, and the current state of the pending data set is updated to the disabled state 710. At the same time, the custom data set sets a service expiration time. Therefore, when the service expiration time is reached, the system determines that the service expiration condition is met, triggers the service expiration action, and updates the current state of the pending data set to the expired state 711.
[0169] When the current state of the custom data set is the disabled state 710, if the reviewer clicks the enable button, the requested action is the enable action, and the current state of the to-be-processed data set is updated to the enabled state 709;
[0170] When the current state of the custom dataset is the expired state 711 , if the data publisher clicks the renewal button, the requested action is a renewal action, and the current state of the dataset to be processed is updated to the enabled state 709 .
[0171] The state flow in this embodiment is clear and easy to verify, which is convenient for later expansion.
[0172] In one embodiment, searching the state table for the allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for the arrival state of the current state with respect to the requested action, and updating the current state of the to-be-processed data set to the arrival state, further comprises:
[0173] When the current state is enabled or expired, if the requested action is to publish as a standard dataset action, the current state of the dataset to be processed is updated to a to-be-online state, and the type of the dataset to be processed is updated to a standard dataset.
[0174] Specifically, the status table of the custom data set also includes:
[0175] The allowed actions in the enabled state also include the action of publishing as a standard dataset, and the arrival state corresponding to the action of publishing as a standard dataset is the waiting-to-go-online state;
[0176] The allowed actions of the expired state also include the action of publishing as a standard data set, and the arrival state corresponding to the action of publishing as a standard data set is the waiting-to-go-online state.
[0177] like Figure 7 As shown, a custom dataset can also be published as a standard dataset. When a custom dataset has high versatility, it can be updated to a standard dataset, so that more users can subscribe directly and use it more conveniently. When the current state of the custom dataset is the enabled state 709 or the expired state 711, if the reviewer clicks the Publish as Standard Dataset button, the requested action is the Publish as Standard Dataset action, and the current state of the dataset to be processed is updated to the pending online state 506 in the creation process of the standard dataset, and the type of the dataset to be processed is updated to the standard dataset. Among them, after publishing once, the "Publish as Standard Dataset" button is grayed out.
[0178] This embodiment realizes publishing a custom data set as a standard data set to facilitate user use.
[0179] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0180] like Figure 8 The figure shows a hardware structure diagram of an electronic device of the present invention, including:
[0181] at least one processor 801; and,
[0182] A memory 802 is communicatively connected to at least one of the processors 801; wherein,
[0183] The memory 802 stores instructions that can be executed by at least one of the processors. The instructions are executed by at least one of the processors so that the at least one of the processors can perform the data set processing method as described above.
[0184] Figure 8 A processor 801 is taken as an example.
[0185] The electronic device may further include: an input device 803 and a display device 804 .
[0186] The processor 801, the memory 802, the input device 803 and the display device 804 may be connected via a bus or other means, and the figure takes the connection via a bus as an example.
[0187] The memory 802 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the data set processing method in the embodiment of the present application, for example, Figure 2 , Figure 4 The processor 801 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 802, that is, implements the data set processing method in the above embodiment.
[0188] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the data set processing method, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 802 may optionally include a memory remotely arranged relative to the processor 801, and these remote memories may be connected to the device for executing the data set processing method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0189] The input device 803 can receive user clicks and generate signal inputs related to user settings and function controls of the data set processing method. The display device 804 can include display devices such as a display screen.
[0190] The one or more modules are stored in the memory 802 and, when executed by the one or more processors 801 , execute the data set processing method in any of the above method embodiments.
[0191] When responding to a data set processing request, the present invention performs verification through the correspondence between the state of the data set and the action, which not only achieves a higher processing speed, but also introduces a strict process verification mechanism to ensure the integrity and consistency of the data set during the circulation process.
[0192] An embodiment of the present invention provides a storage medium, wherein the storage medium stores computer instructions. When a computer executes the computer instructions, the storage medium is used to execute all steps of the data set processing method as described above.
[0193] In the context of the present disclosure, a storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. The storage medium may be a machine-readable signal medium or a machine-readable storage medium. Alternatively, the storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0194] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which implements the data set processing method as described above when executed by a processor.
[0195] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A data set processing method, characterized in that: include: In response to a data set processing request for executing a requested action on a data set to be processed, obtaining a current state of the data set to be processed, wherein the data set processing request is triggered by an operation of a user of one or more roles or when the data set to be processed meets a preset condition; The allowed action corresponding to the current state is searched from the state table. If the requested action is consistent with one of the allowed actions, the arrival state of the current state with respect to the requested action is searched from the state table, and the current state of the data set to be processed is updated to the arrival state. The state table includes multiple states, the allowed actions corresponding to each state, and the arrival state of each state with respect to each allowed action.
2. The data set processing method according to claim 1, characterized in that: The types of the data set include: a standard data set and a custom data set, searching the state table for the allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for the arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, including: Obtain a state table for the data set type, search the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, search the state table for an arrival state of the current state with respect to the requested action, and update the current state of the data set to be processed to the arrival state.
3. The data set processing method according to claim 2, characterized in that: When the data set is a standard data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, includes: When the current state is the start state, if the requested action is a save action, the current state of the to-be-processed data set is updated to a to-be-submitted state; if the requested action is a submit action, the current state of the to-be-processed data set is updated to a generating state; When the current state is a pending submission state, if the requested action is a submission action, the current state of the to-be-processed data set is updated to a generating state; When the current state is the generating state, if the requested action is a stop action, the current state of the to-be-processed data set is updated to the stopped state; if the requested action is a pause action, the current state of the to-be-processed data set is updated to the paused state; if the requested action is a data generation completion action, the current state of the to-be-processed data set is updated to the to-be-online state; When the current state is a paused state, if the requested action is a continue action, the current state of the to-be-processed data set is updated to a generating state; When the current state is a waiting-to-go-online state, if the requested action is an online action, updating the current state of the to-be-processed data set to an online state; When the current state is the online state, if the requested action is an offline action, updating the current state of the to-be-processed data set to the offline state; When the current state is an offline state, if the requested action is an online action, the current state of the to-be-processed data set is updated to an online state.
4. The data set processing method according to claim 2, characterized in that: When the data set is a standard data set, searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, includes: When the current state is the online state, if the request action is a subscription application submission action, the current state of the to-be-processed data set is updated to a pending review state; When the current state is the pending review state, if the requested action is a passing action, the current state of the pending data set is updated to the passing state; if the requested action is a rejecting action, the current state of the pending data set is updated to the rejecting state; When the current state is a rejected state, if the request action is a subscription application submission action, the current state of the to-be-processed data set is updated to a pending review state; When the current state is a passed state, if the requested action is an automatic program execution action, the current state of the to-be-processed data set is updated to an enabled state; When the current state is the enabled state, if the requested action is a disabled action, the current state of the to-be-processed data set is updated to the disabled state; if the requested action is a service expired action, the current state of the to-be-processed data set is updated to the expired state; When the current state is a disabled state, if the requested action is an enabling action, the current state of the to-be-processed data set is updated to an enabled state; if the requested action is an offline action, the current state of the to-be-processed data set is updated to an offline state; When the current state is expired, if the requested action is a renewal action, the current state of the to-be-processed data set is updated to an enabled state; if the requested action is an offline action, the current state of the to-be-processed data set is updated to an offline state.
5. The data set processing method according to claim 2, characterized in that: When the data set is a custom data set, searching the state table for the allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for the arrival state of the current state with respect to the requested action, and updating the current state of the data set to be processed to the arrival state, includes: When the current state is the start state, if the requested action is a save action, the current state of the to-be-processed data set is updated to a to-be-submitted state; if the requested action is a submit action, the current state of the to-be-processed data set is updated to a to-be-reviewed state; When the current state is a pending submission state, if the request action is a submission action, the current state of the pending data set is updated to a pending review state; When the current state is the pending review state, if the requested action is a passing action, the current state of the pending data set is updated to the passing state; if the requested action is a rejecting action, the current state of the pending data set is updated to the rejecting state; When the current state is a rejected state, if the request action is a submit action, the current state of the to-be-processed data set is updated to a pending review state; When the current state is a passed state, if the requested action is an automatic program execution action, the current state of the to-be-processed data set is updated to a generating state; When the current state is the generating state, if the requested action is a stop action, the current state of the to-be-processed data set is updated to the stopped state; if the requested action is a pause action, the current state of the to-be-processed data set is updated to the paused state; if the requested action is a data generation completion action, the current state of the to-be-processed data set is updated to the enabled state; When the current state is the enabled state, if the requested action is a disabled action, the current state of the to-be-processed data set is updated to the disabled state; if the requested action is a service expired action, the current state of the to-be-processed data set is updated to the expired state; When the current state is a disabled state, if the requested action is an enabled action, updating the current state of the to-be-processed data set to an enabled state; When the current state is an expired state, if the requested action is a renewal action, the current state of the to-be-processed data set is updated to an enabled state.
6. The data set processing method according to claim 5, characterized in that: The step of searching the state table for an allowed action corresponding to the current state, and if the requested action is consistent with one of the allowed actions, searching the state table for an arrival state of the current state with respect to the requested action, and updating the current state of the to-be-processed data set to the arrival state, further includes: When the current state is enabled or expired, if the requested action is to publish as a standard dataset action, the current state of the dataset to be processed is updated to a to-be-online state, and the type of the dataset to be processed is updated to a standard dataset.
7. The data set processing method according to any one of claims 1 to 6, characterized in that: Also includes: When the requested action is inconsistent with any of the allowed actions, an alarm is issued.
8. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to perform the data set processing method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium stores computer instructions, and when a computer executes the computer instructions, it is used to execute all steps of the data set processing method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the data set processing method as described in any one of claims 1 to 7 is implemented.