Method and device for automatically generating nailing OA approval sheet

By setting in-parameter and out-parameter configurations on the DingTalk open platform, calling the business system API interface to obtain data and populating forms, the problem of the cumbersome connection process between DingTalk OA approval form and the business system is solved, and an efficient automated docking process is realized, and work efficiency is improved.

CN119721946APending Publication Date: 2025-03-28ZIXUN TECHNOLOGY (FUJIAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411574499.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, the docking process between DingTalk OA approval form and the business system is cumbersome, resulting in developers needing to reconfigure, which is inefficient, and wasting time and energy.

Method used

It provides a method and device for automatic generation of DingTalk OA approval form. By adding execution actions on DingTalk open platform, setting in-reference configuration and out-reference configuration, calling the API interface of the business system to obtain data, and converting the data into a response body data format to send it to DingTalk open platform, completing form filling.

Benefits of technology

It realizes the unified docking of DingTalk OA approval form and the business system, reduces duplicate configuration work, significantly improves work efficiency, simplifies user operations, and reduces the work burden of employees.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119721946A_ABST
    Figure CN119721946A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for automatically generating a nailing OA approval list, and the method comprises the steps: adding an execution action at a nailing open platform, and setting input parameter configuration and output parameter configuration; according to the input parameter configuration, calling an API (Application Program Interface) disclosed by a service system, executing the execution action, and obtaining required data; according to the parameter output configuration, the data is converted into the data format of the response body and then sent to the nailing opening platform, the nailing opening platform fills the data to the corresponding position, form filling is completed, repeated work content is reduced, and the work efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for automatically generating a DingTalk OA approval form. Background Art

[0002] The integration of DingTalk Open Platform and business systems is a complex process, which requires developers to not only have a deep understanding of the documents and APIs of the DingTalk Open Platform, but also to perform detailed configuration on the platform to ensure that the data obtained from the business system can be accurately filled into the form set by DingTalk. Since the connection of each business system needs to be set up separately, this tedious process undoubtedly increases the workload of developers and consumes precious time.

[0003] When multiple OA approval forms need to be connected to the same business system, developers have to log in to the DingTalk open platform repeatedly to perform similar configuration work. This repetitive task is not only inefficient, but also greatly wastes the time and energy of developers, affecting overall work efficiency. Therefore, it is particularly important to find a more efficient and automated connection process to reduce duplication of work and improve development efficiency. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and device for automatically generating DingTalk OA approval forms, which eliminates repetitive work content and greatly improves work efficiency.

[0005] In a first aspect, the present invention provides a method for automatically generating a DingTalk OA approval form, comprising the following steps:

[0006] Step 1: Add an execution action on the DingTalk open platform and set the input and output parameter configurations;

[0007] Step 2: According to the input parameter configuration, call the API interface disclosed by the business system, execute the execution action, and obtain the required data;

[0008] Step 3: Convert the data into the data format of the response body according to the output parameter configuration and send it to the DingTalk open platform. The DingTalk open platform fills the data into the corresponding position to complete the form filling.

[0009] In a second aspect, the present invention provides a device for automatically generating a DingTalk OA approval form, comprising:

[0010] Configure the parameter module, add execution actions on the DingTalk open platform, and set input parameter configuration and output parameter configuration;

[0011] The data acquisition module calls the API interface disclosed by the business system according to the input parameter configuration, executes the execution action, and obtains the required data;

[0012] The form filling module converts the data into the data format of the response body according to the output parameter configuration and sends it to the DingTalk open platform. The DingTalk open platform fills the data into the corresponding position to complete the form filling.

[0013] One or more technical solutions provided by the present invention have at least the following technical effects or advantages:

[0014] By adopting the technical solution of the present invention, users only need to configure the input and output parameters once on the DingTalk open platform to achieve unified docking with the business system. When the DingTalk OA approval form needs to change or replace the business system, the user only needs to reset the input and output parameter configurations on the DingTalk open platform to easily complete the docking. Similarly, when generating a new DingTalk OA approval form, the user only needs to configure the output and input parameters to achieve automated business system docking. This process greatly simplifies user operations, reduces the workload of employees, and significantly improves work efficiency.

[0015] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0017] Figure 1 is a flow chart of the method in Embodiment 1 of the present invention;

[0018] Figure 2 It is a schematic diagram of the structure of the device in the second embodiment of the present invention. DETAILED DESCRIPTION

[0019] The embodiments of the present application provide a method and device for automatically generating DingTalk OA approval forms, thereby solving the repetitive and tedious work content in the prior art and greatly improving work efficiency.

[0020] The technical solution in the embodiment of the present application has the following general idea:

[0021] 1. Add an execution action in the DingTalk open platform and perform

[0022] Input parameter configuration: configure ten fixed parameter names, corresponding to the parameters required for subsequent operations; configure URL query parameters, configure execution operations and types; the execution operation is used to trigger the call of the business system API; the type is used to identify the business system;

[0023] Output parameter configuration: configure the data format of the response body; the response data is edited according to this data format and then sent to DingTalk;

[0024] 2. Provide a public API to implement data forwarding requests and return results by type and action

[0025]

[0026] The parameter Map<String,Object> body is the ten fixed parameter names in the DingTalk connector input configuration, namely param1, param2, param3, ...param10.

[0027] Provides a data converter abstract layer. AbstractActionHandler is an operation processing framework. Subclasses can implement the init() method to define specific operation logic and data processing logic according to specific needs. The following methods are provided.

[0028] Initialization operation and data mapping:

[0029] The AbstractActionHandler class defines two maps, actionMap and dataMap, which are used to store operation and data processing functions respectively.

[0030] In the constructor AbstractActionHandler(), the specific action (ExecuteAction) and data processing (ExecuteData) are added to the map by calling the init() method. The init method is an abstract method implemented by subclasses to initialize actionMap and dataMap during instantiation.

[0031] Data acquisition (getData method):

[0032] The getData method gets the specified ExecuteData instance from the dataMap and calls its apply method to perform data processing based on the action and parameter params and return a DataItem list. If there is no specified action in the dataMap, an empty list is returned.

[0033] Auxiliary parameter conversion method:

[0034] Some static methods are provided to extract and convert parameter values ​​(parameter names are param1, param2, etc.) from the params map to facilitate subsequent operations:

[0035] otoIntParam: Converts the parameter of the specified key (i.e. parameter name) to an integer.

[0036] otoStrParam: Converts the parameter of the specified key (i.e. parameter name) to a string.

[0037] otoJsonParam: Parses the JSON string of the specified key (i.e. parameter name) into an object of a specific type T.

[0038] 3. The business system publishes an API interface. According to the published API interface, the required data is obtained, and the data is converted into the data format of the response body and sent to the DingTalk open platform. The DingTalk open platform fills the data into the corresponding position and completes the form.

[0039] Embodiment 1

[0040] like Figure 1 As shown, this embodiment provides a method for automatically generating a DingTalk OA approval form, including the following steps:

[0041] Step 1: Add an execution action on the DingTalk open platform and set the input and output parameter configurations;

[0042] Step 2: According to the input parameter configuration, call the API interface disclosed by the business system, execute the execution action, and obtain the required data;

[0043] Step 3: Convert the data into the data format of the response body according to the output parameter configuration and send it to the DingTalk open platform. The DingTalk open platform fills the data into the corresponding position to complete the form filling.

[0044] In this embodiment, preferably, the input parameter configuration is specifically: configuring a set number of parameter names, execution operations and types, the set number of parameter names are used as parameters required for subsequent operations; the execution operation is used to trigger an execution action; the type is used to identify the business system; the output parameter configuration is specifically: configuring the data format of the response body; the response data is edited according to the data format of the response body, and then sent to the DingTalk open platform.

[0045] In this embodiment, preferably, step 2 is specifically:

[0046] According to the input parameter configuration, the parameter names of the set number are converted into parameter data of the set format according to the business system;

[0047] In the AbstractActionHandler class, actionMap and dataMap are defined. The actionMap is used to store data operation functions; the dataMap is used to store data acquisition functions;

[0048] In the constructor of the AbstractActionHandler class, the actual data operation function ExecuteAction and the data processing function ExecuteData are added to the mapping by calling the init method;

[0049] The corresponding ExecuteData is obtained from the dataMap according to the execution operation and type through the getData method, and the apply method is called to trigger ExecuteData to obtain the required data. The ExecuteData is used to call the API interface exposed by the business system according to the corresponding parameter data to execute data acquisition.

[0050] Based on the same inventive concept, the present application also provides a device corresponding to the method in Example 1, see Example 2 for details.

[0051] Embodiment 2

[0052] like Figure 2 As shown, in this embodiment, a device for automatically generating a DingTalk OA approval form is provided, including:

[0053] Configure the parameter module, add execution actions on the DingTalk open platform, and set input parameter configuration and output parameter configuration;

[0054] The data acquisition module calls the API interface disclosed by the business system according to the input parameter configuration, executes the execution action, and obtains the required data;

[0055] The form filling module converts the data into the data format of the response body according to the output parameter configuration and sends it to the DingTalk open platform. The DingTalk open platform fills the data into the corresponding position to complete the form filling.

[0056] In this embodiment, preferably, the input parameter configuration is specifically: configuring a set number of parameter names, execution operations and types, the set number of parameter names are used as parameters required for subsequent operations; the execution operation is used to trigger an execution action; the type is used to identify the business system; the output parameter configuration is specifically: configuring the data format of the response body; the response data is edited according to the data format of the response body, and then sent to the DingTalk open platform.

[0057] In this embodiment, preferably, the data acquisition module is specifically:

[0058] According to the input parameter configuration, the parameter names of the set number are converted into parameter data of the set format according to the business system;

[0059] In the AbstractActionHandler class, actionMap and dataMap are defined. The actionMap is used to store data operation functions; the dataMap is used to store data acquisition functions;

[0060] In the constructor of the AbstractActionHandler class, the actual data operation function ExecuteAction and the data processing function ExecuteData are added to the mapping by calling the init method;

[0061] The corresponding ExecuteData is obtained from the dataMap according to the execution operation and type through the getData method, and the apply method is called to trigger ExecuteData to obtain the required data. The ExecuteData is used to call the API interface exposed by the business system according to the corresponding parameter data to execute data acquisition.

[0062] Since the device introduced in the second embodiment of the present invention is a device used to implement the method of the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device based on the method introduced in the first embodiment of the present invention, so it is not described here in detail. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.

[0063] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for automatically generating DingTalk OA approval forms, characterized by: The steps include: Step 1: Add an execution action on the DingTalk open platform and set the input and output parameter configurations; Step 2: According to the input parameter configuration, call the API interface disclosed by the business system, execute the execution action, and obtain the required data; Step 3: Convert the data into the data format of the response body according to the output parameter configuration and send it to the DingTalk open platform. The DingTalk open platform fills the data into the corresponding position to complete the form filling.

2. According to claim 1, a method for automatically generating DingTalk OA approval forms is characterized by: The input parameter configuration is specifically as follows: configure a set number of parameter names, execution operations and types. The set number of parameter names are used as parameters required for subsequent operations; the execution operation is used to trigger an execution action; the type is used to identify the business system; the output parameter configuration is specifically as follows: configure the data format of the response body; the response data is edited according to the data format of the response body and then sent to the DingTalk open platform.

3. According to claim 2, a method for automatically generating DingTalk OA approval forms is characterized by: The step 2 is specifically as follows: According to the input parameter configuration, the parameter names of the set number are converted into parameter data of the set format according to the business system; In the AbstractActionHandler class, actionMap and dataMap are defined. The actionMap is used to store data operation functions; the dataMap is used to store data acquisition functions; In the constructor of the AbstractActionHandler class, the actual data operation function ExecuteAction and the data processing function ExecuteData are added to the mapping by calling the init method; The corresponding ExecuteData is obtained from the dataMap according to the execution operation and type through the getData method, and the apply method is called to trigger ExecuteData to obtain the required data. The ExecuteData is used to call the API interface exposed by the business system according to the corresponding parameter data to execute data acquisition.

4. A device for automatically generating DingTalk OA approval forms, characterized by: include: Configure the parameter module, add execution actions on the DingTalk open platform, and set input parameter configuration and output parameter configuration; The data acquisition module calls the API interface disclosed by the business system according to the input parameter configuration, executes the execution action, and obtains the required data; The form filling module converts the data into the data format of the response body according to the output parameter configuration and sends it to the DingTalk open platform. The DingTalk open platform fills the data into the corresponding position to complete the form filling.

5. According to claim 4, a device for automatically generating DingTalk OA approval forms is characterized by: The input parameter configuration is specifically as follows: configure a set number of parameter names, execution operations and types. The set number of parameter names are used as parameters required for subsequent operations; the execution operation is used to trigger an execution action; the type is used to identify the business system; the output parameter configuration is specifically as follows: configure the data format of the response body; the response data is edited according to the data format of the response body and then sent to the DingTalk open platform.

6. The device for automatically generating DingTalk OA approval forms according to claim 5, characterized in that: The data acquisition module is specifically: According to the input parameter configuration, the parameter names of the set number are converted into parameter data of the set format according to the business system; In the AbstractActionHandler class, actionMap and dataMap are defined. The actionMap is used to store data operation functions; the dataMap is used to store data acquisition functions; In the constructor of the AbstractActionHandler class, the actual data operation function ExecuteAction and the data processing function ExecuteData are added to the mapping by calling the init method; The corresponding ExecuteData is obtained from the dataMap according to the execution operation and type through the getData method, and the apply method is called to trigger ExecuteData to obtain the required data. The ExecuteData is used to call the API interface exposed by the business system according to the corresponding parameter data to execute data acquisition.