Task flow generation method and device, equipment and storage medium thereof
Through the task process generation method, task execution control classes and flow charts are generated based on requirements document analysis, solving the problem that existing tools cannot ensure that development proceeds according to the process, and achieving efficient and standardized development processes, especially in the financial business field, which significantly improves development. efficiency.
Patent Information
- Application Number
- CN202411040795.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-22
AI Technical Summary
The existing visual business flowchart tools cannot ensure that developers develop according to the business flowchart, and there are problems of development omissions and irregular development, especially in the financial business field, which is inefficient in development.
Through the task process generation method, the task execution control class, task method and service name are generated based on the initial requirements document analysis, first-order and second-order task flow charts are created, and the line color changes are combined for development assistance and verification, and the monitoring component comparison is used to create results Update the task flowchart.
It improves the standardized development efficiency of developers and reduces development omissions, especially in the financial business field, which greatly improves development efficiency and accuracy.
Smart Images

Figure CN119002912A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of R&D optimization technology, and is applied to task execution process design scenarios, and in particular to a task process generation method, device, equipment, and storage medium thereof. Background Art
[0002] At present, the industry's visual business process diagram tools, such as Visio, Draw IO, etc., are only used as business process diagram displays to help R&D personnel become familiar with the business process before carrying out development work. In fact, the above-mentioned industry's visual business process diagram tools are not linked to the results actually developed by R&D personnel, so that it is impossible to ensure whether R&D personnel develop according to the business process diagram. There is a risk of missing related functions, and thus software risks cannot be discovered in advance.
[0003] In addition, there is no guarantee that developers will conduct standardized development, especially in the financial business field with complex business logic. The use of the above-mentioned business process diagram tools is not conducive to developers conducting efficient and standardized development. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a task process generation method, device, equipment and storage medium thereof to solve the problem that the use of existing business process diagram tools is not conducive to developers to carry out efficient and standardized development and is prone to development omissions.
[0005] In order to solve the above technical problems, the present application embodiment provides a task flow generation method, which adopts the following technical solutions:
[0006] A task flow generation method comprises the following steps:
[0007] Based on the initial requirements document, obtain the requirements analysis results;
[0008] Create a task execution control class, a task method, and a service name based on the demand analysis result to obtain an initial creation result; and
[0009] Identify the task methods executed by each task execution control class and the services called when each task method is executed;
[0010] According to the services called when each task method is executed and the execution order logical relationship between the called services, a first-order task flow chart is created, wherein the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names;
[0011] According to the task methods respectively executed by each task execution control class and the calling relationship between the executed task methods, the first-order task flow chart integration processing is performed to generate the second-order task flow chart corresponding to each task execution control class.
[0012] Furthermore, the step of creating a first-order task flow chart according to the services respectively called when each task method is executed and the execution order logical relationship between the called services specifically includes:
[0013] Set the name of the first-order task flow chart to the corresponding task method name;
[0014] Set the task node name in the first-order task flow chart to the corresponding service name;
[0015] Generate execution order logic lines between the task node names according to the execution order logic relationship between the called services, and set a first initial color for all execution order logic lines;
[0016] The step of integrating the first-order task flow chart according to the task methods respectively executed by each task execution control class and the calling relationship between the task methods respectively executed to generate the second-order task flow chart corresponding to each task execution control class specifically includes:
[0017] Set the name of the second-order task flow chart to the corresponding task execution control class name;
[0018] Call relationship lines are generated between all first-order task flow charts according to the call relationship between the executed task methods, and a second initial color is set for all the call relationship lines.
[0019] Furthermore, after executing the step of creating a first-order task flow chart according to the services respectively called when each task method is executed and the execution order logical relationship between the called services, the method further includes:
[0020] Using the first-order task flow chart as a test reference chart;
[0021] According to the execution order logic lines corresponding to all task node names in the test reference graph, perform feasibility tests on all task methods respectively;
[0022] If the method feasibility test passes, the corresponding execution order logic line will be replaced from the first initial color to the line color when the test is successful;
[0023] If the method feasibility test fails, the corresponding execution logic line is filtered out and replaced from the first initial color to the line color when the test fails. The called service is determined according to the execution logic line, and an alarm prompt of service unavailability is sent to the preset email receiving terminal.
[0024] Furthermore, after executing the step of generating a second-order task flow chart corresponding to each task execution control class, the method further includes:
[0025] Locate the corresponding task execution control class name according to the name of the second-order business process diagram;
[0026] Triggering a preset scanning task, and scanning all service names corresponding to the task execution control class name according to the scanning task;
[0027] Verify whether all service names are matched successfully one-to-one with task node names included in the second-order business process diagram;
[0028] If the one-to-one match is successful, the verification is successful, the corresponding call relationship line is replaced from the second initial color to the line color when the verification is successful, and feedback that the business process diagram corresponding to the task execution control class has been generated is sent to the preset email receiving end;
[0029] If the one-to-one matching fails, the verification fails, and the corresponding call relationship line when the verification fails is filtered out, and it is replaced from the second initial color to the line color when the verification fails, and a prompt is sent to the email receiving end to update and adjust the business process diagram corresponding to the task execution control class.
[0030] Furthermore, the method further comprises:
[0031] Start the preset monitoring component to identify whether a new requirement document has been received;
[0032] If a new requirement document is received, a new requirement analysis result is obtained based on the new requirement document;
[0033] Recreate the task execution control class, task method and service name based on the new demand analysis result to obtain a new creation result;
[0034] Compare the new creation result with the initial creation result to determine whether a new task execution control class, a new task method, and a new service name are created;
[0035] Update the task flow chart according to the judgment result.
[0036] Furthermore, the step of updating the task flow chart according to the judgment result includes:
[0037] If a new task execution control class, new task method and new service name are not created, the corresponding task flow chart shall be updated according to the changes in the services called when each task method is executed, the logical relationship of execution order between the called services, the task methods executed by each task execution control class and the calling relationship between the executed task methods.
[0038] Furthermore, the step of updating the task flow chart according to the judgment result further includes:
[0039] If a new service name is created, all task methods that call the new service are identified, and the corresponding first-order task flowcharts are screened out according to the method names of all the task methods, and the first-order task flowcharts are updated, and the second-order task flowcharts that the first-order task flowcharts participate in the construction are queried, and the second-order task flowcharts are updated;
[0040] If a new task method is created, a new first-order task flow chart is created according to the services called when the new task method is executed and the logical relationship of execution sequence between the called services, the task execution control class that calls the new task method and other task methods that have a calling relationship with the new task method are identified, and the second-order task flow chart corresponding to the task execution control class is updated according to the identification result;
[0041] If a new task execution control class is created, the first-order task flow chart integration processing is performed according to the task methods executed by the new task execution control class and the calling relationship between the executed task methods to generate a second-order task flow chart corresponding to the new task execution control class.
[0042] In order to solve the above technical problems, the embodiment of the present application also provides a task flow generation device, which adopts the following technical solution:
[0043] A task flow generating device, comprising:
[0044] Requirements analysis module, used to obtain requirements analysis results based on the initial requirements document;
[0045] An initial creation module, used to create a task execution control class, a task method and a service name based on the demand analysis result to obtain an initial creation result; and
[0046] An execution relationship identification module is used to identify the task methods executed by each task execution control class and the services called when each task method is executed;
[0047] A first-order task flow chart creation module is used to create a first-order task flow chart according to the services called when each task method is executed and the execution order logical relationship between the called services, wherein the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names;
[0048] The second-order task flow chart generation module is used to integrate the first-order task flow chart according to the task methods executed by each task execution control class and the calling relationship between the executed task methods, and generate the second-order task flow chart corresponding to each task execution control class.
[0049] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0050] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the task flow generation method described above when executing the computer-readable instructions.
[0051] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0052] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the task flow generation method as described above.
[0053] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0054] The task flow generation method described in the embodiment of the present application analyzes the initial demand document to obtain the demand analysis result, creates a task execution control class, a task method and a service name, identifies the task methods executed by each task execution control class and the services called when each task method is executed, and the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names, which can not only assist developers in standardized development, but also combine with the line changes in the task flow chart to intuitively distinguish whether the task flow chart is generated and verified successfully. In addition, a monitoring component is used to compare the new creation result with the initial creation result in a comparison manner to determine whether a new task execution control class, a new task method and a new service name are created, so as to update the task flow chart according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process. In particular, applying the task flow generation method to the financial business field with complex business logic can greatly improve the standardized development efficiency of developers and avoid development omissions. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0056] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0057] Figure 2 is a flowchart of an embodiment of a task flow generation method according to the present application;
[0058] Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 204 is shown;
[0059] Figure 4 yes Figure 2 A flowchart of a specific embodiment of step 205 is shown;
[0060] Figure 5 is a structural schematic diagram of an embodiment of a task flow generation device according to the present application;
[0061] Figure 6 It is a flowchart of a specific embodiment of the standardized setting module 506 in the task flow generation device of the present application;
[0062] Figure 7It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0065] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0066] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0067] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0068] The terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0069] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0070] It should be noted that the task flow generation method provided in the embodiment of the present application is generally executed by a terminal device, and accordingly, the task flow generation device is generally arranged in the terminal device.
[0071] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0072] Continue to refer Figure 2 , shows a flow chart of an embodiment of a task flow generation method according to the present application. The task flow generation method comprises the following steps:
[0073] Step 201, obtaining a requirement analysis result based on the initial requirement document.
[0074] By analyzing the initial requirement document, the requirement analysis results are obtained to assist developers in actual development.
[0075] Step 202: Create a task execution control class, a task method, and a service name based on the demand analysis result to obtain an initial creation result.
[0076] In this embodiment, after executing the step of creating the task execution control class, the task method and the service name, the method further includes encapsulating all the task execution control classes into the control layer. Moreover, each service is atomic.
[0077] By creating task execution control classes, task methods, and service names, it assists developers in conducting standardized development.
[0078] Step 203: Based on the demand analysis result, identify the task methods executed by each task execution control class and the services called when each task method is executed.
[0079] By identifying the task methods executed by each task execution control class and the services called when each task method is executed, developers are assisted in actual development.
[0080] Step 204, creating a first-order task flow chart based on the services called when each task method is executed and the logical relationship between the execution order of the called services, wherein the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names.
[0081] Continue to refer Figure 3 , Figure 3 yes Figure 2 The flowchart of a specific embodiment of step 204 shown includes:
[0082] Step 301, setting the name of the first-order task flow chart to the corresponding task method name;
[0083] Step 302, setting the task node name in the first-order task flow chart to the corresponding service name;
[0084] Step 303: Generate execution order logic lines between the task node names according to the execution order logic relationship between the called services, and set a first initial color for all execution order logic lines.
[0085] In this embodiment, after executing the step of creating a first-order task flow chart according to the services called when each task method is executed and the execution order logical relationship between the called services, the method also includes: using the first-order task flow chart as a test reference chart; performing method feasibility tests on all task methods according to the execution order logic lines corresponding to all task node names in the test reference chart; if the method feasibility test passes, the corresponding execution order logic lines are replaced from the first initial color to the line color when the test is successful; if the method feasibility test fails, the execution logic lines corresponding to the failure are screened out, and replaced from the first initial color to the line color when the test fails, the called service is determined according to the execution logic lines, and an alarm prompt of service unavailability is sent to the preset email receiving end.
[0086] Specifically, by setting the name of the first-order task flowchart to the corresponding task method name, and setting the task node name in the first-order task flowchart to the corresponding service name, it is used to assist developers in conducting standardized development and avoid development omissions; according to the execution order logical relationship between the called services, execution order logic lines are generated between the task node names, and a first initial color is set for all execution order logic lines, so that developers can intuitively identify whether the first-order task flowchart is successfully created and tested based on the color changes of the execution order logic lines.
[0087] Step 205 , performing first-order task flow chart integration processing according to the task methods respectively executed by each task execution control class and the calling relationship between the executed task methods, and generating a second-order task flow chart corresponding to each task execution control class.
[0088] Continue to refer Figure 4 , Figure 4 yes Figure 2 The flowchart of a specific embodiment of step 205 shown includes:
[0089] Step 401, setting the name of the second-order task flow chart to the corresponding task execution control class name;
[0090] Step 402: Generate call relationship lines between all first-order task flow charts according to the call relationship between the executed task methods, and set a second initial color for all call relationship lines.
[0091] In this embodiment, after executing the step of generating a second-order task flow chart corresponding to each task execution control class, the method also includes: locating the corresponding task execution control class name according to the name of the second-order business flow chart; triggering a preset scanning task, and scanning out all service names corresponding to the task execution control class name according to the scanning task; verifying whether all the service names are matched one-to-one with the task node names contained in the second-order business flow chart; if the one-to-one match is successful, the verification is successful, and the corresponding call relationship line is replaced from the second initial color to the line color when the verification is successful, and feedback on the completion of the generation of the business flow chart corresponding to the task execution control class is sent to the preset email receiving end; if the one-to-one match is unsuccessful, the verification is unsuccessful, and the corresponding call relationship line when the verification is unsuccessful is screened out, and it is replaced from the second initial color to the line color when the verification fails, and a prompt to update and adjust the business flow chart corresponding to the task execution control class is sent to the email receiving end.
[0092] Specifically, by setting the name of the second-order task flowchart to the corresponding task execution control class name, it is used to assist developers in conducting standardized development and avoid development omissions; based on the calling relationship between the executed task methods, calling relationship lines are generated between all first-order task flowcharts, and a second initial color is set for all calling relationship lines, so that developers can intuitively identify whether the second-order task flowchart is generated and verified successfully based on the color changes of the calling relationship lines.
[0093] In this embodiment, the task flow generation method also includes a task flow updating method, which specifically includes: starting a preset monitoring component to identify whether a new requirement document is received; if a new requirement document is received, obtaining a new requirement analysis result based on the new requirement document; recreating the task execution control class, task method and service name based on the new requirement analysis result to obtain a new creation result; comparing the new creation result with the initial creation result to determine whether a new task execution control class, a new task method and a new service name are created; and updating the task flow chart according to the determination result.
[0094] By comparing the new creation result with the initial creation result, it is determined whether a new task execution control class, a new task method and a new service name are created, and the task flow chart is updated according to the judgment result, which facilitates timely updating of the task flow chart during the development process.
[0095] Specifically, the step of updating the task flow chart according to the judgment result includes:
[0096] If a new task execution control class, new task method and new service name are not created, the corresponding task flow chart shall be updated according to the changes in the services called when each task method is executed, the logical relationship of execution order between the called services, the task methods executed by each task execution control class and the calling relationship between the executed task methods.
[0097] Specifically, the step of updating the task flow chart according to the judgment result also includes: if a new service name is created, all task methods that call the new service are identified, the corresponding first-order task flow chart is filtered out according to the method names of all the task methods, the first-order task flow chart is updated, the second-order task flow chart in which the first-order task flow chart participates in the construction is queried, and the second-order task flow chart is updated; if a new task method is created, a new first-order task flow chart is created according to the service called when the new task method is executed and the execution sequence logical relationship between the called services, the task execution control class that calls the new task method and other task methods that have a calling relationship with the new task method are identified, and the second-order task flow chart corresponding to the task execution control class is updated according to the identification result; if a new task execution control class is created, the first-order task flow chart is integrated according to the task method executed by the new task execution control class and the calling relationship between the executed task methods, and the second-order task flow chart corresponding to the new task execution control class is generated.
[0098] By comparing the new creation result with the initial creation result, it is determined whether a new task execution control class, a new task method and a new service name are created, and the task flow chart is updated according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process and avoid development omissions.
[0099] The task flow generation method described in the present application obtains the demand analysis results by analyzing the initial demand document, creates task execution control classes, task methods and service names, identifies the task methods executed by each task execution control class and the services called when each task method is executed, and the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names. It can not only assist developers in standardized development and avoid development omissions, but also combine with the line changes in the task flow chart to intuitively distinguish whether the task flow chart is generated and verified successfully. In addition, a monitoring component is used to compare the new creation result with the initial creation result in a comparison manner to determine whether a new task execution control class, a new task method and a new service name are created, thereby updating the task flow chart according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process.
[0100] The present application obtains the demand analysis results by analyzing the initial demand document, creates a task execution control class, a task method and a service name, identifies the task methods executed by each task execution control class and the services called when each task method is executed, and the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names, which can not only assist developers in standardized development and avoid development omissions, but also combine the line changes in the task flow chart to intuitively identify whether the task flow chart is generated and verified successfully. In addition, a monitoring component is used to compare the new creation result with the initial creation result in a comparison manner to determine whether a new task execution control class, a new task method and a new service name are created, so as to update the task flow chart according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process. In particular, applying the task flow generation method to the financial business field with complex business logic can greatly improve the standardized development efficiency of developers.
[0101] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0102] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0103] In an embodiment of the present application, by analyzing the initial requirement document, the requirement analysis result is obtained, a task execution control class, a task method and a service name are created, the task methods executed by each task execution control class and the services called when each task method is executed are identified, the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names, which can not only assist developers in standardized development and avoid development omissions, but also combine the line changes in the task flow chart to intuitively identify whether the task flow chart is generated and verified successfully. In addition, a monitoring component is used to compare the new creation result with the initial creation result in a comparison manner to determine whether a new task execution control class, a new task method and a new service name are created, so as to update the task flow chart according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process. In particular, applying the task flow generation method to the financial business field with complex business logic can greatly improve the standardized development efficiency of developers.
[0104] Further references Figure 5 , as a response to the above Figure 2 The present application provides an embodiment of a task flow generation device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0105] like Figure 5 As shown, the task flow generation device 500 described in this embodiment includes: a demand analysis module 501, an initial creation module 502, an execution relationship identification module 503, a first-order task flow chart creation module 504 and a second-order task flow chart generation module 505. Among them:
[0106] The requirement analysis module 501 is used to obtain the requirement analysis result based on the initial requirement document;
[0107] An initial creation module 502 is used to create a task execution control class, a task method and a service name based on the demand analysis result to obtain an initial creation result; and
[0108] An execution relationship identification module 503, used to identify the task methods executed by each task execution control class and the services called when each task method is executed;
[0109] A first-order task flow chart creation module 504 is used to create a first-order task flow chart according to the services called when each task method is executed and the execution order logical relationship between the called services, wherein the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names;
[0110] The second-order task flowchart generation module 505 is used to integrate the first-order task flowchart according to the task methods executed by each task execution control class and the calling relationship between the executed task methods, and generate a second-order task flowchart corresponding to each task execution control class.
[0111] Continue to refer Figure 6 The task flow generation device 500 described in this embodiment further includes a standardized setting module 506, and the standardized setting module 506 includes a first setting submodule 601, a second setting submodule 602, a third setting submodule 603, a fourth setting submodule 604 and a fifth setting submodule 605. Among them:
[0112] The first setting submodule 601 is used to set the name of the first-order task flow chart to the corresponding task method name;
[0113] The second setting submodule 602 is used to set the task node name in the first-order task flow chart to the corresponding service name;
[0114] The third setting submodule 603 is used to generate execution order logic lines between the task node names according to the execution order logic relationship between the called services, and set a first initial color for all execution order logic lines;
[0115] The fourth setting submodule 604 is used to set the name of the second-order task flow chart to the corresponding task execution control class name;
[0116] The fifth setting submodule 605 is used to generate call relationship lines between all first-order task flow charts according to the call relationship between the executed task methods, and set a second initial color for all call relationship lines.
[0117] The task flow generation device 500 described in this embodiment also includes an update judgment module, which is used to start a preset monitoring component to identify whether a new requirement document is received; it is also used to obtain a new requirement analysis result based on the new requirement document if a new requirement document is received; it is also used to recreate the task execution control class, task method and service name based on the new requirement analysis result to obtain a new creation result; it is also used to compare the new creation result with the initial creation result to determine whether a new task execution control class, a new task method and a new service name are created; it is also used to update the task flow chart according to the judgment result.
[0118] The task flow generation device proposed in the present application belongs to the field of research and development optimization technology, and is applied to the task execution flow design scenario. By analyzing the initial demand document, the demand analysis result is obtained, the task execution control class, the task method and the service name are created, and the task method executed by each task execution control class and the service called when each task method is executed are identified. The first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names. It can not only assist developers in standardized development and avoid development omissions, but also combine the line changes in the task flow chart to intuitively identify whether the task flow chart is generated and verified successfully. In addition, a monitoring component is used to compare the new creation result with the initial creation result by comparison to determine whether a new task execution control class, a new task method and a new service name are created, so as to update the task flow chart according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process. In particular, applying the task flow generation method to the financial business field with complex business logic can greatly improve the standardized development efficiency of developers.
[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0120] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0121] To solve the above technical problems, the present application also provides a computer device. Figure 7 , Figure 7 This is a basic structural block diagram of the computer device in this embodiment.
[0122] The computer device 7 includes a memory 7a, a processor 7b, and a network interface 7c that are interconnected through a system bus. It should be noted that the figure only shows a computer device 7 having components 7a-7c, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital processors (DSPs), embedded devices, etc.
[0123] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0124] The memory 7a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 7a can be an internal storage unit of the computer device 7, such as a hard disk or memory of the computer device 7. In other embodiments, the memory 7a can also be an external storage device of the computer device 7, such as a plug-in hard disk equipped on the computer device 7, a smart memory card (Smart Med i aCard, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 7a can also include both the internal storage unit of the computer device 7 and its external storage device. In this embodiment, the memory 7a is generally used to store the operating system and various application software installed on the computer device 7, such as a computer-readable instruction of a task flow generation method, etc. In addition, the memory 7a can also be used to temporarily store various types of data that have been output or are to be output.
[0125] The processor 7b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 7b is generally used to control the overall operation of the computer device 7. In this embodiment, the processor 7b is used to run the computer-readable instructions or process data stored in the memory 7a, such as the computer-readable instructions for running the task flow generation method.
[0126] The network interface 7c may include a wireless network interface or a wired network interface. The network interface 7c is generally used to establish a communication connection between the computer device 7 and other electronic devices.
[0127] The computer device proposed in this embodiment belongs to the field of research and development optimization technology and is applied to the task execution process design scenario. This application analyzes the initial demand document to obtain the demand analysis results, creates a task execution control class, a task method and a service name, identifies the task methods executed by each task execution control class and the services called when each task method is executed, and the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names, which can not only assist developers in standardized development and avoid development omissions, but also combine the line changes in the task flow chart to intuitively identify whether the task flow chart is generated and verified successfully. In addition, a monitoring component is used to compare the new creation result with the initial creation result by comparison to determine whether a new task execution control class, a new task method and a new service name are created, so as to update the task flow chart according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process, especially, applying the task flow generation method to the financial business field with complex business logic can greatly improve the standardized development efficiency of developers.
[0128] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the task flow generation method as described above.
[0129] The computer-readable storage medium proposed in this embodiment belongs to the field of research and development optimization technology and is applied to the task execution process design scenario. This application analyzes the initial demand document to obtain the demand analysis results, creates a task execution control class, a task method and a service name, identifies the task methods executed by each task execution control class and the services called when each task method is executed, and the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names, which can not only assist developers in standardized development and avoid development omissions, but also combine the line changes in the task flow chart to intuitively identify whether the task flow chart is generated and verified successfully. In addition, a monitoring component is used to compare the new creation result with the initial creation result by comparison to determine whether a new task execution control class, a new task method and a new service name are created, so as to update the task flow chart according to the judgment result, so as to facilitate timely updating of the task flow chart during the development process, especially, applying the task flow generation method to the financial business field with complex business logic can greatly improve the standardized development efficiency of developers.
[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0131] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A task flow generation method, characterized in that: The steps include: Based on the initial requirements document, obtain the requirements analysis results; Create a task execution control class, a task method, and a service name based on the demand analysis result to obtain an initial creation result; as well as, Identify the task methods executed by each task execution control class and the services called when each task method is executed; According to the services called when each task method is executed and the execution order logical relationship between the called services, a first-order task flow chart is created, wherein the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names; According to the task methods respectively executed by each task execution control class and the calling relationship between the executed task methods, the first-order task flow chart integration processing is performed to generate the second-order task flow chart corresponding to each task execution control class.
2. The task flow generation method according to claim 1, characterized in that: The step of creating a first-order task flow chart according to the services respectively called when each task method is executed and the execution order logical relationship between the called services specifically includes: Set the name of the first-order task flow chart to the corresponding task method name; Set the task node name in the first-order task flow chart to the corresponding service name; Generate execution order logic lines between the task node names according to the execution order logic relationship between the called services, and set a first initial color for all execution order logic lines; The step of integrating the first-order task flow chart according to the task methods respectively executed by each task execution control class and the calling relationship between the task methods respectively executed to generate the second-order task flow chart corresponding to each task execution control class specifically includes: Set the name of the second-order task flow chart to the corresponding task execution control class name; Call relationship lines are generated between all first-order task flow charts according to the call relationship between the executed task methods, and a second initial color is set for all the call relationship lines.
3. The task flow generation method according to claim 2, characterized in that: After executing the step of creating a first-order task flow chart according to the services respectively called when each task method is executed and the execution order logical relationship between the called services, the method further includes: Using the first-order task flow chart as a test reference chart; According to the execution order logic lines corresponding to all task node names in the test reference graph, perform feasibility tests on all task methods respectively; If the method feasibility test passes, the corresponding execution order logic line will be replaced from the first initial color to the line color when the test is successful; If the method feasibility test fails, the corresponding execution logic line is filtered out and replaced from the first initial color to the line color when the test fails. The called service is determined according to the execution logic line, and an alarm prompt of service unavailability is sent to the preset email receiving terminal.
4. The task flow generation method according to claim 2, characterized in that: After executing the step of generating a second-order task flow chart corresponding to each task execution control class, the method further includes: Locate the corresponding task execution control class name according to the name of the second-order business process diagram; Triggering a preset scanning task, and scanning all service names corresponding to the task execution control class name according to the scanning task; Verify whether all the service names successfully match the task node names included in the second-order business process diagram one-to-one; If the one-to-one match is successful, the verification is successful, the corresponding call relationship line is replaced from the second initial color to the line color when the verification is successful, and feedback that the business process diagram corresponding to the task execution control class has been generated is sent to the preset email receiving end; If the one-to-one matching fails, the verification fails, and the corresponding call relationship line when the verification fails is filtered out, and it is replaced from the second initial color to the line color when the verification fails, and a prompt is sent to the email receiving end to update and adjust the business process diagram corresponding to the task execution control class.
5. The task flow generation method according to any one of claims 1 to 4, characterized in that: The method further comprises: Start the preset monitoring component to identify whether a new requirement document has been received; If a new requirement document is received, a new requirement analysis result is obtained based on the new requirement document; Recreate the task execution control class, task method and service name based on the new demand analysis result to obtain a new creation result; Compare the new creation result with the initial creation result to determine whether a new task execution control class, a new task method, and a new service name are created; Update the task flow chart according to the judgment result.
6. The task flow generation method according to claim 5, characterized in that: The step of updating the task flow chart according to the judgment result includes: If a new task execution control class, new task method and new service name are not created, the corresponding task flow chart shall be updated according to the changes in the services called when each task method is executed, the logical relationship of execution order between the called services, the task methods executed by each task execution control class and the calling relationship between the executed task methods.
7. The task flow generation method according to claim 5, characterized in that: The step of updating the task flow chart according to the judgment result also includes: If a new service name is created, all task methods that call the new service are identified, and the corresponding first-order task flowcharts are screened out according to the method names of all the task methods, and the first-order task flowcharts are updated, and the second-order task flowcharts that the first-order task flowcharts participate in the construction are queried, and the second-order task flowcharts are updated; If a new task method is created, a new first-order task flow chart is created according to the services called when the new task method is executed and the logical relationship of execution sequence between the called services, the task execution control class that calls the new task method and other task methods that have a calling relationship with the new task method are identified, and the second-order task flow chart corresponding to the task execution control class is updated according to the identification result; If a new task execution control class is created, the first-order task flow chart integration processing is performed according to the task methods executed by the new task execution control class and the calling relationship between the executed task methods to generate a second-order task flow chart corresponding to the new task execution control class.
8. A task flow generation device, characterized in that: include: Requirements analysis module, used to obtain requirements analysis results based on the initial requirements document; An initial creation module, used to create a task execution control class, a task method and a service name based on the demand analysis result to obtain an initial creation result; as well as, An execution relationship identification module, used to identify the task methods executed by each task execution control class and the services called when each task method is executed; A first-order task flow chart creation module is used to create a first-order task flow chart according to the services called when each task method is executed and the execution order logical relationship between the called services, wherein the first-order task flow chart corresponds to different task methods, and the task nodes in the task flow chart correspond to different service names; The second-order task flow chart generation module is used to integrate the first-order task flow chart according to the task methods executed by each task execution control class and the calling relationship between the executed task methods, and generate the second-order task flow chart corresponding to each task execution control class.
9. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the task flow generation method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the task flow generation method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Command information system service visualization development method and device
CN119902753A
A command information system service visual development method and device
CN119902753B
