CN115277817A - Method for realizing visualized data processing by establishing API gateway through flow service arrangement - Google Patents
Method for realizing visualized data processing by establishing API gateway through flow service arrangement Download PDFInfo
- Publication number
- CN115277817A CN115277817A CN202210870632.8A CN202210870632A CN115277817A CN 115277817 A CN115277817 A CN 115277817A CN 202210870632 A CN202210870632 A CN 202210870632A CN 115277817 A CN115277817 A CN 115277817A
- Authority
- CN
- China
- Prior art keywords
- node
- service
- data processing
- service flow
- api gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
Abstract
The invention relates to a method for realizing visualized data processing by arranging and constructing an API gateway through a flow service, which comprises the following steps: step 1, constructing an api gateway for data processing, and step 2, constructing a data input node; step 3, editing node attributes and basic information, step 4, repeating step 2 and step 3, and repeatedly adding service process node components for the data processing process to meet the data processing requirements; step 5, adding an output node; step 6, saving and debugging the service flow; step 7, issuing a service flow; the technical scheme has the advantages that: the method supports visualization and configuration of a dragging flow program, realizes rapid conversion and integration of data formats, and improves development efficiency; rich return results (Json or stylesheet); a flexible interactive interface; multiple trigger mechanisms (http api interface, timing schedule, message trigger); the access authority of the API gateway interface can be controlled, and the data security is ensured.
Description
Technical Field
The invention relates to a method for realizing visualized data processing by arranging and constructing an API gateway through a flow service, belonging to the technical field of flow image processing.
Background
With the rapid development of information technology and the characteristic of service agile delivery, a large number of API gateways need to be called and logically recombined, and the characteristic of service agile delivery cannot be met by using the conventional encoding method, so that a new scheme is urgently needed to solve the technical problem.
Disclosure of Invention
The technical scheme is based on a process and visualization dragging mode to realize the arrangement and aggregation of the services, is used for solving the problems of complex internal logic calculation and interface interaction and can configure timing scheduling to carry out data exchange, and can configure the attribute of the API gateway to control the access permission of a user to ensure the data security of the interface.
In order to achieve the above object, the technical solution of the present invention is a method for implementing visualized data processing by configuring an API gateway with a flow service, wherein the method comprises the following steps:
step 1, constructing a data processing api gateway;
step 2, constructing a data input node;
step 3, editing the node attribute and the basic information; clicking a service flow node assembly on the canvas, and editing assembly attribute information and modifying node basic information;
step 4, repeating the step 2 and the step 3, and repeatedly adding service process node components and configuration attribute information to the data processing process to meet the data processing requirement;
and 5, adding an output node, such as: a result returning component which can display the final result information returned after the API is executed;
step 6, saving and debugging the service flow;
and 7, issuing the service flow.
Step 1, constructing a data processing api gateway, specifically as follows:
step 1.1, the user newly creates a task name of the data processing flow, and the task type selection comprises the following steps: get request, post request, put request, delete request, timing task, message trigger task, etc.;
step 1.2, the service process node component is automatically generated when the system is loaded, and a starting node is added to a canvas in a default mode;
step 1.3, a user can drag service flow node components to canvas and configure attributes, the service flow node component information comprises a service flow id, a service flow node component id, a service flow node type and a name, the system stores the information of the service flow node components in a database, and step 2, a data input node is constructed; the user joins the service flow node component according to the business logic requirement, and the type of the service flow node component comprises: data and service classes-read database, write database, execute SQL, metadata queries, metadata updates, etc.; internal logical class-field mapping, adding derived fields, creating objects, etc.; control operation classes-loop, branch, return results, etc.; a file operation class; the workflow component is used for drawing a connecting line to a target node by a user to form an incidence relation between nodes, and simultaneously, the drawing component monitors a connecting event and stores node connecting line information in real time;
in step 3, editing the node attribute and the basic information, specifically as follows:
step 3.1, clicking a service process node component on the canvas;
and 3.2, editing the component attribute information and the basic information.
In step 4, repeating steps 2 and 3, and repeatedly adding service process node components and configuration attribute information to the data processing process to meet the data processing requirement, which is specifically as follows:
step 4.1, a user drags a service flow node component to a canvas, a connecting line is drawn to a target node, a drawing component logiccflow, lf.on ('edge: add', (data) = > { Console.log (data)// attribute of connecting line }) on event monitoring edge, add event to add edge, trigger a callback function, information contained in parameter data comprises starting point node id of middle connecting line, target node id and X/Y coordinate position, a method for storing the starting point node id of connecting line, the target node id and the X/Y coordinate position into a database is written in the callback function, when the nodes form a connection relation, the drawing component logcflow instance monitors the connection event and then triggers the callback function, and the connecting line information of the nodes is stored into the database;
step 4.2, editing the component attribute and the basic information;
and 4.3, loading and analyzing a text in the JSON format through a rule engine, rendering a process node according to JSON data, automatically generating a service process id through UUID by the system, and enabling ' url = '/design-api/' + service process id.
And 5, adding an output node, specifically as follows:
step 5.1, the user drags the return result component to the associated node of the canvas and the connection;
and 5.2, setting the attribute of the returned result component, and returning the structural mode and the returned data.
Step 6, saving and debugging the service flow, which is specifically as follows:
step 6.1, storing the service flow;
and 6.2, debugging the service flow, filling request parameters (url parameters or body parameters) according to the API task type, sending an instruction by using the breakpoint one-step service flow node assembly, and checking whether an execution result meets the service requirement after finishing corresponding actions.
Step 7, issuing the service flow, which is specifically as follows:
step 7.1, after the step 6.2 is finished, the user issues the service flow;
step 7.2, after release, using the service flow id as an identifier for gateway loading, and calling the resource bound by the corresponding service;
and 7.3, the user can set the access authority relationship of the API gateway in the attribute configuration for protecting the data security.
Compared with the prior art, the invention has the advantages that 1) the technical scheme supports visualization and drag flow configuration, realizes rapid conversion and integration of data formats, improves development efficiency and saves cost; 2) Rich return results (Json or stylesheet); 3) The technical scheme has flexible interactive interfaces; 4) Multiple trigger mechanisms (http API interface, timing scheduling and message triggering), and 5) the technical scheme can meet the control of access authority of the API gateway interface, and the data security is ensured.
Drawings
Fig. 1 is a schematic overall step diagram of a method for implementing visualized data processing by building an API gateway through procedural service orchestration according to one embodiment of the present invention.
Detailed Description
For the purpose of enhancing an understanding of the present invention, the present embodiment will be described in detail below with reference to the accompanying drawings.
Example 1: referring to fig. 1, a method for implementing visualized data processing by a procedural service orchestration and construction API gateway includes the following steps:
step 1, constructing a data processing api gateway,
step 1.1, a user creates a task name of a data processing flow and selects a task type (including a get request, a post request, a put request, a delete request, a timing task, a message trigger task and the like);
step 1.2, automatically generating a service process node assembly when a system is loaded, and defaulting to join a starting node on a canvas;
step 1.3, a user can drag service flow node components to canvas and configure attributes, the service flow node component information comprises a service flow id, a service flow node component id, a service flow node type and a service flow node name, and the system stores the information of the service flow node components in a database;
step 2, constructing a data input node; the user joins the service flow node component according to the business logic requirement, and the type of the service flow node component comprises: data and services classes-read databases, write databases, execute SQL, metadata queries, metadata updates, etc.; internal logical class-field mapping, adding derived fields, creating objects, etc.; control operation classes-loop, branch, return results, etc.; a file operation class; a workflow component) for a user to draw a connection to a target node to form an association relation between nodes, and simultaneously, the drawing component monitors a connection event and stores node connection information in real time;
step 3, editing the node attribute and the basic information,
step 3.1, clicking a service flow node component on the canvas;
step 3.2, editing the attribute information and the basic information of the component;
step 4, repeating the step 2 and the step 3, repeatedly adding service process node components and configuration attribute information for the data processing process to realize the data processing requirement,
and 4.1, dragging the service process node assembly to the canvas by a user, and drawing a connecting line to a target node. Adding an event to an add side of a drawing component, triggering a callback function, wherein the parameter data comprises information including a starting point node id of a middle connecting line, a target node id and an X/Y coordinate position, writing a method for storing the starting point node id of the connecting line, the target node id and the X/Y coordinate position into a database, when the nodes form a connection relationship, triggering the callback function after the drawing component logic flow example monitors the connection event, and storing the connection information of the nodes into the database;
step 4.2, editing the component attribute and the basic information;
step 4.3, loading and analyzing a text in a JSON format through a rule engine, rendering a process node according to JSON data, automatically generating a service process id through UUID by the system, and enabling ' url = '/design-api/' + service process id;
and step 5, adding an output node,
step 5.1, the user drags the return result component to the associated node of the canvas and the connection;
step 5.2, setting the attribute of the returned result component, and returning the structural mode and the returned data;
step 6, saving and debugging the service flow, which comprises the following steps:
step 6.1, storing the service flow;
step 6.2, debugging the service flow, filling in request parameters (url parameters or body parameters) according to the API task types, sending instructions to the service flow node assembly step by using breakpoints, and checking whether an execution result meets business requirements or not after finishing corresponding actions;
step 7, the issuing of the service flow,
step 7.1, after the step 6.2 is finished, the user issues the service flow;
step 7.2, after release, using the service flow id as an identifier for gateway loading, and calling the resource bound by the corresponding service;
and 7.3, the user can set the access authority relationship of the API gateway in the attribute configuration for protecting the data security.
It should be noted that the above-mentioned embodiments are not intended to limit the scope of the present invention, and all equivalent modifications and substitutions based on the above-mentioned technical solutions are within the scope of the present invention as defined in the claims.
Claims (8)
1. A method for realizing visualized data processing by constructing an API gateway through procedural service arrangement is characterized by comprising the following steps:
step 1, constructing a data processing api gateway;
step 2, constructing a data input node;
step 3, editing the node attribute and the basic information; clicking a service flow node assembly on the canvas, and editing assembly attribute information and modifying node basic information;
step 4, repeating the step 2 and the step 3, and repeatedly adding service process node components and configuration attribute information to the data processing process to meet the data processing requirement;
and step 5, adding an output node,
step 6, saving and debugging the service flow;
and 7, issuing the service flow.
2. The method for implementing visual data processing by a procedural services orchestration build API gateway according to claim 1,
step 1, constructing a data processing api gateway, specifically as follows:
step 1.1, the user newly creates a task name of the data processing flow, and the task type selection comprises the following steps: get request, post request, put request, delete request, timing task and message triggering task;
step 1.2, automatically generating a service process node assembly when a system is loaded, and defaulting to join a starting node on a canvas;
step 1.3, a user can drag service flow node components to canvas and configure attributes, the service flow node component information comprises service flow id, service flow node component id, service flow node type and name, and the system stores the information of the service flow node components in a database.
3. The method for implementing visual data processing by a procedural service orchestration and construction API gateway according to claim 2, wherein step 2, a data input node is constructed; the user joins the service flow node component according to the business logic requirement, and the type of the service flow node component comprises: data and services classes-read databases, write databases, execute SQL, metadata queries, metadata updates, etc.; internal logical class-field mapping, adding derived fields, creating objects, etc.; control operation classes-loop, branch, return results, etc.; a file operation class; and the workflow component draws a connection line to a target node by a user to form an incidence relation between the nodes, and simultaneously monitors a connection event and stores the connection information of the nodes in real time.
4. The method for implementing visualized data processing by a procedural service orchestration and construction API gateway according to claim 3, wherein in step 3, the node attributes and the basic information are edited as follows:
step 3.1, clicking a service process node component on the canvas;
and 3.2, editing the component attribute information and the basic information.
5. The method for implementing visualized data processing by building the API gateway according to the procedural service orchestration of claim 3 or 4, wherein in step 4, the steps 2 and 3 are repeated, and the service flow node components and the configuration attribute information are repeatedly added to the data processing procedure to implement the data processing requirement, specifically as follows:
step 4.1, a user drags a service flow node component to a canvas, a connecting line is drawn to a target node, a drawing component logiccflow, lf.on ('edge: add', (data) = > { Console.log (data)// attribute of connecting line }) on event monitoring edge, add event to add edge, trigger a callback function, information contained in parameter data comprises starting point node id of middle connecting line, target node id and X/Y coordinate position, a method for storing the starting point node id of connecting line, the target node id and the X/Y coordinate position into a database is written in the callback function, when the nodes form a connection relation, the drawing component logcflow instance monitors the connection event and then triggers the callback function, and the connecting line information of the nodes is stored into the database;
step 4.2, editing the component attribute and the basic information;
and 4.3, loading and analyzing a text in a JSON format through a rule engine, rendering process nodes according to JSON data, automatically generating a service process id through UUID by the system, and enabling ' url = '/design-api/' + service process id.
6. The method for implementing visualized data processing by programming and constructing the API gateway according to the procedural service of claim 5, wherein in step 5, an output node is added, which is specifically as follows:
step 5.1, the user drags the return result component to the associated node of the canvas and the connection;
and 5.2, setting the attribute of the returned result component, and returning the structural mode and the returned data.
7. The method for implementing visualized data processing by a procedural service orchestration and construction API gateway according to claim 6, wherein step 6, the saving and debugging of the service procedures are as follows:
step 6.1, storing the service flow;
and 6.2, debugging the service flow, filling in request parameters, url parameters or body parameters according to the API task type, sending out an instruction by using the breakpoint one-step service flow node assembly, and checking whether an execution result meets the service requirement after finishing a corresponding action.
8. The method for implementing visualized data processing by a procedural service orchestration and construction API gateway according to claim 6, wherein step 7, the issuing of the service procedures is specifically as follows:
step 7.1, after the step 6.2 is finished, the user issues the service flow;
step 7.2, after release, using the service flow id as an identifier for loading by the gateway, and calling the resource bound by the corresponding service;
step 7.3, the user can set the access authority relationship of the API gateway in the attribute configuration for protecting the security of the data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210870632.8A CN115277817A (en) | 2022-07-23 | 2022-07-23 | Method for realizing visualized data processing by establishing API gateway through flow service arrangement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210870632.8A CN115277817A (en) | 2022-07-23 | 2022-07-23 | Method for realizing visualized data processing by establishing API gateway through flow service arrangement |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115277817A true CN115277817A (en) | 2022-11-01 |
Family
ID=83769075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210870632.8A Pending CN115277817A (en) | 2022-07-23 | 2022-07-23 | Method for realizing visualized data processing by establishing API gateway through flow service arrangement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115277817A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116560756A (en) * | 2023-07-12 | 2023-08-08 | 鹏城实验室 | Service orchestration method, electronic device, computer-readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040111464A1 (en) * | 2002-12-04 | 2004-06-10 | International Business Machine Corporation | Type Descriptor Language (TDLanguage) metamodel |
US20040148185A1 (en) * | 2003-01-23 | 2004-07-29 | Electronic Data Systems Corporation | System and method for providing a plug-and-play architecture for integrating infrastructure services with business service implementations |
WO2004066088A2 (en) * | 2003-01-23 | 2004-08-05 | Electronic Data Systems Corporation | System and method for automated code generation using language neutral software code |
US20170344703A1 (en) * | 2006-12-29 | 2017-11-30 | Kip Prod P1 Lp | Multi-services application gateway and system employing the same |
CN111930372A (en) * | 2020-08-06 | 2020-11-13 | 科大国创云网科技有限公司 | Service arrangement solution method and system realized through draggable flow chart |
-
2022
- 2022-07-23 CN CN202210870632.8A patent/CN115277817A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040111464A1 (en) * | 2002-12-04 | 2004-06-10 | International Business Machine Corporation | Type Descriptor Language (TDLanguage) metamodel |
US20040148185A1 (en) * | 2003-01-23 | 2004-07-29 | Electronic Data Systems Corporation | System and method for providing a plug-and-play architecture for integrating infrastructure services with business service implementations |
WO2004066088A2 (en) * | 2003-01-23 | 2004-08-05 | Electronic Data Systems Corporation | System and method for automated code generation using language neutral software code |
US20170344703A1 (en) * | 2006-12-29 | 2017-11-30 | Kip Prod P1 Lp | Multi-services application gateway and system employing the same |
CN111930372A (en) * | 2020-08-06 | 2020-11-13 | 科大国创云网科技有限公司 | Service arrangement solution method and system realized through draggable flow chart |
Non-Patent Citations (1)
Title |
---|
钟山;许炜;: "基于RosettaNet的B2B电子商务交换平台", 计算机与数字工程, no. 12 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116560756A (en) * | 2023-07-12 | 2023-08-08 | 鹏城实验室 | Service orchestration method, electronic device, computer-readable storage medium |
CN116560756B (en) * | 2023-07-12 | 2024-04-16 | 鹏城实验室 | Service orchestration method, electronic device, computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170372442A1 (en) | Healthcare workflow system | |
CN112612835B (en) | Data model creating method and terminal | |
CN103984818A (en) | AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology | |
JP2016541056A (en) | Computer apparatus, method and apparatus for scheduling business flows | |
WO2018036342A1 (en) | Csar-based template design visualization method and device | |
WO2019062673A1 (en) | Information-based management implementation method and system based on input and output semantization | |
CN106600226B (en) | Method and device for optimizing process management system | |
CN115277817A (en) | Method for realizing visualized data processing by establishing API gateway through flow service arrangement | |
CN114548915A (en) | Method and system for realizing business cross-organization circulation based on process engine | |
US11281700B2 (en) | Graph-based operations on an entity-relationship database | |
KR101326985B1 (en) | Method and apparatus for developing, distributing and executing object-wise dynamic compileless programs | |
CN112686580B (en) | Workflow definition method and system capable of customizing flow | |
KR102213815B1 (en) | Gui system for ansible | |
CN103440300A (en) | Operation system and method for managing files based on events | |
CN109933308A (en) | The customed general-purpose system of remote sensing satellite data prediction flow path visual based on MPI+CUDA | |
CN110956025A (en) | Method based on process template multiplexing | |
Rivero et al. | Improving user involvement through a model-driven requirements approach | |
CN115237295A (en) | Method, electronic equipment and medium for generating flow chart through visual dragging | |
CN107368377A (en) | Network request processing method and processing device in a kind of Android application programs | |
US20090007157A1 (en) | Mapping Data Sources to a Procedural API | |
Fuggetta et al. | VLP: a visual language for prototyping | |
CN112817571B (en) | Man-machine object fusion application modeling method based on scene storyboard | |
US11954622B2 (en) | Interactive process graph for multi-UI process | |
CN117406979B (en) | Interface interaction design method and system for computing workflow | |
CN115729535A (en) | Complex process application development framework based on automatic code generation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |