Search

CN-122022728-A - Personalized order form template construction and management system based on configurable rule engine

CN122022728ACN 122022728 ACN122022728 ACN 122022728ACN-122022728-A

Abstract

The invention relates to the technical field of computer data processing and supply chain management, and provides a personalized order template construction and management system based on a configurable rule engine, which comprises a field meta model construction module, a field meta model generation module, a field management module and a control module, wherein the field meta model construction module is used for defining an order meta model comprising an entity layer and an extensible value object layer based on a field driving design mode; the system comprises an order meta-model, a rule configuration module, an order processing engine, a domain meta-model construction module, a rule configuration module and a standard fulfilling order object, wherein the order meta-model dynamically expands and inherits a data model according to tenant dimension, the rule configuration module is used for configuring business logic for dynamically binding a data analysis rule set with an expandable value object layer, the order processing engine is connected with the domain meta-model construction module and the rule configuration module and is configured to identify tenant context according to sources of original order data, instantiate the fulfilling order domain object from the order meta-model based on the tenant context, and call the analysis rule set associated with the fulfilling order domain object to clean and convert the original order data to generate the standard fulfilling order object.

Inventors

  • SHAN KANGNING
  • PENG WEILING
  • YANG CHENGZHI
  • NIU YING

Assignees

  • 深圳市链宇技术有限公司

Dates

Publication Date
20260512
Application Date
20260129

Claims (10)

  1. 1. A personalized order template construction and management system based on a configurable rules engine, comprising: the system comprises a domain meta model construction module, a data model generation module and a data model generation module, wherein the domain meta model construction module is used for defining an order meta model comprising an entity layer and an extensible value object layer based on a domain driving design mode, and the order meta model carries out dynamic extension and inheritance of the data model according to the dimension of a tenant; The rule configuration module is used for configuring business logic for dynamically binding the data analysis rule set and the extensible value object layer; An order processing engine, connected with the domain meta model construction module and the rule configuration module, configured to: Identifying a tenant context according to the source of the original order data; instantiating a fulfill order domain object from the order meta-model based on the tenant context; and calling an analysis rule set associated with the order fulfilling field object, cleaning and converting the original order data, and generating a standardized order fulfilling object.
  2. 2. The personalized order template construction and management system based on a configurable rules engine of claim 1, wherein the order processing engine invokes a set of parsing rules associated with fulfilling order field objects, comprising: Determining one or more rule chains according to the analysis rule set, wherein the rule chains comprise at least three rule nodes and form a directed acyclic graph structure, and each rule node is associated with a specific value object attribute and a corresponding data cleaning or conversion algorithm; When a call instruction associated with the order fulfilling field object is received, traversing each rule node in turn according to the topological order defined by the rule chain, and taking the output of the last node as the input of the next node; And for parallel regular node branches, starting parallel thread execution and synchronizing all branch results at the sink node, wherein each regular node is further configured with an effective conditional expression, and the regular node is activated only when the pre-calculated characterization expression result is true for the original order data.
  3. 3. A configurable rules engine based personalized order template construction and management system according to claim 1, wherein in said order metamodel: The entity layer comprises at least one abstract root entity and a plurality of concrete business entities derived from the root entity; The extensible value object layer comprises at least one basic value object container and a plurality of extensible value objects which are related to the basic value object container in an inheritance or combination mode, wherein a specific business entity indirectly holds all the extensible value objects by referring to the basic value object container; Dynamic expansion according to the tenant dimension is realized by registering a new expansion value object with a basic value object container under a specific tenant, wherein the registration operation triggers a rule configuration module to generate a default analysis rule for the new expansion value object and prompts binding.
  4. 4. The personalized order template construction and management system based on a configurable rules engine of claim 1, wherein the rule configuration module comprises a rule registry and a rule binder, wherein, A rule binder responding to the configuration change event, wherein the rule registration center stores rules in the form of key value pairs, and the key value comprises a tenant ID, a value object type identifier and an operation type combination; The rule binding is used for responding to the configuration change event, when detecting the registration event or rule configuration update event of the extension value object, searching the matched target rule from the rule registration center according to the tenant ID and the value object type identifier in the registration event or rule configuration update event, and adding the searched target rule into the instantiated fulfilling order field object of the corresponding tenant context through Java dynamic proxy or AspectJ tangent plane programming technology to execute dynamic binding.
  5. 5. The personalized order template construction and management system based on a configurable rules engine of claim 1, wherein said order processing engine comprises a rule execution isolation pod and a hot-load controller, wherein, The rule execution isolation cabin is configured to capture all non-fatal exceptions thrown by the first rule node when the first rule node is called, record the non-fatal exceptions, the rule node ID and the original order data slice to an isolation log, and skip the second rule node after the first rule node continues executing the rule chain; The hot load controller is configured to monitor a rule configuration module binding completion event during a first time period, load a bound target rule into an independent memory space when there is a target rule binding completion, and proportionally split incoming order data to an original rule and a target rule execution during a second time period.
  6. 6. The personalized order template construction and management system based on a configurable rules engine according to claim 1, wherein said order processing engine comprises a policy factory and an execution link; The strategy factory is internally preconfigured with a plurality of strategy processors facing stock production MTS, order production MTO and order design ETO; When a standardized fulfilling order object is generated, a corresponding strategy processor class is instantiated by utilizing a dependency injection framework according to a production mode attribute identifier in an order meta-model, and a reference address of the strategy processor class is assigned to a fulfilling strategy interface attribute of the fulfilling order field object so as to call downstream production plan interfaces of different execution links.
  7. 7. The personalized order template construction and management system based on a configurable rules engine according to claim 1, wherein the order processing engine adopts a responsive programming architecture comprising an event distributor and a backpressure controller; The event distributor is internally maintained with a non-blocking I/O multiplexing monitor based on an Epoll or IOCP operating system, and is used for simultaneously monitoring the original order data streams of a plurality of order access ports; When the data inflow speed exceeds the analysis speed, the backpressure controller automatically reduces the monitoring bit width of the monitor or triggers a data discarding strategy, the original order data is mapped to a value object in the memory through the stream analyzer, and the persistence storage of the full-volume file is not carried out.
  8. 8. The personalized order template construction and management system based on a configurable rules engine according to claim 1, wherein the rules configuration module further comprises a business policy mapper; The business strategy mapper is used for storing a mapping relation table of a supply chain operation reference model and an order fulfillment strategy, wherein the mapping relation table associates planning, purchasing, manufacturing, delivering and returning core flow nodes in the supply chain operation reference model with three fulfillment strategy identifications of stock production MTS oriented, order production MTO oriented and order design ETO oriented; the traffic policy mapper is configured to: responding to the configuration operation of a user on the target flow node, and determining a corresponding target fulfillment strategy identifier according to the mapping relation table; Extracting a rule chain template set bound with the target performance policy identification from a preset rule template library according to the target performance policy identification, wherein the rule chain template set at least comprises a rule chain template for demand distribution and a rule chain template for delivery commitment; The service policy mapper is further used for extracting a rule chain template set, performing association binding with a specific value object type of the tenant context, and generating a policy binding description file, wherein when the order processing engine performs the order field object in an instantiation mode, the policy binding description file is matched according to the service attribute in the order data so as to load and execute the corresponding rule chain template set.
  9. 9. The personalized order template construction and management system based on a configurable rules engine of claim 1, wherein the domain-driven design model comprises a user interface layer, an application layer and a domain layer, wherein, The order processing engine is deployed on an application layer, and after an analysis rule set is called to generate a standardized order fulfilling object, the object is transmitted to a domain service in a domain layer; the domain service triggers corresponding business logic according to the business state identification of the order fulfillment object and generates a domain event at least comprising an order performance instruction or a resource allocation instruction; the user interface layer subscribes to the domain event, and converts the domain event into a corresponding view model based on different terminal types for visual rendering and interactive feedback.
  10. 10. The personalized order template construction and management system based on a configurable rules engine of claim 1, wherein the order processing engine, when identifying tenant context based on source, further synchronously identifies a type of source of demand for the original order data, wherein, The demand source types include frame contracts, standard sales contracts, and internal demand requirements; the system is preset with analysis rule sets corresponding to different demand source types; The order processing engine matches and loads a specific set of target rules from a set of preset parsing rules based on the identified demand source type to perform differentiated cleaning, conversion and attribute enhancement logic on the original order data to generate a standardized fulfillment order object that matches the demand source characteristics.

Description

Personalized order form template construction and management system based on configurable rule engine Technical Field The invention relates to the technical field of computer data processing and supply chain management, in particular to a personalized order form template construction and management system based on a configurable rule engine. Background With the penetration of digital transformation in manufacturing industry, the customer demands facing enterprises are increasingly diversified. Most of the existing order management systems employ fixed data models and business processes. When an enterprise faces orders from different sales channels, different product types, and different customer levels, there are often the following problems: Conventional systems lack flexibility. The order formats of different clients have great difference, and the traditional OMS needs to develop a special interface program aiming at each format, so that the development period is long and the cost is high. Secondly, business rules are stiff, special business constraints exist, existing systems are usually hard-coded in programs, and once customer contract terms are changed, codes need to be modified and redeployed, so that the response speed of a supply chain is seriously affected. Disclosure of Invention The application provides a personalized order template construction and management system based on a configurable rule engine, which is used for solving the problems of poor expansibility and high custom development cost when the order management system faces to diversified order demands in the prior art. In order to achieve the above purpose, the present application provides the following technical solutions: In a first aspect, the present application provides a system for constructing and managing a personalized order form based on a configurable rule engine, comprising: the system comprises a domain meta model construction module, a data model generation module and a data model generation module, wherein the domain meta model construction module is used for defining an order meta model comprising an entity layer and an extensible value object layer based on a domain driving design mode, and the order meta model carries out dynamic extension and inheritance of the data model according to the dimension of a tenant; The rule configuration module is used for configuring business logic for dynamically binding the data analysis rule set and the extensible value object layer; An order processing engine, connected with the domain meta model construction module and the rule configuration module, configured to: Identifying a tenant context according to the source of the original order data; instantiating a fulfill order domain object from the order meta-model based on the tenant context; and calling an analysis rule set associated with the order fulfilling field object, cleaning and converting the original order data, and generating a standardized order fulfilling object. With reference to the first aspect, the order processing engine invokes a set of parsing rules associated with fulfilling order field objects, comprising: Determining one or more rule chains according to the analysis rule set, wherein the rule chains comprise at least three rule nodes and form a directed acyclic graph structure, and each rule node is associated with a specific value object attribute and a corresponding data cleaning or conversion algorithm; When a call instruction associated with the order fulfilling field object is received, traversing each rule node in turn according to the topological order defined by the rule chain, and taking the output of the last node as the input of the next node; And for parallel regular node branches, starting parallel thread execution and synchronizing all branch results at the sink node, wherein each regular node is further configured with an effective conditional expression, and the regular node is activated only when the pre-calculated characterization expression result is true for the original order data. With reference to the first aspect, in the order meta-model: The entity layer comprises at least one abstract root entity and a plurality of concrete business entities derived from the root entity; The extensible value object layer comprises at least one basic value object container and a plurality of extensible value objects which are related to the basic value object container in an inheritance or combination mode, wherein a specific business entity indirectly holds all the extensible value objects by referring to the basic value object container; Dynamic expansion according to the tenant dimension is realized by registering a new expansion value object with a basic value object container under a specific tenant, wherein the registration operation triggers a rule configuration module to generate a default analysis rule for the new expansion value object and prompts binding. With reference to the first aspect,