Government affair business collaborative adapter service development method

By monitoring and mapping the data transmission of the government business collaboration platform, deploying adapters and front-end systems, the problem of data sharing and collaboration between government systems is solved, the unified exchange and management of government information is realized, and the interoperability and security between systems are improved. sex.

CN118778931APending Publication Date: 2024-10-15FUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410907347.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, government affairs systems in different regions and departments are independent of each other, and it is impossible to realize cross-department and cross-region government data sharing and process collaboration in a timely manner. Commonly used methods are inefficient, have poor security, are difficult to maintain and manage, and cannot meet the requirements of 'Internet+'. Government services' needs.

Method used

By monitoring the data transmission of the government business collaboration platform, perform port addressing processing and data mapping, deploy front-end systems and adapters, realize data matching and process collaboration between different government information systems, and use Docker and the service bus SDK to develop adapters. Achieve unified monitoring and management of data.

Benefits of technology

It solves the problem of being unable to share, exchange data and collaborate between different e-government information systems, realizes the interconnection and logical unification of multiple heterogeneous systems, simplifies management and monitoring, and improves the efficiency and security of government information exchange.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778931A_ABST
    Figure CN118778931A_ABST
Patent Text Reader

Abstract

The invention provides a government affair business collaboration adapter service development method, which comprises the following steps of: monitoring data transmission of an application system in a government affair business collaboration platform to obtain system request data; performing port addressing processing according to the system request data to obtain service input parameter data, and performing mapping processing on the service input parameter data to obtain process input parameter data; performing environment deployment and front-end system deployment on the application nodes, and performing data monitoring on the application nodes by the government affair business collaboration platform through a front-end system to obtain platform information; according to the platform information and the adapter service method, performing data matching on the process input parameter data to obtain process output parameter data; mapping the process output parameter data into service output parameter data; the adapter is arranged on the application node, and application node information is obtained according to the service parameter data. According to the method, the problem that information sharing, data exchange and flow collaboration cannot be carried out among different e-government information systems is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of government big data sharing and business collaboration, and in particular to a government business collaboration adapter service development method. Background Art

[0002] At present, all regions and departments are actively promoting the construction of online government service platforms and carrying out online services, which effectively optimizes government services, facilitates enterprises and the public, and creates a good environment for mass entrepreneurship and innovation. When implementing business approval on the online government service platform, a business process often requires the collaborative processing of business data in multiple information systems of multiple government departments to complete. These businesses need to obtain specific business information from other related units to complete the complete processing process. In the prior art, government systems in different regions and departments are independent of each other, and government data acquisition can only be passively logged in to the website or system of the municipal department in the region, and various relevant data information cannot be obtained in time. If two or more cross-departmental and cross-regional government system resources are realized, and data sharing of a certain target function is completed in a coordinated and consistent manner, the commonly used methods include customized service mode, proxy mode, identification type mode and constant interface mode.

[0003] This type of method mainly designs coarse-grained interfaces and declares all services in one interface. This interface is bloated and huge, and all users access the same interface, which makes it inefficient, poorly secure, and difficult to maintain and track. It is far from meeting the current needs of "Internet + Government Services" construction. Therefore, it is very necessary to design a government business collaborative adapter service development method. Summary of the invention

[0004] The purpose of the present invention is to provide a government affairs business collaboration adapter service development method to solve the problem that different e-government information systems cannot share information, exchange data and collaborate on processes.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A government affairs business collaborative adapter service development method comprises the following steps:

[0007] By monitoring the data transmission of the application system in the government business collaboration platform, the system request data is obtained;

[0008] Perform port addressing processing according to the system request data to obtain service input parameter data, and perform mapping processing on the service input parameter data to obtain process input parameter data;

[0009] Perform environmental deployment and front-end system deployment on application nodes. The government affairs business collaboration platform monitors data on application nodes through the front-end system to obtain platform information.

[0010] According to the platform information and adapter service method, the process input parameter data is matched to obtain the process output parameter data;

[0011] Map process output parameter data to service output parameter data;

[0012] Set the adapter on the application node and obtain the application node information based on the service output parameter data.

[0013] Optionally, the specific steps of performing port addressing processing according to the system request data are:

[0014] Determine the port service type according to the system request data, and receive the system request data through the port service type;

[0015] Verify the system request data.

[0016] Optionally, the port service type includes: HTTP GET, HTTP POST, WEBSERVICE, TCP SOCKET and JMS.

[0017] Optionally, the specific steps for environment deployment are:

[0018] Set up Docker in the front-end server;

[0019] Update the Docker server information based on the configuration information of the application node.

[0020] Optionally, the platform information includes: warehouse address, client IP and service port number.

[0021] Optionally, the specific steps of the adapter service method are: introducing the SDK dependency package of the service bus, and registering the adapter information to obtain the set adapter;

[0022] The specific steps to introduce the SDK dependency package of the service bus are:

[0023] Add or modify remote repositories;

[0024] Add or modify project parent dependencies;

[0025] Add SDK package dependency.

[0026] Optionally, the process output parameter data is in String format.

[0027] Optionally, the service output parameter data includes: HTTP status code and JSON string; the size of the JSON string is less than or equal to 1mb.

[0028] According to the specific embodiment provided by the present invention, the present invention discloses the following technical effects: the government affairs business collaborative adapter service development method provided by the present invention comprises: obtaining system request data by monitoring the data transmission of the application system in the government affairs business collaborative platform; performing port addressing processing according to the system request data to obtain service input parameter data, and mapping the service input parameter data to obtain process input parameter data; performing environment deployment and front-end system deployment on the application node, and the government affairs business collaborative platform performs data monitoring on the application node through the front-end system to obtain platform information; performing data matching on the process input parameter data according to the platform information and the adapter service method to obtain process output parameter data; mapping the process output parameter data to the service output parameter data; setting the adapter on the application node, and obtaining the application node information according to the service output parameter data. This method solves the problem that different electronic government affairs information systems cannot share information, exchange data and coordinate processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0030] Figure 1 A flowchart of a method for developing a government affairs business collaborative adapter service according to an embodiment of the present invention;

[0031] Figure 2 A diagram showing a network structure of a service platform according to an embodiment of the present invention;

[0032] Figure 3 This is a flowchart of an adapter service according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0035] like Figure 1 As shown, an embodiment of the present invention provides a method for developing a government affairs business collaborative adapter service, comprising the following steps:

[0036] Step 100: Obtain system request data by monitoring the data transmission of the application system in the government business collaboration platform.

[0037] Step 200: Perform port addressing processing according to the system request data to obtain service input parameter data, and perform mapping processing on the service input parameter data to obtain process input parameter data.

[0038] Specifically, the specific steps to obtain the process input data are:

[0039] The port service type is determined according to the system request data, and the system request data is received through the port service type; the port service types include: HTTP GET, HTTP POST, WEBSERVICE, TCP SOCKET and JMS.

[0040] Verify the system request data; the specific verification method includes: determining whether the service input parameter field in the system request data is a null value and whether the value type and range are correct.

[0041] The internal structure data of the application system is used for service addressing, and the various input parameter data structures received are checked to see if they match the built-in structure data, thereby obtaining the process input parameter data. The scope of data matching inspection includes: data hierarchy, data type, and value range.

[0042] Step 300: Perform environmental deployment and front-end system deployment on the application node. The government affairs business collaboration platform monitors the data of the application node through the front-end system to obtain platform information.

[0043] Specifically, the specific steps for environment deployment are:

[0044] Set up Docker in the front-end server, log in to the Docker official website to download the resources of docker-18.03.1-ce.tgz, docker-compose-Linux-x86_64 and install-docker.sh, and run the install-docker.sh script; Docker has built-in adapters, redis and containers; Docker provides lightweight virtualization, which can run multiple Docker microcontainers on a single machine, and each microcontainer has a microservice or independent application; and decouples the application environment from the underlying environment. The configuration of the Docker server and the installation of the container are used to deploy the developed adapter service.

[0045] According to the configuration information of the application node, update the Docker server information and add the insecure-registries configuration IP and port number. The specific implementation code is:

[0046] #vi / etc / docker / daemon.json

[0047] {

[0048] "insecure-registries":[" <ip> : <port>"]

[0049] }

[0050] #systemctl daemon-reload

[0051] #systemctlrestart docker

[0052] like Figure 2 As shown, specifically, the front-end systems include: provincial government data resource center, municipal business collaboration platform, provincial online administrative approval system, provincial public security department system, provincial civil affairs department system and provincial human resources and social security department system; the front-end systems all carry out data flow and business collaboration with the provincial business collaboration platform.

[0053] Specifically, the steps for front-end system deployment are as follows:

[0054] Modify the warehouse address, client IP and port number in the configuration file config.env;

[0055] Run sh startup.sh to deploy the front-end system;

[0056] Execute sh shutdown.sh to stop the front-end system;

[0057] Run the sh clear.sh command to clear the front-end system.

[0058] Step 400: According to the platform information and the adapter service method, the process input parameter data is matched to obtain the process output parameter data.

[0059] like Figure 3 As shown, specifically, the adapter service method adopts the automatic download method through Jar package and Maven, and depends on the bcsp-spring-boot-starter of the service bus.

[0060] Specifically, the specific steps of the adapter service method are:

[0061] Configure SDK dependencies through Maven. The specific implementation process of the configuration is as follows:

[0062] Add or modify remote warehouse; the specific implementation code is:

[0063] <repositories>

[0064] <repository>

[0065] <id> sircmaven< / id>

[0066] <name> sirc maven< / name>

[0067] <url> http: / / 193.100.100.176:37010 / repository / maven-public / < / url>

[0068] < / repository>

[0069] < / repositories>

[0070] Add or modify the project parent dependency; the specific implementation code is:

[0071] <parent>

[0072] <groupid> com.fgi< / groupid>

[0073] <artifactid> bcsp-spring-boot-starter< / artifactid>

[0074] <version> 2.1.3.RELEASE< / version>

[0075] < / parent>

[0076] Add SDK package dependency; the specific implementation code is:

[0077] <dependency>

[0078] <groupid> com.fgi< / groupid>

[0079] <artifactid> bcsp-adapter-register< / artifactid>

[0080] < / dependency>

[0081] Register the adapter; the registration content includes: adapter name, target environment where the adapter is registered, service port number, and whether to register automatically.

[0082] Enter parameter settings, and perform data matching based on the input parameter data to obtain the process output parameter data in String format.

[0083] More specifically, the specific code of the application configuration file application.yml (application.properties) registered by the adapter is:

[0084] #Application node name (must be in English)

[0085] spring:

[0086] application:

[0087] name:ms-adapter-specification

[0088] profiles:

[0089] active:adapter-dev#Environment must be set, such as development environment (adapter-dev, e-government extranet), test environment (adapter-test, e-government extranet) and production environment (adapter-prod, government information network)

[0090] #Service port number

[0091] server:

[0092] port:8081

[0093] #Set whether to enable automatic registration for this adapter. The default value is true

[0094] adapter:

[0095] register:

[0096] enabled:true

[0097] Furthermore, the naming rule of spring.application.name is: ms-adapter-(custom).

[0098] Furthermore, the default log configuration of the adapter does not need to be modified and is used to collect and monitor the application. The specific code is:

[0099] logging:

[0100] level:

[0101] root:info

[0102] path: / var / log / adapter / ${spring.application.name}

[0103] Step 500: Map process output parameter data to service output parameter data.

[0104] Specifically, the output parameters of the service output data include HTTP status code and JSON string; the process scheduling system determines whether the execution is successful based on the HTTP status code. When the HTTP status code is 200, the execution is successful, otherwise the execution fails.

[0105] More specifically, the returned JSON string cannot exceed 1MB. If it exceeds, an error will be reported. The method to make the returned JSON string not exceed 1MB is to save the relatively large data through attachments and only return the attachment string.

[0106] More specifically, if the adapter needs to process attachments, it needs to upload and download by calling methods in the SDK package. The specific implementation process of uploading and downloading is:

[0107] Inject AttachmentHandler dependency into Controller; the specific implementation code is:

[0108] @Autowired

[0109] privateAttachmentHandler attachmentHandler;

[0110] Call the corresponding method to upload and download. The specific implementation code is:

[0111] / / Save as attachment and return the attachment string

[0112] String attachemntCode=attachmentHandler.saveFileAsAttachment();

[0113] / / Download and get the attachment

[0114] File file=attachmentHandler.getAttachmentFile();

[0115] Step 600: Set the adapter on the application node, and obtain the application node information according to the service parameter data.

[0116] Specifically, the specific implementation code for obtaining application node information is:

[0117] <? xml version="1.0" encoding="UTF-8"? >

[0118] <node xmlns="http: / / www.fgi.net.cn"

[0119] xmlns:xsi="http: / / www.w3.org / 2001 / XMLSchema-instance"

[0120] xsi:schemaLocation="http: / / www.fgi.net.cnhttp: / / www.fgi.net.cn / adapter.xsd">

[0121] <name> Node name (can be in Chinese or English)< / name>

[0122] <adapters>

[0123] <adapter name="Addition operation" type="query" httpMethod="get" mapping=" / add" description="Summation operation">

[0124] <inputparams>

[0125] <paramname="param1" description="Input parameter 1" / >

[0126] <paramname="param2" description="Input parameter 2" / >

[0127] < / inputparams>

[0128] <outputparams>

[0129] <paramname="result" description="Output parameter" / >

[0130] < / outputparams>

[0131]

[0132] < / adapters>

[0133]

[0134] The beneficial effects of the present invention are as follows:

[0135] 1) Solve the problem of information sharing, data exchange and process coordination between different e-government information systems;

[0136] 2) Realize the interconnection, intercommunication and interoperability among various heterogeneous systems;

[0137] 3) It enables the logical unification and integration of government information exchange, and realizes unified monitoring and management.

[0138] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0139] The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.< / port> < / ip>

Claims

1. A government affairs business collaborative adapter service development method, characterized in that: The steps include: By monitoring the data transmission of the application system in the government business collaboration platform, the system request data is obtained; Perform port addressing processing according to the system request data to obtain service input parameter data, and perform mapping processing on the service input parameter data to obtain process input parameter data; Performing environment deployment and front-end system deployment on the application nodes, the government affairs business collaboration platform monitors the data of the application nodes through the front-end system to obtain platform information; According to the platform information and the adapter service method, data matching is performed on the process input parameter data to obtain process output parameter data; Mapping the process output parameter data into service output parameter data; The adapter is set on the application node, and parameter data and application node information are obtained according to the service.

2. The government affairs business collaborative adapter service development method according to claim 1, characterized in that: The specific steps of performing port addressing processing according to the system request data are: Determine a port service type according to the system request data, and receive the system request data through the port service type; The system request data is verified.

3. The government affairs business collaborative adapter service development method according to claim 2 is characterized in that: The port service types include: HTTP GET, HTTP POST, WEBSERVICE, TCP SOCKET and JMS.

4. The government affairs business collaborative adapter service development method according to claim 1, characterized in that: The specific steps for deploying the environment are: Set up Docker in the front-end server; The server information of the Docker is updated according to the configuration information of the application node.

5. The government affairs business collaborative adapter service development method according to claim 1, characterized in that: The platform information includes: warehouse address, client IP and service port number.

6. The government affairs business collaborative adapter service development method according to claim 1, characterized in that: The specific steps of the adapter service method are: introducing the SDK dependency package of the service bus, and registering the adapter information to obtain the set adapter; The specific steps to introduce the SDK dependency package of the service bus are: Add or modify remote repositories; Add or modify project parent dependencies; Add SDK package dependency.

7. The government affairs business collaborative adapter service development method according to claim 1, characterized in that: The process output parameter data is in String format.

8. The government affairs business collaborative adapter service development method according to claim 1, characterized in that: The service output parameter data includes: HTTP status code and JSON string; the size of the JSON string is less than or equal to 1mb.