Search

CN-122018955-A - Rule issuing method and device

CN122018955ACN 122018955 ACN122018955 ACN 122018955ACN-122018955-A

Abstract

The embodiment of the application provides a rule issuing method and device, and relates to the technical field of data management, wherein the method comprises the following steps: responding to a release operation triggered by an operation interface aiming at a target rule package, the release system sends a downloading instruction carrying version identification information of the target rule package to the file processing system, so that the file processing system downloads the target rule package from the test operation and maintenance workbench based on the version identification information, acquires the target rule package from the file processing system, calls an interface of the production operation and maintenance workbench, and releases the target rule package to the production operation and maintenance workbench, so that the production operation and maintenance workbench distributes the target rule package to the rule execution server. By constructing a full-flow closed-loop management mechanism, one-key type safe release is realized, interaction can be carried out between the two systems, each system is automatically driven to execute tasks according to a preset flow, manual operation can be replaced, the release efficiency of a rule package is remarkably improved, and the operation risk is reduced.

Inventors

  • XU GUOPING
  • SU PAN

Assignees

  • 海南上湖信息技术有限公司
  • 上海耳序信息技术有限公司

Dates

Publication Date
20260512
Application Date
20260121

Claims (10)

  1. 1. A rule issuing method, applied to an issuing system, comprising: Responding to a release operation triggered by an operation interface aiming at a target rule package, and sending a downloading instruction carrying version identification information of the target rule package to a file processing system so that the file processing system downloads the target rule package from a test operation and maintenance workbench based on the version identification information; Acquiring the target rule package from the file processing system; and calling an interface of a production operation and maintenance workbench, and releasing the target rule package to the production operation and maintenance workbench so that the production operation and maintenance workbench distributes the target rule package to a rule execution server.
  2. 2. The method of claim 1, wherein the obtaining the target rule package from the file processing system comprises: Polling a download task state interface of the file processing system to obtain a download state of the target rule package; and when the downloading state indicates that the downloading is completed, acquiring the target rule package from the file processing system.
  3. 3. The method of claim 1, wherein the invoking the interface of the production operation and maintenance workbench to publish the target rule package to the production operation and maintenance workbench comprises: invoking a data uploading interface of a production operation and maintenance workbench, and uploading the target rule package to a data warehouse of the production operation and maintenance workbench; And when receiving the uploading success message returned by the production operation and maintenance workbench, calling a management interface of the production operation and maintenance workbench, and issuing the target rule package in the data warehouse in the production operation and maintenance workbench.
  4. 4. The method of claim 1, wherein the causing the production operation and maintenance workbench to distribute the target rule package to a rule execution server comprises: So that the production operation and maintenance workbench distributes the target rule package to the rule execution server by utilizing an internal management channel with the rule execution server.
  5. 5. The method as recited in claim 1, further comprising: obtaining decision log data of an old rule packet, wherein the decision log data comprises a decision entering parameter and a first decision exiting parameter; sending a decision request carrying the decision entry to the rule execution server so that the rule execution server executes a decision based on the decision entry and the target rule package to obtain a second decision exit; Receiving the second decision parameter returned by the rule execution server; and triggering an alarm when the first decision parameter is inconsistent with the second decision parameter.
  6. 6. The method of claim 5, wherein when the first decision making parameter and the second decision making parameter are not identical, after triggering an alarm, further comprising: and modifying the target rule package to obtain a new version rule package.
  7. 7. The method as recited in claim 1, further comprising: and recording release detailed information of the target rule package, wherein the release detailed information comprises release time, release personnel, version identification information and release content.
  8. 8. A rule issuing method, applied to a file processing system, comprising: receiving a downloading instruction carrying version identification information of a target rule package, wherein the downloading instruction is sent by an issuing system in response to an issuing operation triggered by an operation interface for the target rule package; downloading the target rule package from a test operation workbench based on the version identification information; And sending the target rule package to the issuing system so that the issuing system calls an interface of a production operation and maintenance workbench, and issuing the target rule package to the production operation and maintenance workbench so that the production operation and maintenance workbench distributes the target rule package to a rule execution server.
  9. 9. A rule issuing apparatus, applied to an issuing system, comprising: the sending instruction module is used for responding to the issuing operation triggered by the operation interface aiming at the target rule package and sending a downloading instruction carrying version identification information of the target rule package to the file processing system so that the file processing system downloads the target rule package from the test operation and maintenance workbench based on the version identification information; the acquisition module is used for acquiring the target rule package from the file processing system; and the distribution module is used for calling an interface of the production operation and maintenance workbench and distributing the target rule package to the production operation and maintenance workbench so that the production operation and maintenance workbench distributes the target rule package to the rule execution server.
  10. 10. A rule issuing apparatus, applied to a file processing system, comprising: The downloading module is used for receiving a downloading instruction carrying version identification information of a target rule package, which is sent by an issuing system, wherein the downloading instruction is sent by the issuing system in response to an issuing operation triggered by an operation interface for the target rule package; and the sending module is used for sending the target rule package to the issuing system so that the issuing system calls an interface of a production operation and maintenance workbench, and issuing the target rule package to the production operation and maintenance workbench so that the production operation and maintenance workbench distributes the target rule package to a rule execution server.

Description

Rule issuing method and device Technical Field The embodiment of the application relates to the technical field of data management, in particular to a rule issuing method and device. Background Drools is a powerful business rule management system, typically maintained by business personnel, comprising two parts, workbench and KIESERVER. The Workbench is a visual Workbench of the drools rule, integrates functions of management, writing, compiling, packing, publishing and the like of the drools rule, and KIESERVER is a core component for carrying out actual running of the rule. Under the related technology, a business person completes a series of processes of writing, compiling, packaging, publishing, verifying and the like in a Workbench system of a test environment to obtain a drools rule package, then downloads the drools rule package from the Workbench system of the test environment to a local disk, logs in the Workbench system of a production environment, uploads the drools rule package in a local disk to a Workbench database of the production environment, and deploys the drools rule package to a corresponding KIESERVER server. In the scheme, service personnel need to manually download, upload and configure rule packages for multiple times in a test environment, a production environment and a release system, and the operation is complex and the fault tolerance rate is low. Disclosure of Invention The embodiment of the application provides a rule issuing method and device, which are used for realizing full-flow automation of rule package issuing, reducing operation complexity and improving fault tolerance. In one aspect, an embodiment of the present application provides a rule publishing method, applied to a publishing system, where the method includes: Responding to a release operation triggered by an operation interface aiming at a target rule package, and sending a downloading instruction carrying version identification information of the target rule package to a file processing system so that the file processing system downloads the target rule package from a test operation and maintenance workbench based on the version identification information; Acquiring the target rule package from the file processing system; and calling an interface of a production operation and maintenance workbench, and releasing the target rule package to the production operation and maintenance workbench so that the production operation and maintenance workbench distributes the target rule package to a rule execution server. In one aspect, an embodiment of the present application provides a rule issuing method, applied to a file processing system, where the method includes: receiving a downloading instruction carrying version identification information of a target rule package, wherein the downloading instruction is sent by an issuing system in response to an issuing operation triggered by an operation interface for the target rule package; downloading the target rule package from a test operation workbench based on the version identification information; And sending the target rule package to the issuing system so that the issuing system calls an interface of a production operation and maintenance workbench, and issuing the target rule package to the production operation and maintenance workbench so that the production operation and maintenance workbench distributes the target rule package to a rule execution server. In one aspect, an embodiment of the present application provides a rule issuing apparatus, applied to an issuing system, including: the sending instruction module is used for responding to the issuing operation triggered by the operation interface aiming at the target rule package and sending a downloading instruction carrying version identification information of the target rule package to the file processing system so that the file processing system downloads the target rule package from the test operation and maintenance workbench based on the version identification information; the acquisition module is used for acquiring the target rule package from the file processing system; and the distribution module is used for calling an interface of the production operation and maintenance workbench and distributing the target rule package to the production operation and maintenance workbench so that the production operation and maintenance workbench distributes the target rule package to the rule execution server. Optionally, the acquiring module is specifically configured to: Polling a download task state interface of the file processing system to obtain a download state of the target rule package; and when the downloading state indicates that the downloading is completed, acquiring the target rule package from the file processing system. Optionally, the distribution module is specifically configured to: invoking a data uploading interface of a production operation and maintenance workbench, and uploading the targe