CN110750271B - Service aggregation, method and device for executing aggregated service and electronic equipment - Google Patents

Service aggregation, method and device for executing aggregated service and electronic equipment Download PDF

Info

Publication number
CN110750271B
CN110750271B CN201911002090.7A CN201911002090A CN110750271B CN 110750271 B CN110750271 B CN 110750271B CN 201911002090 A CN201911002090 A CN 201911002090A CN 110750271 B CN110750271 B CN 110750271B
Authority
CN
China
Prior art keywords
service
aggregated
aggregation
data
relationship
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.)
Active
Application number
CN201911002090.7A
Other languages
Chinese (zh)
Other versions
CN110750271A (en
Inventor
廖卫红
李润静
龙富永
胡松青
李绍斌
钟辉强
张俊杰
柯栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911002090.7A priority Critical patent/CN110750271B/en
Publication of CN110750271A publication Critical patent/CN110750271A/en
Application granted granted Critical
Publication of CN110750271B publication Critical patent/CN110750271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a service aggregation method, a service aggregation device and an electronic device, wherein the service aggregation method comprises the following steps: outputting a relationship setting frame in response to the connection operation; receiving relationship data between a plurality of aggregated services set through the relationship setting box; and storing the relationship data and a plurality of aggregated services corresponding to the relationship data as a service combination, and using the service combination as an aggregated service. By outputting the relationship setting frame, a user can directly set the relationship among a plurality of services in the relationship setting frame, the relationship among the services is established in a code-free mode, and the development and maintenance cost of software codes can be reduced.

Description

Service aggregation, method and device for executing aggregated service and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for executing service aggregation and aggregated service, and an electronic device.
Background
In development application of data-as-a-service, a method for rapidly publishing services from data metadata objects is implemented, but no good processing method exists for aggregating published services. For the business requirement of one multi-business logic, when a plurality of services need to be called, the calling logic among the services needs to be realized through codes, and the software code development and maintenance cost is high.
Disclosure of Invention
The embodiment of the application aims to provide a service aggregation method, a service aggregation device, an execution method of service aggregation, an execution device of service aggregation, and electronic equipment, which can establish a relationship between services through a non-code mode, and further reduce software code development and maintenance costs.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a service aggregation method, including:
outputting a relationship setting frame in response to the connection operation;
receiving relationship data between a plurality of aggregated services set through the relationship setting box;
and storing the relationship data and a plurality of aggregated services corresponding to the relationship data as a service combination, and using the service combination as an aggregated service.
In one possible implementation, the relationship setting box is a visual editing window.
In one possible implementation, the relationship data includes: one or more of execution order of aggregated services, parameter source, execution conditions, row merge information, column merge information, and data filtering.
In one possible implementation manner, before the step of outputting the relationship setting box in response to the connection operation, the method further includes:
and receiving connection operation input by a dragging mode.
In a second aspect, an embodiment of the present invention provides an execution method for an aggregated service, including:
receiving a request for calling the aggregation service sent by a calling terminal;
searching for the aggregation service corresponding to the request for calling the aggregation service; the aggregated service is a service combination generated by using the service aggregation method in the first aspect;
analyzing the aggregation service to obtain a plurality of action instructions;
executing all action instructions corresponding to the aggregation service to obtain return data;
and sending the return data to the calling terminal.
In a possible implementation manner, the receiving a request for invoking an aggregated service sent by an invoking terminal includes:
and receiving a calling aggregation service request sent by a calling terminal in a POST mode.
In a possible implementation manner, before the step of obtaining the return data by executing all action instructions corresponding to the aggregated service, the method further includes:
and allocating the POST data packet in the calling aggregated service request to each aggregated service in the aggregated services.
In a possible implementation manner, the executing all action instructions corresponding to the aggregated service includes:
packaging all action instructions corresponding to the aggregation service into a transaction packet;
and executing the transaction packet.
In a third aspect, an embodiment of the present invention provides a service aggregation apparatus, including:
a setting output module for outputting the relationship setting frame in response to the connection operation;
a data receiving module for receiving relationship data between a plurality of aggregated services set through the relationship setting frame;
and the service storage module is used for storing the relationship data and a plurality of aggregated services corresponding to the relationship data as a service combination and using the service combination as an aggregated service.
In a fourth aspect, an embodiment of the present invention provides an apparatus for executing an aggregated service, including:
the request receiving module is used for receiving a request for calling the aggregated service sent by a calling terminal;
the service searching module is used for searching the aggregation service corresponding to the request for calling the aggregation service; the aggregated service is a service combination generated by using the service aggregation method in the first aspect;
the service analysis module is used for analyzing the aggregated service to obtain a plurality of action instructions;
the instruction execution module is used for executing all action instructions corresponding to the aggregation service to obtain return data;
and the data return module is used for sending the return data to the calling end.
In a fifth aspect, embodiments of the present application provide an electronic device, which includes one or more processors and one or more memories, where at least one instruction is stored in the one or more memories, and the instruction is loaded and executed by the one or more processors to implement the operations performed by the method according to the first and second aspects.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
by outputting the relationship setting frame, a user can directly set the relationship among a plurality of services in the relationship setting frame, the relationship among the services is established in a code-free mode, and the development and maintenance cost of software codes can be reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a service aggregation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an aggregation service provided by an embodiment of the present invention;
fig. 3 is a flowchart of an execution method of an aggregation service according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a configuration relationship of an aggregation service provided by an embodiment of the present invention;
FIG. 5 is a flow chart of a transaction packet execution process provided by an embodiment of the invention;
fig. 6 is a schematic diagram of a service aggregation apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an apparatus for executing an aggregation service according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For ease of understanding, the terms of the present invention are explained first:
the service in the present invention refers to a minimum unit of api (application Programming interface).
The aggregation service refers to a service combination formed by aggregating a plurality of services together; the service participating in aggregation in the aggregated service is an aggregated service. For example, service a, service B, and service C combine into aggregated service D, then service a, service B, and service C are all aggregated services.
The transaction packet is formed by packaging all action instructions analyzed by the aggregation service, all the action instructions can be executed on different aggregated services, and the action instruction execution process in each aggregated service can be regarded as a sub-transaction.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a service aggregation method provided by the present invention, where the method is used in a server, and the method of this embodiment includes:
step S101: the relationship setting frame is output in response to the connection operation.
Step S102: receiving relationship data between the plurality of aggregated services set through the relationship setting box.
Step S103: and storing the relationship data and a plurality of aggregated services corresponding to the relationship data as a service combination, and taking the service combination as an aggregated service.
By outputting the relationship setting frame to the user, the user can directly set the relationship among the plurality of services in the relationship setting frame, the relationship among the services can be established in a code-free mode, and the development and maintenance cost of software codes can be reduced.
In one embodiment of the present invention, the relationship setting box may be a visual editing window. The window can support text editing and formula editing. For example, service a output 1+ service a output 2 is service B input 1, and the formula represents one parameter 1 of service a output and another parameter 2 of service a output as one input parameter 1 of service B. For example, the input of service B may also be one parameter and a global variable of the output of service a.
The method of outputting the relationship setting box in response to the connection operation may be: and responding to the connection operation input by a dragging mode, and jumping out of the relation setting frame. The specific process can be as follows: the user clicks the API of the atom A (minimum unit), drags and points to another API of the atom B to form a connection relation, and jumps out of the relation setting box, wherein the connection relation can be represented by a line between the API and the relation setting box. The relationship data between the two APIs may be described in the form of words or formulas in the relationship setting box.
In one embodiment provided by the present invention, in the visual editing window, a user can set relationship data of a plurality of aggregated services. The relationship data may include: the aggregated service may be one or more of execution order, parameter source, execution condition, row merge information, column merge information, data filtering, etc.
By setting parameter sources, relationships can be established for input parameters of different aggregated services, and the relationships can also be established through formulas. In this way, parent-child service relationships may be formed by configuring the input parameters of the results of the previous execution of the aggregated service into the next aggregated service.
The row merging information and the column merging information refer to relationship data between output parameters of aggregated services. Data filtering refers to filtering input data of a service and further selecting required input data.
In a specific embodiment provided by the present invention, the relationship data of at least two aggregated services may be set in one relationship setting box. The aggregated service may also be an aggregated service that is a combination of multiple services, thereby forming a larger aggregated service. The relationship data in one relationship setting frame and the plurality of aggregated services corresponding to the relationship data form a service combination, the service combination is an aggregated service, as shown in fig. 2, the service combination is an aggregated service, and includes a service a, a service B, and a service D, and the service a, the service B, and the service D are all aggregated services. The service a may also be a service combination aggregated by the service a and the service b.
In the service aggregation process, each formed aggregation service is corresponding to a corresponding identifier, and when another aggregation service is needed in one service aggregation process, the relationship data can be set according to the identifiers of the corresponding aggregation services, so that the input data needed in each aggregation process is clear.
After the service combination is determined, the aggregated service needs to be saved, which is convenient for the caller to call.
Fig. 3 is a flowchart of an execution method of an aggregated service provided by the present invention, which is used in cooperation with the service aggregation method shown in fig. 1, where the method is used for a server, and includes:
step S201: and receiving a request for calling the aggregated service sent by a calling terminal.
Step S202: and searching the aggregation service corresponding to the request for calling the aggregation service.
Step S203: and analyzing the aggregation service to obtain a plurality of action instructions.
Step S204: and executing all action instructions corresponding to the aggregation service to obtain return data.
Step S205: and sending the return data to the calling terminal.
Since the server stores a plurality of aggregation services, after receiving a request for calling the aggregation service sent by a calling terminal, the server needs to search which aggregation service the request for calling the aggregation service calls according to the request for calling the aggregation service, and after determining the aggregation service, the server needs to execute the aggregation service.
The server is provided with a database, each aggregated service and a corresponding request identifier are stored in the database, and after receiving a request for calling the aggregated service, the aggregated service can be identified according to the request identifier in the aggregated service request. For example, a URL that invokes the aggregated service request.
In a specific embodiment provided by the present invention, when a caller calls a service, the caller may call the service in a POST manner, that is, a request for calling the aggregated service, which is sent to a server by a calling terminal, includes a POST data packet, where the POST data packet carries the aggregated service to be called and data to be called. When the calling end calls the aggregation service, the aggregation service calls all aggregated services in the aggregation service in sequence, and input parameters of each aggregated service may be the same or different, so that the aggregation service needs to split data in a POST data packet and distribute the split data to corresponding aggregated services.
After the aggregated service is determined and the POST data packet is distributed, the aggregated service can be executed, and the specific execution process is as follows:
the first step is as follows: analyzing the aggregation service to obtain a plurality of action instructions, wherein the action instructions can form an action instruction list so as to be convenient for recording;
the second step is that: executing all action instructions corresponding to the aggregation service to obtain return data; the specific method for executing all action instructions corresponding to the aggregated service comprises the following steps:
packaging all the analyzed action instructions corresponding to the aggregation service into a transaction packet; because all the action instructions correspond to different aggregated services, and each aggregated service is different, the action instructions corresponding to each aggregated service can be packaged into a sub-transaction for execution; that is, a package may include multiple sub-things. The relational data of the aggregated service is provided with the execution sequence of a plurality of aggregated services, namely the execution sequence of the corresponding sub-transactions. And when the transaction packet is executed, sequentially calling the aggregated service according to the execution sequence and executing the corresponding sub-transactions. If the execution process is abnormal, executing transaction rollback; and if the execution process is all normal, executing the commit instruction of each sub-transaction.
In the course of executing the aggregated service, the execution process may be written to a system log. Such as transaction packet logs and sub-transaction logs, etc.
And after the execution is finished, obtaining the return data, and then sending the return data to the calling end.
The following examples illustrate specific embodiments:
as shown in fig. 4, a schematic diagram of a configuration relationship of an aggregation service is provided, where the aggregation service includes an aggregated service a, an aggregated service B, and an aggregated service C; and the execution result of the aggregated service C is the input parameter of the aggregated service A, and the execution results of the aggregated service A and the aggregated service B are subjected to column combination or row combination to obtain final return data.
As shown in fig. 5, a flow chart of the transaction packet execution process is provided, in which a sub-transaction 1 pre-executes the instruction in the aggregated service a, pre-executes the aggregated service a in advance, and can accelerate the execution process of the aggregated service a; the sub-transaction 2 executes the instruction of the aggregated service A and obtains return data; sub-transaction 3 executes the instruction in aggregated service B and returns data; the sub-transaction 4 merges the return data of the sub-transaction 2 and the sub-transaction 3, if the sub-transaction 4 is successfully executed, the commit instruction of each sub-transaction is executed, and if the execution fails, the rollback instruction of the sub-transaction is executed. The sub-transactions 2 and 3 may be arranged in sequence or performed simultaneously.
Fig. 6 is a schematic diagram of a service aggregation apparatus according to an embodiment of the present invention, referring to fig. 6, the apparatus includes: an output module 101, a data receiving module 102 and a service storage module 103 are provided.
A setting output module 101 for outputting the relationship setting frame in response to the connection operation;
a data receiving module 102, configured to receive relationship data between a plurality of aggregated services set through the relationship setting frame;
the service storage module 103 is configured to store the relationship data and multiple aggregated services corresponding to the relationship data as a service combination, and use the service combination as an aggregated service.
In a specific embodiment of the present invention, the relationship setting box is a visual editing window.
In a specific embodiment provided by the present invention, the relationship data includes: one or more of execution order of aggregated services, parameter source, execution conditions, row merge information, column merge information, and data filtering.
In a specific embodiment of the present invention, before the step of outputting the relationship setting frame in response to the join operation, the method further includes:
and receiving connection operation input by a dragging mode.
It should be noted that: in the service aggregating device provided in the foregoing embodiment, when aggregating services, only the division of the functional modules is illustrated, and in practical applications, the functions may be allocated to different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules, so as to complete all or part of the functions described above. In addition, the interface generation apparatus and the interface generation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 7 is a schematic diagram of an apparatus for executing an aggregated service according to an embodiment of the present invention, referring to fig. 7, where the apparatus includes: a request receiving module 201, a service lookup module 202, a service parsing module 203, an instruction execution module 204 and a data return module 205.
A request receiving module 201, configured to receive a request for invoking the aggregated service sent by an invoking terminal;
a service searching module 202, configured to search for an aggregated service corresponding to the aggregated service invoking request; the aggregation service is a service combination generated by adopting a service aggregation method provided by the embodiment;
the service analysis module 203 is used for analyzing the aggregated service to obtain a plurality of action instructions;
the instruction execution module 204 is configured to execute all action instructions corresponding to the aggregated service to obtain return data;
and a data return module 205, configured to send the return data to the calling end.
In an embodiment of the present invention, the request receiving module 201 is specifically configured to:
and receiving a calling aggregation service request sent by a calling terminal in a POST mode.
In a specific embodiment provided by the present invention, before the executing all action instructions corresponding to the aggregated service and obtaining the return data, the method further includes:
and allocating the POST data packet in the calling aggregated service request to each aggregated service in the aggregated services.
In an embodiment of the present invention, the instruction executing module 204 is specifically configured to:
the packaging unit is used for packaging all action instructions corresponding to the aggregation service into a transaction packet;
and the execution unit is used for executing the transaction packet to obtain the return data.
It should be noted that: the execution device of the aggregated service provided in the foregoing embodiment is only illustrated by the division of the functional modules when calling the service, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data calling device and the data calling method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
It should be noted that all execution subjects of the steps of the method provided by the embodiment of the present invention may be the same device, or different devices may also be used as execution subjects of the method. For example, the execution subject of step S101 and step S102 may be device 1, and the execution subject of step S103 may be device 2; for another example, the execution subject of step S101 may be device 1, and the execution subjects of step S102 and step S103 may be device 2; and so on. Example 2 and example 3 are the same as above.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 8, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a service aggregation device and an execution device of the aggregated service on a logic level. And the processor executes the program stored in the memory and is specifically used for executing the service aggregation operation and the execution operation of the aggregated service.
The method performed by the service aggregation apparatus disclosed in the embodiment of fig. 6 and the method performed by the service aggregation apparatus disclosed in the embodiment of fig. 7 may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method in fig. 1 and implement the function of the service aggregation apparatus in the embodiment shown in fig. 6, and the electronic device may further execute the method in fig. 3 and implement the function of the data call apparatus in the embodiment shown in fig. 7, which is not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Embodiments of the present application also provide a computer-readable storage medium having at least one instruction stored therein, where the instruction is loaded and executed by a processor to implement service aggregation and operations performed by aggregated services.
In short, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Claims (8)

1. A method for service aggregation, comprising:
responding to a connection operation and outputting a relation setting frame, wherein the relation setting frame is a visual editing window, a plurality of relation data of aggregated services are set in the visual editing window, and the relation data are described in the relation setting frame in a form of characters or formulas;
receiving relationship data between a plurality of aggregated services set through the relationship setting box;
storing the relationship data and a plurality of aggregated services corresponding to the relationship data as a service combination, and taking the service combination as an aggregated service;
each formed aggregation service is correspondingly provided with a corresponding identifier, and when another aggregation service is needed in a service aggregation process, relational data are set according to the identifiers of the corresponding aggregation services;
the relationship data includes: one or more of execution order of aggregated services, parameter source, execution conditions, row merge information, column merge information, and data filtering.
2. The method of claim 1, further comprising, prior to the step of outputting a relationship setting box in response to a join operation:
and receiving connection operation input by a dragging mode.
3. An execution method of an aggregation service, comprising:
receiving a request for calling the aggregation service sent by a calling terminal;
searching for the aggregation service corresponding to the request for calling the aggregation service; the aggregated service is a service combination generated by the method of any one of claims 1 to 2;
analyzing the aggregation service to obtain a plurality of action instructions;
executing all action instructions corresponding to the aggregation service to obtain return data;
and sending the return data to the calling terminal.
4. The method according to claim 3, wherein the receiving of the request for invoking the aggregated service sent by the invoking terminal comprises:
receiving a calling aggregation service request sent by a calling terminal in a POST mode;
before the step of executing all action instructions corresponding to the aggregated service and obtaining return data, the method further includes:
and allocating the POST data packet in the calling aggregated service request to each aggregated service in the aggregated services.
5. The method of claim 3, wherein the executing all action instructions corresponding to the aggregated service comprises:
packaging all action instructions corresponding to the aggregation service into a transaction packet;
and executing the transaction packet.
6. A service aggregation apparatus, comprising:
the system comprises a setting output module, a relation setting module and a service processing module, wherein the setting output module is used for responding to connection operation and outputting a relation setting frame, the relation setting frame is a visual editing window, a plurality of relation data of aggregated services are set in the visual editing window, and the relation data are described in the relation setting frame in a text or formula mode;
a data receiving module for receiving relationship data between a plurality of aggregated services set through the relationship setting frame;
and the service storage module is used for storing the relationship data and a plurality of aggregated services corresponding to the relationship data as a service combination, taking the service combination as an aggregated service, corresponding to each aggregated service, and setting the relationship data according to the identifier of the corresponding aggregated service when another aggregated service is needed in one service aggregation process.
7. An apparatus for performing aggregated services, comprising:
the request receiving module is used for receiving a request for calling the aggregated service sent by a calling terminal;
the service searching module is used for searching the aggregation service corresponding to the request for calling the aggregation service; the aggregated service is a service combination generated by the method of any one of claims 1 to 3;
the service analysis module is used for analyzing the aggregated service to obtain a plurality of action instructions;
the instruction execution module is used for executing all action instructions corresponding to the aggregation service to obtain return data;
and the data return module is used for sending the return data to the calling end.
8. An electronic device, comprising one or more processors and one or more memories having stored therein at least one instruction that is loaded and executed by the one or more processors to perform an operation performed by the method of any one of claims 1 to 5.
CN201911002090.7A 2019-10-21 2019-10-21 Service aggregation, method and device for executing aggregated service and electronic equipment Active CN110750271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911002090.7A CN110750271B (en) 2019-10-21 2019-10-21 Service aggregation, method and device for executing aggregated service and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911002090.7A CN110750271B (en) 2019-10-21 2019-10-21 Service aggregation, method and device for executing aggregated service and electronic equipment

Publications (2)

Publication Number Publication Date
CN110750271A CN110750271A (en) 2020-02-04
CN110750271B true CN110750271B (en) 2021-07-23

Family

ID=69279141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911002090.7A Active CN110750271B (en) 2019-10-21 2019-10-21 Service aggregation, method and device for executing aggregated service and electronic equipment

Country Status (1)

Country Link
CN (1) CN110750271B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638972B (en) * 2020-05-07 2023-09-01 北京仁科互动网络技术有限公司 Request response method, system, equipment and storage medium based on micro-service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100117A (en) * 2015-08-28 2015-11-25 北京奇艺世纪科技有限公司 Method and device for accessing combined services
CN107612950A (en) * 2016-07-11 2018-01-19 阿里巴巴集团控股有限公司 A kind of method, apparatus, system, electronic equipment that service is provided
CN109302459A (en) * 2018-09-12 2019-02-01 国电南瑞科技股份有限公司 The service scheduling apparatus and method of service-oriented smart grid Dispatching Control System

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160004820A1 (en) * 2005-02-01 2016-01-07 Newsilike Media Group, Inc. Security facility for maintaining health care data pools
US8311947B2 (en) * 2008-11-26 2012-11-13 Microsoft Corporation Online service syndication
CN107888681A (en) * 2017-11-09 2018-04-06 北京中电普华信息技术有限公司 A kind of business flow processing method and device
CN108228369B (en) * 2018-01-19 2020-08-07 北京邮电大学 Visual API (application program interface) combination system and method based on JSON (Java Server object notation) tree

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100117A (en) * 2015-08-28 2015-11-25 北京奇艺世纪科技有限公司 Method and device for accessing combined services
CN107612950A (en) * 2016-07-11 2018-01-19 阿里巴巴集团控股有限公司 A kind of method, apparatus, system, electronic equipment that service is provided
CN109302459A (en) * 2018-09-12 2019-02-01 国电南瑞科技股份有限公司 The service scheduling apparatus and method of service-oriented smart grid Dispatching Control System

Also Published As

Publication number Publication date
CN110750271A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN110704037B (en) Rule engine implementation method and device
CN110032880B (en) Screen recording evidence obtaining method and system based on block chain and electronic equipment
CN108846749B (en) Partitioned transaction execution system and method based on block chain technology
CN108173706B (en) Service marking method, device and equipment under multi-service system
CN110020859B (en) Parallel execution block chain consensus method and device and electronic equipment
CN109327353B (en) Service flow determination method and device and electronic equipment
CN107066519B (en) Task detection method and device
CN109298926B (en) Method and device for entering resource transfer party into resource transfer platform and electronic equipment
CN111786984B (en) Pod communication connection method and device, electronic equipment and storage medium
CN108427636A (en) Test method, system and the electronic equipment of application
CN112181378B (en) Method and device for realizing business process
CN111225018A (en) Request message processing method and device and electronic equipment
CN110648125B (en) Packaging transaction method and device, electronic equipment and storage medium
CN109901991B (en) Method and device for analyzing abnormal call and electronic equipment
CN113486109A (en) Data synchronization method and device of heterogeneous database and electronic equipment
CN111694639A (en) Method and device for updating address of process container and electronic equipment
CN108647102B (en) Service request processing method and device of heterogeneous system and electronic equipment
CN109345081B (en) Data acquisition method and device and electronic equipment
CN108920326B (en) Method and device for determining time-consuming abnormity of system and electronic equipment
CN110750271B (en) Service aggregation, method and device for executing aggregated service and electronic equipment
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN111709748A (en) Transaction execution method and device with service attribute and electronic equipment
CN114527983A (en) Interface adaptation method and device based on middleware and electronic equipment
CN113706146B (en) Processing method, device and system for executing batch transactions based on blockchain
CN112907198B (en) Service state circulation maintenance method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant