Client task running method and device, equipment and medium
By transferring client tasks to the background for automatic processing, and using a headless browser and preset task processes, the problem of cumbersome user operations on the event delivery platform in the existing technology is solved, and work efficiency and automation are improved.
Patent Information
- Application Number
- CN202411125498.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing event delivery platform requires users to frequently and mechanically check and deliver events, resulting in a heavy workload and browser plug-ins monopolizing the device host, affecting user work efficiency.
Through the client task running method, tasks are transferred to the background for automatic processing, and headless browsers and preset task processes are used to reduce user operations, realize task automation, and allow users to perform other operations on the front end.
It reduces the user's operation volume, improves work efficiency, and realizes automated processing of tasks. It does not require the user to operate step by step, and does not affect the user's other work on the page.
Smart Images

Figure CN118656165A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer development technology, and in particular to a client task running method, device, equipment and medium. Background Art
[0002] At present, the event distribution platform usually requires checking the event label and department label to distribute the corresponding event to the relevant department. For example, users need to frequently go to the event distribution platform to distribute various events to several relevant departments at the lower level. Most of the work is mechanical and repetitive, such as checking, confirming, distributing, etc. Users need to click and select one by one, which is a large workload. In addition, the current event distribution platform performs tasks in the form of a browser plug-in. The browser plug-in will monopolize the device host when running and cannot do other work on the page, resulting in low user work efficiency. Summary of the invention
[0003] The purpose of the present invention is to provide a client task running method, device, equipment and medium, which can transfer the client task to the background for automatic processing, thereby reducing the workload and improving work efficiency.
[0004] According to a first aspect of the present invention, there is provided a client task running method, comprising the following steps: The client is started according to the received client trigger instruction.
[0005] The target task tag clicked and confirmed by the user on the client is obtained, and a preset task flow corresponding to the target task tag is determined.
[0006] Sending a start request to the background workflow execution platform so that the workflow execution platform executes the task according to the preset task flow.
[0007] When the process in the preset task process that requires human-computer interaction is run, an interaction request sent by the workflow running platform is received, and a human-computer interaction page is presented on the client.
[0008] The human-computer interaction data received from the client is transmitted to the background, so that the workflow running platform of the background continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed.
[0009] Furthermore, the workflow execution platform executes tasks according to the preset task flow, including the following steps: When running to the target task node, the workflow execution platform sends a start instruction and a task instruction to the first headless browser; the target task node refers to the node connected to the first headless browser in the preset task flow.
[0010] The first headless browser starts up upon receiving the startup instruction, and executes the corresponding task according to the task instruction to complete the corresponding task operation.
[0011] When the workflow execution platform receives the task operation completion mark, it returns to the target task node and starts the continued execution of subsequent tasks in the preset task flow.
[0012] Furthermore, when the process requiring human-computer interaction is run to the preset task process, an interaction request sent by the workflow running platform is received, and a human-computer interaction page is presented on the client, and the following steps are also included: When the process in the preset task process needs to obtain data information from several target data platforms, several first data platforms are determined from the several target data platforms; the first data platform refers to a platform that has pre-configured login information and data processing procedures and does not require human-computer interaction.
[0013] Each first data platform is opened according to the pre-configured login information of each first data platform, and the task is run according to the pre-configured data processing flow.
[0014] The data information obtained from each first data platform is aggregated and stored in the first headless browser library.
[0015] Furthermore, after the client presents the human-computer interaction page, the method further includes the following steps: When the human-computer interaction times out or fails, the human-computer interaction result is sent to the background, so that the background sends a prompt message to the client.
[0016] When receiving the prompt information, the client obtains a task execution continuing instruction or a task ending instruction clicked by the user.
[0017] When the background receives the instruction to continue executing the task, the interaction request is resent to the client to present the human-computer interaction page again on the client.
[0018] When the background receives the task end instruction, the operation of the preset task process in the workflow operation platform is closed.
[0019] Furthermore, the method further comprises the following steps: When each task node in the preset task flow is completed, the workflow execution platform sends the current operation result to the second headless browser library corresponding to the client through the first headless browser library; the second headless browser library refers to the database of the second headless browser pre-configured in the client.
[0020] The second headless browser library presents the running result in the client according to the pre-configured presentation rule.
[0021] According to a second aspect of the present invention, there is provided a client task running device, the device comprising: The trigger module is used to start the client according to the received client trigger instruction.
[0022] The first determination module is used to obtain the target task tag that the user clicks and determines on the client, and determine the preset task flow corresponding to the target task tag.
[0023] The first sending module is used to send a start request to the background workflow running platform, so that the workflow running platform runs the task according to the preset task process.
[0024] The receiving module is used to receive the interaction request sent by the workflow running platform when the process requiring human-computer interaction in the preset task process is run, and present a human-computer interaction page on the client.
[0025] The transmission module is used to transmit the human-computer interaction data received from the client to the background, so that the background workflow running platform continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed.
[0026] Furthermore, the workflow execution platform executes tasks according to the preset task flow, including the following steps: When running to the target task node, the workflow execution platform sends a start instruction and a task instruction to the first headless browser; the target task node refers to the node connected to the first headless browser in the preset task flow.
[0027] The first headless browser starts up upon receiving the startup instruction, and executes the corresponding task according to the task instruction to complete the corresponding task operation.
[0028] When the workflow execution platform receives the task operation completion mark, it returns to the target task node and starts the continued execution of subsequent tasks in the preset task flow.
[0029] Furthermore, the receiving module includes: The second determination module is used to determine several first data platforms from several target data platforms when running to the process in the preset task process that needs to obtain data information from several target data platforms; the first data platform refers to a platform that has pre-configured login information and data processing procedures and does not require human-computer interaction.
[0030] The data processing module is used to open each first data platform according to the pre-configured login information of each first data platform, and run tasks according to the pre-configured data processing flow.
[0031] The storage module is used to aggregate the data information obtained from each first data platform and store it in the first headless browser library.
[0032] Furthermore, the device further includes a processing module, which is executed after the client presents the human-computer interaction page, and includes: The second sending module is used to send the human-computer interaction result to the background when the human-computer interaction times out or fails, so that the background sends a prompt message to the client.
[0033] The instruction acquisition module is used for the client to obtain the task execution continuing instruction or task completion instruction clicked by the user when receiving the prompt information.
[0034] The third sending module is used to resend the interaction request to the client when the background receives an instruction to continue executing the task, so as to present the human-computer interaction page again on the client.
[0035] The closing module is used to close the operation of the preset task process in the workflow execution platform when the background receives a task end instruction.
[0036] Furthermore, the device also includes: The fourth sending module is used for sending the current running result of the workflow running platform to the second headless browser library corresponding to the client through the first headless browser library when each task node in the preset task flow is completed; the second headless browser library refers to the database of the second headless browser pre-configured in the client.
[0037] The rendering module is used for the second headless browser library to render the running result in the client according to the pre-configured rendering rules.
[0038] According to a third aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned client task execution method when executing the computer program.
[0039] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the client task running method described above is implemented.
[0040] Compared with the prior art, the present invention has at least the following beneficial effects: The present invention first starts the client according to the received client trigger instruction, and then determines the corresponding preset task process according to the target task label clicked by the user on the client. After determining the preset task process, a start request is sent to the workflow running platform in the background, so that the workflow running platform runs the task according to the preset task process, wherein the preset task process is a workflow pre-arranged in the workflow running platform to simulate the user operation steps, which can greatly reduce the user's operation, and transfer the task to the background for automatic processing, without affecting the user's page operation and other work. When running to the process requiring human-computer interaction in the preset task process, the interaction request sent by the workflow running platform is received, and a human-computer interaction page is presented on the client, and the human-computer interaction data received from the client is transmitted to the background, so that the workflow running platform in the background continues to run the task according to the preset task process after receiving the human-computer interaction data, until the task is completed. That is, the present invention can transfer the client's task to the background for automatic processing according to the preset task process, without the need for the user to operate step by step and without affecting the user to perform other operations on the front-end page, thereby reducing the workload and improving the work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flowchart of a client task execution method provided in Embodiment 1 of the present invention; Figure 2 A flowchart of the steps of executing a task on a workflow execution platform provided in the first embodiment of the present invention; Figure 3 A flowchart of step S400 provided in the first embodiment of the present invention; Figure 4 A flowchart of steps after step S400 provided in the first embodiment of the present invention; Figure 5 A flowchart of the steps of presenting the operation results on the client provided in the first embodiment of the present invention; Figure 6 A schematic diagram of a client task running device provided in Embodiment 2 of the present invention; Figure 7 A schematic diagram of a receiving module 400 provided in Embodiment 2 of the present invention; Figure 8A schematic diagram of a processing module provided in Embodiment 2 of the present invention; Fig. 9 A connection diagram of the fourth sending module 600 and the presenting module 700 provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0044] Embodiment 1 like Figure 1 As shown, this embodiment provides a client task running method, including the following steps: S100, starting the client according to the received client trigger instruction.
[0045] Specifically, the client trigger instruction is generated when a user selects and clicks the client; for example, a trigger instruction is generated when an application on a terminal page is double-clicked.
[0046] S200, obtaining a target task tag clicked and confirmed by a user on the client, and determining a preset task flow corresponding to the target task tag.
[0047] Specifically, the target task tag refers to a preset task tag that the user clicks to confirm among several preset task tags in the client; the preset task tag is a task tag that is pre-set according to the task type.
[0048] Preferably, the target task label corresponds one-to-one to the preset task process.
[0049] As described above, by obtaining the target task tag, the preset task process to be executed can be determined, that is, the tag corresponding to the preset task process is obtained, so that the workflow execution platform automatically performs the task processing process according to the preset task process corresponding to the tag.
[0050] S300, sending a start request to a background workflow execution platform, so that the workflow execution platform executes the task according to the preset task flow.
[0051] Preferably, the workflow execution platform refers to a platform that stores a number of pre-arranged workflows and can automatically execute tasks according to the workflows; it can be understood that the workflow execution platform is an open source workflow automation tool, such as the n8n tool.
[0052] Specifically, the preset task process refers to a process pre-arranged in the workflow execution platform according to a number of business scenarios and user operation processes.
[0053] Preferably, Figure 2 As shown, the workflow execution platform executes tasks according to the preset task flow, including the following steps: S301, when running to the target task node, the workflow execution platform sends a start instruction and a task instruction to the first headless browser; the target task node refers to the node connected to the first headless browser in the preset task process; it can be understood that: when arranging the task process in the workflow execution platform, several nodes linked to the first headless browser can be set according to the task requirements.
[0054] Specifically, the startup instruction refers to an instruction to start the first headless browser.
[0055] Specifically, the task instruction refers to an instruction that instructs the first headless browser to execute corresponding task content, such as data query, data screening, and data acquisition.
[0056] Specifically, the first headless browser refers to a pre-configured headless browser that is connected to the workflow execution platform; it can be understood that: the first headless browser is an open source browser added to the workflow execution platform, such as a browserless headless browser.
[0057] S302, the first headless browser starts up upon receiving the startup instruction, and executes the corresponding task according to the task instruction to complete the corresponding task operation.
[0058] S303, when the workflow execution platform receives the task operation completion mark, it returns to the target task node and starts the continued execution of subsequent tasks in the preset task process; it can be understood that: after completing the task operation, the first headless browser feeds back the task operation completion mark to the receiving end of the workflow execution platform and continues the subsequent process operation.
[0059] As described above, the workflow execution platform automatically processes tasks according to the preset task flow. When it is necessary to query and obtain data information, the first headless browser connected to it is automatically opened to obtain data. Therefore, the user's step-by-step operations on the front end are transferred to the automated operations in the background, which effectively reduces the workload. The client only needs to display the application logo image without displaying the task running page, so that the user can handle other work on the front end, thereby improving work efficiency.
[0060] S400, when running to the process that requires human-computer interaction in the preset task process, receiving the interaction request sent by the workflow execution platform, and presenting the human-computer interaction page on the client; it can be understood that: the client presents the human-computer interaction pop-up window on the client's page through the pre-configured second headless browser library.
[0061] Specifically, the process requiring human-computer interaction refers to a process that requires user participation; for example, a process that requires user authentication information when querying data in the background or logging into a data platform.
[0062] Preferably, Figure 3 As shown, step S400 includes the following steps: S401, when running to the process in the preset task process that needs to obtain data information from several target data platforms, determine several first data platforms from the several target data platforms; the first data platform refers to a platform that has pre-configured login information and data processing flow and does not require human-computer interaction; it can be understood that: there may be one or more first data platforms depending on the actual situation.
[0063] S402, start each first data platform according to the pre-configured login information of each first data platform, and run the task according to the pre-configured data processing flow.
[0064] S403: Aggregate the data information obtained from each first data platform and store it in the first headless browser library.
[0065] As mentioned above, when a node needs to query information from multiple data platforms, it will automatically log in to the data platform that has recorded the login information and simulate user operations to obtain data according to the pre-configured acquisition process. Finally, the data information obtained from multiple data platforms and the data obtained from the data platform that requires human-computer interaction at the node will be aggregated and stored. This process can automatically process and obtain data, reduce switching and login operations on different platforms, have a high degree of automation and reduce user workload.
[0066] Preferably, Figure 4 As shown, after the client presents the human-computer interaction page, the following steps are also included: S001, when the human-computer interaction times out or fails, the human-computer interaction result is sent to the background, so that the background sends a prompt message to the client; for example, after the client presents the human-computer interaction page, if the user inputs information for more than a preset time, the human-computer interaction times out; if the user inputs incorrect authentication information, such as an inconsistency between the account and password, the human-computer interaction fails.
[0067] Specifically, the prompt information refers to information used to prompt the user that the human-computer interaction has timed out or failed and to pre-acquire the user's subsequent operations.
[0068] S002, when receiving the prompt information, the client obtains a task execution continuing instruction or a task ending instruction clicked by the user.
[0069] S003, when the background receives the instruction to continue executing the task, it resends the interaction request to the client to present the human-computer interaction page again on the client.
[0070] S004, when the background receives a task end instruction, the operation of the preset task process in the workflow operation platform is closed.
[0071] As described above, the subsequent steps are determined based on the results of human-computer interaction. When the human-computer interaction is successful, the success result is transmitted to the background, and the subsequent automated processing business process is executed to reduce the user's workload. When the human-computer interaction times out or fails, the user is asked again to confirm whether to continue the task to ensure the normal progress of subsequent tasks.
[0072] S500, transmits the human-computer interaction data received from the client to the background, so that the background workflow execution platform continues to execute the task according to the preset task process after receiving the human-computer interaction data until the task is completed; for example, the human-computer interaction data can be the authentication information input by the user, and the data information obtained by logging into the corresponding data platform after the human-computer interaction data is subsequently aggregated with the data information obtained from several first data platforms in the same process and stored in the first headless browser library.
[0073] As mentioned above, after receiving the human-computer interaction data, the business process is automatically processed by simulating the user's operation according to the data processing process pre-arranged in the workflow operation platform, so that the data can be automatically queried, obtained and stored, etc., without manual operation, thus reducing the user's workload.
[0074] Preferably, Figure 5 As shown, the method further comprises the following steps: S600, when each task node in the preset task process is completed, the workflow execution platform sends the current operation result to the second headless browser library corresponding to the client through the first headless browser library; the second headless browser library refers to the database of the second headless browser pre-configured in the client, for example: the headless browser configured in the puppeteer library.
[0075] Specifically, the current running result refers to the corresponding running result when the current task node ends running; it can be understood that: when each task node ends running, the data information summarized from the corresponding node will be sent to the second headless browser library in real time.
[0076] S700: The second headless browser library presents the running result in the client according to the pre-configured presentation rule.
[0077] As described above, the specific page operation is not displayed on the client, and only the operation results are presented in the client. When the user opens the client, the specific operation results can be seen, such as the number of events issued, the issuing departments and personnel, so that the user can know the operation results without affecting other operations of the user on the device, thereby improving the user's work efficiency.
[0078] This embodiment first opens the client according to the received client trigger instruction, and then determines the corresponding preset task process according to the target task tag clicked by the user on the client. After determining the preset task process, a start request is sent to the background workflow running platform, so that the workflow running platform runs the task according to the preset task process, wherein the preset task process is a workflow pre-arranged in the workflow running platform to simulate the user operation steps, which can greatly reduce the user's operation and transfer the task to the background for automatic processing, without affecting the user's page operation and other work. When running to the process requiring human-computer interaction in the preset task process, the interaction request sent by the workflow running platform is received, and the human-computer interaction page is presented on the client, and the human-computer interaction data received from the client is transmitted to the background, so that the background workflow running platform continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed. That is, the present invention can transfer the client's task to the background for automatic processing according to the preset task process, without the need for the user to operate step by step and without affecting the user to perform other operations on the front-end page, thereby reducing the workload and improving work efficiency.
[0079] Embodiment 2 like Figure 6 As shown, this embodiment 2 provides a client task running device, including: The trigger module 100 is used to start the client according to the received client trigger instruction.
[0080] Specifically, the client trigger instruction is generated when a user selects and clicks the client; for example, a trigger instruction is generated when an application on a terminal page is double-clicked.
[0081] The first determination module 200 is used to obtain the target task tag that the user clicks and determines on the client, and determine the preset task flow corresponding to the target task tag.
[0082] Specifically, the target task tag refers to a preset task tag that the user clicks to confirm among several preset task tags in the client; the preset task tag is a task tag that is pre-set according to the task type.
[0083] Preferably, the target task label corresponds one-to-one to the preset task process.
[0084] As described above, by obtaining the target task tag, the preset task process to be executed can be determined, that is, the tag corresponding to the preset task process is obtained, so that the workflow execution platform automatically performs the task processing process according to the preset task process corresponding to the tag.
[0085] The first sending module 300 is used to send a start request to the background workflow running platform, so that the workflow running platform runs the task according to the preset task process.
[0086] Preferably, the workflow execution platform refers to a platform that stores a number of pre-arranged workflows and can automatically execute tasks according to the workflows; it can be understood that the workflow execution platform is an open source workflow automation tool, such as the n8n tool.
[0087] Specifically, the preset task process refers to a process pre-arranged in the workflow execution platform according to a number of business scenarios and user operation processes.
[0088] Preferably, the workflow execution platform executes tasks according to the preset task flow, including the following steps: When running to the target task node, the workflow execution platform sends a start instruction and a task instruction to the first headless browser; the target task node refers to the node connected to the first headless browser in the preset task flow; it can be understood that: when arranging the task flow in the workflow execution platform, several nodes linked to the first headless browser can be set according to the task requirements.
[0089] Specifically, the startup instruction refers to an instruction to start the first headless browser.
[0090] Specifically, the task instruction refers to an instruction that instructs the first headless browser to execute corresponding task content, such as data query, data screening, and data acquisition.
[0091] Specifically, the first headless browser refers to a pre-configured headless browser that is connected to the workflow execution platform; it can be understood that: the first headless browser is an open source browser added to the workflow execution platform, such as a browserless headless browser.
[0092] The first headless browser starts up upon receiving the startup instruction, and executes the corresponding task according to the task instruction to complete the corresponding task operation.
[0093] When the workflow execution platform receives the task operation completion identifier, it returns to the target task node and starts the continued execution of subsequent tasks in the preset task process; it can be understood that: after completing the task operation, the first headless browser feeds back the task operation completion identifier to the receiving end of the workflow execution platform and continues the subsequent process operations.
[0094] As described above, the workflow execution platform automatically processes tasks according to the preset task flow. When it is necessary to query and obtain data information, the first headless browser connected to it is automatically opened to obtain data. Therefore, the user's step-by-step operations on the front end are transferred to the automated operations in the background, which effectively reduces the workload. The client only needs to display the application logo image without displaying the task running page, so that the user can handle other work on the front end, thereby improving work efficiency.
[0095] The receiving module 400 is used to receive the interaction request sent by the workflow execution platform when running to the process requiring human-computer interaction in the preset task process, and present the human-computer interaction page on the client; it can be understood that: the client presents the human-computer interaction pop-up window on the client's page through the pre-configured second headless browser library.
[0096] Specifically, the process requiring human-computer interaction refers to a process that requires user participation; for example, a process that requires user authentication information when querying data in the background or logging into a data platform.
[0097] Preferably, Figure 7 As shown, the receiving module 400 includes: The second determination module 401 is used to determine several first data platforms from several target data platforms when running to the process in the preset task process that needs to obtain data information from several target data platforms; the first data platform refers to a platform that has pre-configured login information and data processing flow and does not require human-computer interaction; it can be understood that: there may be one or more first data platforms depending on the actual situation.
[0098] The data processing module 402 is used to start each first data platform according to the pre-configured login information of each first data platform, and run tasks according to the pre-configured data processing flow.
[0099] The storage module 403 is used to aggregate the data information obtained from each first data platform and store it in the first headless browser library.
[0100] As mentioned above, when a node needs to query information from multiple data platforms, it will automatically log in to the data platform that has recorded the login information and simulate user operations to obtain data according to the pre-configured acquisition process. Finally, the data information obtained from multiple data platforms and the data obtained from the data platform that requires human-computer interaction at the node will be aggregated and stored. This process can automatically process and obtain data, reduce switching and login operations on different platforms, have a high degree of automation and reduce user workload.
[0101] Preferably, Figure 8 As shown, the device further includes a processing module, which is executed after the client presents the human-computer interaction page, and the processing module includes: The second sending module 001 is used to send the human-computer interaction result to the background when the human-computer interaction times out or fails, so that the background sends a prompt message to the client; for example, after the client presents the human-computer interaction page, if the user inputs information for more than a preset time, it means the human-computer interaction has timed out; if the user inputs incorrect authentication information, such as an inconsistency between the account and password, it means the human-computer interaction has failed.
[0102] Specifically, the prompt information refers to information used to prompt the user that the human-computer interaction has timed out or failed and to pre-acquire the user's subsequent operations.
[0103] The instruction acquisition module 002 is used for the client to obtain the task execution continuing instruction or task ending instruction clicked by the user when receiving the prompt information.
[0104] The third sending module 003 is used to resend the interaction request to the client when the background receives an instruction to continue executing the task, so as to present the human-computer interaction page again on the client.
[0105] The closing module 004 is used to close the operation of the preset task process in the workflow execution platform when the background receives a task end instruction.
[0106] As described above, the subsequent steps are determined based on the results of human-computer interaction. When the human-computer interaction is successful, the success result is transmitted to the background, and the subsequent automated processing business process is executed to reduce the user's workload. When the human-computer interaction times out or fails, the user is asked again to confirm whether to continue the task to ensure the normal progress of subsequent tasks.
[0107] The transmission module 500 is used to transmit the human-computer interaction data received from the client to the background, so that the background workflow execution platform continues to execute the task according to the preset task process after receiving the human-computer interaction data until the task is completed; for example, the human-computer interaction data can be the authentication information input by the user, and the data information obtained by logging into the corresponding data platform after the human-computer interaction data is subsequently aggregated with the data information obtained from several first data platforms in the same process and stored in the first headless browser library.
[0108] As mentioned above, after receiving the human-computer interaction data, the business process is automatically processed by simulating the user's operation according to the data processing process pre-arranged in the workflow operation platform, so that the data can be automatically queried, obtained and stored, etc., without manual operation, thus reducing the user's workload.
[0109] Preferably, Fig. 9 As shown, the device also includes: The fourth sending module 600 is used for sending the current running result of the workflow running platform to the second headless browser library corresponding to the client through the first headless browser library when each task node in the preset task process is completed; the second headless browser library refers to the database of the second headless browser pre-configured in the client, for example: the headless browser configured in the puppeteer library.
[0110] Specifically, the current running result refers to the corresponding running result when the current task node ends running; it can be understood that: when each task node ends running, the data information summarized from the corresponding node will be sent to the second headless browser library in real time.
[0111] The rendering module 700 is used for the second headless browser library to render the running result in the client according to the pre-configured rendering rule.
[0112] As described above, the specific page operation is not displayed on the client, and only the operation results are presented in the client. When the user opens the client, the specific operation results can be seen, such as the number of events issued, the issuing departments and personnel, so that the user can know the operation results without affecting other operations of the user on the device, thereby improving the user's work efficiency.
[0113] This embodiment first opens the client according to the received client trigger instruction, and then determines the corresponding preset task process according to the target task tag clicked by the user on the client. After determining the preset task process, a start request is sent to the background workflow running platform, so that the workflow running platform runs the task according to the preset task process, wherein the preset task process is a workflow pre-arranged in the workflow running platform to simulate the user operation steps, which can greatly reduce the user's operation and transfer the task to the background for automatic processing, without affecting the user's page operation and other work. When running to the process requiring human-computer interaction in the preset task process, the interaction request sent by the workflow running platform is received, and the human-computer interaction page is presented on the client, and the human-computer interaction data received from the client is transmitted to the background, so that the background workflow running platform continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed. That is, the present invention can transfer the client's task to the background for automatic processing according to the preset task process, without the need for the user to operate step by step and without affecting the user to perform other operations on the front-end page, thereby reducing the workload and improving work efficiency.
[0114] Embodiment 3 This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: The client is started according to the received client trigger instruction.
[0115] The target task tag clicked and confirmed by the user on the client is obtained, and a preset task flow corresponding to the target task tag is determined.
[0116] Sending a start request to the background workflow execution platform so that the workflow execution platform executes the task according to the preset task flow.
[0117] When the process in the preset task process that requires human-computer interaction is run, an interaction request sent by the workflow running platform is received, and a human-computer interaction page is presented on the client.
[0118] The human-computer interaction data received from the client is transmitted to the background, so that the workflow running platform of the background continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed.
[0119] Embodiment 4 This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: The client is started according to the received client trigger instruction.
[0120] The target task tag clicked and confirmed by the user on the client is obtained, and a preset task flow corresponding to the target task tag is determined.
[0121] Sending a start request to the background workflow execution platform so that the workflow execution platform executes the task according to the preset task flow.
[0122] When the process in the preset task process that requires human-computer interaction is run, an interaction request sent by the workflow running platform is received, and a human-computer interaction page is presented on the client.
[0123] The human-computer interaction data received from the client is transmitted to the background, so that the workflow running platform of the background continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed.
[0124] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0125] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0126] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A client task running method, characterized in that: The following steps are involved: Open the client according to the received client trigger instruction; Obtaining a target task tag that the user clicks and confirms on the client, and determining a preset task flow corresponding to the target task tag; Sending a start request to the workflow running platform in the background so that the workflow running platform runs the task according to the preset task process; When the process in the preset task process that requires human-computer interaction is run, an interaction request sent by the workflow running platform is received, and a human-computer interaction page is presented on the client; The human-computer interaction data received from the client is transmitted to the background, so that the workflow running platform of the background continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed.
2. The client task running method according to claim 1, characterized in that: The workflow execution platform executes tasks according to the preset task flow, including the following steps: When running to the target task node, the workflow running platform sends a start instruction and a task instruction to the first headless browser; the target task node refers to a node in the preset task flow that is connected to the first headless browser; The first headless browser starts up upon receiving the startup instruction, and executes the corresponding task according to the task instruction to complete the corresponding task operation; When the workflow execution platform receives the task operation completion mark, it returns to the target task node and starts the continued execution of subsequent tasks in the preset task flow.
3. The client task running method according to claim 2, characterized in that: When the process requiring human-computer interaction in the preset task process is executed, an interaction request sent by the workflow execution platform is received, and a human-computer interaction page is presented on the client, and the following steps are also included: When the process in the preset task process needs to obtain data information from several target data platforms, several first data platforms are determined from the several target data platforms; the first data platform refers to a platform that has been pre-configured with login information and data processing procedures and does not require human-computer interaction; Open each first data platform according to the login information pre-configured for each first data platform, and run the task according to the pre-configured data processing flow; The data information obtained from each first data platform is aggregated and stored in the first headless browser library.
4. The client task running method according to claim 1, characterized in that: After the client presents the human-computer interaction page, the following steps are also included: When the human-computer interaction times out or fails, the human-computer interaction result is sent to the background, so that the background sends a prompt message to the client; When the client receives the prompt information, it obtains a task execution continuing instruction or a task ending instruction clicked by the user; When the background receives the instruction to continue executing the task, the interaction request is resent to the client to present the human-computer interaction page again on the client; When the background receives the task end instruction, the operation of the preset task process in the workflow operation platform is closed.
5. The client task running method according to claim 3, characterized in that: The following steps are also included: When each task node in the preset task flow is finished running, the workflow running platform sends the current running result to the second headless browser library corresponding to the client through the first headless browser library; the second headless browser library refers to the database of the second headless browser pre-configured in the client; The second headless browser library presents the running result in the client according to the pre-configured presentation rule.
6. A client task running device, characterized in that: The device comprises: A trigger module, used to start the client according to the received client trigger instruction; A first determination module is used to obtain a target task tag that the user clicks and determines on the client, and determine a preset task flow corresponding to the target task tag; A first sending module is used to send a start request to the workflow running platform in the background, so that the workflow running platform runs the task according to the preset task process; A receiving module, used for receiving an interaction request sent by the workflow execution platform when the process requiring human-computer interaction in the preset task process is executed, and presenting a human-computer interaction page on the client; The transmission module is used to transmit the human-computer interaction data received from the client to the background, so that the background workflow running platform continues to run the task according to the preset task process after receiving the human-computer interaction data until the task is completed.
7. The client task running device according to claim 6, characterized in that: The workflow execution platform executes tasks according to the preset task flow, including the following steps: When running to the target task node, the workflow running platform sends a start instruction and a task instruction to the first headless browser; the target task node refers to a node in the preset task flow that is connected to the first headless browser; The first headless browser starts up upon receiving the startup instruction, and executes the corresponding task according to the task instruction to complete the corresponding task operation; When the workflow execution platform receives the task operation completion mark, it returns to the target task node and starts the continued execution of subsequent tasks in the preset task flow.
8. The client task running device according to claim 7, characterized in that: The receiving module comprises: A second determination module is used to determine a plurality of first data platforms from the plurality of target data platforms when the process in the preset task process needs to obtain data information from a plurality of target data platforms; the first data platform refers to a platform that has been pre-configured with login information and data processing flow and does not require human-computer interaction; A data processing module, used to open each first data platform according to the login information pre-configured by each first data platform, and run tasks according to the pre-configured data processing flow; The storage module is used to aggregate the data information obtained from each first data platform and store it in the first headless browser library.
9. The client task running device according to claim 6, characterized in that: It also includes a processing module, which runs after the client presents the human-computer interaction page, and includes: The second sending module is used to send the human-computer interaction result to the background when the human-computer interaction times out or fails, so that the background sends a prompt message to the client; An instruction acquisition module, used for the client to acquire the task execution continuing instruction or task completion instruction clicked by the user when receiving the prompt information; A third sending module is used to resend the interaction request to the client when the background receives the instruction to continue executing the task, so as to present the human-computer interaction page again on the client; The closing module is used to close the operation of the preset task process in the workflow execution platform when the background receives a task end instruction.
10. The client task running device according to claim 8, characterized in that: Also includes: A fourth sending module, configured to, when each task node in the preset task flow is finished running, the workflow running platform sends the current running result to the second headless browser library corresponding to the client through the first headless browser library; the second headless browser library refers to a database of the second headless browser pre-configured in the client; The rendering module is used for the second headless browser library to render the running result in the client according to the pre-configured rendering rules.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the client task running method according to any one of claims 1 to 5 is implemented.
12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the client task running method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Data transmission method and device, and computer-readable storage medium
CN109361757A
Workflow configuration method and device, terminal and storage medium
CN110264035A
Cloud application login method and device, cloud equipment, client and system
CN112104623A
Software automatic operation method, device and system and server equipment
CN113434221A
Automatic processing method and system of business process and electronic equipment
CN114637450A
