A method for realizing supply chain process automation
By building process data structures and using VUE and Feign technologies to achieve process automation, the problem of difficulty in realizing supply chain process automation in the existing technology is solved, and lightweight data sharing and unified standardized interfaces are realized, which reduces development costs and time.
Patent Information
- Application Number
- CN202210610891.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2042-05-31
AI Technical Summary
Existing process automation technologies are difficult to automate supply chain processes, resulting in the inability to form a unified standardized interface, increasing economic and time costs, and there are compatibility issues and inefficient operation.
By building a process data structure, real-time rendering is achieved using VUE's data bidirectional binding characteristics and virtual DOM, monitoring events are automatically triggered to modify the JSON data structure, and communicate with the process automation engine through Feign to realize the deserialization of the JSON data structure and the recursive processing of the process task nodes.
It realizes lightweight data sharing and unified standardized interfaces, reduces development costs and time, improves the efficiency and compatibility of process automation, and truly realizes supply chain process automation.
Smart Images

Figure CN115080369B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to process automation, and in particular to a method for realizing supply chain process automation. Background Art
[0002] At present, the process automation implementations on the market are mainly based on JBMP and Activity technologies. Using XML as the data structure will result in a large volume and slow parsing. It is mainly used in OA systems. During the exchange of supply chain business data, a unified standardized interface cannot be formed. Either a customized interface is developed based on the OA system and then connected to the supply chain system. This method greatly increases the economic and time costs.
[0003] Existing process designers are all implemented using jQuery technology. After each upgrade, they are incompatible with previous versions and can only be developed manually. There are also problems such as slow DOM operations, variable name pollution, and scope confusion. Business development requires customized development, and it is impossible to form a unified standard and truly realize supply chain process automation. Summary of the invention
[0004] 1. Technical issues to be solved
[0005] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method for realizing supply chain process automation, which can effectively overcome the defect of the prior art that the supply chain process automation cannot be realized.
[0006] (II) Technical solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0008] A method for realizing supply chain process automation includes the following steps:
[0009] S1, the process designer builds the process data structure;
[0010] S2, modify the process task node node, automatically trigger the monitoring event to modify the process data structure, and send the generated process data structure to the backend service;
[0011] S3, the industry supply chain business service starts the process automation engine and obtains the process task node node of the process data structure;
[0012] S4, determine whether there is a condition node node in the process task node node, obtain the child node node in the condition node node that meets the condition, and recursively loop the process task node node;
[0013] S5. After the process task node node is executed, a callback notification is issued, and the industry supply chain business service executes the corresponding business function logic.
[0014] Preferably, the process designer in S1 constructs a process data structure, including:
[0015] Build JSON data structure through ES6 JSONObject.
[0016] Preferably, modifying the process task node node in S2 automatically triggers the monitoring event to modify the process data structure, and sends the generated process data structure to the backend service, including:
[0017] Use VUE's two-way data binding feature to monitor changes in JSON data structures and render HTML pages in real time through virtual DOM;
[0018] When modifying the process task node node through the real-time rendered HTML page, the monitoring event is automatically triggered based on the two-way binding feature to modify the JSON data structure, and the generated JSON data structure is sent to the backend service through axios.
[0019] Preferably, the industry supply chain business service in S3 starts the process automation engine and obtains the process task node node of the process data structure, including:
[0020] The industry supply chain business service starts the process automation engine through Feign. The process automation engine reads the JSON data structure, deserializes the JSON data, and obtains the process task node corresponding to the JSON data structure.
[0021] Preferably, deserializing the JSON data to obtain the process task node node corresponding to the JSON data structure includes:
[0022] The process automation engine uses fastjson to deserialize the JSON data structure into a java bean object, and uses the tree recursive algorithm to process the java bean object to obtain the process task node corresponding to the JSON data structure.
[0023] Preferably, in S4, it is determined whether there is a condition node node in the process task node node, a child node node in the condition node node that meets the condition is obtained, and the process task node node is recursively looped, including:
[0024] Check whether there is a conditionNodes attribute value in the process task node node. If it exists, get the collection to iterate each element, and get the form parameters of the properties attribute to determine whether the condition is met;
[0025] Get the child node node in the condition node node that meets the condition, and recurse to the last process task node node based on this logic to indicate the end of the overall process.
[0026] Preferably, after the industry supply chain business service in S5 executes the corresponding business function logic, it includes:
[0027] The synchronization is returned to the process automation engine to determine whether it is successful. If it fails, the synchronous transaction rollback operation is performed to resolve transaction consistency.
[0028] Preferably, after the process task node node in S5 is executed, a callback notification is performed, including:
[0029] After each process task node is executed, a callback notification is made through Feign.
[0030] Preferably, each of the process task nodes supports hot plugging, and personalized settings of the automated supply chain process can be achieved by adding or removing a process task node.
[0031] (III) Beneficial effects
[0032] Compared with the prior art, the method for realizing supply chain process automation provided by the present invention has the following beneficial effects:
[0033] 1) Adopt VUE technology with data two-way binding characteristics, diff algorithm, virtual DOM, MVVM mode and componentization, and use JSON as the data structure to make the data small and lightweight. Use fastjson to deserialize the JSON data structure into a javabean object, use java language and "Springboot+Cloud" to implement supply chain business services, and use remote procedure call technology Feign to communicate with the process automation engine for unified and standardized data sharing, so as to truly realize supply chain process automation;
[0034] 2) As the business grows and personalized needs increase, the business process can be adjusted at any time through the process designer, and it can take effect and be executed in real time, thereby meeting the process automation of various traditional industries and achieving the goal of reducing the implementation of customized business code development and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 It is a schematic diagram of the process of the present invention;
[0037] Figure 2 This is a schematic diagram of the process data structure generated by the process designer in the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] A method for automating supply chain processes, such as Figure 1 and Figure 2 As shown, ① the process designer builds the process data structure, which specifically includes:
[0040] Construct JSON data structure through JSONObject (JS built-in object) of ES6 (W3C international standard).
[0041] ② Modify the process task node node, automatically trigger the monitoring event to modify the process data structure, and send the generated process data structure to the backend service, including:
[0042] Use VUE's two-way data binding feature to monitor changes in JSON data structures and render HTML pages in real time through virtual DOM;
[0043] When modifying the process task node node through the real-time rendered HTML page, the monitoring event is automatically triggered based on the two-way binding feature to modify the JSON data structure, and the generated JSON data structure is sent to the backend service through axios (HTTP request technology).
[0044] In the technical solution of this application, each process task node node contains the following attributes:
[0045] type=start start process task node node;
[0046] type = approverover manual approval process task node node;
[0047] type = auth_approver automatic approval process task node node;
[0048] type = condition node node;
[0049] The childNode attribute is the next child node to be executed of the current condition node;
[0050] The properties attribute describes the people or department positions involved in the current node, as well as the form number parameter (used for conditional judgment);
[0051] The conditionNodes attribute is a collection, which contains multiple condition nodes with childNode.type=condition. It makes conditional judgments based on the form parameters of the properties attribute. If the conditions are met, the childNode process in the current condition node will be executed.
[0052] ③ The industry supply chain business service starts the process automation engine and obtains the process task node node of the process data structure, including:
[0053] The industry supply chain business service starts the process automation engine through Feign. The process automation engine reads the JSON data structure, deserializes the JSON data, and obtains the process task node corresponding to the JSON data structure.
[0054] Among them, deserialize the JSON data to obtain the process task node node corresponding to the JSON data structure, including:
[0055] The process automation engine uses fastjson to deserialize the JSON data structure into a java bean object to facilitate algorithm logic processing, and uses the tree recursive algorithm to process the java bean object to obtain the process task node corresponding to the JSON data structure.
[0056] ④ Determine whether there is a conditional node node in the process task node node, obtain the child node node in the conditional node node that meets the condition, and recursively loop the process task node node, specifically including:
[0057] Check whether there is a conditionNodes attribute value in the process task node node. If it exists, get the collection to iterate each element (the element is the condition node node data type=condition), and get the form parameters of the properties attribute to determine whether the condition is met;
[0058] Get the child node node in the condition node node that meets the condition (the next child node node to be executed of the current condition node node), and recurse to the last process task node node with this logic to indicate the end of the overall process.
[0059] ⑤After the process task node node is executed, a callback notification is issued, and the industry supply chain business service executes the corresponding business function logic.
[0060] Among them, after the process task node node is executed, a callback notification is performed, including:
[0061] After each process task node is executed, a callback notification is made through Feign.
[0062] Among them, after the industry supply chain business service executes the corresponding business function logic, it includes:
[0063] The synchronization is returned to the process automation engine to determine whether it is successful. If it fails, the synchronous transaction rollback operation is performed to resolve transaction consistency.
[0064] In the technical solution of the present application, each process task node supports hot plugging, and personalized settings of the automated supply chain process can be achieved by adding or removing a process task node.
[0065] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for realizing supply chain process automation, characterized in that: The following steps are involved: S1, the process designer builds the process data structure; S2, modify the process task node node, automatically trigger the monitoring event to modify the process data structure, and send the generated process data structure to the backend service; S3, the industry supply chain business service starts the process automation engine and obtains the process task node node of the process data structure; S4, determine whether there is a condition node node in the process task node node, obtain the child node node in the condition node node that meets the condition, and recursively loop the process task node node; S5. After the process task node node is executed, a callback notification is issued, and the industry supply chain business service executes the corresponding business function logic; Modify the process task node node in S2, automatically trigger the monitoring event to modify the process data structure, and send the generated process data structure to the backend service, including: Use VUE's two-way data binding feature to monitor changes in JSON data structures and render HTML pages in real time through virtual DOM; When modifying the process task node node through the real-time rendered HTML page, the monitoring event is automatically triggered based on the two-way binding feature to modify the JSON data structure, and the generated JSON data structure is sent to the backend service through axios.
2. The method for realizing supply chain process automation according to claim 1, characterized in that: The process designer in S1 builds the process data structure, including: Build JSON data structure through ES6 JSONObject.
3. The method for realizing supply chain process automation according to claim 1, characterized in that: The industry supply chain business service in S3 starts the process automation engine and obtains the process task node node of the process data structure, including: The industry supply chain business service starts the process automation engine through Feign. The process automation engine reads the JSON data structure, deserializes the JSON data, and obtains the process task node corresponding to the JSON data structure.
4. The method for realizing supply chain process automation according to claim 3, characterized in that: Deserializing the JSON data to obtain the process task node node corresponding to the JSON data structure includes: The process automation engine uses fastjson to deserialize the JSON data structure into a java bean object, and uses the tree recursive algorithm to process the java bean object to obtain the process task node corresponding to the JSON data structure.
5. The method for realizing supply chain process automation according to claim 3, characterized in that: In S4, it is determined whether there is a condition node node in the process task node node, a child node node in the condition node node that meets the condition is obtained, and the process task node node is recursively looped, including: Check whether there is a conditionNodes attribute value in the process task node node. The conditionNodes attribute is a collection containing multiple condition nodes node with childNode.type=condition. If it exists, get the collection to iterate each element and get the form parameters of the properties attribute to determine whether the condition is met; Get the child node node in the condition node node that meets the condition, and recurse to the last process task node node based on this logic to indicate the end of the overall process.
6. The method for realizing supply chain process automation according to claim 5, characterized in that: After the industry supply chain business service in S5 executes the corresponding business function logic, it includes: The synchronization is returned to the process automation engine to determine whether it is successful. If it fails, the synchronous transaction rollback operation is performed to resolve transaction consistency.
7. The method for realizing supply chain process automation according to claim 6, characterized in that: After the process task node node in S5 is executed, a callback notification is sent, including: After each process task node is executed, a callback notification is made through Feign.
8. The method for realizing supply chain process automation according to any one of claims 1 to 7, characterized in that: Each of the process task nodes supports hot plugging, and personalized settings of the automated supply chain process can be achieved by adding or removing a process task node.
Citation Information
Patent Citations
Information acquisition method and device based on process configuration
CN114185535A
Enterprise-level workflow engine implementation method and system based on micro-service SaaS
CN114493479A