Form information-based instruction generation method and apparatus, and storage medium

By analyzing and generating approval forms and determining the circulation sequence based on the historical approval process, the problem of inefficiency of the traditional approval process is solved, and a more efficient and transparent approval process is achieved.

CN119831518APending Publication Date: 2025-04-15CHINA CONSTRUCTION BANK
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411812542.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The traditional approval process is inefficient, especially when the approval chain is long or the approver is not in the same location, resulting in an extended approval cycle, and it is difficult to track status changes, opinion delivery and modification records in real time.

Method used

By obtaining target requests, analyzing task information and demand information, generating initial approval forms, and determining the circulation process based on historical approval forms, realizing automated approval operations and instruction generation.

Benefits of technology

It improves approval efficiency, reduces approval cycle, ensures transparency and fairness of the approval process, and reduces the risk of incomplete information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119831518A_ABST
    Figure CN119831518A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an instruction generation method and device based on form information and a storage medium, and the method comprises the steps: obtaining a target request; in response to the target request, analyzing task information of the target task and task demand information for executing the target task from the target request to generate an initial approval form; generating a circulation process of the initial approval form based on the historical approval form, and obtaining a target approval form; and generating a target instruction for triggering execution of the target task based on the approval result. Through the form approval method and device, the problem of low form approval efficiency in related technologies is solved, and then the effects of automatically performing form approval and automatically circulating the form in the approval nodes are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a method and device for generating instructions based on form information, and a storage medium. Background Art

[0002] In large organizations or enterprises, task approval operations are a key link in business process management, especially in business scenarios such as procurement, project establishment, and budget application. The efficiency and transparency of the approval process directly affect the speed and compliance of the entire business. Traditional approval processes usually use paper forms or emails, and the approver needs to manually fill in the comments and pass them to the next approver via email or physical mail.

[0003] The manual transmission of approval forms takes a long time, especially when the approval chain is long or the approvers are not in the same location, which prolongs the approval cycle. Status changes, opinion transmission and modification records in the approval process are difficult to track and view in real time, which can easily lead to incomplete information and affect the fairness and compliance of approval decisions. Summary of the invention

[0004] The embodiments of the present application provide a method and device for generating instructions based on form information, and a storage medium, so as to at least solve the problem of low approval efficiency of forms in related technologies.

[0005] According to an embodiment of the present application, a method for generating instructions based on form information is provided, comprising: obtaining a target request, wherein the target request is used to request a task approval operation to be performed on a target task; responding to the target request, parsing the task information of the target task and the task requirement information for performing the target task from the target request to generate an initial approval form; generating a flow process of the initial approval form based on a historical approval form to obtain a target approval form, wherein the flow process includes multiple approval nodes for approving the target task and the task requirement information and an approval order between the multiple approval nodes, and the historical request corresponding to the historical approval form matches the target request; performing the task approval operation according to the target approval form to obtain an approval result; and generating a target instruction to trigger the execution of the target task based on the approval result.

[0006] In an exemplary embodiment, in response to the target request, the task information of the target task and the task requirement information for executing the target task are parsed from the target request to generate an initial approval form, including: in response to the target request, the task information of the target task and the task requirement information for executing the target task are extracted according to the data format and data structure of the target request; a verification operation is performed on the task information and the task requirement information, wherein the verification operation includes verifying the information format of the task information and the information format of the task requirement information, and verifying the information logic of the task information and the information logic of the task requirement information; when both the task information and the task requirement information are verified, the task information and the task requirement information are respectively processed in an information structured manner, and the target task information and the target task requirement information obtained after the processing are correspondingly stored in a database; an approval form template is generated according to the task type of the target task, wherein the approval form template includes fields corresponding to the target task; the target task information and the target task requirement information stored in the database are filled into the fields in the approval form template; the filled approval form template is verified, and when the fields in the filled approval form template are correct, the filled approval form template is determined as the initial approval form.

[0007] In an exemplary embodiment, after performing verification operations on the above-mentioned task information and the above-mentioned task requirement information, the above-mentioned method also includes: when the above-mentioned task information and / or the above-mentioned task requirement information verification fails, performing a prompt operation to prompt that there is an abnormality in the above-mentioned target task; terminating the response to the above-mentioned target request, and deleting the above-mentioned target task.

[0008] In an exemplary embodiment, a flow process of generating the above-mentioned initial approval form based on a historical approval form to obtain a target approval form includes: parsing the historical approval form to obtain a historical approval record from the above-mentioned historical approval form, wherein the above-mentioned historical approval record includes at least one of the following: a historical approval node, a historical approval opinion, a historical approval time, and a historical approval modification; generating a flow process of the above-mentioned initial approval form according to the above-mentioned historical approval record to obtain the above-mentioned target approval form.

[0009] In an exemplary embodiment, the task approval operation is performed according to the target approval form to obtain the approval result, including: determining each of the approval nodes and the approval content corresponding to each of the approval nodes included in the target approval form; for each of the approval nodes, the task approval operation is performed through the following steps: loading the approval content and the approval decision support information into the approval node, wherein the approval decision support information includes the approval rule instructing the approval node to approve the approval content; dynamically displaying the approval content and the approval decision support information in the approval node, and obtaining the approval action triggered by the approval node on the approval content according to the approval decision support information, wherein the approval action includes at least one of the following operations performed on the approval content: the action of adding content to the approval content, the action of modifying the approval content, the action of deleting content from the approval content, the action of passing the approval content, and the action of refusing to pass the approval content; determining the approval result according to the flow process and the approval action.

[0010] In an exemplary embodiment, the approval result is determined according to the circulation process and the approval action, including: when the approval node is the last node in the circulation process and the approval action shows that the approval content is passed, the approval result is determined according to the approval action; when the approval node is an intermediate node in the circulation process and the approval action shows that the approval content is passed, the next approval node is determined according to the circulation process, and the task approval operation is continued through the next approval node to obtain the approval result; when the approval action shows that the approval content is not passed, the circulation process is ended, and the approval result is determined according to the approval action.

[0011] In an exemplary embodiment, a target instruction that triggers the execution of the target task is generated based on the approval result, including: when it is determined from the approval result that the target task is approved, extracting execution information from the target task, wherein the execution information includes the task information and the task requirement information; determining a task node for executing the target task according to the execution information; and generating the target instruction based on the task node and the execution information.

[0012] In an exemplary embodiment, after generating the target instruction based on the task node and the execution information, the method further includes: sending the target instruction to the task node to instruct the task node to respond to the target instruction and execute the target task; obtaining instruction status information from the task node, wherein the instruction status information includes the execution status and execution result generated by the task node in response to the target instruction; generating adjustment information according to the execution status and the execution result, wherein the adjustment information is used to adjust the execution process of the target task.

[0013] According to another embodiment of the present application, there is provided an instruction generation device based on form information, comprising: an acquisition module, used to acquire a target request, wherein the target request is used to request a task approval operation to be performed on a target task; a parsing module, used to respond to the target request, parse the task information of the target task and the task requirement information for performing the target task from the target request, so as to generate an initial approval form; a first generation module, used to generate a flow process of the initial approval form based on a historical approval form, and obtain a target approval form, wherein the flow process includes multiple approval nodes for approving the target task and the task requirement information, and an approval order between the multiple approval nodes, and the historical request corresponding to the historical approval form matches the target request; an approval module, used to perform the task approval operation according to the target approval form, and obtain an approval result; and a second generation module, used to generate a target instruction for triggering the execution of the target task based on the approval result.

[0014] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0015] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.

[0016] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0017] Through this application, the task information of the target task and the task requirement information for executing the target task are parsed from the target request. After the above information is verified, the task information and task requirement information are filled into the fields in the approval form template to generate an initial approval form, and the flow process of the initial approval form is determined in combination with the historical approval form to obtain the target approval form, and the target approval form is transferred to each approval node, and the task approval operation is performed on the target approval form to obtain the approval result and generate the target instruction that triggers the execution of the target task. The problem of low approval efficiency of the form in the related technology is solved, thereby achieving the effect of improving the efficiency of form approval. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a hardware environment diagram of a method for generating instructions based on form information according to an embodiment of the present application;

[0019] Figure 2 is a flow chart of a method for generating instructions based on form information according to an embodiment of the present application;

[0020] Figure 3 is a flow chart of a method for generating instructions based on purchase form information according to an embodiment of the present application;

[0021] Figure 4 It is a structural block diagram of an instruction generation device based on form information according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0024] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 Schematic diagram of the hardware environment of a method for generating instructions based on form information according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a method for generating instructions based on form information in an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to a server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0027] In this embodiment, a method for generating instructions based on form information is provided. Figure 2 is a flow chart of a method for generating instructions based on form information according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0028] Step S202, obtaining a target request, wherein the target request is used to request a task approval operation to be performed on a target task;

[0029] Optionally, the instruction generation method based on form information in this embodiment includes but is not limited to application in scenarios such as procurement application approval within the enterprise, project approval before project launch, financial reimbursement application approval submitted by enterprise employees, and administrative office process approval within the enterprise.

[0030] Optionally, the target request in this embodiment refers to a request data packet containing an approval operation for a specific task. The target request can be any form of electronic request, such as a Hypertext Transfer Protocol (HTTP) or Hypertext Transfer Protocol Secure (HTTPS) request, which carries all necessary information about the task that requires approval.

[0031] Optionally, the target task in this embodiment is a business matter that needs to go through an approval process, including but not limited to a procurement application, a project establishment application, etc.

[0032] Step S204, responding to the target request, parsing the task information of the target task and the task requirement information for executing the target task from the target request to generate an initial approval form;

[0033] Optionally, the task information in this embodiment refers to descriptive or identifying content directly related to the task requiring approval, including but not limited to task name, task description, task initiator, task type, task priority, etc.

[0034] Optionally, the task requirement information in this embodiment refers to some requirements necessary to complete the target task, including but not limited to: personnel requirements, material requirements (a list of materials or equipment required to complete the task, including quantity, specifications, etc.), financial requirements (specific budget or funding allocation plan required to execute the task) and specific environmental conditions, safety requirements, technical standards, etc.

[0035] For example, in an enterprise procurement management scenario, task information may include the name of the purchased item, detailed description, procurement purpose, budget amount, procurement department, etc., and task requirement information may include supplier evaluation, quality standards, payment terms, etc.; in a project approval scenario, task information may cover the project name, project description, project initiator, and project type, and task requirement information may include key resources required for the project (such as manpower and materials), technical requirements, project budget, etc.

[0036] Step S206, generating a flow process of the initial approval form based on the historical approval form to obtain a target approval form, wherein the flow process includes a plurality of approval nodes for approving the target task and the task requirement information and an approval sequence between the plurality of approval nodes, and the historical request corresponding to the historical approval form matches the target request;

[0037] Optionally, the approval order between approval nodes in this embodiment refers to the order in which each approval node is processed in the approval process. The approval order includes but is not limited to: sequential approval, parallel approval, conditional approval, cyclic approval, etc.

[0038] Step S208, executing the task approval operation according to the target approval form to obtain the approval result;

[0039] Optionally, the task approval operation in this embodiment includes but is not limited to reviewing whether the target task corresponding to the target approval form complies with relevant laws and regulations, and whether the personnel allocation, capital budget, and material requirements in the target approval form are reasonable.

[0040] Optionally, the approval result in this embodiment includes but is not limited to approval, approval rejection, need for additional information, conditional approval, etc.

[0041] Step S210: generating a target instruction for triggering the execution of the target task based on the approval result.

[0042] Optionally, the target instruction in this embodiment includes but is not limited to: target task name, target task identifier, target task initiator, target task type, target task priority, resources required to execute the target task, etc.

[0043] Through the above steps, the task information of the target task and the task requirement information for executing the target task are parsed from the target request, an initial approval form is generated according to the above information, and the flow process of the initial approval form is determined in combination with the historical approval form, the final target approval form is obtained and the task approval operation is performed on it, the approval result is obtained and a target instruction that triggers the execution of the target task is generated, which can automatically perform form approval and automatically circulate the form among the approval nodes, thereby solving the problem that the related technology cannot automatically perform form approval and the approval efficiency is low.

[0044] For example, in an enterprise procurement management scenario, assuming that the enterprise needs to purchase a batch of new office equipment, the procurement manager submits a procurement application (corresponding to the above-mentioned "target request") through the enterprise procurement management system, requesting the task approval operation for this procurement task (corresponding to the above-mentioned "target task"). After receiving the procurement application, the system automatically parses key information from the request, including a detailed list of purchased items, budget, procurement purpose, urgency, etc. This information constitutes task information and task requirement information; the system generates an initial approval form based on this information, which includes a basic overview of the procurement application and detailed instructions required for approval; the system refers to previous similar procurement application approval processes (corresponding to the above-mentioned "historical approval forms") and automatically generates the current procurement application approval process (corresponding to the above-mentioned "target approval forms"), including multiple approval nodes: department manager approval, financial approval, procurement department approval, legal approval, etc. Approval; the purchase application flows according to the approval process generated above, first the department manager approves, then the finance, procurement and legal departments approve in turn. When the purchase application flows to each approval node, the system will automatically approve it according to the preset approval rules. If the system automatically approves it, the system prompts the person in charge of the department corresponding to the node to conduct a second manual review of the approval form in the system, and make a decision to pass or reject it based on his or her scope of responsibility, and can also propose modification opinions; the system obtains a final "approval result" based on the approval action, which may be unconditional approval, conditional approval or rejection; if the approval result is unconditional approval, the system will automatically generate a "target instruction" to guide the procurement department to perform the procurement task; after receiving the target instruction, the procurement department will perform the procurement task according to the instruction content to ensure that all procurement activities meet the requirements and conditions in the approval result. After the procurement task is completed, the system automatically records the entire process and feeds back the results to the relevant approval nodes to form a closed-loop management. This embodiment realizes the automation and standardization of the procurement process through the system's automatic parsing, approval and generation of instructions, improves efficiency and reduces human errors.

[0045] In an exemplary embodiment, in response to the target request, the task information of the target task and the task requirement information for executing the target task are parsed from the target request to generate an initial approval form, including: in response to the target request, the task information of the target task and the task requirement information for executing the target task are extracted according to the data format and data structure of the target request; a verification operation is performed on the task information and the task requirement information, wherein the verification operation includes verifying the information format of the task information and the information format of the task requirement information, and verifying the information logic of the task information and the information logic of the task requirement information; when both the task information and the task requirement information are verified, the task information and the task requirement information are respectively processed in an information structured manner, and the target task information and the target task requirement information obtained after the processing are correspondingly stored in a database; an approval form template is generated according to the task type of the target task, wherein the approval form template includes fields corresponding to the target task; the target task information and the target task requirement information stored in the database are filled into the fields in the approval form template; the filled approval form template is verified, and when the fields in the filled approval form template are correct, the filled approval form template is determined as the initial approval form.

[0046] Optionally, the data format and data structure in this embodiment refer to the organization form and structure of the data carried in the target request, such as JavaScript Object Notation (JOSN), Extensible Markup Language (XML) and other formats, and the data structure includes field name, field type and other information.

[0047] Optionally, in this embodiment, the verification operation performed on the task information and task requirement information refers to the process of checking whether the task information and requirement information comply with predefined format specifications and logical rules, and checking whether the task information and requirement information match. For example, if the task is computer procurement, the corresponding requirement information should include information such as the computer model and quantity of computers to be purchased, but should not be the number of landline telephones.

[0048] Optionally, the information structuring processing in this embodiment refers to converting the extracted unstructured or semi-structured task information and requirement information into structured data, and the structured data includes but is not limited to data in JSON format and table data.

[0049] Optionally, the fields in the approval form template in this embodiment include but are not limited to: the ID of the target task, the content description of the target task, the process serial number of the target task, the form creation time, the form modification time, the applicant's name, the applicant's organization number, the applicant's organization name, approval opinion, whether it is in the current node, the process status, the current node name, etc.

[0050] Optionally, in this embodiment, the verification of the filled approval form template is mainly to verify whether the various field data conform to basic logical specifications, including data integrity, whether each field has its corresponding data filled in, and whether the filled data is consistent with the data carried in the original target request.

[0051] Through the above steps, the task information and requirement information extracted according to the data format and structure are checked for format and logic, and the information that passes the check is structured and stored in the database. The information is filled into the approval form template generated according to the task type, and it is determined as the initial approval form after the check passes. Through verification and information structuring, data quality is improved, information errors and omissions in the subsequent approval process are reduced, and the efficiency of approval is improved.

[0052] For example, in an enterprise procurement management scenario, suppose that a business department has submitted an application for the purchase of new office equipment due to business expansion needs (corresponding to the above-mentioned "target request"), including a specific list of purchased items, budget, reasons for purchase, and other information. The application proposes to purchase 20 computers and 30 office chairs with a budget of 50,000 yuan, because additional office facilities are needed for business expansion. After receiving the application, the procurement management system responds to the request and automatically parses out the task information (purchased items, budget, reasons for purchase, etc.) and task requirement information (specific specifications, quantity, supplier requirements, etc. of the items) in accordance with the JSON data format and structure of the target request. The system further performs verification operations on the parsed "task information" and "task requirement information", including: whether the budget covers the cost of all items and whether the quantity of purchased items is reasonable. After the verification is passed, the system converts the above JSON data into And store it in the purchase application form, item list table and requirement details table; according to the "task type" (in this case, "office equipment purchase"), the system automatically selects the corresponding approval form template, which will contain all fields related to the purchase task, such as department name, item details, budget, approval node, etc.; the system extracts "target task information" and "target task demand information" from the database and fills them into the corresponding fields of the approval form template. The "item details" field in the template will automatically be filled with the specification information of the computer and office chair, and the "budget" field will display 50,000 yuan, etc.; the system verifies the filled approval form template again to confirm that the budget has not been modified incorrectly, and the quantity and specifications in the item details are consistent with the original request; if all information is verified to be correct, the system will use the filled approval form template as the "initial approval form" and prepare to enter the approval process. It ensures the automated processing of purchase applications and the accurate transmission of information, provides a clear and structured approval form, and improves the approval efficiency and the standardization of procurement management.

[0053] In an exemplary embodiment, after performing verification operations on the above-mentioned task information and the above-mentioned task requirement information, the above-mentioned method also includes: when the above-mentioned task information and / or the above-mentioned task requirement information verification fails, performing a prompt operation to prompt that there is an abnormality in the above-mentioned target task; terminating the response to the above-mentioned target request, and deleting the above-mentioned target task.

[0054] Optionally, the prompt operation in this embodiment includes but is not limited to sending an announcement prompt in the system, sending a text message prompt, an email prompt, etc. to a corresponding responsible person.

[0055] Optionally, when the verification fails, the response to the target request will be terminated, the CPU, memory and other resources allocated to it will be reclaimed, and the target task will be deleted from the task execution list.

[0056] Through the above steps, when the verification fails, an exception is prompted and the processing is terminated, the abnormal task is deleted, and invalid or erroneous approval processes are prevented, system resources are protected, invalid work is avoided, and system stability and security are improved.

[0057] In an exemplary embodiment, a flow process of generating the above-mentioned initial approval form based on a historical approval form to obtain a target approval form includes: parsing the historical approval form to obtain a historical approval record from the above-mentioned historical approval form, wherein the above-mentioned historical approval record includes at least one of the following: a historical approval node, a historical approval opinion, a historical approval time, and a historical approval modification; generating a flow process of the above-mentioned initial approval form according to the above-mentioned historical approval record to obtain the above-mentioned target approval form.

[0058] Optionally, the flow process in this embodiment includes multiple approval nodes and the approval order between the multiple approval nodes.

[0059] Optionally, the approval order between the approval nodes in this embodiment refers to the order in which the various approval nodes are processed in the approval process. The approval order has been described above and will not be repeated here.

[0060] Through the above steps, historical approval records are parsed, and approval records similar to the current target request are found from the historical approval records, and the approval process is generated based on this. By drawing on historical approval data, the most suitable approval process is dynamically generated, which helps to avoid repeated errors, optimize the approval path, and improve the efficiency and quality of approval decisions.

[0061] For example, in an enterprise procurement management scenario, assuming that the enterprise wants to purchase computers (corresponding to the above-mentioned "target request") and has previously purchased similar office equipment, historical approval forms are saved in the system. The system first parses these historical approval forms and extracts historical approval records from them, including historical approval nodes (such as department managers, finance departments, and procurement departments), historical approval opinions (such as "budget needs to be adjusted", "supplier evaluation needs to be strengthened"), historical approval time (such as the specific date and time of node approval), historical approval modifications (such as budget and item list modification records), and other information; based on the parsed historical approval records, the system automatically builds the approval process for the current task based on the analyzed historical approval nodes, approval time, approval opinions, and approval modifications, and generates the following initial approval form flow process: department manager node → finance department node → procurement department node; the system creates a "target approval form" based on the approval process generated above, and the form will pre-contain approval node information and approval time estimates based on historical approval records, and will also list common modification requirements and approval opinion types in historical approvals for reference in the current approval process. By parsing historical approval forms, the system can automatically generate a more reasonable and efficient "target approval form" and its circulation process, which not only speeds up the approval process, but also ensures the consistency and compliance of the approval process. At the same time, it can also pre-plan possible modification needs based on historical experience, further enhancing the efficiency and accuracy of procurement management.

[0062] The target approval form may contain fields as shown in Table 1:

[0063] Table 1:

[0064]

[0065] In an exemplary embodiment, the task approval operation is performed according to the target approval form to obtain the approval result, including: determining each of the approval nodes and the approval content corresponding to each of the approval nodes included in the target approval form; for each of the approval nodes, the task approval operation is performed through the following steps: loading the approval content and the approval decision support information into the approval node, wherein the approval decision support information includes the approval rule instructing the approval node to approve the approval content; dynamically displaying the approval content and the approval decision support information in the approval node, and obtaining the approval action triggered by the approval node on the approval content according to the approval decision support information, wherein the approval action includes at least one of the following operations performed on the approval content: the action of adding content to the approval content, the action of modifying the approval content, the action of deleting content from the approval content, the action of passing the approval content, and the action of refusing to pass the approval content; determining the approval result according to the flow process and the approval action.

[0066] Optionally, the approval decision support information in this embodiment is supplementary information of some data in the target approval form and approval rules, including but not limited to: each approval node mainly approves the information content and approval rules in the target approval form, for example: at the finance department node, only the budget in the target approval form and the data volume and unit price of the items to be purchased and whether the amount is reasonable will be approved; at the procurement department node, whether the supplier of the items in the target approval form meets the procurement requirements will be approved.

[0067] For example, in an enterprise procurement management scenario, assuming that the enterprise wants to purchase computers (corresponding to the above-mentioned "target request"), the target approval form includes 20 computers to be purchased, the budget is 50,000 yuan, and the computer brand is limited to HUAWEI. The current target approval form is transferred to the finance department node. Since the finance department node mainly focuses on the rationality of the budget and financial compliance, the approval decision support information corresponding to this node includes: listing the current market reference price of HUAWEI computers, displaying the comparison between the total price and the application budget. The system shows that the current market average unit price of HUAWEI computers is 2,400 yuan, and the total cost of 20 computers is estimated to be 48,000 yuan. After comparison, the system confirms that the application budget of 50,000 yuan can cover the total cost and leaves 2,000 yuan of buffer funds. The budget is approved and automatically transferred to the next approval node. At the same time, the system updates the financial approval status to "passed" and records the budget approval opinion (such as "the budget is reasonable and the market unit price matches") in the form.

[0068] Through the above steps, the approval content of each approval node is determined, and the approval decision support information required for the current approval node is displayed. According to the approval action, the approval result of the approval node is further determined. The provision of approval decision support information helps the approvers make more accurate and faster decisions. The automatic generation of approval results ensures the transparency of the approval process.

[0069] In an exemplary embodiment, the approval result is determined according to the circulation process and the approval action, including: when the approval node is the last node in the circulation process and the approval action shows that the approval content is passed, the approval result is determined according to the approval action; when the approval node is an intermediate node in the circulation process and the approval action shows that the approval content is passed, the next approval node is determined according to the circulation process, and the task approval operation is continued through the next approval node to obtain the approval result; when the approval action shows that the approval content is not passed, the circulation process is ended, and the approval result is determined according to the approval action.

[0070] Optionally, in this embodiment, the specific situation of determining the approval result according to the approval action can be: if the approval action is one of the following actions: an action of adding content to the approval content, an action of modifying the approval content, an action of deleting content from the approval content, then the approval result is determined to be conditional approval, that is, the approval can only be passed after the approval content is modified; in the case where the approval action is an action of passing the approval content, the approval result is determined to be unconditional approval; in the case where the approval action is an action of refusing to pass the approval content, the approval result is determined to be rejection.

[0071] Optionally, in this embodiment, when the approval node is an intermediate node in the flow process and the approval action shows that the approval content has not been passed, the system will first prompt the head of the department corresponding to the node to conduct a second manual review of the approval form in the system. The head of the department can make a decision to pass or reject based on his or her own scope of responsibility, and can also put forward modification opinions. If the action of rejecting the approval content is still performed after the second manual review, the above-mentioned flow process will be terminated, and the approval result will be determined as failure to pass according to the above-mentioned approval action; if the operation of passing the approval is performed after the second manual review, the next approval node will be determined according to the above-mentioned flow process, and the task approval operation will continue to be performed through the next approval node to obtain the approval result.

[0072] Through the above steps, the approval process is dynamically adjusted and the approval result is determined according to the location of the approval node and the approval action. The dynamic adjustment mechanism of the approval process can quickly respond to changes in the approval process, avoid unnecessary steps, and improve the overall approval efficiency.

[0073] In an exemplary embodiment, a target instruction that triggers the execution of the target task is generated based on the approval result, including: when it is determined from the approval result that the target task is approved, extracting execution information from the target task, wherein the execution information includes the task information and the task requirement information; determining a task node for executing the target task according to the execution information; and generating the target instruction based on the task node and the execution information.

[0074] Optionally, the execution information in this embodiment includes a task description of the target task and information such as the materials and personnel required.

[0075] For example: in a procurement scenario, the target task node can be a procurement task start node. Based on the purchaser, the start node, the procurement budget, and item information, a target instruction is generated to send a prompt message to instruct the corresponding procurement personnel to perform the procurement operation on schedule.

[0076] Through the above steps, when it is determined that the approval result is approved, the execution information is extracted, the task nodes are determined, and the target instructions are generated according to the task nodes and the execution information, ensuring that only the tasks that have been approved will generate execution instructions to avoid waste of resources. At the same time, the generation of target instructions helps to automate the execution of subsequent tasks and improve execution efficiency and accuracy.

[0077] In an exemplary embodiment, after generating the target instruction based on the task node and the execution information, the method further includes: sending the target instruction to the task node to instruct the task node to respond to the target instruction and execute the target task; obtaining instruction status information from the task node, wherein the instruction status information includes the execution status and execution result generated by the task node in response to the target instruction; generating adjustment information according to the execution status and the execution result, wherein the adjustment information is used to adjust the execution process of the target task.

[0078] Optionally, the execution status in this embodiment refers to the status of the task node during execution, including but not limited to being executed, completed, encountered problems during execution, and not executed.

[0079] Optionally, the execution result in this embodiment refers to the specific result after the task node is executed, such as: inquiry results, supplier selection results, contract signing status, purchase order creation status, payment status, logistics tracking information, item receipt status, inventory update status, post-purchase evaluation results, etc.

[0080] Optionally, the adjustment information in this embodiment is generated based on the execution status and execution results in the instruction status information. In enterprise procurement management, the adjustment information may include: process adjustment, such as modifying the node order in the procurement process, adding additional approval nodes, adjusting node approval rules, etc.; budget adjustment, when the supplier's quotation exceeds the budget, it may be necessary to adjust the purchase quantity or find a lower-cost alternative; supplier change, if the original supplier cannot meet the procurement needs, it may be necessary to find a new supplier or add a backup supplier; post-procurement adjustment, based on the feedback from the post-procurement evaluation, it may be necessary to adjust the procurement strategy, such as increasing or decreasing the procurement volume of a certain supplier, optimizing the distribution method of purchased items, etc.

[0081] Through the above steps, after the task node executes the target task according to the target instruction, the execution status and execution result of the target task are obtained from the task node, and adjustment information is generated according to the execution status and execution result for subsequent adjustment and optimization of the execution process of similar target tasks. The task execution status can be monitored in real time and problems can be discovered in time. At the same time, by optimizing the task execution process through adjustment information, the success rate and efficiency of task execution can be improved.

[0082] The above method is described below with a specific example. Figure 3 This is a flowchart of a method for generating instructions based on procurement form information in an enterprise procurement management scenario. Figure 3 As shown, the process includes the following steps:

[0083] Step S302, obtaining a target request, the corresponding target task of which is to purchase 20 HUAWEI laptops with a budget of 50,000 yuan;

[0084] Step S304, parse and generate the initial approval form. The system responds to the target request and parses the procurement task information from the request: the items to be purchased (20 HUAWEI laptops), the budget (50,000 yuan), and the task requirement information: the necessity of procurement (the new business line needs to increase office equipment), and the pre-selected supplier information (the list of HUAWEI authorized dealers). After that, the system performs format and logic verification, such as checking whether the budget is a positive number, whether the number of items is reasonable, and whether the supplier information is complete. After the verification is passed, the information is structured and stored in the database. According to the office equipment procurement type, the system generates an approval form template and fills the information stored in the database into the template to form an initial approval form. The form includes a detailed description of the purchased items, budget, necessity description, pre-selected suppliers, and other information.

[0085] Step S306, generating the flow process of the target approval form, the system analyzes the historical approval forms, and identifies the approval process of past office equipment purchases: approval by the manager of the demand department → approval by the budget department of the finance department → approval by the supplier of the purchasing department → final confirmation;

[0086] Step S308, execute the task approval operation. The initial approval form is first sent to the manager of the demand department for approval, showing the necessity and rationality of the purchase. The manager confirms that the information is correct and approves it. The form is transferred to the Finance Department node. The system automatically confirms whether the budget is sufficient according to the budget compliance approval rules. After the Finance Department approves it, the form continues to flow to the Procurement Department. At the Procurement Department node, the system confirms the reliability of the supplier based on the supplier evaluation and market research information stored in the database. After the Procurement Department approves it, the form is transferred to the final confirmation node and is finally confirmed by the Procurement Manager. If information errors are found or approval is rejected at any node, the process will terminate and the approval result will be "failed".

[0087] Step S310, determine the approval result. If all approval nodes are approved, the system determines that the approval result is "passed" and the purchase request can continue to be executed.

[0088] Step S312, generate target instructions according to the approval results. After approval, the system extracts execution information: purchased items (20 HUAWEI laptops), budget (50,000 yuan) and specific requirements of the demand department (such as the need to pre-install specific software); the system determines the task nodes: Procurement Department (responsible for generating purchase orders), Finance Department (responsible for payment), Logistics Department (responsible for distribution); the system generates target instructions: send purchase order creation instructions to the Procurement Department, send payment arrangement instructions to the Finance Department (40% advance payment, 60% balance), and send logistics distribution instructions to the Logistics Department (estimated delivery within 3-5 days).

[0089] Step S314, execute the target instruction and obtain the instruction status information. The system sends the instruction to the procurement department. The procurement department creates a purchase order according to the instruction and sends it to the HUAWEI authorized dealer. The procurement department feedbacks the order creation status as "successful"; the system sends the instruction to the finance department. The finance department arranges the payment according to the instruction and feedbacks the payment status as "40% prepayment has been paid, waiting for the supplier to ship"; the system sends the instruction to the logistics department, and the logistics department feedbacks the delivery status as "shipped, expected to arrive in 3 days"; if the procurement department finds that the quotation exceeds the budget during the supplier inquiry process, the system generates adjustment information and recommends that the procurement department re-evaluate the supplier or adjust the purchase quantity to meet the budget.

[0090] Step S316, adjust the execution process based on the instruction status information. Assuming that the supplier's quotation is 2,600 yuan / unit, the total is 52,000 yuan, which exceeds the budget by 2,000 yuan, the system generates adjustment information and recommends that the purchasing department adjust the purchase quantity to 19 units to ensure that the total cost is controlled within 50,000 yuan; the purchasing department regenerates the purchase order based on the adjustment information and actual situation, sends the modified payment instruction to the finance department, adjusts the ratio of advance payment and final payment, and ensures that the payment plan meets the new purchase cost.

[0091] Through the above process, enterprises can automatically generate and execute procurement instructions based on form information, ensure the efficiency, compliance and flexibility of the procurement process, improve the efficiency of approval and procurement, and ensure the smooth implementation of procurement tasks through real-time monitoring and dynamic adjustment of execution processes, while reducing potential execution risks.

[0092] It should be noted that, through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented 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, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0093] In the present embodiment, a kind of instruction generation device based on form information is also provided, and this device is used to realize the above-mentioned embodiment and preferred implementation mode, and what has been described is not repeated here. As used below, the term "module" can realize the combination of software and / or hardware of predetermined function. Although the device described in the following embodiment is preferably realized by software, the realization of hardware, or the combination of software and hardware is also possible and conceived.

[0094] Figure 4 is a structural block diagram of a device for generating instructions based on form information according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:

[0095] The acquisition module 402 is used to acquire a target request, wherein the target request is used to request to perform a task approval operation on a target task;

[0096] The parsing module 404 is used to respond to the target request, parse the task information of the target task and the task requirement information of executing the target task from the target request, so as to generate an initial approval form;

[0097] The first generating module 406 is used to generate a flow process of the initial approval form based on the historical approval form to obtain a target approval form, wherein the flow process includes a plurality of approval nodes for approving the target task and the task requirement information and an approval sequence between the plurality of approval nodes, and the historical request corresponding to the historical approval form matches the target request;

[0098] Approval module 408, used to perform the task approval operation according to the target approval form to obtain the approval result;

[0099] The second generating module 410 is used to generate a target instruction for triggering the execution of the target task based on the approval result.

[0100] In an exemplary embodiment, the parsing module 404 further includes: a first responding unit, which is used to respond to the target request, and extract the task information of the target task and the task requirement information for executing the target task according to the data format and data structure of the target request; a first verifying unit, which is used to perform a verifying operation on the task information and the task requirement information, wherein the verifying operation includes verifying the information format of the task information and the information format of the task requirement information, and verifying the information logic of the task information and the information logic of the task requirement information; a first processing unit, which is used to process the task information and the task requirement information respectively when both the task information and the task requirement information are verified. The above-mentioned task requirement information is processed in an information structured manner, and the target task information and the target task requirement information obtained after the processing are correspondingly stored in the database; a first generating unit is used to generate an approval form template according to the task type of the above-mentioned target task, wherein the above-mentioned approval form template includes fields corresponding to the above-mentioned target task; a first filling unit is used to fill the above-mentioned target task information and the above-mentioned target task requirement information stored in the above-mentioned database into the fields in the above-mentioned approval form template; a second verification unit is used to verify the filled-in approval form template, and if the fields in the above-mentioned filled-in approval form template are all correct, the above-mentioned filled-in approval form template is determined as the above-mentioned initial approval form.

[0101] In an exemplary embodiment, the above-mentioned parsing module 404 also includes: a first prompt unit, which is used to perform a prompt operation to prompt that there is an abnormality in the above-mentioned target task when the above-mentioned task information and / or the above-mentioned task requirement information verification fails; a first termination unit, which is used to terminate the response to the above-mentioned target request and delete the above-mentioned target task.

[0102] In an exemplary embodiment, the first generation module 406 further includes: a first parsing unit, used to parse the historical approval form to obtain the historical approval record from the historical approval form, wherein the historical approval record includes at least one of the following: historical approval node, historical approval opinion, historical approval time, historical approval modification; a second generation unit, used to generate the flow process of the initial approval form according to the historical approval record to obtain the target approval form.

[0103] In an exemplary embodiment, the approval module 408 further includes: a first determination unit, used to determine each of the approval nodes and the approval content corresponding to each of the approval nodes included in the target approval form; a first approval unit, used to perform the task approval operation for each of the approval nodes through the following steps: loading the approval content and the approval decision support information into the approval node, wherein the approval decision support information includes the approval rule instructing the approval node to approve the approval content; dynamically displaying the approval content and the approval decision support information in the approval node, and obtaining the approval action triggered by the approval node on the approval content according to the approval decision support information, wherein the approval action includes at least one of the following operations performed on the approval content: the action of adding content to the approval content, the action of modifying the approval content, the action of deleting content from the approval content, the action of passing the approval content, and the action of refusing to pass the approval content; a second determination unit, used to determine the approval result according to the flow process and the approval action.

[0104] In an exemplary embodiment, the approval module 408 further includes: a third determination unit, which is used to determine the approval result according to the approval action when the approval node is the last node in the circulation process and the approval action shows that the approval content has been passed; a fourth determination unit, which is used to determine the next approval node according to the circulation process when the approval node is an intermediate node in the circulation process and the approval action shows that the approval content has been passed, and continue to perform the task approval operation through the next approval node to obtain the approval result; a fifth determination unit, which is used to end the circulation process and determine the approval result according to the approval action when the approval action shows that the approval content has not been passed.

[0105] In an exemplary embodiment, the second generation module 410 further includes: a first extraction unit, for extracting execution information from the target task when it is determined from the approval result that the target task has been approved, wherein the execution information includes the task information and the task requirement information; a first execution unit, for determining a task node for executing the target task according to the execution information; and a third generation unit, for generating the target instruction based on the task node and the execution information.

[0106] In an exemplary embodiment, the second generation module 410 also includes: a first sending unit, used to send the target instruction to the task node to instruct the task node to respond to the target instruction and execute the target task; a first acquisition unit, used to acquire instruction status information from the task node, wherein the instruction status information includes the execution status and execution result generated by the task node in response to the target instruction; and a fourth generation unit, used to generate adjustment information according to the execution status and the execution result, wherein the adjustment information is used to adjust the execution process of the target task.

[0107] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0108] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0109] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0110] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0111] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0112] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0113] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0114] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0115] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0116] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0117] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for generating instructions based on form information, characterized in that: The method comprises: Obtaining a target request, wherein the target request is used to request a task approval operation to be performed on a target task; In response to the target request, the task information of the target task and the task requirement information for executing the target task are parsed from the target request to generate an initial approval form; Generate a flow process of the initial approval form based on the historical approval form to obtain a target approval form, wherein the flow process includes a plurality of approval nodes for approving the target task and the task requirement information and an approval order between the plurality of approval nodes, and the historical request corresponding to the historical approval form matches the target request; Execute the task approval operation according to the target approval form to obtain the approval result; A target instruction is generated based on the approval result to trigger the execution of the target task.

2. The method according to claim 1, characterized in that In response to the target request, task information of the target task and task requirement information for executing the target task are parsed from the target request to generate an initial approval form, including: In response to the target request, extracting task information of the target task and task requirement information for executing the target task according to the data format and data structure of the target request; Performing a verification operation on the task information and the task requirement information, wherein the verification operation includes verifying an information format of the task information and an information format of the task requirement information, and verifying an information logic of the task information and an information logic of the task requirement information; When both the task information and the task requirement information are verified, the task information and the task requirement information are respectively processed into information structures, and the target task information and the target task requirement information obtained after the processing are correspondingly stored in the database; Generating an approval form template according to the task type of the target task, wherein the approval form template includes fields corresponding to the target task; Filling the target task information and the target task requirement information stored in the database into the fields in the approval form template; The filled approval form template is verified, and when the fields in the filled approval form template are all correct, the filled approval form template is determined as the initial approval form.

3. The method according to claim 2, characterized in that After performing a verification operation on the task information and the task requirement information, the method further includes: When the task information and / or the task requirement information fails to pass the verification, a prompt operation is performed to prompt that an abnormality exists in the target task; The response to the target request is terminated, and the target task is deleted.

4. The method according to claim 1, characterized in that: The flow process of generating the initial approval form based on the historical approval form to obtain the target approval form includes: Parsing the historical approval form to obtain the historical approval record from the historical approval form, wherein the historical approval record includes at least one of the following: historical approval node, historical approval opinion, historical approval time, and historical approval modification; The target approval form is obtained by generating a flow process of the initial approval form according to the historical approval record.

5. The method according to claim 1, characterized in that The task approval operation is performed according to the target approval form to obtain the approval result, including: Determine each approval node included in the target approval form and the approval content corresponding to each approval node; For each of the approval nodes, the task approval operation is performed through the following steps: loading the approval content and approval decision support information into the approval node, wherein the approval decision support information includes approval rules that instruct the approval node to approve the approval content; dynamically displaying the approval content and the approval decision support information in the approval node, and obtaining the approval action triggered by the approval node on the approval content according to the approval decision support information, wherein the approval action includes at least one of the following operations performed on the approval content: an action of adding content to the approval content, an action of modifying the approval content, an action of deleting content from the approval content, an action of approving the approval content, and an action of refusing to approve the approval content; The approval result is determined according to the flow process and the approval action.

6. The method according to claim 5, characterized in that Determining the approval result according to the flow process and the approval action includes: When the approval node is the last node in the flow process and the approval action shows that the approval content is passed, determining the approval result according to the approval action; When the approval node is an intermediate node in the flow process and the approval action shows that the approval content is passed, the next approval node is determined according to the flow process, and the task approval operation is continued through the next approval node to obtain the approval result; When the approval action shows that the approval content has not been passed, the circulation process is terminated, and the approval result is determined according to the approval action.

7. The method according to claim 1, characterized in that Generating a target instruction to trigger execution of the target task based on the approval result includes: In the case where it is determined from the approval result that the target task is approved, extracting execution information from the target task, wherein the execution information includes the task information and the task requirement information; Determine a task node for executing the target task according to the execution information; The target instruction is generated based on the task node and the execution information.

8. The method according to claim 7, characterized in that After generating the target instruction based on the task node and the execution information, the method further includes: Sending the target instruction to the task node to instruct the task node to respond to the target instruction and execute the target task; Acquire instruction status information from the task node, wherein the instruction status information includes an execution status and an execution result generated by the task node in response to the target instruction; Adjustment information is generated according to the execution status and the execution result, wherein the adjustment information is used to adjust the execution process of the target task.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 8 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Energy storage demand processing method and system

    CN121212749A