A workflow creation method, device, computer equipment and storage medium
By configuring work link attributes according to business processing types and building custom workflows, the problem of solidification of existing workflows is solved, the flexibility and scalability of workflows are improved, and more efficient workflow automation is achieved.
Patent Information
- Application Number
- CN202010994674.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-21
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2040-09-21
AI Technical Summary
The existing workflow construction methods lack flexibility, resulting in a fixed and single workflow, which has great limitations, and cannot effectively adapt to changes in business needs.
By determining the default workflow according to the business processing type of the pending business and configuring it according to the link attributes of the default work link, a custom workflow is built to improve the flexibility and scalability of the workflow.
It realizes the flexibility and scalability of workflows, and can customize workflows according to different business needs, reduce manual intervention and improve work efficiency.
Smart Images

Figure CN112183982B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer software application technology, and in particular to a workflow creation method, apparatus, computer equipment and storage medium. Background Art
[0002] With the rapid development of society, people's work division is becoming more and more detailed. The detailed division of labor leads to the need for multiple people to complete a task, which not only consumes manpower, but also is very time-consuming, resulting in low work efficiency. Workflow is a technology that is designed to solve the problem of multi-person collaborative work. By establishing a set of workflow models, multiple business links are connected in a certain order to complete the work.
[0003] At present, the existing enterprise automated workflow system is customized according to the specific business needs of the enterprise. When the business needs change, the workflow system needs to be redesigned and updated. It can be seen that the existing workflow construction method lacks flexibility, the constructed workflow is fixed and single, has great limitations, and has poor scalability. Summary of the invention
[0004] The embodiments of the present invention provide a workflow creation method, apparatus, computer equipment and storage medium to improve the flexibility and expansibility of workflow construction.
[0005] In a first aspect, an embodiment of the present invention provides a workflow creation method, comprising:
[0006] Determine a default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link;
[0007] Configure each default working link according to the link attribute corresponding to each default working link to obtain a configured working link;
[0008] A custom workflow corresponding to the business to be processed is constructed according to each of the configuration work links.
[0009] In a second aspect, an embodiment of the present invention further provides a workflow creation device, comprising:
[0010] A default workflow determination module is used to determine a default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link;
[0011] A working link configuration module, used to configure each default working link according to the link attribute corresponding to each default working link, to obtain a configured working link;
[0012] The custom workflow construction module is used to construct a custom workflow corresponding to the to-be-processed business according to each of the configuration work links.
[0013] In a third aspect, an embodiment of the present invention further provides a workflow creation computer device, the computer device comprising:
[0014] one or more processors;
[0015] A storage device for storing one or more programs;
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the workflow creation method provided by any embodiment of the present invention.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the workflow creation method provided by any embodiment of the present invention is implemented.
[0018] The embodiment of the present invention completes the construction of a custom workflow by determining the default workflow corresponding to the business to be processed according to the business processing type of the business to be processed, and configuring the attributes of each default work link according to the link attributes corresponding to each default work link, thereby solving the problem of the existing workflow being solidified and lacking flexibility, thereby improving the flexibility and extensibility of workflow construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flowchart of a workflow creation method provided by Embodiment 1 of the present invention;
[0020] Figure 2 is a flowchart of a workflow creation method provided by Embodiment 2 of the present invention;
[0021] Figure 3 A schematic diagram of generating a flow instruction provided in the second embodiment of the present invention;
[0022] Figure 4 is a schematic diagram of a process instruction execution provided by Embodiment 2 of the present invention;
[0023] Figure 5 A schematic diagram of a flow instruction exception handling process provided by Embodiment 2 of the present invention;
[0024] Figure 6 A flowchart of an application scenario of a custom workflow provided by Embodiment 2 of the present invention;
[0025] Figure 7 It is a structural diagram of a custom workflow system provided by Embodiment 3 of the present invention;
[0026] Figure 8 This is a schematic diagram of the effect of a process instruction life cycle provided by Embodiment 3 of the present invention;
[0027] Fig. 9 is a schematic diagram of a workflow creation device provided by a fourth embodiment of the present invention;
[0028] Fig.10 A schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.
[0030] It should also be noted that, for ease of description, only the part relevant to the present invention but not all content is shown in the accompanying drawings. It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0031] Embodiment 1
[0032] Figure 1 This is a flowchart of a workflow creation method provided by the first embodiment of the present invention. This embodiment is applicable to the case where the default work link is configured by configuring the attributes of the default work link to build a custom workflow. The method can be executed by a workflow creation device, which can be implemented by software and / or hardware and can generally be integrated in a computer device. Figure 1 As shown, the method includes the following operations:
[0033] S110. Determine a default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link.
[0034] Among them, the business to be processed is the business that needs to establish a corresponding workflow. The business processing type is the business type of the business to be processed. Exemplarily, the business processing type can be, for example, payment, accounting or settlement, etc. The embodiment of the present invention does not limit the specific type of business processing type. The default workflow can be a workflow corresponding to the business processing type. The default work link can be each work link in the default workflow, and each work link can be an execution step. Optionally, the default workflow can include a main process and a sub-process. Among them, the main process can be composed of a default workflow, and the sub-process can be a specific execution process of the default workflow.
[0035] It is understandable that different pending businesses have different corresponding business processing types. Different business processing types correspond to different default workflows. Therefore, when determining the default workflow for pending businesses, it is necessary to first determine the business processing type of the pending business, and then determine the corresponding default workflow according to the business processing type of the pending business. In order to make the workflow meaningful, the default workflow includes at least one default work link.
[0036] For example, when the pending service is a payment service, the pending service processing type is payment, and the default workflow corresponding to the pending service may include: obtaining payment account information of the payment user - verifying the payment user identity information - performing payment operations on the payment account, etc. Among them, obtaining payment account information of the payment user, verifying the payment user identity information, and performing payment operations on the payment account are three default work links of the default workflow.
[0037] S120. Configure each default working link according to the link attribute corresponding to each default working link to obtain a configured working link.
[0038] The link attribute may be a configurable attribute of a default working link. Different default working links may correspond to different link attributes, and the link attribute corresponding to the default working link may be at least one. Optionally, the link attribute corresponding to the default working link may include a skip attribute and / or an automatic execution attribute.
[0039] Correspondingly, after obtaining the default workflow corresponding to the business to be processed, each default work link can be configured according to the link attributes corresponding to the default work link in the default workflow to obtain the configured work link. The link attributes of the default work link can be configured as skip attributes and / or automatic execution attributes. For example, if the link attribute of the default work link A is configured as the skip attribute, then when the workflow corresponding to the business executes to the default work link A, the default work link A will be automatically skipped. For another example, if the link attribute of the default work link A is configured as the automatic execution attribute, then when the workflow corresponding to the business executes to the default work link A, the default work link A will be automatically executed.
[0040] In an optional embodiment of the present invention, each default work link is configured according to the link attributes corresponding to each default work link, and the configured work link may include: determining the actual execution attributes of each default work link according to the type of business to be processed; determining the corresponding link attributes of each default work link according to the actual execution attributes of each default work link.
[0041] Among them, the actual execution attribute may be a link attribute that needs to be actually executed in the default work link.
[0042] Specifically, when configuring each default work link according to the link attributes corresponding to each default work link, the actual execution attributes of each default work link can be determined according to the type of business to be processed, and then the corresponding link attributes of each default work link can be determined according to the actual execution attributes of each default work link.
[0043] Exemplarily, when the pending business is a payment business, the pending business processing type is payment. The default workflow corresponding to the payment business is the payment workflow. Due to different types of payment users, the actual execution attributes of the default work links corresponding to the payment workflow are different. For example, if the payment user is a VIP user, the VIP payment workflow for the VIP user can directly skip the work link of verifying the payment user's identity information. When defining the VIP payment workflow corresponding to the VIP user, the link attribute of the default work link of verifying the payment user's identity information in the payment workflow can be configured to skip.
[0044] S130: Construct a custom workflow corresponding to the business to be processed according to each configuration work link.
[0045] The configuration work link can be configured according to the link attribute corresponding to the default work link. The custom workflow can be a specific executable work step obtained by configuring the default work link according to the business processing type of the business to be processed, that is, according to the default workflow corresponding to the business to be processed.
[0046] Correspondingly, after configuring each default work link according to the link attributes corresponding to each default work link to obtain a configured work link, the obtained configured work link can then be used to construct a custom workflow corresponding to the business processing type of the business to be processed. Optionally, the link attributes of the default work link can be configured according to the actual execution attributes corresponding to the default work link to obtain a configured work link. That is, the custom workflow is composed of multiple configured work links.
[0047] The embodiment of the present invention completes the construction of a custom workflow by determining the default workflow corresponding to the business to be processed according to the business processing type of the business to be processed, and configuring the attributes of each default work link according to the link attributes corresponding to each default work link, thereby solving the problem of the existing workflow being solidified and lacking flexibility, thereby improving the flexibility and extensibility of workflow construction.
[0048] Embodiment 2
[0049] Figure 2 is a flowchart of a workflow creation method provided by Embodiment 2 of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, a specific optional implementation scheme is provided for configuring the default work link corresponding to the default workflow according to the business processing type, and automatically executing the business processing request after the configured work link completes the configuration. Correspondingly, Figure 2 As shown, the method includes the following operations:
[0050] S210. Determine a default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link.
[0051] S220. Configure each default working link according to the link attribute corresponding to each default working link to obtain a configured working link.
[0052] S230: Construct a custom workflow corresponding to the business to be processed according to each configuration work link.
[0053] S240, receiving a business processing request for a business to be processed; wherein the business processing request includes an internal business processing request and an external business processing request.
[0054] The business processing request may be a request for executing a custom workflow. The external business processing request may be a business processing request triggered from an external source. The internal business processing request may be a business processing request automatically generated by the system or manually triggered by a business manager. The embodiments of the present invention do not limit the specific content of the business processing request.
[0055] Specifically, after completing the construction of the custom workflow corresponding to the pending business according to each configuration work link, wait for the triggering of the business processing request to execute the custom workflow, wherein the business processing request may include but is not limited to internal business processing requests and external business processing requests.
[0056] In the embodiment of the present invention, receiving a service processing request for a service to be processed may include: acquiring the current system time; and automatically generating an internal service processing request if it is determined that the current system time reaches a preset service processing time.
[0057] The current system time may be the current time of the system that automatically runs the custom workflow. The preset business processing time may be a time point preset by the business processing system and used as a time trigger point for automatically generating an internal business processing request.
[0058] In an embodiment of the present invention, a custom workflow can be triggered and executed by an internal business processing request. Specifically, the current system time can be monitored in real time, and it can be determined whether the current system time reaches the preset business processing time. If the current system time reaches the preset business processing time, an internal business processing request can be automatically generated. Optionally, the internal business processing request can also be manually triggered and generated by a business manager according to actual business processing needs.
[0059] In an embodiment of the present invention, receiving a business processing request for a pending business may also include: receiving a standard business document for the pending business; determining the business processing type of the pending business based on a mapping relationship between a business identification code and a business processing type stored in the standard business document; and automatically generating an external business processing request based on the business processing type of the pending business.
[0060] The document may be corresponding data generated in the business processing system during business operation. The standard business document may be a business application document provided externally, used to trigger a custom workflow to process the business. Optionally, the standard business document may include data such as a business identification code and a business processing type.
[0061] In an embodiment of the present invention, the custom workflow can also be triggered to execute by an external business processing request. Specifically, a business application document of a pending business imported from an external source can be received. If the business application document of the pending business is a standard business document, the business processing type of the pending business can be determined based on the mapping relationship between the business identification code and the business processing type stored in the standard business document. Then, an external business processing request is automatically generated based on the business processing type of the pending business to trigger the automatic execution of the custom workflow.
[0062] Optionally, when the business application document of the business to be processed is a non-standard business document, the business management personnel may manually identify the business processing type of the business application document and generate an external business processing request.
[0063] S250: Instantiate the custom workflow and generate a process instruction of the custom workflow.
[0064] Among them, the process instructions can be instructions generated after instantiating a custom workflow, which can be used to automate the flow processing work process.
[0065] Correspondingly, after the custom workflow is constructed, the custom workflow is instantiated upon receiving a business processing request, and a process instruction corresponding to the custom workflow can be generated.
[0066] Figure 3 A schematic diagram of generating a flow instruction provided in the second embodiment of the present invention. Figure 3 The specific storage process of the background data flow for generating process instructions is shown. When generating process instructions, the custom workflow is first obtained, and then the various work links to be processed in the custom workflow are judged and the corresponding process instructions are generated according to the actual business processing type corresponding to the custom workflow. Finally, the process instruction master table, the registration process instruction step information table and the registration process instruction document information table are stored in the database in sequence. Among them, the process instruction master table, the registration process instruction step information table and the registration process instruction document information table can record the specific content of the process instructions respectively. For example, the process instruction master table can record specific process instructions, and the registration process instruction step information table can record the step information involved in the process instructions. The registration process instruction document information table can record the document information corresponding to the process instructions. The so-called document can be understood as the data generated by executing a work link.
[0067] In an optional embodiment of the present invention, when there are multiple process instructions; automatically executing a custom workflow based on the process instructions may include: assigning a process instruction sorting parameter of each process instruction; determining the priority order of each process instruction based on the assignment result of the process instruction sorting parameter of each process instruction; and automatically executing the custom workflow corresponding to each process instruction based on the priority order of each process instruction.
[0068] The process instruction sorting parameter may be a parameter for sorting each process instruction, and is used to determine the priority order of different process instructions.
[0069] In an embodiment of the present invention, when a plurality of corresponding process instructions are generated according to a plurality of custom workflows, it is necessary to assign a value to a process instruction sorting parameter of each process instruction, determine the priority order of the process instructions according to the process instruction sorting parameter, and finally automatically execute the corresponding custom workflow according to the priority order of the process instructions. The priority order of the process instructions can be achieved by assigning a value to the process instruction sorting parameter corresponding to the process instruction according to the business requirements of the business to be processed.
[0070] Specifically, when multiple business applications for the same operation object are received at the same time, multiple process instructions can be generated at the same time, which is called process instruction parallelism. When process instruction parallelism occurs, multiple process instructions are executed according to the process instruction sorting parameters preset by the system. Sorting process instructions can ensure that the system prioritizes the most needed business processing requests for users in limited resources.
[0071] In a specific example, the two custom workflows generated are custom workflow 1 and custom workflow 2. The custom workflow is instantiated to generate two process instructions. Custom workflow 1 corresponds to process instruction 1, and custom workflow 2 corresponds to process instruction 2. If the sorting parameter of process instruction 2 is 1, and the sorting parameter of process instruction 1 is 2, the priority of process 2 is determined to be higher than that of process instruction 1 through the sorting parameters of the process instructions. Then, the custom workflows corresponding to the priority levels of the generated process instructions are automatically executed, that is, custom workflow 2 is executed first and then custom workflow 1.
[0072] In specific applications, in the process instruction execution queue, the process instruction sorting parameters corresponding to each process instruction can be assigned and sorted according to information such as enterprise group summary, individual and instruction business classification sorting, so that the process instruction information that needs to be executed first in the same enterprise or individual can be executed.
[0073] S260. Automatically execute the customized workflow according to the process instructions.
[0074] The automated execution may be that the corresponding customized workflow of the pending business is automatically executed according to the corresponding process instructions without manual operation.
[0075] In an embodiment of the present invention, the custom workflow is automatically executed according to the process instruction, which may include: receiving the review result of the process instruction; if the review result is passed, automatically executing the custom workflow according to the process instruction.
[0076] The audit result may be a result of a business manager's audit of the process instruction, and the audit result may include pass or fail.
[0077] In an embodiment of the present invention, in order to ensure that the process instructions can correctly guide the automatic execution of the custom workflow, the process instructions can be reviewed. Optionally, the process instructions can be reviewed by manual review or automatic review. If the review result is passed, the custom workflow can be automatically executed according to the process instructions. The content of the review can include whether all the fields of the process instructions correspond to the business processing type, and whether the business documents loaded under the process instruction are accurate. If the review result is failed, the process instructions cannot automatically execute the custom workflow.
[0078] In an embodiment of the present invention, when a custom workflow is automatically executed according to a process instruction, parallel processing can be achieved through a Fork / Join framework, which recursively splits tasks that can be executed in parallel into smaller tasks, and then merges the results of each subtask to generate an overall result. This method reduces the waiting time of threads and improves performance. At the same time, the pending business work links under the process instruction can be controlled concurrently by recording priority sorting in the database.
[0079] Accordingly, S260 may specifically include the following operations:
[0080] S261. Obtain a process instruction sequence table of a custom workflow.
[0081] The process instruction sequence table may be used to record relevant information of the working steps of the custom work process, for example, recording the execution order of the working steps.
[0082] In the embodiment of the present invention, obtaining the process instruction sequence table of the custom workflow means obtaining the execution status information of each work link of the process instruction corresponding to the custom workflow.
[0083] S262. Determine the work links to be processed of the custom workflow according to the process instruction sequence table.
[0084] Among them, the work link to be processed is the work link that needs to be processed currently.
[0085] Correspondingly, since the process instructions in the process instruction sequence table correspond to the step information of the custom workflow, ie, the work links, the to-be-processed work links of the custom workflow can be determined according to the process instruction sequence table.
[0086] S263. Automatically execute the customized workflow according to the current processing status of the work link to be processed.
[0087] The current processing state may be the processing state of the current work link to be processed. Optionally, the current processing state may include a completed state, a pending state, and a waiting state, etc. The embodiment of the present invention does not limit the specific state type of the current processing state.
[0088] In an optional embodiment of the present invention, when the process instruction is reviewed and approved, the process instruction is executed according to the corresponding custom workflow. After a pending work link is executed, the process instruction flows to the next pending work link preset in the custom workflow until the last pending work link in the custom workflow is executed. The automatic flow of process instructions is realized by continuously updating the pending work links. If the review result is not passed, the process instruction cannot automatically execute the custom workflow.
[0089] Among them, the overall instruction status can be used to reflect the overall execution status of the custom workflow.
[0090] Exemplarily, when all work links in a custom workflow are executed, the overall instruction status can be updated to a completed status, indicating that all work links in the custom workflow are executed. As long as some or all work links in a custom workflow are not executed, the overall instruction status is an uncompleted status, indicating that all work links in the custom workflow are not yet executed. Correspondingly, if the current processing status of the pending work link is a pending status, indicating that the pending work link has not yet started to execute, the pending work link can be automatically executed according to the work link attributes of the pending work link. If the current processing status of the pending work link is a waiting status, indicating that the pending work link is being executed and has not yet been completed, the pending work link can be automatically executed according to the execution results of the nested work links of the pending work link.
[0091] In an optional embodiment of the present invention, the automated execution of the work link to be processed according to the work link attributes of the work link to be processed may include: if the work link attribute of the work link to be processed is automatic execution, calling the system internal interface to automatically execute the work link to be processed, and after determining that the execution of the work link to be processed is completed, updating the step status of the work link to be processed in the process instruction information table to the completed status; otherwise, pushing the work link to be processed, and updating the step status of the work link to be processed in the process instruction information table to the processing status.
[0092] The system internal interface may be a business system interface corresponding to a business related to a custom workflow process. For example, if a custom workflow processes a payment business, the system internal interface may be a payment interface.
[0093] Specifically, if the work link attribute of the work link to be processed is automatically executed, it indicates that the work link to be processed can be automatically executed without human intervention. At this time, the custom workflow can call the system internal interface to automatically execute the work link to be processed, and after the work link to be processed is completed, the step status of the work link to be processed in the process instruction information table is updated to the completed state. If the work link attribute of the work link to be processed is not automatically executed, it indicates that the work link to be processed cannot be automatically executed and requires human participation. At this time, the custom workflow can push the work link to be processed, wait for manual operation, and update the step status of the work link to be processed in the process instruction information table to the processing state. In an optional embodiment of the present invention, the work link to be processed is automatically executed according to the execution result of the nested work link of the work link to be processed, which may include: if it is determined that the nested work link is executed, the step status of the work link to be processed in the process instruction information table is updated to the completed state.
[0094] Among them, the nested work link can be a sub-processing link of the link to be processed, that is, a link to be processed can include multiple sub-processing links, and each sub-processing link constitutes a sub-process nested in the work link to be processed.
[0095] Specifically, automatically executing the work link to be processed according to the execution result of the nested work link of the work link to be processed can be: after the nested work link is executed, the step status of the work link to be processed in the process instruction information table is updated to the completion status.
[0096] For example, suppose that a pending work link has three nested work links, and all of their link attributes are automatically executed. If the execution status of the three nested work links are all completed, the step status of this pending work link in the process instruction information table is updated to the completed status. If the three nested work links are not all executed, the nested work links that have not been executed are automatically executed.
[0097] Figure 4 is a schematic diagram of a flow instruction execution provided by Embodiment 2 of the present invention. In a specific example, Figure 4The background processing process of the process instruction execution is shown. Specifically, the process instruction sequence table is first obtained, and the pending work link of the custom workflow is determined through the process instruction sequence table. Among them, the work link is referred to as a step, and a pending work link is a pending step. If the current processing status of all steps is the completed state, that is, the pending state and / or the waiting state are not obtained, the overall instruction state of the process instruction information table of the custom workflow is updated to the completed state. If the current processing state of the pending step that has not been successfully executed recently is the pending state, it is further determined whether it is automatically executed. If so, the system internal interface is called to automatically execute the pending step, and after determining that the pending step is completed, the step state of the pending step in the process instruction information table is updated to the completed state; otherwise, the pending step is pushed, and the step state of the pending step in the process instruction information table is updated to the processing state for the pending step, waiting for the business management personnel to perform manual operation. If the current processing state of the pending step is the waiting state, after the nested step of the pending step is completed, the step state of the pending step in the process instruction information table is updated to the completed state. Otherwise, continue to execute the nested steps of the pending step and determine whether the nested steps have been completed, until the nested steps are completed and the step status is updated to the completed status. If the current processing status of the pending step is not pending, all executed successfully, or waiting, the pending step is in other status.
[0098] Exemplarily, when the pending business is a payment business, the business processing type of the pending business is payment, and the default workflow corresponding to the pending business may include: obtaining the payment account information of the paying user - verifying the identity information of the paying user - paying the corresponding payment account. If the paying user is a VIP user, the actual execution attribute of the work link of verifying the identity information of the paying user in the payment workflow corresponding to the VIP user is skipped, so it is necessary to determine the corresponding link attribute of the work link of verifying the identity information of the paying user according to the actual execution attribute as skipped. If the current processing status of all pending work links is the completed status, the overall instruction status of the process instruction information table is updated to the completed status. If verifying the identity information of the paying user is the current processing work link, the current processing status of the work link is the pending execution status. Since the work link attribute of verifying the identity information of the paying user is skipped, there is no need to execute the work link of verifying the identity information of the paying user, and the pending work link can be directly skipped, and before the corresponding payment account is paid, the step status of verifying the identity information of the paying user in the process instruction information table is updated to the completed status. If the attribute of the work link for verifying the identity information of the payment user is not automatically executed, the pending work link will be pushed, and the step status of the pending work link in the process instruction information table will be updated to the processing status, waiting for the business management personnel to perform manual operations. If the current processing status of the payment of the corresponding payment account is the waiting status, the step status of the payment of the corresponding payment account will be updated according to the execution result of the nested work link of the payment of the corresponding payment account. If the nested work link is executed, the step status of the payment of the corresponding payment account in the process instruction information table will be updated to the completed status, otherwise, the nested work link of the payment of the corresponding payment account will continue to be executed until the nested work link is executed, and the step status of the payment of the corresponding payment account will be updated to the completed status.
[0099] In a specific embodiment of the present invention, automating the execution of a custom workflow according to process instructions may include: if an exception occurs during the execution of the work link to be processed, updating the step status of the work link to be processed and the instruction status of the process instruction in the process instruction information table to an abnormal state; generating an abnormal notification event based on the abnormal state; and pushing the abnormal notification event.
[0100] Among them, the exception notification event can be an event generated for a fault problem that occurs during the execution process when the process instruction automatically executes the custom workflow, and is used to provide an exception prompt.
[0101] Accordingly, when the process instruction automatically executes the custom workflow, for exceptions that occur during the execution process, the step status of the corresponding work link to be processed in the process instruction information table and the instruction status of the process instruction can be updated to an abnormal state. Then, an abnormal notification event is generated based on the abnormal state, and the abnormal notification event is pushed, such as to a device terminal for display. Accordingly, relevant staff can handle the received abnormal notification event.
[0102] In an optional embodiment of the present invention, after pushing the exception notification event, it may also include: receiving the exception event handling method of the exception notification event; if the exception event handling method is the termination method, updating the instruction status of the process instruction to the termination state; if the exception event handling method is the pause method, updating the step status of the work link to be processed in the process instruction information table and the instruction status of the process instruction to the pause state.
[0103] Among them, the abnormal event handling method can be the abnormal event handling method adopted by relevant staff for abnormal notification events.
[0104] In an optional embodiment of the present invention, after updating the instruction status of the process instruction and the step status of the work link to be processed in the process instruction information table to a paused state, it also includes: establishing an exception subroutine for the process instruction where an exception occurs in response to an exception notification event; re-executing the work link to be processed after determining that the exception subroutine has received a continue execution instruction; or re-executing the work link to be processed if it is determined that the work link to be processed meets the re-execution conditions.
[0105] Among them, the exception subroutine can be a subroutine established by the business management personnel when handling abnormal events. The re-execution condition can be a condition set for the abnormal notification event to determine the re-execution of the abnormal work link. Exemplary, the re-execution condition can be, for example, the abnormal state reaches a certain time threshold. The re-execution condition can be set according to specific business needs, and the embodiment of the present invention does not limit the specific condition content of the re-execution condition.
[0106] Figure 5 A schematic diagram of a flow instruction exception handling process provided by the second embodiment of the present invention. In a specific example, the work link is referred to as a step, and a work link to be processed is a step to be processed. Figure 5As shown, the relevant staff can use different methods to handle the exception notification event. For example, the relevant staff can choose to terminate or suspend the two methods to handle the exception according to the specific event type of the exception notification event. When the relevant staff chooses the termination method, the custom workflow can directly update the instruction status of the process instruction to the termination state. At this time, the relevant staff can manually handle the exception offline. When the relevant staff chooses the suspension method, the custom workflow can update the step status of the pending steps in the process instruction information table and the instruction status of the process instruction to the suspension state. At this time, the relevant staff can manually handle the exception offline, such as establishing an exception subroutine, and continue to automatically execute the abnormal step after the abnormal subroutine is executed. Alternatively, it is also possible to continue to execute the abnormal step after meeting the relevant conditions. For example, after the notification time of the abnormal notification event reaches a certain threshold, continue to execute the abnormal step.
[0107] Figure 6 A flowchart of an application scenario of a custom workflow provided by Embodiment 2 of the present invention is shown in a specific example. Figure 6 As shown, the execution process of the custom workflow can be specifically triggered in four ways. Specifically, the system client (i.e., the client that automatically executes the custom workflow) can obtain the internally triggered business processing request in two ways. The first internal triggering method is that the system client automatically generates a business processing request, such as automatically generating an internal business processing request after determining that the trigger condition is met. The second internal triggering method is that the system client receives an internal business processing request triggered by the business management personnel for the pending business of different business processing types. In addition, the system client can obtain an externally triggered external business processing request in two ways. The external business processing request requires the user to register the pending business for the pending business to provide the business document for the pending business. Accordingly, the external triggering method needs to be determined according to the type of the business document. Specifically, if the business document is a standard business document, the first external triggering method can be: business identification of the pending business, determining the business processing type of the pending business according to the mapping relationship between the business identification code and the business processing type stored in the standard business document, and automatically generating an external business processing request according to the business processing type. If the business document is a non-standard business document, the business management personnel are required to manually identify the business processing type of the business to be processed to generate an external business processing request.
[0108] Correspondingly, after receiving the business processing request for the pending business, the process instruction can be instantiated to generate the process instruction. If the process instruction needs to be reviewed, the process instruction will be executed after the review is passed. If the process instruction does not need to be reviewed, the process instruction will be automatically executed. During the process of executing the process instruction, if the execution process is normal, the processing link will be automatically executed. If an exception occurs during the execution process, the exception handling of the process instruction will be performed.
[0109] The above technical solution, by building a custom workflow, can enable users to customize workflows according to their own needs for different application scenarios by setting the attributes of the pending work links as whether to skip and whether to execute automatically, thereby improving the scalability and flexibility of the workflow construction process. After receiving the business processing request, the system automatically transfers and processes the pending work links according to the custom workflow. The entire process is fully automated without the need for human intervention, thereby greatly reducing the workload and improving work efficiency. When an exception occurs in the execution of the pending work link, the exception event is pushed by updating the corresponding instruction status information and step status of the pending work link, which facilitates business management personnel to monitor the status of the execution of system process instructions, so as to handle the exception event as soon as possible.
[0110] Embodiment 3
[0111] Figure 7 is a schematic diagram of a structure of a custom workflow system provided by Embodiment 3 of the present invention. This embodiment is specific based on the above embodiment. Figure 7 As shown, the system includes the following units:
[0112] Set up a custom workflow unit to pre-store default workflows for various business types and several pending work links in the database. A default workflow consists of a group of pending work links. The main process setting of the default workflow can be completed by associating the default workflow with its corresponding pending work link. In addition, each pending work link may also be composed of a group of pending work sub-links, and this group of pending work sub-links is the pending work link sub-process. Users can select the corresponding business processing type according to the pending business, and then set the properties of each pending work link in the default workflow. The properties of the pending work link can include whether to skip and whether to execute automatically;
[0113] The process instruction management unit is used to instantiate a custom workflow to generate a process instruction when the process instruction function is triggered. After the process instruction is generated, the business management personnel can review the process instruction, and after the review is passed, the process instruction will be executed until the process instruction is completed.
[0114] Figure 8: is a schematic diagram of the effect of a process instruction life cycle provided by the third embodiment of the present invention. In a specific example, Figure 8 It shows the life cycle of a process instruction from generation to completion. Figure 8 As shown, the custom workflow system will generate a process instruction only after receiving a business processing request. Among them, the business processing request can be obtained in three ways: external customer application trigger, system automatic generation trigger and business management personnel manual generation. When the business document provided by the external customer application trigger is a non-standard business document, the business management personnel are required to manually identify the business document and generate a business processing request. After receiving the business processing request, the custom workflow system instantiates the custom workflow and generates a process instruction. The generated process instruction can be reviewed by the process instruction. After the review is passed, the process instruction starts to execute and manage the process instruction. Among them, the management of the process instruction can be the recording and storage of the processing status of the corresponding to-be-processed work link in the process instruction, and the real-time update of the instruction status of the process instruction. When an exception occurs during the execution of the process instruction, it is necessary to modify the processing status of the abnormal work link accordingly, that is, to manage the work link and instruction status corresponding to the process instruction with execution exception, etc., until the process instruction ends, that is, the custom workflow is executed.
[0115] Embodiment 4
[0116] Fig. 9 is a schematic diagram of a workflow creation device provided by Embodiment 4 of the present invention, such as Fig. 9 As shown, the device includes: a default workflow determination module 410, a work link configuration module 420 and a custom workflow construction module 430, wherein:
[0117] The default workflow determination module 410 is used to determine the default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link;
[0118] A work link configuration module 420 is used to configure each default work link according to the link attribute corresponding to each default work link to obtain a configured work link;
[0119] The custom workflow construction module 430 is used to construct a custom workflow corresponding to the to-be-processed business according to each of the configuration work links.
[0120] Optionally, the work link configuration module 420 is specifically used to: determine the actual execution attributes of each of the default work links according to the type of business to be processed; determine the corresponding link attributes of each of the default work links according to the actual execution attributes of each of the default work links.
[0121] Optionally, the link attributes corresponding to the default working link may include a skip attribute and / or an automatic execution attribute.
[0122] Optionally, the workflow creation device also includes: a processing request receiving module, used to receive the business processing request of the business to be processed; wherein the business processing request includes an internal business processing request and an external business processing request; a process instruction generation module, used to instantiate the custom workflow and generate process instructions for the custom workflow; and a custom workflow automatic execution module, used to automatically execute the custom workflow according to the process instructions.
[0123] Optionally, the processing request receiving module is specifically used to: obtain the current system time; if it is determined that the current system time reaches the preset business processing time, automatically generate the internal business processing request.
[0124] Optionally, the processing request receiving module is also used to: receive a standard business document for the business to be processed; determine the business processing type of the business to be processed based on the mapping relationship between the business identification code and the business processing type stored in the standard business document; and automatically generate the external business processing request based on the business processing type of the business to be processed.
[0125] Optionally, the custom workflow automatic execution module is specifically used to: receive the review result of the process instruction; if the review result is passed, automatically execute the custom workflow according to the process instruction.
[0126] Optionally, a custom workflow automatic execution module is specifically used to: obtain a process instruction sequence table of the custom workflow; determine the pending work links of the custom workflow according to the process instruction sequence table; and automatically execute the custom workflow according to the current processing status of the pending work links.
[0127] Optionally, a custom workflow automatic execution module is specifically used to: if it is determined that the current processing status of all pending work links is a completed status, then the overall instruction status of the process instruction information table of the custom workflow is updated to a completed status; if the current processing status of the pending work link is a pending status, then the pending work link is automatically executed according to the work link attributes of the pending work link; if the current processing status of the pending work link is a waiting status, then the pending work link is automatically executed according to the execution results of the nested work links of the pending work link.
[0128] Optionally, a customized workflow automatic execution module is specifically used for: if the work link attribute of the pending work link is automatic execution, then calling the system internal interface to automatically execute the pending work link, and after determining that the pending work link is completed, updating the step status of the pending work link in the process instruction information table to the completed status; otherwise, pushing the pending work link, and updating the step status of the pending work link in the process instruction information table to the processing status.
[0129] Optionally, a customized workflow automatic execution module is specifically used to: if it is determined that the nested work link is executed to completion, update the step status of the to-be-processed work link in the process instruction information table to a completion status.
[0130] Optionally, a customized workflow automatic execution module is specifically used to: if an exception occurs in the execution process of the work link to be processed, update the step status of the work link to be processed and the instruction status of the process instruction in the process instruction information table to an abnormal state; generate an abnormal notification event based on the abnormal state; and push the abnormal notification event.
[0131] Optionally, a customized workflow automatic execution module is specifically used to: receive the abnormal event handling method of the abnormal notification event; if the abnormal event handling method is the termination method, update the instruction status of the process instruction to the termination state; if the abnormal event handling method is the pause method, update the step status of the work link to be processed in the process instruction information table and the instruction status of the process instruction to the pause state.
[0132] Optionally, a customized workflow automatic execution module is specifically used to: establish an exception subroutine for the abnormal process instruction in response to the exception notification event; re-execute the pending work link after determining that the exception subroutine has received a continue execution instruction; or re-execute the pending work link if it is determined that the pending work link meets the re-execution conditions.
[0133] Optionally, there are multiple process instructions; the custom workflow automatic execution module is specifically used to: assign process instruction sorting parameters of each process instruction; determine the priority order of each process instruction based on the assignment result of the process instruction sorting parameters of each process instruction; and automatically execute the custom workflow corresponding to each process instruction according to the priority order of each process instruction.
[0134] The above workflow creation device can execute the workflow creation method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the workflow creation method provided by any embodiment of the present invention.
[0135] Since the workflow creation device introduced above is a device that can execute the workflow creation method in the embodiment of the present invention, based on the workflow creation method introduced in the embodiment of the present invention, those skilled in the art can understand the specific implementation of the workflow creation device of this embodiment and its various variations, so how the workflow creation device implements the workflow creation method in the embodiment of the present invention will not be described in detail here. As long as those skilled in the art implement the device used by the workflow creation method in the embodiment of the present invention, it belongs to the scope of protection of this application.
[0136] Embodiment 5
[0137] Fig.10 A schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. Fig.10 A block diagram of a computer device 512 suitable for use in implementing embodiments of the present invention is shown. Fig.10 The computer device 512 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0138] like Fig.10 As shown, the computer device 512 is in the form of a general-purpose computing device. The components of the computer device 512 may include, but are not limited to: one or more processors 516, a storage device 528, and a bus 518 that connects various system components (including the storage device 528 and the processor 516).
[0139] Bus 518 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, MicroChannel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0140] The computer device 512 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 512, including volatile and non-volatile media, removable and non-removable media.
[0141] The storage device 528 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. The computer device 512 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 534 may be used to read and write non-removable, non-volatile magnetic media ( Fig.10 not shown, usually called a "hard drive"). Although Fig.10 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a read-only optical disk (Compact Disc-ReadOnly Memory, CD-ROM), a digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 518 via one or more data medium interfaces. The storage device 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0142] A program 536 having a set (at least one) of program modules 526 may be stored, for example, in a storage device 528, such program modules 526 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 526 generally perform the functions and / or methods of the embodiments described herein.
[0143] The computer device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, camera, display 524, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 512, and / or communicate with any device that enables the computer device 512 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 522. In addition, the computer device 512 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 520. As shown, the network adapter 520 communicates with other modules of the computer device 512 through a bus 518. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computer device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) systems, tape drives, and data backup storage systems.
[0144] The processor 516 executes various functional applications and data processing by running the program stored in the storage device 528, for example, implementing the workflow creation method provided in the above-mentioned embodiment of the present invention: determining the default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link; configuring each of the default work links according to the link attributes corresponding to each default work link to obtain a configured work link; and constructing a custom workflow corresponding to the business to be processed according to each of the configured work links.
[0145] The technical solution of this embodiment, through a workflow creation method, determines the default workflow corresponding to the business to be processed according to the business processing type of the business to be processed, and configures each default work link according to the link attributes corresponding to each default work link to obtain a configured work link, and constructs a custom workflow corresponding to the business to be processed according to each configured work link, thereby solving the problem that the existing automated workflow needs to be established according to specific needs and the workflow is solidified, thereby improving the flexibility of users to customize the workflow according to their own needs and improving the scalability of the workflow.
[0146] Embodiment 6
[0147] Embodiment 6 of the present invention further provides a computer storage medium storing a computer program, wherein the computer program, when executed by a computer processor, is used to execute the workflow creation method described in any one of the above embodiments of the present invention: determining a default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link; configuring each of the default work links according to the link attributes corresponding to each default work link to obtain a configured work link; and constructing a custom workflow corresponding to the business to be processed according to each of the configured work links.
[0148] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.
[0149] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0150] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0151] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0152] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A workflow creation method, characterized in that: include: Determine a default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link; Configure each default working link according to the link attribute corresponding to each default working link to obtain a configured working link; Constructing a custom workflow corresponding to the business to be processed according to each of the configuration work links; The configuring each of the default working links according to the link attributes corresponding to each of the default working links includes: Determine the actual execution attribute of each of the default work links according to the type of business to be processed; Determine the corresponding link attribute of each of the default working links according to the actual execution attribute of each of the default working links; The link attributes corresponding to the default working link include a skip attribute and / or an automatic execution attribute; After constructing the custom workflow corresponding to the to-be-processed business according to each of the configuration work links, the process further includes: Receiving a business processing request for the business to be processed; wherein the business processing request includes an internal business processing request and an external business processing request; an external business processing request is a business processing request triggered from an external source; an internal business processing request is a business processing request automatically generated by a system or manually triggered by a business management personnel; Instantiating the custom workflow and generating a workflow instruction for the custom workflow; The custom workflow is automatically executed according to the process instructions; wherein, when the custom workflow is automatically executed according to the process instructions, parallel processing is achieved through a Fork / Join framework, and the Fork / Join framework recursively splits the tasks executed in parallel into smaller tasks, and then merges the results of each subtask to generate an overall result; The step of automatically executing the custom workflow according to the workflow instruction includes: receiving a review result of the process instruction; If the audit result is passed, the custom workflow is automatically executed according to the process instruction; the audit content includes whether all fields of the process instruction correspond to the business type to be processed, and whether the business document loaded under the process instruction is accurate; The step of automatically executing the custom workflow according to the workflow instruction includes: Obtaining a process instruction sequence table of the custom workflow; Determine the work link to be processed of the custom workflow according to the process instruction sequence table; Automatically executing the custom workflow according to the current processing status of the work link to be processed; The step of automatically executing the custom workflow according to the current processing status of the work link to be processed includes: If it is determined that the current processing status of all pending work links is a completed status, the overall instruction status of the process instruction information table of the custom workflow is updated to a completed status; If the current processing state of the work link to be processed is a pending execution state, automatically executing the work link to be processed according to the work link attribute of the work link to be processed; If the current processing state of the work link to be processed is a waiting state, the work link to be processed is automatically executed according to the execution result of the nested work link of the work link to be processed; The step of automatically executing the work link to be processed according to the work link attribute of the work link to be processed includes: If the work link attribute of the work link to be processed is automatic execution, then the system internal interface is called to automatically execute the work link to be processed, and after determining that the work link to be processed is completed, the step status of the work link to be processed in the process instruction information table is updated to the completion status; Otherwise, the work link to be processed is pushed, and the step status of the work link to be processed in the process instruction information table is updated to a processing status; The step of automatically executing the work link to be processed according to the execution result of the nested work link of the work link to be processed includes: If it is determined that the nested work link is executed and completed, the step status of the to-be-processed work link in the process instruction information table is updated to a completed status.
2. The method according to claim 1, characterized in that: The receiving of a business processing request for a business to be processed includes: Get the current system time; If it is determined that the current system time reaches the preset service processing time, the internal service processing request is automatically generated.
3. The method according to claim 1, characterized in that The receiving of a business processing request for a business to be processed includes: Receiving the standard business document of the business to be processed; Determining the business processing type of the to-be-processed business according to the mapping relationship between the business identification code and the business processing type stored in the standard business document; The external business processing request is automatically generated according to the business processing type of the business to be processed.
4. The method according to claim 1, characterized in that The step of automatically executing the custom workflow according to the workflow instruction includes: If an exception occurs during the execution of the work link to be processed, the step status of the work link to be processed and the instruction status of the process instruction in the process instruction information table are updated to an abnormal state; Generate an abnormal notification event according to the abnormal state; The abnormal notification event is pushed.
5. The method according to claim 4, characterized in that After pushing the abnormal notification event, the method further includes: Receive an abnormal event handling method for the abnormal notification event; If the abnormal event handling mode is a termination mode, updating the instruction state of the process instruction to a termination state; If the abnormal event handling mode is a pause mode, the step status of the to-be-processed work link and the instruction status of the process instruction in the process instruction information table are updated to a pause state.
6. The method according to claim 5, characterized in that After updating the instruction status of the process instruction and the step status of the to-be-processed work link in the process instruction information table to a paused state, the method further includes: Establishing an exception subroutine for the abnormal process instruction according to the abnormal notification event; After determining that the abnormal subroutine has received a continuing execution instruction, re-execute the pending work link; or If it is determined that the work link to be processed meets the re-execution condition, the work link to be processed is re-executed.
7. The method according to claim 6, characterized in that The number of the process instructions is multiple; The step of automatically executing the custom workflow according to the workflow instruction includes: Assigning a value to a process instruction sorting parameter of each of the process instructions; Determining the priority order of each of the process instructions according to the assignment result of the process instruction sorting parameter of each of the process instructions; The custom workflow corresponding to each of the process instructions is automatically executed according to the priority order of each of the process instructions.
8. A workflow creation device, characterized in that: include: A default workflow determination module is used to determine a default workflow corresponding to the business to be processed according to the business processing type of the business to be processed; wherein the default workflow includes at least one default work link; A default working link configuration module is used to configure each default working link according to the link attribute corresponding to each default working link to obtain a configured working link; A custom workflow construction module is used to construct a custom workflow corresponding to the business to be processed according to each of the configuration work links; The work link configuration module is specifically used to: determine the actual execution attribute of each of the default work links according to the type of business to be processed; determine the corresponding link attribute of each of the default work links according to the actual execution attribute of each of the default work links; The link attributes corresponding to the default work link include a skip attribute and / or an automatic execution attribute; The workflow creation device also includes: a processing request receiving module, which is used to receive the business processing request of the business to be processed; wherein the business processing request includes an internal business processing request and an external business processing request; the external business processing request is a business processing request from an external trigger; the internal business processing request is a business processing request automatically generated by the system or manually triggered by a business manager; A process instruction generation module, used to instantiate the custom workflow and generate process instructions for the custom workflow; A custom workflow automatic execution module, used to automatically execute the custom workflow according to the process instructions; wherein, when the custom workflow is automatically executed according to the process instructions, parallel processing is achieved through the Fork / Join framework, and the Fork / Join framework recursively splits the parallel execution tasks into smaller tasks, and then merges the results of each subtask to generate an overall result; The custom workflow automatic execution module is specifically used to: receive the audit result of the process instruction; if the audit result is passed, automatically execute the custom workflow according to the process instruction; the audit content includes whether all fields of the process instruction correspond to the business type to be processed, and whether the business document loaded under the process instruction is accurate; The custom workflow automatic execution module is specifically used to: obtain the process instruction sequence table of the custom workflow; determine the to-be-processed work link of the custom workflow according to the process instruction sequence table; and automatically execute the custom workflow according to the current processing status of the to-be-processed work link; The custom workflow automatic execution module is specifically used to: if it is determined that the current processing status of all pending work links is a completed status, then the overall instruction status of the process instruction information table of the custom workflow is updated to a completed status; if the current processing status of the pending work link is a pending status, then the pending work link is automatically executed according to the work link attribute of the pending work link; if the current processing status of the pending work link is a waiting status, then the pending work link is automatically executed according to the execution result of the nested work link of the pending work link; The customized workflow automatic execution module is specifically used to: if the work link attribute of the work link to be processed is automatic execution, then call the system internal interface to automatically execute the work link to be processed, and after determining that the work link to be processed is completed, update the step status of the work link to be processed in the process instruction information table to the completed state; otherwise, push the work link to be processed, and update the step status of the work link to be processed in the process instruction information table to the processing state; The customized workflow automatic execution module is specifically used to: if it is determined that the nested work link is executed, update the step status of the to-be-processed work link in the process instruction information table to a completed status.
9. A computer device, characterized in that: The computer device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the workflow creation method as described in any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the workflow creation method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Workflow creation method, workflow designer and workflow system
CN106897809A
Workflow adaptation scheduling method and device, equipment and storage medium
CN108090664A
Business process construction method and equipment
CN110351440A
