Visual task control method and device, electronic equipment and storage medium
By responding to user adjustment operations in visual task control, stopping and restarting the task instance, and continuing to execute from the target task unit, the problem of cumbersome task progress adjustment in the existing technology is solved, and flexible control of task progress and improvement of operation experience is achieved. .
Patent Information
- Application Number
- CN202411282710.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-13
AI Technical Summary
The existing visual task control methods lack fine-grained control of task progress, and it is difficult for users to flexibly adjust task execution progress in scenarios such as large-screen display of big data platforms, resulting in cumbersome and time-consuming operations.
By obtaining the target visualization tasks of multiple task units, creating task instances and displaying them in the preset human-computer interaction interface, responding to the user's task execution progress adjustment operation, stopping the current task instance and creating a new task instance, and starting from the target task unit Tasks, realize flexible control of task progress.
Improves the flexibility of task execution, saves operation time, and enhances the user's operation experience.
Smart Images

Figure CN119248400A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of task processing technology, and in particular to a control method, device, electronic device and storage medium for a visualization task. Background Art
[0002] In the current information environment, with the increasing complexity of data processing and task management requirements, many application systems need to handle complex tasks containing multiple subtasks. In order to better monitor and control these tasks, a visual method is usually required to enable users to intuitively observe the progress of task execution and intervene or adjust it as needed. However, existing visual task control methods are mostly limited to simple operations, such as starting, pausing, stopping or restarting a task, and lack fine-grained control over task progress.
[0003] Especially in application scenarios such as large-screen presentations on big data platforms, it is usually necessary to demonstrate the data analysis and presentation process. Such demonstration processes often involve long-term task execution, and the order of task execution may be relatively fixed. However, due to the diversity of user needs, it is often necessary to adjust the execution progress of tasks according to specific circumstances. For example, users may want to skip certain task units that they are not interested in, or quickly review the content of certain tasks that have been executed. However, in the prior art, users can only achieve this requirement by stopping the task and restarting it, which is cumbersome and time-consuming. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a control method, device, electronic device and storage medium for a visualization task, which can realize flexible control of task progress, not only improving the flexibility of task execution, but also greatly saving time and enhancing the user's operating experience.
[0005] The present disclosure provides a method for controlling a visualization task, including:
[0006] Acquire a target visualization task including a plurality of task units;
[0007] Creating a first task instance, executing the target visualization task according to the execution order of the task units, and displaying the target visualization task in a preset human-computer interaction interface;
[0008] In response to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, determining a target task unit to which the progress adjustment operation is adjusted;
[0009] The first task instance is stopped and a second task instance is created, and the target visualization task is executed starting from the target task unit according to the execution order.
[0010] In an optional implementation, creating a first task instance, executing the target visualization task according to the execution order of the task units, and displaying the target visualization task in a preset human-computer interaction interface specifically includes:
[0011] According to the execution order of the task units, construct an ordered list set of task units corresponding to the target visualization task;
[0012] Determining, according to the execution time of each of the task units, the execution process ratio corresponding to each of the task units in the target visualization task;
[0013] Setting a task progress bar in the preset human-computer interaction interface, and dividing the progress range corresponding to each task unit according to the execution process ratio;
[0014] Each of the task units is executed according to the ordered list set of the task units, and the execution progress of each of the task units is displayed in real time in the progress range corresponding to the task unit in the task progress bar.
[0015] In an optional implementation, a task progress bar is set in the preset human-computer interaction interface, and the progress range corresponding to each task unit is divided according to the execution process ratio, specifically including:
[0016] Determining the length of the progress bar corresponding to the task progress bar according to the width of the preset human-computer interaction interface and the preset ratio;
[0017] Setting the task progress bar corresponding to the length of the progress bar at the bottom of the preset human-computer interaction interface;
[0018] According to the execution process ratio and the execution order corresponding to each task unit, the progress bar is divided into a plurality of progress ranges in sequence, and each progress range corresponds to one task unit.
[0019] In an optional implementation, in response to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, determining a target task unit to which the progress adjustment operation is adjusted specifically includes:
[0020] In response to a drag operation performed by a user on the task progress bar, determining the drag operation as an operation to adjust the task execution progress, and determining a termination position corresponding to the drag operation in the task progress bar;
[0021] The progress range in which the termination position is located and the task unit to which the progress range corresponds are determined, and the task unit is determined as the target task unit.
[0022] In an optional implementation manner, determining the progress range in which the termination position is located specifically includes:
[0023] Determine the horizontal axis coordinate of the end position in the interface coordinate system corresponding to the preset human-computer interaction interface;
[0024] Determining the indicating position of the termination position in the task progress bar according to the horizontal axis coordinate, the length of the progress bar and the preset ratio;
[0025] The progress range of the indicated position is determined.
[0026] In an optional implementation, after the execution progress of each of the task units is displayed in real time in the progress range corresponding to the task unit in the task progress bar, the method further includes:
[0027] According to the execution process, determining the task unit currently being executed;
[0028] The task attribute information corresponding to the task unit is displayed on the preset human-computer interaction interface.
[0029] In an optional implementation, in response to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, after determining a target task unit to which the progress adjustment operation is adjusted, the method further includes:
[0030] Determine the task attribute information corresponding to the target task unit;
[0031] The task attribute information is displayed on the preset human-computer interaction interface.
[0032] The present disclosure also provides a control device for a visualization task, including:
[0033] A task acquisition module, used for acquiring a target visualization task including a plurality of task units;
[0034] A first task execution module, used to create a first task instance, execute the target visualization task according to the execution order of the task units, and display the target visualization task in a preset human-computer interaction interface;
[0035] A progress adjustment response module, configured to respond to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface and determine a target task unit to which the progress adjustment operation is adjusted;
[0036] The second task execution module is used to stop the first task instance and create a second task instance, and execute the target visualization task from the target task unit according to the execution order.
[0037] An embodiment of the present disclosure also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the control method for the above-mentioned visualization task is executed, or steps in any possible implementation of the control method for the above-mentioned visualization task is executed.
[0038] The embodiments of the present disclosure further provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the control method for the visualization task described above or the steps in any possible implementation of the control method for the visualization task described above are executed.
[0039] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the control method of the above-mentioned visualization task, or the steps in any possible implementation of the control method of the above-mentioned visualization task.
[0040] The disclosed embodiments provide a control method, device, electronic device and storage medium for a visualization task, which obtains a target visualization task including a plurality of task units; creates a first task instance, executes the target visualization task according to the execution order of the task units, and displays the target visualization task in a preset human-computer interaction interface; responds to a task execution progress adjustment operation implemented by a user in the preset human-computer interaction interface, determines the target task unit to which the progress adjustment operation is adjusted; stops the first task instance and creates a second task instance, and executes the target visualization task from the target task unit according to the execution order. Flexible control of task progress can be achieved, which can not only improve the flexibility of task execution, but also greatly save time and enhance the user's operating experience.
[0041] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0043] Figure 1 A flowchart of a method for controlling a visualization task provided by an embodiment of the present disclosure is shown;
[0044] Figure 2 A flowchart showing another method for controlling a visualization task provided by an embodiment of the present disclosure is shown;
[0045] Figure 3 A schematic diagram showing a control device for a visualization task provided by an embodiment of the present disclosure is shown;
[0046] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0048] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0049] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0050] Research has found that in the current information environment, with the increasing complexity of data processing and task management requirements, many application systems need to handle complex tasks containing multiple subtasks. In order to better monitor and control these tasks, a visual method is usually required to enable users to intuitively observe the progress of task execution and intervene or adjust it as needed. However, the existing visual task control methods are mostly limited to simple operations, such as starting, pausing, stopping or restarting tasks, and lack fine-grained control over task progress. Especially in application scenarios such as large-screen display of big data platforms, it is usually necessary to automatically demonstrate the data analysis and display process. Such demonstration processes often involve long-term task execution, and the order of task execution may be relatively fixed. However, due to the diversity of user needs, it is often necessary to adjust the execution progress of tasks according to specific circumstances. For example, users may want to skip some uninteresting task units, or quickly review some task contents that have been executed. But in the prior art, users can only achieve this requirement by stopping the task and restarting it, which is cumbersome and time-consuming.
[0051] Based on the above research, the present disclosure provides a control method, device, electronic device and storage medium for visualization tasks, which obtains a target visualization task including multiple task units; creates a first task instance, executes the target visualization task according to the execution order of the task units, and displays the target visualization task in a preset human-computer interaction interface; responds to the task execution progress adjustment operation implemented by the user in the preset human-computer interaction interface, determines the target task unit to which the progress adjustment operation is adjusted; stops the first task instance and creates a second task instance, and executes the target visualization task from the target task unit according to the execution order. Flexible control of task progress can be achieved, which can not only improve the flexibility of task execution, but also greatly save time and enhance the user's operating experience.
[0052] To facilitate understanding of the present embodiment, a control method for a visualization task disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the control method for the visualization task provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the control method for the visualization task can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0053] See also Figure 1 FIG. 1 is a flowchart of a method for controlling a visualization task provided by an embodiment of the present disclosure, the method comprising steps S101 to S104, wherein:
[0054] S101: Acquire a target visualization task including multiple task units.
[0055] In practice, visualization refers to the process of displaying the status of task execution through graphics, charts, pages or other visual elements. The purpose of this task is to help users intuitively understand and track the progress and status of task execution. In this way, complex data and processes become easier to understand and operate.
[0056] For example, in the large-screen page automated demonstration of a big data platform, the target visualization task can be defined as showing the functions of different modules during the demonstration, including automatic content broadcasting, page jumps, etc. This task not only needs to cover all the content that needs to be displayed, but also needs to ensure that the order of task execution and the display effect are in line with expectations.
[0057] Here, the task unit is the basic component that constitutes the entire long-term visualization task and can be regarded as a specific step or operation in the execution process. Each task unit is independently defined and divided, and its size and complexity can vary according to the needs of the entire task.
[0058] For example, in the process of automated demonstration of a large-screen page, a task unit can be a certain page block that needs to be displayed and reported. For example, one task unit may be to display the generation process of a chart, and another task unit may be to automatically open a pop-up window and explain its content. This division makes the execution of the entire visualization task more modular, refined, and easy to control and manage.
[0059] Furthermore, after identifying and dividing the task units, it is necessary to determine the execution order of these task units. The various task units are integrated according to the predetermined execution order to form a complete visualization task sequence. This process includes the arrangement of task units, time allocation, determination of logical relationships, etc., to ensure that the visualization task generated in the end can be executed smoothly as planned.
[0060] As a possible implementation method, after the task units are organized and arranged, the overall goal of the target visualization task can also be clarified, including ensuring that all key content is covered, ensuring that the display effect meets expectations, and ensuring that the task can be completed within the specified time. According to the task objectives, some specific parameters can also be configured, such as the execution time of the task, the switching conditions between tasks, and the display duration of each task unit.
[0061] S102: Create a first task instance, execute the target visualization task according to the execution order of the task units, and display the target visualization task in a preset human-computer interaction interface.
[0062] In the specific implementation, when the system starts to execute the target visualization task, it first needs to create a task instance, which will manage the execution process of the task. The task instance is a specific embodiment of the execution process of the target visualization task. When a visualization task starts to execute, the system will generate a task instance, which represents the currently running task. This instance is dynamic and will continuously update its status as the task progresses.
[0063] Here, when the task instance is created, the system will initialize some necessary parameters, including the current task status (such as "not started"), the order of task units, the time point of task execution, etc. The instance will also configure a monitoring mechanism to monitor externally triggered task change signals.
[0064] After the task instance is created, the system will execute the task units one by one in the predetermined execution order. Each task unit corresponds to a specific operation or display content. During the execution process, the system will gradually load and display the content contained in the task unit, such as displaying a chart, playing a video clip, or opening a page pop-up window.
[0065] For example, in the automated demonstration of a large screen page on a big data platform, a task instance may first display an overview page, then display the contents of each module in turn, and finally display the results of data analysis. The display order and content of each module are executed according to the preset order of the task unit.
[0066] Furthermore, during the execution process, the task instance will display the execution results of the task unit in real time in a preset human-computer interaction interface, which is a graphical display platform through which users can intuitively see the execution progress and results of the task. The display content includes charts, data, text descriptions, animation effects, etc.
[0067] As a possible implementation manner, the process of the first task instance executing the target visualization task according to the execution order of the task units and displaying the target visualization task in the preset human-computer interaction interface can be referred to in Figure 2 FIG. 1 is a flowchart of another method for controlling a visualization task provided by an embodiment of the present disclosure, wherein the method includes steps S1021 to S104, wherein:
[0068] S1021. Construct an ordered list set of task units corresponding to the target visualization task according to the execution order of the task units.
[0069] S1022: Determine, according to the execution time of each of the task units, the execution process ratio corresponding to each of the task units in the target visualization task.
[0070] S1023: Setting a task progress bar in the preset human-computer interaction interface, and dividing a progress range corresponding to each of the task units according to the execution process ratio.
[0071] S1024, executing each of the task units according to the ordered list set of the task units, and displaying the execution progress of each of the task units in real time within the progress range corresponding to the task unit in the task progress bar.
[0072] In the specific implementation, before executing the visualization task, you first need to determine the execution order of each task unit. This order can be determined by the logic or display requirements of the task. For example, in the display of a big data platform, you may need to display an overview of the data first, and then display the detailed content of each module in turn. According to the determined execution order, the system will build an ordered list set containing all task units. This list set is the skeleton of the entire task, defining the execution order and execution time of each task unit. The position of each task unit in the list determines when it will be executed.
[0073] For example, assuming that there are five task units that need to be executed in sequence, the system arranges these units in order into a list: task unit 1, task unit 2, task unit 3, task unit 4, task unit 5, where each unit corresponds to a step in the display process.
[0074] Here, according to the execution time of each task unit, the system will calculate the execution process ratio of each task unit in the entire visualization task, and the execution process ratio is the percentage of the execution time of the task unit relative to the total execution time.
[0075] For example, if the total execution time is 30 seconds, task unit 1 needs to be executed for 5 seconds, and the corresponding process ratio is 5 / 30=16.7%, task unit 2 needs to be executed for 10 seconds, and the corresponding process ratio is 10 / 30=33.3%, and so on. The execution process ratio determines the range occupied by each task unit in the progress bar.
[0076] Furthermore, in order to allow users to monitor the progress of task execution in real time, the system will set a task progress bar in the preset human-computer interaction interface to intuitively display the overall progress of task execution. According to the execution process ratio of each task unit, the progress bar is divided into multiple progress ranges. Each progress range corresponds to a task unit, and the size of the progress range reflects the execution time ratio of the task unit in the entire task.
[0077] For example, in the aforementioned example, if the execution process ratio of task unit 1 is 16.7%, then it will occupy 16.7% of the length of the progress bar, and so on.
[0078] Here, each task unit is executed in order according to the ordered list set built previously. When a task unit is executed, the system will start the corresponding operation or display content. The execution process is continuous and real-time, switching seamlessly between task units. While the task unit is executing, the system will display the execution progress of each unit in real time in the progress bar. As the task is executed, the corresponding part of the progress bar will gradually fill or move, showing the progress of the current task unit.
[0079] For example, assuming that task unit 1 is being executed, the system will display the progress fill status in the first 16.7% of the progress bar. When task unit 1 is completed, task unit 2 begins to execute, and the progress bar will begin to fill the next 33.3% until task unit 2 is completed.
[0080] As another possible implementation, the process of setting the task progress bar can be implemented through the following steps 1 to 3:
[0081] Step 1: Determine the length of the progress bar corresponding to the task progress bar according to the preset width of the human-computer interaction interface and the preset ratio.
[0082] Step 2: Setting the task progress bar corresponding to the length of the progress bar at the bottom of the preset human-computer interaction interface.
[0083] Step 3: According to the execution process ratio and the execution order corresponding to each task unit, the progress bar is divided into a plurality of progress ranges in sequence, each progress range corresponding to one task unit.
[0084] In the specific implementation, the length of the task progress bar is determined based on the preset width of the human-computer interaction interface and the preset ratio. The preset ratio can be a fixed ratio value or dynamically adjusted according to the design requirements of the interface. This ratio determines the actual display length of the progress bar in the interface, ensuring that the progress bar visually conforms to the overall design layout.
[0085] For example, assuming that the preset width of the human-computer interaction interface is 1200 pixels and the preset ratio during design is 80%, then the length of the task progress bar will be 1200*0.8=960 pixels. This means that the progress bar will occupy 80% of the interface width, and the rest will be left for other interface elements (such as buttons, text descriptions, etc.).
[0086] Here, after determining the length of the progress bar, the task progress bar can be set at the bottom of the preset human-computer interaction interface to ensure that the user can always see the progress of the progress bar during the task execution. The progress bar itself can be a horizontal bar graphic with visual elements such as background color and border so that the user can clearly see its changes. When executing the task, the filling state of the progress bar will change dynamically as the task progresses, intuitively displaying the current task execution progress.
[0087] After the progress bar is set, the progress bar is divided into multiple progress ranges in order according to the execution process ratio of each task unit, and the length of each progress range corresponds to the execution time ratio of a task unit.
[0088] For example, suppose the total task includes three task units, and their execution process ratios are 20%, 30% and 50% respectively. Then, the progress bar will be divided into three parts, which occupy 20%, 30% and 50% of the length of the progress bar respectively. If the total length of the progress bar is 960 pixels, the progress range length corresponding to the first task unit is 960*0.2=192 pixels, the second task unit corresponds to 288 pixels, and the third corresponds to 480 pixels.
[0089] Here, as the task is executed, the progress bar will fill these divided progress ranges in turn. When a task unit is completed, the progress bar will automatically fill to the next progress range and continue to display the execution progress of the next task unit.
[0090] For example, if task unit 1 is completed, the first 192-pixel area in the progress bar will be filled, and then the system will automatically start to fill the second 288-pixel area, which means that task unit 2 is being executed. In this way, the user can intuitively understand the execution progress of the task and the status of the current task unit by observing the progress bar.
[0091] In this way, by setting and displaying the task progress bar in the preset human-computer interaction interface and reasonably dividing the progress range according to the execution process ratio of each task unit, it not only helps to improve the visualization of the task execution process, but also enables users to monitor the progress of the task in real time, enhancing the user experience and transparency of operations.
[0092] Optionally, after the execution process of each task unit is displayed in real time in the task progress bar, the currently executing task unit can be determined based on the execution process; and the task attribute information corresponding to the task unit can be displayed in a preset human-computer interaction interface.
[0093] S103: In response to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, determining a target task unit to which the progress adjustment operation is adjusted.
[0094] In a specific implementation, in response to a user's dragging operation on a task progress bar, the dragging operation is determined as a task execution progress adjustment operation, and the end position corresponding to the dragging operation in the task progress bar is determined; the progress range of the end position and the task unit to which the progress range corresponds are determined, and the task unit is determined as the target task unit.
[0095] Here, when the user drags the task progress bar, the system captures this interactive behavior. The dragging operation can be performed through a mouse or a gesture on the touch screen. The user clicks a certain position on the progress bar and drags. The system monitors this action and records the starting and ending positions of the drag.
[0096] For example, in a big data display screen, if a user wants to quickly skip the first few modules and directly view the content of subsequent modules, the user can directly adjust the display process to the target module by clicking the progress bar and dragging it to the right.
[0097] When the user completes the dragging operation and releases the mouse or finger, the system determines the end position of the dragging operation. This position corresponds to the new task progress point that the user wants to adjust to. For example, if the user drags the progress bar to the middle part, it means that the user wants to skip the first half of the task and directly view the second half. The system records the position where the user releases the mouse or finger.
[0098] For example, assuming that the length of the progress bar is 960 pixels, and the end position of the user's dragging operation is located at 400 pixels of the progress bar, the system will record this 400-pixel position as the end position in the progress bar.
[0099] Further, the horizontal axis coordinate of the end position in the interface coordinate system of the preset human-computer interaction interface, that is, the specific position of the user's dragging operation on the horizontal axis of the interface, is determined, and the indicated position of the user's dragging operation in the progress bar is calculated in combination with the total length of the progress bar and the preset ratio. The indicated position indicates the relative position of the user's dragging operation on the entire progress bar.
[0100] Exemplarily, assuming that the total length of the progress bar is 960 pixels and the dragging end position of the user is 400 pixels, the indication position is 400 / 960=0.4167 (ie, 41.67% of the progress bar).
[0101] Here, the system will determine the progress range of the end position. The progress range corresponds to the execution ratio of the task unit. The system will determine the task unit that the current user wants to jump to based on the progress range. After determining the progress range, the system will mark the task unit corresponding to the range as the target task unit. This task unit is the part that the user wants to adjust to, and the system will then start to execute the operation or display content corresponding to the task unit.
[0102] For example, assume that the progress range corresponding to task unit 1 is 0% to 20%, task unit 2 is 20% to 50%, and task unit 3 is 50% to 100%. The user's indicated position is 41.67%, which falls within the range of task unit 2. The system determines task unit 2 as the target task unit that the user wants to adjust to.
[0103] Optionally, after determining the target task unit, task attribute information corresponding to the target task unit may also be determined; and the task attribute information may be displayed on a preset human-computer interaction interface.
[0104] S104: Stop the first task instance and create a second task instance, and execute the target visualization task starting from the target task unit according to the execution order.
[0105] In the specific implementation, during the visual task execution process, the task instance will continue to listen to external signals, including user operations. When the user drags on the task progress bar to adjust the task execution progress, the current task instance will listen to this operation signal. Once the user's drag operation is detected to be over, the currently executing task instance will automatically stop and release the resources related to the task instance.
[0106] Here, after stopping the first task instance, the system needs to restart the task execution according to the user's needs. At this time, the system will create a new task instance, the responsibility of which is to continue executing the task from the new location specified by the user.
[0107] When creating the second task instance, the system will perform necessary initialization work according to the current execution environment. This includes loading new task unit data, configuring display parameters, and preparing resources required for background operation. The second task instance is executed step by step starting from the target task unit in the preset execution order. The system will process and display all subsequent task units in the order of the task units until the entire visualization task is completed.
[0108] As a possible implementation, when the second task instance completes the execution of all task units, the system will automatically exit the instance. This process includes stopping background processes, releasing occupied resources, updating execution status, etc. to ensure that the system can run efficiently.
[0109] The disclosed embodiment provides a control method for a visualization task, which obtains a target visualization task including a plurality of task units; creates a first task instance, executes the target visualization task according to the execution order of the task units, and displays the target visualization task in a preset human-computer interaction interface; responds to a task execution progress adjustment operation implemented by a user in the preset human-computer interaction interface, determines the target task unit to which the progress adjustment operation is adjusted; stops the first task instance and creates a second task instance, and executes the target visualization task from the target task unit according to the execution order. Flexible control of task progress can be achieved, which can not only improve the flexibility of task execution, but also greatly save time and enhance the user's operating experience.
[0110] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0111] Based on the same inventive concept, the embodiment of the present disclosure also provides a control device for a visualization task corresponding to the control method for a visualization task. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the control method for the visualization task in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0112] See also Figure 3 , Figure 3 A schematic diagram of a control device for a visualization task provided by an embodiment of the present disclosure. Figure 3 As shown in FIG. , the control device 300 for a visualization task provided by an embodiment of the present disclosure includes:
[0113] The task acquisition module 310 is used to acquire a target visualization task including a plurality of task units.
[0114] The first task execution module 320 is used to create a first task instance, execute the target visualization task according to the execution order of the task units, and display the target visualization task in a preset human-computer interaction interface.
[0115] The progress adjustment response module 330 is used to respond to the task execution progress adjustment operation performed by the user in the preset human-computer interaction interface and determine the target task unit to which the progress adjustment operation is adjusted.
[0116] The second task execution module 340 is used to stop the first task instance and create a second task instance, and execute the target visualization task from the target task unit according to the execution order.
[0117] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0118] The disclosed embodiment provides a control device for a visualization task, which obtains a target visualization task including a plurality of task units; creates a first task instance, executes the target visualization task according to the execution order of the task units, and displays the target visualization task in a preset human-computer interaction interface; responds to a task execution progress adjustment operation implemented by a user in the preset human-computer interaction interface, determines the target task unit to which the progress adjustment operation is adjusted; stops the first task instance and creates a second task instance, and executes the target visualization task from the target task unit according to the execution order. Flexible control of task progress can be achieved, which can not only improve the flexibility of task execution, but also greatly save time and enhance the user's operating experience.
[0119] Corresponds to Figure 1 and Figure 2 The present disclosure also provides an electronic device 400, such as Figure 4 FIG. 4 is a schematic diagram of the structure of an electronic device 400 provided in an embodiment of the present disclosure, including:
[0120] Processor 41, memory 42, and bus 43; memory 42 is used to store execution instructions, including memory 421 and external memory 422; memory 421 here is also called internal memory, which is used to temporarily store operation data in processor 41 and data exchanged with external memory 422 such as hard disk. Processor 41 exchanges data with external memory 422 through memory 421. When the electronic device 400 is running, the processor 41 communicates with the memory 42 through bus 43, so that the processor 41 executes Figure 1 and Figure 2 Steps of the control method for the visualization task in FIG.
[0121] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method of the visualization task described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0122] The present disclosure also provides a computer program product, which includes computer instructions. When the computer instructions are executed by a processor, the steps of the control method of the visualization task described in the above method embodiment can be executed. For details, please refer to the above method embodiment, which will not be repeated here.
[0123] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0124] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0125] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0126] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0127] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0128] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A control method for a visualization task, characterized in that: include: Acquire a target visualization task including a plurality of task units; Creating a first task instance, executing the target visualization task according to the execution order of the task units, and displaying the target visualization task in a preset human-computer interaction interface; In response to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, determining a target task unit to which the progress adjustment operation is adjusted; The first task instance is stopped and a second task instance is created, and the target visualization task is executed starting from the target task unit according to the execution order.
2. The method according to claim 1, characterized in that Creating a first task instance, executing the target visualization task according to the execution order of the task units, and displaying the target visualization task in a preset human-computer interaction interface, specifically includes: According to the execution order of the task units, construct an ordered list set of task units corresponding to the target visualization task; Determining, according to the execution time of each of the task units, the execution process ratio corresponding to each of the task units in the target visualization task; Setting a task progress bar in the preset human-computer interaction interface, and dividing the progress range corresponding to each task unit according to the execution process ratio; Each of the task units is executed according to the ordered list set of the task units, and the execution progress of each of the task units is displayed in real time in the progress range corresponding to the task unit in the task progress bar.
3. The method according to claim 2, characterized in that Setting a task progress bar in the preset human-computer interaction interface and dividing the progress range corresponding to each task unit according to the execution process ratio specifically includes: Determining the length of the progress bar corresponding to the task progress bar according to the width of the preset human-computer interaction interface and the preset ratio; Setting the task progress bar corresponding to the length of the progress bar at the bottom of the preset human-computer interaction interface; According to the execution process ratio and the execution order corresponding to each task unit, the progress bar is divided into a plurality of progress ranges in sequence, and each progress range corresponds to one task unit.
4. The method according to claim 3, characterized in that In response to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, determining a target task unit to which the progress adjustment operation is adjusted specifically includes: In response to a drag operation performed by a user on the task progress bar, determining the drag operation as an operation to adjust the task execution progress, and determining a termination position corresponding to the drag operation in the task progress bar; The progress range in which the termination position is located and the task unit to which the progress range corresponds are determined, and the task unit is determined as the target task unit.
5. The method according to claim 4, characterized in that Determining the progress range in which the termination position is located specifically includes: Determine the horizontal axis coordinate of the end position in the interface coordinate system corresponding to the preset human-computer interaction interface; Determining the indicating position of the termination position in the task progress bar according to the horizontal axis coordinate, the length of the progress bar and the preset ratio; The progress range of the indicated position is determined.
6. The method according to claim 2, characterized in that After the execution progress of each of the task units is displayed in real time in the progress range corresponding to the task unit in the task progress bar, the method further includes: According to the execution process, determining the task unit currently being executed; The task attribute information corresponding to the task unit is displayed on the preset human-computer interaction interface.
7. The method according to claim 1, characterized in that In response to the task execution progress adjustment operation performed by the user in the preset human-computer interaction interface, after determining the target task unit to which the progress adjustment operation is adjusted, the method further includes: Determine the task attribute information corresponding to the target task unit; The task attribute information is displayed on the preset human-computer interaction interface.
8. A control device for a visualization task, characterized in that: include: A task acquisition module, used for acquiring a target visualization task including a plurality of task units; A first task execution module, used to create a first task instance, execute the target visualization task according to the execution order of the task units, and display the target visualization task in a preset human-computer interaction interface; A progress adjustment response module, configured to respond to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface and determine a target task unit to which the progress adjustment operation is adjusted; The second task execution module is used to stop the first task instance and create a second task instance, and execute the target visualization task from the target task unit according to the execution order.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the control method of the visualization task as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method of the visualization task as claimed in any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Distributed task processing method and device, storage medium and computer equipment
CN111190753A
Process rollback method and device of automatic switching system
CN114461364A
Task creation and management method and system, storage medium and electronic equipment
CN115202840A
Progress display method, client and computer readable storage medium
CN115291990A
Multimedia file data processing method and device
CN116089750A
