Method for expanding workflow node processor

By defining and dynamically loading the extension interface of the workflow node to handle people, the problems of low development efficiency and high maintenance cost in the existing technology are solved, and dynamic expansion of the workflow node to handle people without shutdown is achieved, improving the scalability and applicability of the system.

CN120146773APending Publication Date: 2025-06-13SANMENXIA XIAOYUN SECURITY SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311712906.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

When existing workflow nodes handlers face changing business scenarios, they find it difficult to meet all needs, resulting in low development efficiency and high maintenance costs.

Method used

By defining an extended interface for providing process flow parameters and returning nodes to process human data, and packaging it into a jar package, dynamic loading technology is used to load it into the workflow system during the process flow process, realizing dynamic expansion of nodes to process human data.

Benefits of technology

No system redeployment is required, which significantly improves development efficiency, saves operation and maintenance costs, and improves the scalability and applicability of the system.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a method for expanding workflow node processing persons, and belongs to the technical field of computer software development. According to the method, the flow circulation parameters are provided and the node processing person data are returned by customizing the expansion interface, in the actual flow circulation process, only the custom expansion interface loaded to the workflow system needs to be executed, and the related data of the node processing person can be obtained by executing the expansion interface; and completing the expansion of the workflow node processing person. Compared with a traditional mode of system redeployment after code development, the method does not need a step of system redeployment, improves the development efficiency to a great extent, and saves the operation and maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for extending the handler of a workflow node, belonging to the technical field of computer software development. Background Art

[0002] Existing handlers of workflow nodes often cannot meet all business scenarios. Especially when business scenarios change frequently, it is unrealistic to provide a workflow handler applicable to all scenarios, and there are always some special business scenarios that need to be developed separately. Generally, a system provides various workflow handlers of different types for users to select through direct coding. If there are new requirements, the system needs to be updated through steps such as re-development and deployment update to meet the requirements of new workflow handlers. Summary of the Invention

[0003] The purpose of the present invention is to provide a method for extending the handler of a workflow node to solve the problems of low development efficiency and high maintenance cost caused by the need to re-program and re-develop to extend the handler of a workflow node currently.

[0004] The present invention provides a method for obtaining the handler of a workflow node to solve the above technical problems. The method includes the following steps:

[0005] 1) Define an extended interface for providing process transfer parameters and returning data related to the node handler;

[0006] 2) During the process transfer, execute the custom extended interface loaded into the workflow system to obtain the node handler.

[0007] The present invention provides process transfer parameters and returns node handler data by customizing an extended interface. During the actual process transfer, only need to execute the custom extended interface loaded into the workflow system. By executing this extended interface, relevant data of the node handler can be obtained to complete the extension of the workflow node handler. It can be seen that compared with the traditional method of redeploying the system after coding development, the present invention does not require the step of redeploying the system, greatly improving the development efficiency and saving the operation and maintenance cost.

[0008] Further, step 1) further includes packaging the custom extended interface into a jar package.

[0009] The present invention packages the custom extended interface into a jar package for the subsequent required processing processes to load and execute.

[0010] Further, if the custom extended interface is not loaded during the process transfer in step 2), load the jar package into the workflow system.

[0011] Further, after loading the jar package into the workflow system, register the extension classes in the jar package into the Spring container.

[0012] When loading the jar package in the present invention, register the extension classes in the jar package into the Spring container for convenient management and use.

[0013] Further, adopt dynamic loading technology when loading the jar package into the workflow system.

[0014] The present invention uses dynamic loading technology to dynamically load a custom extension interface to ensure dynamic expansion of the workflow system without downtime. Detailed implementation manner

[0015] The present invention first defines an extensible interface (extensible API), which is used to provide process transfer parameters and return relevant data of the node handler; then packages this interface into a jar package and uploads it to the process configuration platform to generate an available node handler extension; during the process transfer, load the custom extended interface into the workflow system through dynamic loading technology, enabling users to select the custom handler extension in the workflow node configuration. The present invention provides process transfer parameters and returns node handler data by customizing an extension interface. During the actual process transfer, only need to execute the custom extended interface loaded into the workflow system. By executing this extended interface, relevant data of the node handler can be obtained to complete the extension of the workflow node handler. It can be seen that compared with the traditional method of redeploying the system after coding development, the present invention does not require the step of redeploying the system, greatly improving the development efficiency and saving the operation and maintenance cost. The following details the specific implementation process of this method.

[0016] 1. Define an extension interface that can return node handler data.

[0017] The present invention defines an extended interface, which consists of a separate node processing class and a method for obtaining node processors. The extended interface can provide process flow transfer parameters and return relevant data of the node processor. The process flow transfer parameters include information such as process instance number, parent process instance ID, parent process configuration code, main process instance ID, site code, process configuration code, process configuration name, process status, process type, initiator, initiator organization, current node, participants, operator, operation node, creation time, etc. The relevant data of the returned processor includes information such as relevant organization information and account. When the user has a need to extend the node processor, the relevant data of the node processor can be returned through this extended interface. For the convenience of subsequent loading processing, the defined extended interface in the present invention is packaged into a jar package, and then the jar package can be uploaded through the process configuration platform to generate an available node processor extension.

[0018] 2. Load the extended interface into the workflow system.

[0019] During the process flow, when it is necessary to extend the workflow node processor, it is first necessary to determine whether the jar package in step 1 has been loaded into the workflow system. If not, the jar package in step 1 needs to be loaded into the workflow system. In this embodiment, in order to achieve the dynamic extension of the workflow system without stopping the machine, the dynamic loading technology is used to load the jar package into the workflow system. At the same time, for the convenience of management and use, when loading, the extended classes in the jar package are registered into the Spring container.

[0020] 3. Execute the loaded extended interface to implement the extension of the workflow node processor.

[0021] During the process flow, when it is necessary to extend the workflow node processor and the jar package has been loaded into the workflow system, the extended interface in the jar package is executed, and the relevant information of the workflow node processor to be extended is obtained by using this extended interface. According to this relevant information, a custom processor extension can be selected in the workflow node configuration to achieve the extension of the workflow node processor.

[0022] For example, when we configure a process and find that the node processor is a special condition person during the process flow, and the personnel provided by the platform do not meet the condition requirements, the present invention can provide the corresponding node processor through the method of obtaining personnel in the extended interface, and load the jar package into the workflow system by using the dynamic loading technology. In this way, the special processors required by the nodes can be dynamically loaded in the background configuration, which can ensure the dynamic scalability of the system and achieve the dynamic extension of the node processors without affecting the normal operation of the system.

[0023] As can be seen from the above process, through the way of dynamic expansion, the present invention provides a more efficient and rapid expansion method for the handlers of special scenarios of the workflow. This method allows the dynamic expansion of the existing workflow node handlers without shutting down the machine through dynamic loading technology, so as to meet the requirements of workflow handlers in some special scenarios without changing the original system functional logic. Compared with the traditional method of redeploying the system after coding development, it not only saves the system development time, but also omits the steps of system redeployment, greatly improving the development efficiency and saving the operation and maintenance costs. At the same time, the present invention can also improve the scalability and applicability of the system on the premise of ensuring the generality of the entire workflow system.

Claims

1. A method for expanding the handler of a workflow node, characterized in that, the method comprises the following steps: 1) Define an extended interface for providing process transfer parameters and returning data related to the node handler; 2) During the process transfer, execute the custom extended interface loaded into the workflow system to obtain the node handler.

2. The method for expanding the handler of a workflow node according to claim 1, characterized in that, step 1) further comprises packaging the custom extended interface into a jar package.

3. The method for expanding the handler of a workflow node according to claim 2, characterized in that, if the custom extended interface is not loaded during the process transfer in step 2), load the jar package into the workflow system.

4. The method for expanding the handler of a workflow node according to claim 3, characterized in that, after loading the jar package into the workflow system, register the extended class in the jar package into the Spring container.

5. The method for expanding the handler of a workflow node according to claim 3, characterized in that, dynamic loading technology is adopted when loading the jar package into the workflow system.