A control method, device, electronic device and storage medium for a visualization task
By responding to the user's task progress adjustment operation in the human-computer interaction interface, stopping and recreating the task instance, the problem of inflexible task progress control in the existing technology is solved, and the flexibility of task execution and the improvement of user experience are achieved.
Patent Information
- Application Number
- CN202411282710.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-09-13
AI Technical Summary
Existing visual task control methods lack fine-grained control over task progress. Users need to stop the task and restart it to adjust the execution progress, which is cumbersome and time-consuming.
By obtaining the target visualization tasks of multiple task units, creating a first task instance and displaying it in a preset human-computer interaction interface, responding to the user's task execution progress adjustment operation, stopping the first task instance and creating a second task instance, and starting to execute the task from the target task unit, flexible control of the task progress is achieved.
It improves the flexibility of task execution, saves time and enhances the user's operating experience.
Smart Images

Figure CN119248400B_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 today's information-based environment, with the increasing complexity of data processing and task management requirements, many application systems need to handle complex tasks consisting of multiple subtasks. To better monitor and control these tasks, a visualization method is often required that allows 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, lacking fine-grained control over task progress.
[0003] Especially in application scenarios such as large-screen presentations on big data platforms, it is often necessary to demonstrate the data analysis and presentation process. Such demonstrations 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 task execution progress according to specific circumstances. For example, users may want to skip certain task units that are not of interest or quickly review the content of certain tasks that have already been executed. However, with existing technologies, users can only achieve this 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 to be 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] Constructing an ordered list set of task units corresponding to the target visualization task according to the execution order of the task units;
[0012] Determining, according to the execution time of each task unit, the execution process ratio corresponding to each task unit 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 embodiment, 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 to be adjusted specifically includes:
[0020] In response to a user dragging operation on the task progress bar, determining the dragging operation as an operation to adjust the task execution progress, and determining a termination position corresponding to the dragging 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 end 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 an indication position of the end 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 embodiment, after displaying the execution progress of each task unit in real time within the progress range corresponding to the task unit in the task progress bar, the method further includes:
[0027] Determining the task unit currently being executed according to the execution process;
[0028] The task attribute information corresponding to the task unit is displayed on the preset human-computer interaction interface.
[0029] In an optional embodiment, 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 to be adjusted, the method further includes:
[0030] Determining 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 to acquire a target visualization task including multiple task units;
[0034] a first task execution module, configured 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 to be adjusted;
[0036] The second task execution module is configured to 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.
[0037] An embodiment of the present disclosure further provides an electronic device, comprising: 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.
[0038] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program executes the control method of the above-mentioned visualization task, or the steps of any possible implementation of the control method of the above-mentioned visualization task.
[0039] The embodiments of the present disclosure further 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. The method comprises the following steps: obtaining a target visualization task comprising 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; responding to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, determining the target task unit to which the progress adjustment operation is adjusted; stopping the first task instance and creating a second task instance, executing the target visualization task starting from the target task unit according to the execution order. Flexible control of task progress can be achieved, which not only improves the flexibility of task execution, but also greatly saves time and enhances 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 given below and described in detail with reference to the accompanying 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 briefly introduces the drawings required for use in the embodiments. The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used 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 those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without inventive effort.
[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 of 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 solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions 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, not all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings herein 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 disclosure for which protection is sought, but merely represents 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 are within 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, it does not need to be further defined or explained in subsequent drawings.
[0049] The term "and / or" herein simply describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, and the existence of B alone. In addition, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.
[0050] Research has found that in today's information-based environment, with the increasing complexity of data processing and task management requirements, many application systems need to handle complex tasks consisting of multiple subtasks. To better monitor and control these tasks, a visualization method is often required, allowing users to intuitively observe the progress of task execution and intervene or adjust it as needed. However, existing visualization task control methods are mostly limited to simple operations such as starting, pausing, stopping, or restarting a task, lacking fine-grained control over task progress. In particular, in application scenarios such as large-screen presentations on big data platforms, automated demonstrations of data analysis and presentation processes are often required. Such demonstrations often involve long task execution times, and the order of task execution may be relatively fixed. However, due to the diversity of user needs, it is often necessary to adjust task execution progress based on specific circumstances. For example, users may want to skip uninteresting task units or quickly review already executed tasks. However, with existing technologies, users can only achieve this by stopping and restarting the task, 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. The method comprises the following steps: obtaining a target visualization task comprising 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; responding to a task execution progress adjustment operation implemented by a user in the preset human-computer interaction interface, determining the target task unit to which the progress adjustment operation is adjusted; stopping the first task instance and creating a second task instance, executing the target visualization task starting from the target task unit according to the execution order. Flexible control of task progress can be achieved, which not only improves the flexibility of task execution, but also greatly saves time and enhances the user's operating experience.
[0052] To facilitate understanding of this embodiment, a visualization task control method disclosed in an embodiment of the present disclosure is first described in detail. The execution subject of the visualization task control method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities. The computer device includes, for example, a terminal device or a server or other processing device. The terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, etc. In some possible implementations, the visualization task control method can be implemented by a processor calling computer-readable instructions 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, wherein the method includes 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. This task is designed to help users intuitively understand and track task progress and status. This makes complex data and processes easier to understand and manipulate.
[0056] For example, in an automated large-screen presentation on a big data platform, the target visualization task could be defined as demonstrating the functionality of different modules during the presentation, including automatic content presentation and page jumps. This task not only needs to encompass all required content but also ensure that the order in which tasks are executed and the presentation results meet expectations.
[0057] Here, the task unit is the basic component of 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 requirements of the entire task.
[0058] For example, during an automated large-screen presentation, a task unit can be a specific page section that needs to be displayed and presented. For example, one task unit might demonstrate the generation process of a chart, while another might automatically open a pop-up window and explain its contents. This division makes the entire visualization task more modular, refined, and easier to control and manage.
[0059] After identifying and dividing the task units, the execution order of these task units needs to be determined. Each task unit is integrated according to the predetermined execution order to form a complete visualization task sequence. This process includes the arrangement of task units, time allocation, and the determination of logical relationships to ensure that the resulting visualization task can be executed smoothly as planned.
[0060] As a possible implementation, after the task units are organized and arranged, the overall goal of the target visualization task can be clarified. This includes ensuring that all key content is covered, that the presentation meets expectations, and that the task can be completed within the specified timeframe. Based on the task objectives, specific parameters can also be configured, such as the task execution time, the conditions for switching 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 practice, when the system begins executing a target visualization task, it first creates a task instance, which manages the task's execution. A task instance represents a specific execution process for the target visualization task. When a visualization task begins, the system generates a task instance representing the currently running task. This instance is dynamic and continuously updates its status as the task progresses.
[0063] Here, when a task instance is created, the system initializes 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 also configures a monitoring mechanism to listen for externally triggered task change signals.
[0064] After a task instance is created, the system executes each task unit one by one in a predetermined order. Each task unit corresponds to a specific operation or display content. During execution, the system gradually loads and displays the content contained in the task unit, such as displaying a chart, playing a video clip, or opening a pop-up window.
[0065] For example, in an automated demonstration of a large-screen page on a big data platform, a task instance might first display an overview page, then sequentially display the contents of each module, and finally display the results of the data analysis. The display order and content of each module are executed according to the preset order of the task unit.
[0066] Furthermore, during execution, the task instance displays the results of each task unit in real time on a pre-set human-computer interaction interface (HUI). This HUI is a graphical display platform that allows users to intuitively see the progress and results of the task. Display content includes charts, data, text descriptions, animation effects, and more.
[0067] As a possible implementation, 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 task unit, the execution process ratio corresponding to each task unit in the target visualization task.
[0070] S1023: 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.
[0071] S1024. Execute each of the task units according to the ordered list set of the task units, and display 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 practice, before executing a visualization task, the execution order of each task unit must be determined. This order can be determined by the task's logic or presentation requirements. For example, in a big data platform presentation, you might first display an overview of the data, followed by the detailed content of each module. Based on the determined execution order, the system constructs an ordered list of all task units. This list serves as the skeleton of the entire task, defining the execution order and timing of each task unit. The position of each task unit in the list determines when it will be executed.
[0073] For example, assuming 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 presentation process.
[0074] Here, based on the execution time of each task unit, the system will calculate the execution process ratio of each task unit in the entire visualization task. 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, then task unit 1 takes 5 seconds to execute, and the corresponding progress ratio is 5 / 30 = 16.7%, task unit 2 takes 10 seconds to execute, and the corresponding progress ratio is 10 / 30 = 33.3%, and so on. The execution progress ratio determines the range occupied by each task unit in the progress bar.
[0076] Furthermore, to allow users to monitor task progress in real time, the system includes a task progress bar within the pre-set human-computer interaction interface to visually display the overall progress of task execution. The progress bar is divided into multiple progress ranges based on the execution percentage of each task unit. Each progress range corresponds to a task unit, and the size of the progress range reflects the proportion of execution time for that task unit within 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 sequentially based on the previously constructed ordered list. As a task unit is executed, the system initiates the corresponding action or displays content. Execution is continuous and real-time, with seamless switching between task units. As task units execute, the system displays the progress of each unit in real time in a progress bar. As the task progresses, the corresponding portion of the progress bar gradually fills or moves, indicating the progress of the current task unit.
[0079] For example, if Task Unit 1 is executing, the system will display the progress status of the progress in the first 16.7% of the range. When Task Unit 1 is completed and Task Unit 2 begins to execute, the progress bar will begin to fill the next 33.3% range 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: Divide the progress bar into a plurality of progress ranges according to the execution process ratio and the execution order corresponding to each task unit, each progress range corresponding to one task unit.
[0084] In practice, the length of the task progress bar is determined based on the width of the preset human-computer interaction interface and a preset ratio. This ratio can be a fixed value or dynamically adjusted based on the interface design requirements. This ratio determines the actual display length of the progress bar in the interface, ensuring that the progress bar visually fits the overall design layout.
[0085] For example, assuming the width of the human-computer interaction interface is 1200 pixels and the design ratio is 80%, 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, leaving the remaining space for other interface elements (such as buttons, text instructions, etc.).
[0086] Once the length of the progress bar is determined, it can be placed at the bottom of the pre-set human-computer interaction interface to ensure that users can always see the progress of the progress bar during task execution. The progress bar itself can be a horizontal bar graphic with visual elements such as a background color and border to ensure that users can clearly see its changes. As the task is executed, the fill state of the progress bar will dynamically change as the task progresses, intuitively displaying the current task execution progress.
[0087] After the progress bar is set, it is divided into multiple progress ranges in order according to the execution process ratio of each task unit. The length of each progress range corresponds to the execution time ratio of a task unit.
[0088] For example, suppose the total task consists of three task units, with their execution progress ratios being 20%, 30%, and 50%, respectively. Then, the progress bar will be divided into three sections, occupying 20%, 30%, and 50% of the progress bar's length, 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 filling the second 288-pixel area, indicating that Task Unit 2 is executing. 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 the 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 to be adjusted.
[0094] In a specific implementation, in response to the user's dragging operation on the 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 corresponding to the progress range 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 it. The system will monitor this action and record the starting and ending positions of the drag.
[0096] For example, in a large 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 and dragging the progress bar to the right.
[0097] When the user completes a drag operation and releases the mouse or finger, the system determines the end point of the drag operation. This location corresponds to the new task progress point to which the user wishes to adjust. For example, if the user drags the progress bar to the middle, it means that the user wishes to skip the first half of the task and proceed directly to the second half. The system records the location where the user released the mouse or finger.
[0098] For example, assuming the progress bar is 960 pixels long and the user's dragging operation ends at 400 pixels on the progress bar, the system will record this 400-pixel position as the end position in the progress bar.
[0099] Furthermore, the horizontal coordinate of the end position in the interface coordinate system of the preset human-computer interaction interface is determined, that is, the specific position of the user's drag operation on the horizontal axis of the interface. The indicated position of the user's drag operation in the progress bar is calculated based on the total length of the progress bar and a preset ratio. The indicated position represents the relative position of the user's drag operation on the entire progress bar.
[0100] For example, 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 determines the progress range for the end point. The progress range corresponds to the execution ratio of the task unit, and the system will use the progress range to determine the task unit the user currently wants to jump to. After determining the progress range, the system marks 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 begin to execute the corresponding operations or display content for this task unit.
[0102] For example, assume that Task Unit 1 corresponds to a progress range of 0% to 20%, Task Unit 2 corresponds to 20% to 50%, and Task Unit 3 corresponds to 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 to which the user wishes to adjust.
[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 practice, during the execution of a visual task, the task instance continuously monitors external signals, including user actions. When a user drags the task progress bar to adjust the task's progress, the current task instance detects this action. Once the drag action ends, the currently executing task instance automatically stops, releasing its associated resources.
[0106] Here, after stopping the first task instance, the system needs to restart the task execution according to the user's requirements. 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 performs necessary initialization based on 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 executes step-by-step, starting with the target task unit, according to the pre-set execution order. The system then processes and displays all subsequent task units in the order they were created until the entire visualization task is complete.
[0108] As a possible implementation method, when the second task instance completes the execution of all task units, the system will automatically exit the instance. The process includes stopping background processes, releasing occupied resources, updating execution status, etc. to ensure that the system can run efficiently.
[0109] The disclosed embodiments provide a method for controlling a visualization task. The method comprises the following steps: obtaining a target visualization task comprising 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; responding to a task execution progress adjustment operation performed by a user in the preset human-computer interaction interface, determining the target task unit to which the progress adjustment operation is to be adjusted; stopping the first task instance and creating a second task instance, executing the target visualization task starting from the target task unit according to the execution order. Flexible control of task progress can be achieved, which not only improves the flexibility of task execution, but also significantly saves time and enhances the user's operating experience.
[0110] Those skilled in the art will understand that in the above-mentioned method of the specific implementation method, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function 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 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 configured to acquire a target visualization task including a plurality of task units.
[0114] The first task execution module 320 is configured 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 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 to be adjusted.
[0116] The second task execution module 340 is configured to 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.
[0117] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0118] The present disclosure provides a control device for a visualization task. The device obtains a target visualization task comprising 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 performed 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 starting from the target task unit according to the execution order. Flexible control of task progress can be achieved, which not only improves the flexibility of task execution, but also greatly saves time and enhances the user's operating experience.
[0119] Corresponding 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; the memory 421 here is also called internal memory, which is used to temporarily store the operation data in the processor 41 and the data exchanged with the external memory 422 such as the hard disk. The processor 41 exchanges data with the external memory 422 through the memory 421. When the electronic device 400 is running, the processor 41 and the memory 42 communicate through the bus 43, so that the processor 41 executes Figure 1 and Figure 2 Steps of the control method for the visualization task.
[0121] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program executes the steps of the visualization task control method described in the above method embodiment. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0122] The embodiments of the present disclosure also provide 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 and will not be repeated here.
[0123] The computer program product may be implemented in hardware, software, or a combination thereof. In one embodiment, the computer program product is implemented as a computer storage medium. In another 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 brevity 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 separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[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 enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute 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 scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection 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 to be 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: Constructing an ordered list set of task units corresponding to the target visualization task according to the execution order of the task units; Determining, according to the execution time of each task unit, the execution process ratio corresponding to each task unit 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 to be 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 end 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 an indication position of the end 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 displaying the execution progress of each task unit in real time in the task progress bar within the progress range corresponding to the task unit, the method further includes: Determining the task unit currently being executed according to the execution process; 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 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 to be adjusted, the method further includes: Determining 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 to acquire a target visualization task including multiple task units; a first task execution module, configured 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 to be adjusted; The second task execution module is configured to 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.
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 for 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, which, when executed by a processor, executes the steps of the method for controlling a visualization task according to any one of claims 1 to 7.
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