Search

CN-121981664-A - Modularized purchasing flow configuration method and system

CN121981664ACN 121981664 ACN121981664 ACN 121981664ACN-121981664-A

Abstract

The invention provides a modularized purchasing flow configuration method and system in the technical field of enterprise informatization management, wherein the method comprises the steps of S1, packaging business functions of purchasing flows into business components, registering the business components in a component registry, S2, displaying a visual flow designer after authenticating an access request, S3, selecting the business components from the component registry by the visual flow designer based on configuration instructions, carrying out flow arrangement on the business components to be associated with corresponding flow nodes, configuring component parameters to generate purchasing flows, S4, calling corresponding versions of purchasing flows through a flow execution engine based on purchasing flow starting requests, loading the associated business components from the component registry based on the flow nodes of the purchasing flows, and executing corresponding business logic based on an execution method of the business components. The invention has the advantages of greatly improving the flexibility and maintainability of purchasing flow configuration and greatly reducing the development cost.

Inventors

  • LI JUNJIE
  • YE YONGXI
  • SHI SHUAI
  • GAO GUOSHENG
  • YANG FENG
  • ZHENG XINGANG

Assignees

  • 数采小博科技发展有限公司

Dates

Publication Date
20260505
Application Date
20251211

Claims (10)

  1. 1. A modular purchasing process configuration method is characterized by comprising the following steps: Step S1, a server packages service functions of all links in a purchasing process into independent service components, defines an execution method at component interfaces of each service component, and registers each service component to a component registration center; Step S2, after authenticating an access request sent by a client, the server displays a visual flow designer; Step S3, the visual flow designer obtains configuration instructions input by a client, selects corresponding business components from a component registry based on the configuration instructions, performs flow arrangement on the selected business components based on a dragging interaction mode so as to associate the business components to corresponding flow nodes, configures component parameters of the business components, further generates a purchasing flow, and performs versioning storage on the configured purchasing flow; Step S4, the server acquires an input purchase flow starting request, calls the corresponding version of the purchase flow through a flow execution engine based on the purchase flow starting request, loads the associated business component from the component registration center based on the flow node of the purchase flow, executes the corresponding business logic based on the execution method of the business component, and flows to the next flow node based on the execution result until the purchase flow is completed.
  2. 2. The method for componentized purchasing process configuration of claim 1, wherein in step S1, when the service components are registered in a component registry, the component registry assigns unique component identifiers for each service component and records component types and function descriptions.
  3. 3. The method for componentized purchasing process configuration of claim 1, wherein in step S4, the loading of the associated business component from the component registry by the process node based on the purchasing process is specifically: And searching and instantiating the corresponding service component from the component registry based on the component identification recorded in the flow node of the purchasing flow.
  4. 4. The method for componentized purchasing process configuration of claim 1, wherein in step S4, the flow to the next process node based on the execution result is specifically: And the flow execution engine evaluates the execution result of the business component according to a preset condition evaluation rule supporting the logic expression, and selects one path from a plurality of branch paths defined in the purchasing flow according to the evaluation result so as to determine the next flow node.
  5. 5. The method for modular purchasing process configuration as set forth in claim 1, wherein in step S4, the process execution engine delivers a component context object to the business component when invoking the execution method of the business component; The component context object encapsulates project information, flow instance data, and user operation data for the current purchase project for use by the business component in executing business logic.
  6. 6. A modular purchasing process configuration system is characterized by comprising the following modules: the business component registration module is used for packaging business functions of all links in the purchasing process into independent business components by the server, defining an execution method at a component interface of each business component, and registering each business component to a component registration center; The access request authentication module is used for displaying the visual flow designer after the server authenticates the access request sent by the client; The purchasing flow generation module is used for acquiring configuration instructions input by a client by the visual flow designer, selecting corresponding business components from a component registry based on the configuration instructions, carrying out flow arrangement on the selected business components based on a dragging interaction mode so as to associate the business components to corresponding flow nodes, configuring component parameters of the business components, further generating purchasing flows, and carrying out versioning storage on the configured purchasing flows; The purchasing flow executing module is used for acquiring an input purchasing flow starting request by the server, calling the purchasing flow of a corresponding version through the flow executing engine based on the purchasing flow starting request, loading the associated business component from the component registration center based on the flow node of the purchasing flow, executing the corresponding business logic based on the executing method of the business component, and circulating to the next flow node based on the executing result until the purchasing flow is completed.
  7. 7. A modular purchasing process configuration system as recited in claim 6, wherein in the business component registration module, when the business components are registered in a component registry, the component registry assigns unique component identifications to each business component and records component types and function descriptions.
  8. 8. The system for configuring a modular purchasing process as recited in claim 6, wherein in the purchasing process execution module, the loading of the associated business component from the component registry by the process node based on the purchasing process is specifically: And searching and instantiating the corresponding service component from the component registry based on the component identification recorded in the flow node of the purchasing flow.
  9. 9. The system for configuring a modular purchasing process as described in claim 6, wherein in said purchasing process execution module, said flow to next said process node based on execution result is specifically: And the flow execution engine evaluates the execution result of the business component according to a preset condition evaluation rule supporting the logic expression, and selects one path from a plurality of branch paths defined in the purchasing flow according to the evaluation result so as to determine the next flow node.
  10. 10. The system of claim 6, wherein the purchasing process execution module, when invoking the execution method of a business component, transmits a component context object to the business component; The component context object encapsulates project information, flow instance data, and user operation data for the current purchase project for use by the business component in executing business logic.

Description

Modularized purchasing flow configuration method and system Technical Field The invention relates to the technical field of enterprise informatization management, in particular to a modularized purchasing flow configuration method and system. Background The purchase management is a core link in enterprise operation, and the flow is generally complex and various, for example, various business scenes including direct purchase, bid purchase, emergency purchase and the like. Different purchasing scenes correspond to different approval links, participation roles and business rules. To address these needs, enterprises often need to deploy procurement management systems to enable the electronic and automation of flows. The existing purchasing management system has two main implementation modes: The first is the curing flow mode of the monomer architecture. In this mode, the system presets a set of fixed, hard-coded flows for each purchase scenario. For example, the system is internally provided with two independent modules, namely a standard purchasing process and a bidding purchasing process. The disadvantages of this approach are very clear, poor flexibility and inadequate scalability. When the purchase policy of the enterprise changes or a new purchase type needs to be added, a developer must modify the system source code to perform secondary development and even re-development. This not only results in a long system update period and high cost, but also makes it difficult for the system to quickly respond to service changes, becoming increasingly stiff. The second is based on a configurable schema of the workflow engine. To increase flexibility, some systems incorporate a standard workflow engine (e.g., activiti, flowable, etc.). Such engines allow users to configure the nodes and flow directions of the flow to some extent, and achieve the configurability of the flow paths. However, this approach still has the significant disadvantage of high degree of coupling of business logic to flow logic. The workflow engine mainly manages "who does what (i.e., task flows) and what each node does (i.e., specific business operations such as checking budgets, generating bidding documents, sending bidding notices, etc.) still need to be hard-coded. When the service logic of a certain node needs to be changed or a complex service node (such as "rating") needs to be split into multiple sub-steps, the code still needs to be modified inevitably. Therefore, this configuration is incomplete, and has limited flexibility, and cannot achieve deep customization and rapid assembly of business processes. In summary, when the purchasing management system in the prior art faces to the increasingly personalized and diversified purchasing demands of enterprises, the problems of high development and maintenance cost, insufficient system flexibility, difficulty in rapidly adapting to new business scenes and the like generally exist. Therefore, how to provide a modularized purchasing process configuration method and system, to improve the flexibility and maintainability of purchasing process configuration and reduce the development cost, is a technical problem to be solved urgently. Disclosure of Invention The invention aims to solve the technical problem of providing a modularized purchasing flow configuration method and system, which can improve the flexibility and maintainability of purchasing flow configuration and reduce the development cost. In a first aspect, the present invention provides a componentized purchasing process configuration method, including the steps of: Step S1, a server packages service functions of all links in a purchasing process into independent service components, defines an execution method at component interfaces of each service component, and registers each service component to a component registration center; Step S2, after authenticating an access request sent by a client, the server displays a visual flow designer; Step S3, the visual flow designer obtains configuration instructions input by a client, selects corresponding business components from a component registry based on the configuration instructions, performs flow arrangement on the selected business components based on a dragging interaction mode so as to associate the business components to corresponding flow nodes, configures component parameters of the business components, further generates a purchasing flow, and performs versioning storage on the configured purchasing flow; Step S4, the server acquires an input purchase flow starting request, calls the corresponding version of the purchase flow through a flow execution engine based on the purchase flow starting request, loads the associated business component from the component registration center based on the flow node of the purchase flow, executes the corresponding business logic based on the execution method of the business component, and flows to the next flow node based on the execution res