Search

CN-121979699-A - Online form processing method, architecture, server and storage medium

CN121979699ACN 121979699 ACN121979699 ACN 121979699ACN-121979699-A

Abstract

The application provides an online form processing method, a framework, a server and a storage medium, which belong to the technical field of online data processing, wherein the method comprises the steps that in response to a service request aiming at any online form, a service event corresponding to the service request is identified through a target adapter, and the target adapter is packaged with a conversion interface corresponding to a plurality of service events; and based on the exclusive service plug-in, realizing the service requirement corresponding to the service event. Therefore, the business logic does not need to be dispersed in each scattered component, the code coupling property is reduced, the development difficulty of functions is reduced, the codes are easy to understand and maintain, and the reusability of the codes is improved.

Inventors

  • ZHANG LEI
  • GAO JUNWEI
  • MENG QINGYI
  • WANG YINJIAO
  • LIN YANLI

Assignees

  • 金蝶软件(中国)有限公司

Dates

Publication Date
20260505
Application Date
20251215

Claims (10)

  1. 1. An online form processing method, the method comprising: Responding to a service request aiming at any online form, identifying a service event corresponding to the service request through a target adapter, wherein the target adapter is packaged with a conversion interface corresponding to a plurality of service events; Forwarding the business event to the business event matching exclusive business plug-in corresponding to the online form; And realizing the service requirement corresponding to the service event based on the exclusive service plug-in.
  2. 2. The method of claim 1, wherein forwarding the business event to the business event matching proprietary business plug-in corresponding to the online form comprises: Acquiring a basic service plug-in corresponding to the online form; Registering a service processor required for realizing the service event to the basic service plug-in to obtain a dedicated service plug-in matched with the service event; And forwarding the business event to an exclusive business plug-in corresponding to the online form.
  3. 3. The method of claim 1, wherein the implementing, based on the dedicated service plugin, the service requirement corresponding to the service event comprises: Invoking a service logic processing interface corresponding to the service event based on a task processor registered in the exclusive service plug-in; and realizing the service requirement corresponding to the service event based on the service logic interface.
  4. 4. The method of claim 3, wherein the traffic event is a cell-fill event and the task processor is a listener; The task processor based on the registration in the exclusive service plug-in invokes a service logic processing interface corresponding to the service event, including: monitoring the filling information of the target cells in the online form through the monitor; Invoking a checking service through the monitor, wherein the checking service is used for checking the report information; and updating the data of the target cell in the cache based on the filling information when the filling information core passes.
  5. 5. The method of claim 3, wherein the business event is a save event and the task processor is a callback handler; The task processor based on the registration in the exclusive service plug-in invokes a service logic processing interface corresponding to the service event, including: and calling a cache operation service interface through the callback device, wherein the cache operation service interface is used for acquiring form data to be stored in a cache manager and storing the form data to be stored into a form database.
  6. 6. The method of claim 1, wherein the identifying, by the target adapter, the service event corresponding to the service request in response to the service request for any of the online forms comprises: receiving a service request input by a user through a page control in a front-end application layer; and identifying the business event corresponding to the business request through the page control.
  7. 7. The method of any one of claims 1-6, wherein the method further comprises: querying locally cached form data in response to a load operation for the online form; If the form data of the local cache comprise the target form data of the online form, loading the target form data called in the local cache; If the target table data of the online table is not included in the locally cached table data, a data acquisition request is sent to a database, the local cache is updated based on the target table data, and the target table data sent by the database is loaded.
  8. 8. An online form processing architecture is characterized by comprising a front-end application layer, a cache layer and a database layer; The front-end application layer is provided with a target adapter for interacting with the front-end application through a page control, and the target adapter is used for identifying a service event corresponding to a service request and forwarding the service event to the service event matching exclusive service plug-in corresponding to the online form; The cache layer is provided with a cache manager for caching the grid data through the cache manager, and when receiving a storage instruction, the cache manager interacts with the database layer to upload the grid data to the database layer; the database layer is used for storing grid data.
  9. 9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the online form processing method of any of claims 1 to 7 when the computer program is executed.
  10. 10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the online form processing method of any one of claims 1 to 7.

Description

Online form processing method, architecture, server and storage medium Technical Field The application belongs to the technical field of online data processing, and particularly relates to an online form processing method, an online form processing architecture, a server and a storage medium. Background Currently, the front-end application layer is composed of a user interface and an electronic page control (tap control), and all operations of the user (e.g., selecting cells, editing content, opening a drop-down selection or selecting a table range, etc.) trigger a corresponding front-end event. The front-end event can realize communication interaction between the front-end page control and the back-end through a preset adapter (Action) of the platform, namely, the front-end event is called back to the back-end server through the adapter. Thus, the back end executes different operations of the front end user through the page registered with the corresponding callback adapter, and corresponding front end events are realized. However, different front-end pages correspond to different switches to realize corresponding events, and different events in the switches need to be realized differently, so that different business logic is scattered in each scattered component, the coupling degree of codes is high, and in the process of maintaining the codes, the codes aiming at different events in a plurality of switches need to be maintained, and the readability and maintainability of the codes are different. Disclosure of Invention The application aims to provide an online form processing method, an online form processing architecture, a server and a storage medium, and aims to solve the problem of poor readability and maintainability of online form processing codes. A first aspect of an embodiment of the present application provides an online form processing method, where the method includes: Responding to a service request aiming at any online form, identifying a service event corresponding to the service request through a target adapter, wherein the target adapter is packaged with a conversion interface corresponding to a plurality of service events; Forwarding the business event to the business event matching exclusive business plug-in corresponding to the online form; And realizing the service requirement corresponding to the service event based on the exclusive service plug-in. A second aspect of the embodiment of the application provides an online form processing architecture, which comprises a front-end application layer, a cache layer and a database layer; the front-end application layer is provided with a target adapter for interacting with the front-end application through a page control, and the target adapter is used for identifying a service event corresponding to the service request and forwarding the service event to the service event matching exclusive service plug-in corresponding to the online form; The cache layer is provided with a cache manager for caching the grid data through the cache manager, and when receiving a storage instruction, the cache manager interacts with the database layer to upload the grid data to the database layer; the database layer is used for storing grid data. A third aspect of an embodiment of the present application provides a server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the online form processing method as described above when executing the computer program. A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements an online form processing method as described above. A fifth aspect of an embodiment of the application provides a computer program product which, when run on an electronic device, causes the electronic device to perform an online form processing method as described above. Compared with the prior art, the embodiment of the invention has the beneficial effects that: In the embodiment of the application, the service request aiming at the form is identified through the target adapter packaged with various service events, and then the service request is distributed to the exclusive service plug-in corresponding to the online form, so that the service requirement corresponding to the service event is realized through the exclusive service plug-in, the exclusive service plug-in matched with the service event is distributed according to the service event, the adapter of the online form is not required to be arranged for each online form, the program interface of the online form is simplified, only the corresponding service plug-in is required to be matched according to the service type, thus service logic is not required to be dispersed in each scattered component, the code coupling is reduced, the development difficulty of functions is reduced, t