Enterprise resource planning (ERP) system-based delegation task transfer method, equipment and medium
By introducing the delegated task transfer method and recursive judgment function in the ERP system, the problem of approval stagnation caused by the one-way task delegation in the ERP system is solved, dynamic adjustment and flexible management of tasks are realized, and work efficiency and enterprise competitiveness are improved. .
Patent Information
- Application Number
- CN202411079220.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-26
Smart Images

Figure CN119027050A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information management technology, and in particular to a method, device and medium for delegating entrusted tasks based on an ERP system. Background Art
[0002] In the daily work of enterprises, work delegation often occurs. With the widespread application of enterprise management software (ERP system), employees delegate work online through enterprise management software. Therefore, standard enterprise management software products need to support task delegation in multiple scenarios.
[0003] The traditional task delegation process requires that the delegator's task be assigned to the trustee according to business type, user, role and other information. Both the delegator and the trustee must approve the delegated task at the same time. In most ERP systems, task delegation is usually designed to be one-way, that is, once a task is delegated to a user or role, it cannot usually be delegated to other users or roles again. However, when the trustee is unable to approve his or her own to-do tasks and delegated tasks due to a business trip, it is easy to delay the task and affect the work progress.
[0004] As the international and corporate requirements for information construction become increasingly higher, the scenarios requiring delegation and delegation are becoming more and more complex. Relying on the existing single-step delegation is prone to problems such as approval stagnation caused by the first trustee's inability to approve. Summary of the invention
[0005] In order to solve the above problems, this application proposes a method for delegating entrusted tasks based on an ERP system, including:
[0006] Creating a delegation definition according to delegation information input by the delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to the first delegatee;
[0007] Obtaining a preset approval time range, and generating a recursive judgment function based on the preset approval time range to judge whether the entrusted task is approved within the preset approval time range;
[0008] If not, responding to the delegation permission event, sending the delegated task to the second delegate, recording the delegation information, and calling the recursive judgment function to again judge whether the delegated task is approved within the preset approval time range;
[0009] Until the delegation end time in the delegation information is reached, a delegation end event is responded to or the recursive judgment function converges, and the response to the delegation permission event is stopped.
[0010] On the other hand, the present application also proposes a delegated task delegation device based on an ERP system, comprising:
[0011] at least one processor; and,
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform, for example:
[0014] Creating a delegation definition according to delegation information input by the delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to the first delegatee;
[0015] Obtaining a preset approval time range, and generating a recursive judgment function based on the preset approval time range to judge whether the entrusted task is approved within the preset approval time range;
[0016] If not, responding to the delegation permission event, sending the delegated task to the second delegate, recording the delegation information, and calling the recursive judgment function to again judge whether the delegated task is approved within the preset approval time range;
[0017] Until the delegation end time in the delegation information is reached, a delegation end event is responded to or the recursive judgment function converges, and the response to the delegation permission event is stopped.
[0018] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0019] Creating a delegation definition according to delegation information input by the delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to the first delegatee;
[0020] Obtaining a preset approval time range, and generating a recursive judgment function based on the preset approval time range to judge whether the entrusted task is approved within the preset approval time range;
[0021] If not, responding to the delegation permission event, sending the delegated task to the second delegate, recording the delegation information, and calling the recursive judgment function to again judge whether the delegated task is approved within the preset approval time range;
[0022] Until the delegation end time in the delegation information is reached, a delegation end event is responded to or the recursive judgment function converges, and the response to the delegation permission event is stopped.
[0023] This application proposes a method for delegating tasks based on an ERP system, which can bring the following beneficial effects:
[0024] Through the recursive judgment function, judgment is added to the delegation of delegated tasks. When the preset approval time range is reached, the unapproved delegated tasks will be delegated to other trustees. Dynamic adjustments can be made according to actual conditions during the task execution process, thereby enhancing the flexibility of task management.
[0025] Through delegation and delegating, we can effectively solve the problem of approval stagnation caused by the inability of intermediate trustees to approve in various delegation scenarios. While improving work efficiency and resource utilization efficiency, it also helps to reduce the company's operating costs and enhance its competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 A flowchart of a method for delegating a task based on an ERP system in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of a process for generating a delegated task in an embodiment of the present application;
[0029] Figure 3 This is a schematic diagram of the process of multiple delegations and delegations in the embodiments of the present application;
[0030] Figure 4 A schematic diagram of a process for generating a task for delegation in an embodiment of the present application;
[0031] Figure 5 This is a schematic diagram of a delegated task delegation device based on an ERP system in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0033] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0034] It should be noted that ERP systems usually have strict approval and authorization mechanisms to ensure that the delegation and execution of tasks comply with the organization's internal authorization structure and policies. When a trustee already has a delegated task and delegates his pending business or delegated tasks to other employees, a new delegated task between the trustee and the other employee needs to be added. However, since the enterprise management software only allows one delegated task to exist for the same user, the trustee cannot delegate tasks to other employees. At this point, the task node where the trustee is located is still unapproved, and the approval node is blocked, which will affect the normal flow of subsequent tasks and the entire process.
[0035] like Figure 1 As shown, the embodiment of the present application provides a method for delegating a task based on an ERP system, comprising:
[0036] S101: creating a delegation definition according to delegation information input by a delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to a first delegate.
[0037] Specifically, according to the entrustment information entered by the entrustor, a delegation definition is created, and the entrustment scope and whether to allow delegation are set. The entrustment information is shown in Table 1, including entrustor information, entrustment start time, entrustment end time, entrustee information, business scope, entrustment activation conditions, notification message channels, etc. At the same time, the entrustment scope and whether to allow delegation are set. The entrustee can be one or more, and the entrustment scope is company employees within the business scope.
[0038]
[0039]
[0040] Table 1
[0041] It should be noted that if delegation is allowed, the first trustee can delegate the delegated tasks entrusted to him by the principal and other tasks in the to-do task list to other users. If delegation is not allowed, a delegation chain cannot be formed. In the embodiment of the present application, the delegation information entered by the principal allows delegation.
[0042] Furthermore, the urgency of the delegation is determined based on the delegation start time and the delegation end time. When it is determined that the delegator has sent a delegation instruction, in response to the delegation event, a delegation task and a delegation message notification are generated based on the delegation definition and the delegation urgency. The delegation task is sent to the to-do task list of the first trustee, and based on the notification message channel, the delegation message notification is sent to the receiving channel corresponding to the first trustee.
[0043] More specifically, the time period between the commission start time and the commission end time is obtained, the time interval corresponding to the time period is determined, and the commission urgency is determined according to the time interval. In the embodiment of the present application, according to the preset evaluation criteria, it is divided into three time length intervals, and the commission urgency corresponding to each time length interval is different. According to the time length, the commission urgency decreases in sequence.
[0044] It should be noted that when the principal's pending tasks are generated, the process engine will generate tasks that meet the conditions of the principal to the trustee according to the time range, delegation scope, activation conditions, etc. set in the delegation definition. At this time, both the principal and the first trustee can approve. After the principal approves, the trustee's pending task will be taken back; after the trustee approves, a review notification will be sent to the principal, and the principal's pending task will be taken back. The schematic diagram of generating pending tasks for the principal according to the delegation definition is as follows Figure 2 shown.
[0045] S102: Acquire a preset approval time range, and generate a recursive judgment function based on the preset approval time range to judge whether the delegated task is approved within the preset approval time range.
[0046] Specifically, according to the urgency of the entrustment, the corresponding preset approval time range is called, and the higher the urgency of the entrustment, the shorter the preset approval time range is. According to the corresponding preset approval time range and the judgment of whether the entrusted task is approved within the preset approval time range, a recursive judgment function is generated.
[0047] It should be noted that encapsulating the time range judgment and approval status check into a recursive function can make this logic more modular, so that the same logic can be reused in different scenarios or different task approval processes without having to repeatedly write the same code, avoiding code redundancy and making the code more concise.
[0048] S103: If not, respond to the delegation permission event, send the delegated task to the second delegate, record the delegation information, and call the recursive judgment function to again judge whether the delegated task is approved within the preset approval time range.
[0049] Specifically, if the delegated task is not approved within the preset approval time range, the delegate allows the event to be responded to, the second trustee in the delegation information is obtained in the delegation definition, the delegated task is sent to the second trustee, and the delegation unapproved message and the delegation delegation message are sent to the message receiving channel corresponding to the delegator.
[0050] Furthermore, the delegation information is recorded in the approval log, and the recursive judgment function is called to judge again whether the delegated task is approved within the preset approval time range.
[0051] In addition, if the delegated task is approved within the preset approval time range, the approval record is obtained, and the approving user is determined based on the approval record. When the approving user is the trustee, the approval notification message is sent to the delegator, and the delegated task is deleted from the delegator's to-do task list. When the approving user is the delegator, the delegated task is deleted from the trustee's to-do task list.
[0052] For example, after receiving the delegation task, the first trustee B may not be able to approve it in time due to objective reasons such as business trips, and may not be able to approve it within the preset approval time range. At this time, the first trustee B needs to send the delegation task he received from the principal A to the final trustee C. When setting up delegation delegation, the first trustee B can select one or more delegation definitions that need to be delegated and allowed to be delegated from his to-do task list, change the trustee, and save. At this point, the delegation relationship between the principal A and the first trustee B becomes the delegation relationship between the principal A and the final trustee C. After setting up delegation delegation, the audit log will record the delegation record. In addition, the principal A will be notified that the delegation definition has been delegated according to the configured message channel, message template, etc. Unless the principal A changes the delegation definition and does not allow delegation delegation, the first principal can delegate the received delegation definition to the final trustee within the time range when the delegation takes effect. The schematic diagram of multiple delegation delegations is as follows Figure 3 shown.
[0053] It should be noted that after setting up delegation and delegation, the process engine will take back the pending tasks obtained by the first trustee B from the principal A, and give these tasks to the final trustee C. At this time, both the principal A and the final trustee C can approve these tasks. After the principal A approves, the pending task will be taken back from the final trustee C; after the final trustee C approves, a review notification will be sent to the principal A, and the pending task will be taken back from the principal A. At this time, the first trustee B will no longer participate in the approval process of the delegated task. The schematic diagram of the delegation task generation is shown in the figure below. Figure 4 shown.
[0054] S104: until the delegation end time in the delegation information is reached, responding to a delegation end event or the recursive judgment function converges, stopping responding to the delegation permission event.
[0055] Specifically, when the delegation end time is reached, the delegation end event is responded to, the delegation task is ended, and the corresponding delegation tasks in the to-do list of the delegator and the delegate are suspended. Or the recursive judgment function converges and stops responding to the delegation permission event.
[0056] In addition, in the embodiment of the present application, delegation maintenance can also be performed. When the delegation deactivation requirement of the principal is obtained, the delegation task revocation method is called to suspend the processing of the delegation task in the to-do task list of the trustee, and the administrator approves the revocation of the delegation task. If approved, the delegation task in the to-do task list of the trustee is revoked. When the principal's demand to stop generating delegation is obtained, the delegation definition deactivation method is called to stop generating delegation tasks.
[0057] Through the recursive judgment function, judgment is added to the delegation of delegated tasks. When the preset approval time range is reached, the unapproved delegated tasks will be delegated to other trustees. Dynamic adjustments can be made according to actual conditions during the task execution process, thereby enhancing the flexibility of task management.
[0058] Through delegation and delegating, we can effectively solve the problem of approval stagnation caused by the inability of intermediate trustees to approve in various delegation scenarios. While improving work efficiency and resource utilization efficiency, it also helps to reduce the company's operating costs and enhance its competitiveness.
[0059] like Figure 5 As shown, the embodiment of the present application also proposes a delegated task delegation device based on the ERP system, including:
[0060] at least one processor; and,
[0061] a memory communicatively connected to the at least one processor; wherein,
[0062] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method for delegating delegated tasks based on an ERP system as described in any of the above embodiments.
[0063] An embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as: a method for delegating a delegated task based on an ERP system as described in any of the above embodiments.
[0064] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0065] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0066] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0067] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0070] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0071] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0072] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0073] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0074] The above is only an 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 changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for delegating entrusted tasks based on an ERP system, characterized in that: include: Creating a delegation definition according to delegation information input by the delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to the first delegatee; Obtaining a preset approval time range, and generating a recursive judgment function based on the preset approval time range to judge whether the entrusted task is approved within the preset approval time range; If not, responding to the delegation permission event, sending the delegated task to the second delegate, recording the delegation information, and calling the recursive judgment function to again judge whether the delegated task is approved within the preset approval time range; Until the delegation end time in the delegation information is reached, a delegation end event is responded to or the recursive judgment function converges, and the response to the delegation permission event is stopped.
2. According to claim 1, a method for delegating entrusted tasks based on an ERP system is characterized in that: The entrustment information includes entrustor information, entrustment start time, entrustment end time, entrustee information, business scope, entrustment activation conditions, and notification message channels; The step of creating a delegation definition according to the delegation information input by the delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to the first delegatee specifically includes: Obtain the entrustment information input by the entruster, and determine the urgency of the entrustment according to the entrustment start time and the entrustment end time; Creating a delegation definition according to the delegation information; In response to a delegation event, a delegation task and a delegation message notification are generated based on the delegation definition and the delegation urgency, the delegation task is sent to the first trustee, and based on the notification message channel, the delegation message notification is sent to the receiving channel corresponding to the first trustee.
3. According to claim 2, a method for delegating entrusted tasks based on an ERP system is characterized in that: Determining the urgency of the entrustment according to the entrustment start time and the entrustment end time specifically includes: Obtain a time period between the commission start time and the commission end time, and determine a time interval corresponding to the time period according to a preset evaluation standard; The urgency of the commission is determined according to the time interval.
4. According to claim 2, a method for delegating entrusted tasks based on an ERP system is characterized in that: The obtaining of a preset approval time range and generating a recursive judgment function based on the preset approval time range specifically includes: According to the urgency of the entrustment, the corresponding preset approval time range is called; A recursive judgment function is generated according to the corresponding preset approval time range and the judgment of whether the entrusted task is approved within the corresponding preset approval time range.
5. According to the method for delegating entrusted tasks based on the ERP system of claim 1, it is characterized in that: The method further comprises: If the entrusted task is approved within the preset approval time range, obtaining the approval record, and determining the approving user according to the approval record; When the approving user is a trustee, an approval notification message is sent to the trustor, and the entrusted task is deleted from the to-do task list of the trustor; When the approving user is the delegator, the delegated task is deleted from the to-do task list of the delegator.
6. According to the method for delegating entrusted tasks based on the ERP system of claim 1, it is characterized in that: The response to the delegation permission event, sending the delegated task to the second delegate, specifically includes: In response to the delegation permission event, obtaining a second trustee in the delegation information in the delegation definition, and sending the delegation task to the second trustee; And send the delegation unapproved message and the delegation transfer message to the delegator.
7. According to claim 1, a method for delegating entrusted tasks based on an ERP system is characterized in that: The method further comprises: Obtain the deactivation demand of the delegator, call the delegated task reclaiming method, and suspend the processing of the delegated tasks in the to-do task list of the trustee; The administrator shall review and approve the entrusted task; If approved, the entrusted task in the to-do task list of the trustee will be withdrawn.
8. According to the method for delegating entrusted tasks based on the ERP system as claimed in claim 1, it is characterized in that: The method further comprises: The request of the principal to stop generating delegation is obtained, and the delegation definition deactivation method is called to stop generating delegation tasks.
9. A task delegation device based on an ERP system, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform, for example: Creating a delegation definition according to delegation information input by the delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to the first delegatee; Obtaining a preset approval time range, and generating a recursive judgment function based on the preset approval time range to judge whether the entrusted task is approved within the preset approval time range; If not, responding to the delegation permission event, sending the delegated task to the second delegate, recording the delegation information, and calling the recursive judgment function to again judge whether the delegated task is approved within the preset approval time range; Until the delegation end time in the delegation information is reached, a delegation end event is responded to or the recursive judgment function converges, and the response to the delegation permission event is stopped.
10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Creating a delegation definition according to delegation information input by the delegator, generating a delegation task based on the delegation definition in response to a delegation event, and sending the delegation task to the first delegatee; Obtaining a preset approval time range, and generating a recursive judgment function based on the preset approval time range to judge whether the entrusted task is approved within the preset approval time range; If not, responding to the delegation permission event, sending the delegated task to the second delegate, recording the delegation information, and calling the recursive judgment function to again judge whether the delegated task is approved within the preset approval time range; Until the delegation end time in the delegation information is reached, a delegation end event is responded to or the recursive judgment function converges, and the response to the delegation permission event is stopped.
