CN117492717A - Method and device for realizing online service, storage medium and electronic equipment - Google Patents

Method and device for realizing online service, storage medium and electronic equipment Download PDF

Info

Publication number
CN117492717A
CN117492717A CN202311516238.5A CN202311516238A CN117492717A CN 117492717 A CN117492717 A CN 117492717A CN 202311516238 A CN202311516238 A CN 202311516238A CN 117492717 A CN117492717 A CN 117492717A
Authority
CN
China
Prior art keywords
target
functional element
splicing
functional
online service
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
Application number
CN202311516238.5A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202311516238.5A priority Critical patent/CN117492717A/en
Publication of CN117492717A publication Critical patent/CN117492717A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The application discloses a realization method and a device of online business, a storage medium and electronic equipment, and relates to the technical field of computers, the technical field of finance and other related fields, wherein the method comprises the following steps: acquiring a service function of an online service to be realized; determining a plurality of target functional elements from a functional element library according to the service function; determining a splicing relationship among the plurality of target functional elements according to the communication rule of the functional elements; and splicing the target functional elements according to the splicing relation to obtain a target application for realizing the online service, and realizing the online service according to the target application. According to the method and the device, the problem that in the related art, the foundation function module is assembled through a specific interface established manually to realize new online service, so that the flexibility of developing the online service is low is solved.

Description

Method and device for realizing online service, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technology, financial technology, and other related fields, and in particular, to a method and apparatus for implementing an online service, a storage medium, and an electronic device.
Background
The same service can be cooperatively completed through the functional modules in a plurality of service systems in the financial industry, but the problem of non-uniform data format exists among different service systems, and the novel online service can not be realized by directly applying the functional modules in the different systems. In order to solve the problem of interaction of multiple functions in different service systems, a specific interface between function modules is usually manually formulated to realize interaction between the function modules, so that new online service is realized, but each time a new online service is realized, a worker is required to reform the interface, so that the flexibility and the efficiency of developing the online service are low.
Aiming at the problem that the flexibility of developing the online service is relatively low because the basic functional module is assembled through a specific interface manually formulated in the related technology so as to realize the new online service, no effective solution is proposed at present.
Disclosure of Invention
The main purpose of the application is to provide a method and a device for realizing online service, a storage medium and electronic equipment, so as to solve the problem that the flexibility of developing online service is relatively low because a basic functional module is assembled through a specific interface established manually in the related technology to realize new online service.
In order to achieve the above object, according to one aspect of the present application, there is provided a method for implementing an online service. The method comprises the following steps: acquiring a service function of an online service to be realized; determining a plurality of target functional elements from a functional element library according to the service function; determining a splicing relationship among the plurality of target functional elements according to the communication rule of the functional elements; and splicing the target functional elements according to the splicing relation to obtain a target application for realizing the online service, and realizing the online service according to the target application.
Further, determining the splice relationship between the plurality of target functional elements according to the communication rule of the functional elements includes: determining the communication attribute of the target functional element according to the communication rule of the functional element, wherein the communication attribute at least comprises the data transmission direction of the target functional element, and the data transmission direction is input data or output data; and determining the splicing relationship according to the communication attributes of the target functional elements.
Further, splicing the plurality of target functional elements according to the splicing relationship, and obtaining the target application of the online service includes: determining a first target functional element in the plurality of target functional elements according to the splicing relationship, wherein the first target functional element is a first functional element for realizing the online service; determining a second target functional element of the plurality of target functional elements according to the stitching relationship; judging whether the second target functional element meets the splicing condition of splicing to the first target functional element or not to obtain a target judging result; if the target judgment result represents that the second target functional element meets the splicing condition of splicing to the first target functional element, splicing the second target functional element to the first target functional element to obtain a splicing result; judging whether the second target functional element is the last functional element for realizing the online service, and if the second target functional element is the last functional element for realizing the online service, obtaining the target application according to the splicing result.
Further, after determining whether the second target functional element is the last functional element to implement the online service, the method further comprises: and if the second target functional element is not the last functional element for realizing the online service, repeating the step of determining a third target functional element in the plurality of target functional elements according to the splicing relation until the third target functional element is the last functional element for realizing the online service, and obtaining the target application according to the current splicing result.
Further, determining whether the second target functional element meets a splicing condition for splicing to the first target functional element, and obtaining a target determination result includes: judging whether second data input by the second target functional element exist in first data output by the first target functional element or not, and obtaining a first judgment result; judging whether the second target functional element has a corresponding functional page or not to obtain a second judging result, wherein the functional page is used for acquiring second data corresponding to the second target functional element; if the first judging result indicates that the second data exists in the first data or the second judging result indicates that the second target functional element exists in the corresponding functional page, determining that the target judging result is that the second target functional element accords with the splicing condition of being spliced to the first target functional element; and if the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist a corresponding functional page, determining that the target judging result is that the second target functional element does not accord with the splicing condition of the first target functional element.
Further, before determining a plurality of target functional elements from a library of functional elements according to the business function, the method further comprises: acquiring metadata definition rules and a plurality of functional modules; determining metadata information corresponding to the plurality of functional modules according to the metadata definition rule; generating an initial functional element corresponding to each functional module according to the metadata information; and constructing the function element library according to the initial function element.
Further, generating the initial function element corresponding to each function module according to the metadata information includes: constructing a data adapter of each functional module according to the metadata information, wherein the data adapter is used for converting the data information corresponding to each functional module into corresponding metadata information; and combining each functional module and the data adapter corresponding to each functional module to generate the initial functional element.
In order to achieve the above object, according to another aspect of the present application, there is provided an implementation apparatus of an online service. The device comprises: the first acquisition unit is used for acquiring service functions of online service to be realized; a first determining unit, configured to determine a plurality of target function elements from a function element library according to the service function; the second determining unit is used for determining the splicing relation among the plurality of target functional elements according to the communication rule of the functional elements; and the splicing unit is used for splicing the plurality of target functional elements according to the splicing relation to obtain a target application for realizing the online service, and realizing the online service according to the target application.
Further, the second determination unit includes: the first determining module is used for determining the communication attribute of the target functional element according to the communication rule of the functional element, wherein the communication attribute at least comprises the data transmission direction of the target functional element, and the data transmission direction is input data or output data; and the second determining module is used for determining the splicing relation according to the communication attributes of the target functional elements.
Further, the splicing unit includes: a third determining module, configured to determine a first target function element of the plurality of target function elements according to the stitching relationship, where the first target function element is a first function element that implements the online service; a fourth determining module, configured to determine a second target function element of the plurality of target function elements according to the stitching relationship; the first judging module is used for judging whether the second target functional element accords with the splicing condition of the first target functional element or not to obtain a target judging result; the splicing module is used for splicing the second target functional element to the first target functional element if the target judging result represents that the second target functional element meets the splicing condition of splicing to the first target functional element, so as to obtain a splicing result; and the second judging module is used for judging whether the second target functional element is the last functional element for realizing the online service, and if the second target functional element is the last functional element for realizing the online service, the target application is obtained according to the splicing result.
Further, the apparatus further comprises: and the third determining unit is used for repeatedly executing the step of determining a third target functional element in the plurality of target functional elements according to the splicing relation if the second target functional element is not the last functional element for realizing the online service until the third target functional element is the last functional element for realizing the online service, and obtaining the target application according to the current splicing result.
Further, the first judging module includes: the first judging sub-module is used for judging whether second data input by the second target functional element exist in the first data output by the first target functional element or not to obtain a first judging result; the second judging sub-module is used for judging whether the second target functional element has a corresponding functional page or not to obtain a second judging result, wherein the functional page is used for acquiring second data corresponding to the second target functional element; the first determining submodule is used for determining that the second target functional element accords with the splicing condition of being spliced to the first target functional element if the first judging result indicates that the second data exists in the first data or the second judging result indicates that the second target functional element exists a corresponding functional page; and the second determining submodule is used for determining that the target judging result is that the second target functional element does not accord with the splicing condition of the first target functional element if the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist a corresponding functional page.
Further, the apparatus further comprises: the second acquisition unit is used for acquiring metadata definition rules and a plurality of functional modules; a fourth determining unit, configured to determine metadata information corresponding to the plurality of functional modules according to the metadata definition rule; the generating unit is used for generating an initial functional element corresponding to each functional module according to the metadata information; and the construction unit is used for constructing the function element library according to the initial function element.
Further, the generating unit includes: the construction module is used for constructing a data adapter of each functional module according to the metadata information, wherein the data adapter is used for converting the data information corresponding to each functional module into corresponding metadata information; and the generating module is used for combining each functional module and the data adapter corresponding to each functional module to generate the initial functional element.
In order to achieve the above object, according to an aspect of the present application, there is provided a computer-readable storage medium storing a program, wherein the program, when run, controls a device in which the storage medium is located to execute the method for implementing the online service of any one of the above.
To achieve the above object, according to another aspect of the present application, there is also provided an electronic device, including one or more processors and a memory, where the memory is configured to store a method for implementing the on-line service according to any one of the above embodiments.
Through the application, the following steps are adopted: acquiring a service function of an online service to be realized; determining a plurality of target functional elements from a functional element library according to the service function; determining a splicing relationship among a plurality of target functional elements according to the communication rule of the functional elements; according to the splicing relation, a plurality of target functional elements are spliced to obtain target application for realizing on-line service, and according to the target application, the on-line service is realized, and the problem that in the related art, the flexibility of developing the on-line service is relatively low due to the fact that a base functional module is assembled through a specific interface established manually to realize the new on-line service is solved. In the method, the device and the system, the multiple target functional elements are determined in the functional element library according to the requirements of the service functions of the online service, and the multiple target functional elements are spliced to obtain the target application, so that specific interfaces among the multiple functional modules do not need to be formulated according to the online service, and the flexibility of realizing the online service is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
fig. 1 is a flowchart of a method for implementing an online service according to an embodiment of the present application;
fig. 2 is a second flowchart of a method for implementing an online service according to an embodiment of the present application;
fig. 3 is a schematic diagram of an implementation apparatus of an online service provided according to an embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, the following will describe some terms or terms related to the embodiments of the present application:
IO attribute refers to an input-output attribute that describes the input-output characteristics of a system or device.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
The present invention is described below in connection with preferred implementation steps, and fig. 1 is a flowchart of a method for implementing an online service according to an embodiment of the present application, as shown in fig. 1, where the method includes the following steps:
step S101, obtaining the service function of the online service to be realized.
For example, according to actual requirements, service functions to be implemented by the online service to be implemented are obtained.
Step S102, determining a plurality of target functional elements from the functional element library according to the business function.
For example, according to the service function, a plurality of target function elements which can realize the on-line service are determined from the function element library, and each target function element can realize part of the functions of the on-line service.
Step S103, determining the splicing relationship among the target functional elements according to the communication rules of the functional elements.
For example, the splicing relationship among the plurality of target functional elements is determined according to the IO attribute of the target functional element in the communication rule of the functional element. For example, if the IO attribute of the a function element is I, which indicates that the a function element needs to receive data to implement the corresponding function, and the IO attribute of the B function element is O, which indicates that the B function element outputs data when implementing the corresponding function, then the a function element may be spliced after the B function element.
Step S104, splicing the plurality of target functional elements according to the splicing relationship to obtain a target application for realizing the online service, and realizing the online service according to the target application.
For example, according to the splicing relationship, a plurality of target functional elements are spliced to obtain a target application for realizing the on-line service, and the service function of the on-line service is realized through the target application.
In summary, in the application, according to the requirement of the service function of the online service, a plurality of target functional elements are determined in the functional element library, and the target functional elements are spliced to obtain the target application, so that a specific interface among a plurality of functional modules is not required to be formulated according to the online service, and the flexibility of realizing the online service is improved.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, determining, according to a communication rule of a functional element, a splicing relationship between a plurality of target functional elements includes: determining the communication attribute of the target functional element according to the communication rule of the functional element, wherein the communication attribute at least comprises the data transmission direction of the target functional element, and the data transmission direction is input data or output data; and determining a splicing relationship according to the communication attributes of the target functional elements.
For example, according to the communication rule of the functional element, it is determined whether the target functional element needs to input data or output data under the normal working condition, and the content of the input data or the content of the output data, so as to determine the communication attribute of the target functional element. And then determining the splicing relation among the plurality of target functional elements according to the communication attributes of the plurality of target functional elements.
In an alternative embodiment, the communication rules of the functional elements may be as shown in table 1:
TABLE 1
The function element ID is a target function element of FC0001, the I/O attribute of the function element is I, the function element can work normally only by inputting data information, and the corresponding metadata ID is A0001, and the ID of the metadata which is required to be input by the target function element is A0001.
According to the communication rule of the functional elements, the communication attribute of the target functional elements is determined, so that the splicing relationship among the target functional elements is determined, splicing errors among the target functional elements are avoided, and the splicing accuracy among the target functional elements is improved.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, splicing the plurality of target functional elements according to the splicing relationship, to obtain the target application of the on-line service includes: determining a first target functional element in a plurality of target functional elements according to the splicing relationship, wherein the first target functional element is a first functional element for realizing online service; determining a second target functional element of the plurality of target functional elements according to the stitching relationship; judging whether the second target functional element meets the splicing condition of splicing to the first target functional element or not to obtain a target judging result; if the target judgment result represents that the second target functional element meets the splicing condition of splicing to the first target functional element, splicing the second target functional element to the first target functional element to obtain a splicing result; judging whether the second target functional element is the last functional element for realizing the online service, and if the second target functional element is the last functional element for realizing the online service, obtaining the target application according to the splicing result.
For example, a first target functional element to be arranged at a first one of the plurality of target functional elements and a second target functional element to be spliced at a later one of the first target functional element are determined according to the splicing relationship, and whether the second target functional element meets the splicing condition of the first target functional element is judged, so that a target judgment result is obtained.
And if the second target functional element is the last functional element for realizing the online service, determining the current splicing result as the target application.
And splicing the second target functional element to the first target functional element according to the splicing relationship, so that flexible splicing among the functional elements is realized, and the flexibility of realizing online service is further improved.
Optionally, in the method for implementing an online service provided in the embodiment of the present application, after determining whether the second target function element is the last function element for implementing an online service, the method further includes: if the second target function element is not the last function element for realizing the online service, repeating the step of determining a third target function element in the plurality of target function elements according to the splicing relation until the third target function element is the last function element for realizing the online service, and obtaining the target application according to the current splicing result.
For example, if the second target function element is not the last function element for realizing the online service, the steps of determining a third target function element of the plurality of target function elements according to the splicing relationship, judging whether the third target function element meets the splicing condition of the last splicing result, and splicing the third target function element to the last splicing result to obtain a new splicing result if the third target function element meets the splicing condition are repeated until the third target function element is the last function element for realizing the online service, and determining the target application of the online service according to the current splicing result.
And monitoring the last functional element in the plurality of target functional elements for realizing the online service, and continuously splicing the target functional elements before the last functional element is not spliced, so that the integrity of target application is ensured, and the accuracy for realizing the online service is improved.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, determining whether the second target functional element meets the splicing condition of the first target functional element includes: judging whether second data input by a second target functional element exist in first data output by the first target functional element or not, and obtaining a first judging result; judging whether a corresponding functional page exists in the second target functional element or not to obtain a second judging result, wherein the functional page is used for acquiring second data corresponding to the second target functional element; if the first judging result indicates that the second data exists in the first data or the second judging result indicates that the second target functional element exists in the corresponding functional page, determining that the target judging result is that the second target functional element accords with the splicing condition of splicing to the first target functional element; if the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist in the corresponding functional page, determining that the target judging result is that the second target functional element does not accord with the splicing condition of the first target functional element.
For example, whether second data which needs to be input by the second target functional element exists in first data output by the first target functional element is judged, a first judgment result is obtained, whether a functional page exists in the second target functional element is judged, and the second data which needs to be input by the second target functional element can be obtained through the functional page. If the first judging result indicates that the second data exists in the first data or the second target functional element exists in the functional page capable of acquiring the second data, the second target functional element can be determined to accord with the splicing relation spliced to the first target functional element.
If the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist a functional page capable of acquiring the second data, it can be determined that the second target functional element does not meet the splicing condition of the first target functional element, and then a developer is required to manually develop the second target functional element to configure a corresponding functional page for the second target functional element.
By judging the splicing conditions of the second target functional element and the first target functional element, the target application after splicing is ensured to realize the online service, and the accuracy of realizing the online service is improved.
Optionally, in the method for implementing an online service provided in the embodiment of the present application, before determining, according to a service function, a plurality of target function elements from a function element library, the method further includes: acquiring metadata definition rules and a plurality of functional modules; determining metadata information corresponding to the plurality of functional modules according to metadata definition rules; generating an initial functional element corresponding to each functional module according to the metadata information; and constructing a function element library according to the initial function elements.
For example, metadata definition rules and a plurality of functional modules are acquired first, where the metadata definition rules are defined according to standard data formats commonly used in industry, and include information such as data meaning, data type, and data length, for example, the data meaning is data of a group number, the data type needs to be defined as a character type, and the character length is set to be 10. And then, according to metadata definition rules, the data information corresponding to each functional module is standardized, the metadata information corresponding to each functional module is determined, then, according to the metadata information, initial functional elements corresponding to each functional module are generated, and finally, a functional element library is constructed according to a plurality of initial functional elements.
According to metadata definition rules, metadata information corresponding to a plurality of functional modules is determined, and initial functional elements are generated according to the metadata information, so that a functional element library is constructed, a plurality of target functional elements required for realizing online service can be rapidly determined according to the functional element library, and the efficiency of realizing online service is improved.
Optionally, in the method for implementing the online service provided in the embodiment of the present application, generating, according to metadata information, an initial functional element corresponding to each functional module includes: constructing a data adapter of each functional module according to the metadata information, wherein the data adapter is used for converting the data information corresponding to each functional module into corresponding metadata information; and combining each functional module and the data adapter corresponding to each functional module to generate an initial functional element.
For example, the data adapter of each functional module is constructed according to the metadata information corresponding to each functional module, the conversion between the data information and the metadata information in each functional module can be realized through the data adapter, and then each functional module and the data adapter corresponding to each functional module are combined to generate the initial functional element.
Through constructing the data adapter, the conversion between the data information and the metadata information in each functional module can be realized, the functional elements are generated, the problem that interaction between the functional modules can not be realized due to inconsistent data formats among the functional modules, and interaction between the functional modules can be realized only by manually customizing a specific interface is avoided, and the interaction efficiency among a plurality of initial functional elements is improved.
In an alternative embodiment, the above-mentioned method for implementing the on-line service may be implemented by using a flow as shown in fig. 2, which specifically includes the following steps: before the development requirement of the online service is acquired, firstly, a metadata definition rule is constructed according to a standard data format commonly applied in the industry, then metadata information corresponding to a plurality of functional modules in different service systems is determined according to the metadata definition rule, a data adapter corresponding to each functional module is constructed according to the metadata information corresponding to each functional module, the data information in the functional modules can be converted into metadata information through the data adapter, then the data adapter and the functional modules are combined to generate functional elements corresponding to each functional module, and a plurality of functional elements are uniformly managed through construction of a functional element library to form the communication rule of the functional elements.
After the development requirement of the online service is acquired, a plurality of target functional elements capable of realizing the online service are determined according to the development requirement of the online service, the splicing relation among the plurality of target functional elements is determined according to the communication rule of the functional elements, the plurality of target functional elements are spliced according to the splicing relation, when the target functional elements are spliced, whether the data which need to be input by the next target functional element exist in the data which are output by the previous target functional element or whether the next target functional element exists or not is judged, and the data which need to be input by the corresponding functional element can be acquired through the functional page. After the splicing of the target functional elements is completed, an application flow corresponding to the online service can be generated, and the online service is realized through the application flow.
The implementation method of the online service provided by the embodiment of the application obtains the service function of the online service to be implemented; determining a plurality of target functional elements from a functional element library according to the service function; determining a splicing relationship among a plurality of target functional elements according to the communication rule of the functional elements; according to the splicing relation, a plurality of target functional elements are spliced to obtain target application for realizing on-line service, and according to the target application, the on-line service is realized, and the problem that in the related art, the flexibility of developing the on-line service is relatively low due to the fact that a base functional module is assembled through a specific interface established manually to realize the new on-line service is solved. In the method, the device and the system, the multiple target functional elements are determined in the functional element library according to the requirements of the service functions of the online service, and the multiple target functional elements are spliced to obtain the target application, so that specific interfaces among the multiple functional modules do not need to be formulated according to the online service, and the flexibility of realizing the online service is improved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a device for realizing the online service, and it should be noted that the device for realizing the online service in the embodiment of the application can be used for executing the method for realizing the online service provided in the embodiment of the application. The following describes an implementation device of online service provided in the embodiment of the present application.
Fig. 3 is a schematic diagram of an implementation apparatus of an online service according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: a first acquisition unit 301, a first determination unit 302, a second determination unit 303, and a splicing unit 304.
A first obtaining unit 301, configured to obtain a service function of an online service to be implemented;
a first determining unit 302, configured to determine a plurality of target function elements from a function element library according to a service function;
a second determining unit 303, configured to determine a splicing relationship between the plurality of target functional elements according to a communication rule of the functional elements;
And the splicing unit 304 is configured to splice the plurality of target functional elements according to a splicing relationship to obtain a target application for implementing the on-line service, and implement the on-line service according to the target application.
According to the device for realizing the online service, provided by the embodiment of the application, the service function of the online service to be realized is obtained through the first obtaining unit 301; the first determining unit 302 determines a plurality of target functional elements from a functional element library according to the service function; the second determining unit 303 determines a splicing relationship between the plurality of target functional elements according to the communication rule of the functional elements; the splicing unit 304 splices the plurality of target functional elements according to the splicing relationship to obtain a target application for realizing the on-line service, and assembles the basic functional modules according to the target application, so as to solve the problem that the flexibility of developing the on-line service is relatively low because the basic functional modules are assembled through the specific interfaces manually formulated in the related art.
Optionally, in the device for implementing an online service provided in the embodiment of the present application, the second determining unit 302 includes: the first determining module is used for determining the communication attribute of the target functional element according to the communication rule of the functional element, wherein the communication attribute at least comprises the data transmission direction of the target functional element, and the data transmission direction is input data or output data; and the second determining module is used for determining the splicing relationship according to the communication attributes of the target functional elements.
Optionally, in the device for implementing an online service provided in the embodiment of the present application, the splicing unit 304 includes: the third determining module is used for determining a first target functional element in the plurality of target functional elements according to the splicing relationship, wherein the first target functional element is a first functional element for realizing online service; a fourth determining module, configured to determine a second target function element of the plurality of target function elements according to the stitching relationship; the first judging module is used for judging whether the second target functional element accords with the splicing condition of the first target functional element or not to obtain a target judging result; the splicing module is used for splicing the second target functional element to the first target functional element if the target judging result represents that the second target functional element meets the splicing condition of splicing to the first target functional element, so as to obtain a splicing result; and the second judging module is used for judging whether the second target functional element is the last functional element for realizing the online service, and if the second target functional element is the last functional element for realizing the online service, the target application is obtained according to the splicing result.
Optionally, in the device for implementing an online service provided in the embodiment of the present application, the device further includes: and the third determining unit is used for repeatedly executing the step of determining the third target functional element in the plurality of target functional elements according to the splicing relationship if the second target functional element is not the last functional element for realizing the online service until the third target functional element is the last functional element for realizing the online service, and obtaining the target application according to the current splicing result.
Optionally, in the device for implementing an online service provided in the embodiment of the present application, the first judging module includes: the first judging sub-module is used for judging whether second data input by the second target functional element exist in the first data output by the first target functional element or not to obtain a first judging result; the second judging sub-module is used for judging whether a second target functional element has a corresponding functional page or not to obtain a second judging result, wherein the functional page is used for acquiring second data corresponding to the second target functional element; the first determining submodule is used for determining that the target judging result is that the second target functional element accords with the splicing condition of splicing to the first target functional element if the first judging result represents that the second data exists in the first data or the second judging result represents that the second target functional element exists a corresponding functional page; and the second determining submodule is used for determining that the target judging result is that the second target functional element does not accord with the splicing condition of the first target functional element if the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist in the corresponding functional page.
Optionally, in the device for implementing an online service provided in the embodiment of the present application, the device further includes: the second acquisition unit is used for acquiring metadata definition rules and a plurality of functional modules; a fourth determining unit, configured to determine metadata information corresponding to the plurality of functional modules according to metadata definition rules; the generating unit is used for generating an initial functional element corresponding to each functional module according to the metadata information; and the construction unit is used for constructing the function element library according to the initial function elements.
Optionally, in the device for implementing an online service provided in the embodiment of the present application, the generating unit includes: the construction module is used for constructing a data adapter of each functional module according to the metadata information, wherein the data adapter is used for converting the data information corresponding to each functional module into the corresponding metadata information; and the generating module is used for combining each functional module and the data adapter corresponding to each functional module to generate an initial functional element.
The device for implementing the online service includes a processor and a memory, where the units such as the first acquiring unit 301, the first determining unit 302, the second determining unit 303, and the splicing unit 304 are all stored as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the problem that the flexibility of developing online service is lower is solved by adjusting kernel parameters to assemble a basic functional module through a specific interface manually formulated in the related technology so as to realize new online service.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, on which a program is stored, which when executed by a processor, implements a method for implementing an online service.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute an implementation method of an online service.
As shown in fig. 4, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, the following steps are implemented: acquiring a service function of an online service to be realized; determining a plurality of target functional elements from a functional element library according to the service function; determining a splicing relationship among a plurality of target functional elements according to the communication rule of the functional elements; and splicing the plurality of target functional elements according to the splicing relation to obtain a target application for realizing the online service, and realizing the online service according to the target application.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, determining, according to a communication rule of a functional element, a splicing relationship between a plurality of target functional elements includes: determining the communication attribute of the target functional element according to the communication rule of the functional element, wherein the communication attribute at least comprises the data transmission direction of the target functional element, and the data transmission direction is input data or output data; and determining a splicing relationship according to the communication attributes of the target functional elements.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, splicing the plurality of target functional elements according to the splicing relationship, to obtain the target application of the on-line service includes: determining a first target functional element in a plurality of target functional elements according to the splicing relationship, wherein the first target functional element is a first functional element for realizing online service; determining a second target functional element of the plurality of target functional elements according to the stitching relationship; judging whether the second target functional element meets the splicing condition of splicing to the first target functional element or not to obtain a target judging result; if the target judgment result represents that the second target functional element meets the splicing condition of splicing to the first target functional element, splicing the second target functional element to the first target functional element to obtain a splicing result; judging whether the second target functional element is the last functional element for realizing the online service, and if the second target functional element is the last functional element for realizing the online service, obtaining the target application according to the splicing result.
Optionally, in the method for implementing an online service provided in the embodiment of the present application, after determining whether the second target function element is the last function element for implementing an online service, the method further includes: if the second target function element is not the last function element for realizing the online service, repeating the step of determining a third target function element in the plurality of target function elements according to the splicing relation until the third target function element is the last function element for realizing the online service, and obtaining the target application according to the current splicing result.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, determining whether the second target functional element meets the splicing condition of the first target functional element includes: judging whether second data input by a second target functional element exist in first data output by the first target functional element or not, and obtaining a first judging result; judging whether a corresponding functional page exists in the second target functional element or not to obtain a second judging result, wherein the functional page is used for acquiring second data corresponding to the second target functional element; if the first judging result indicates that the second data exists in the first data or the second judging result indicates that the second target functional element exists in the corresponding functional page, determining that the target judging result is that the second target functional element accords with the splicing condition of splicing to the first target functional element; if the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist in the corresponding functional page, determining that the target judging result is that the second target functional element does not accord with the splicing condition of the first target functional element.
Optionally, in the method for implementing an online service provided in the embodiment of the present application, before determining, according to a service function, a plurality of target function elements from a function element library, the method further includes: acquiring metadata definition rules and a plurality of functional modules; determining metadata information corresponding to the plurality of functional modules according to metadata definition rules; generating an initial functional element corresponding to each functional module according to the metadata information; and constructing a function element library according to the initial function elements.
Optionally, in the method for implementing the online service provided in the embodiment of the present application, generating, according to metadata information, an initial functional element corresponding to each functional module includes: constructing a data adapter of each functional module according to the metadata information, wherein the data adapter is used for converting the data information corresponding to each functional module into corresponding metadata information; and combining each functional module and the data adapter corresponding to each functional module to generate an initial functional element. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: acquiring a service function of an online service to be realized; determining a plurality of target functional elements from a functional element library according to the service function; determining a splicing relationship among a plurality of target functional elements according to the communication rule of the functional elements; and splicing the plurality of target functional elements according to the splicing relation to obtain a target application for realizing the online service, and realizing the online service according to the target application.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, determining, according to a communication rule of a functional element, a splicing relationship between a plurality of target functional elements includes: determining the communication attribute of the target functional element according to the communication rule of the functional element, wherein the communication attribute at least comprises the data transmission direction of the target functional element, and the data transmission direction is input data or output data; and determining a splicing relationship according to the communication attributes of the target functional elements.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, splicing the plurality of target functional elements according to the splicing relationship, to obtain the target application of the on-line service includes: determining a first target functional element in a plurality of target functional elements according to the splicing relationship, wherein the first target functional element is a first functional element for realizing online service; determining a second target functional element of the plurality of target functional elements according to the stitching relationship; judging whether the second target functional element meets the splicing condition of splicing to the first target functional element or not to obtain a target judging result; if the target judgment result represents that the second target functional element meets the splicing condition of splicing to the first target functional element, splicing the second target functional element to the first target functional element to obtain a splicing result; judging whether the second target functional element is the last functional element for realizing the online service, and if the second target functional element is the last functional element for realizing the online service, obtaining the target application according to the splicing result.
Optionally, in the method for implementing an online service provided in the embodiment of the present application, after determining whether the second target function element is the last function element for implementing an online service, the method further includes: if the second target function element is not the last function element for realizing the online service, repeating the step of determining a third target function element in the plurality of target function elements according to the splicing relation until the third target function element is the last function element for realizing the online service, and obtaining the target application according to the current splicing result.
Optionally, in the method for implementing the on-line service provided in the embodiment of the present application, determining whether the second target functional element meets the splicing condition of the first target functional element includes: judging whether second data input by a second target functional element exist in first data output by the first target functional element or not, and obtaining a first judging result; judging whether a corresponding functional page exists in the second target functional element or not to obtain a second judging result, wherein the functional page is used for acquiring second data corresponding to the second target functional element; if the first judging result indicates that the second data exists in the first data or the second judging result indicates that the second target functional element exists in the corresponding functional page, determining that the target judging result is that the second target functional element accords with the splicing condition of splicing to the first target functional element; if the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist in the corresponding functional page, determining that the target judging result is that the second target functional element does not accord with the splicing condition of the first target functional element.
Optionally, in the method for implementing an online service provided in the embodiment of the present application, before determining, according to a service function, a plurality of target function elements from a function element library, the method further includes: acquiring metadata definition rules and a plurality of functional modules; determining metadata information corresponding to the plurality of functional modules according to metadata definition rules; generating an initial functional element corresponding to each functional module according to the metadata information; and constructing a function element library according to the initial function elements.
Optionally, in the method for implementing the online service provided in the embodiment of the present application, generating, according to metadata information, an initial functional element corresponding to each functional module includes: constructing a data adapter of each functional module according to the metadata information, wherein the data adapter is used for converting the data information corresponding to each functional module into corresponding metadata information; and combining each functional module and the data adapter corresponding to each functional module to generate an initial functional element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
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 storage media for a computer 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 disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. The method for realizing the online service is characterized by comprising the following steps:
acquiring a service function of an online service to be realized;
determining a plurality of target functional elements from a functional element library according to the service function;
determining a splicing relationship among the plurality of target functional elements according to the communication rule of the functional elements;
and splicing the target functional elements according to the splicing relation to obtain a target application for realizing the online service, and realizing the online service according to the target application.
2. The method of claim 1, wherein determining a splice relationship between the plurality of target functional elements according to a communication rule of the functional elements comprises:
determining the communication attribute of the target functional element according to the communication rule of the functional element, wherein the communication attribute at least comprises the data transmission direction of the target functional element, and the data transmission direction is input data or output data;
and determining the splicing relationship according to the communication attributes of the target functional elements.
3. The method of claim 1, wherein splicing the plurality of target function elements according to the splice relationship to obtain the target application of the online service comprises:
Determining a first target functional element in the plurality of target functional elements according to the splicing relationship, wherein the first target functional element is a first functional element for realizing the online service;
determining a second target functional element of the plurality of target functional elements according to the stitching relationship;
judging whether the second target functional element meets the splicing condition of splicing to the first target functional element or not to obtain a target judging result;
if the target judgment result represents that the second target functional element meets the splicing condition of splicing to the first target functional element, splicing the second target functional element to the first target functional element to obtain a splicing result;
judging whether the second target functional element is the last functional element for realizing the online service, and if the second target functional element is the last functional element for realizing the online service, obtaining the target application according to the splicing result.
4. A method according to claim 3, wherein after determining whether the second target functional element is the last functional element to implement the on-line service, the method further comprises:
And if the second target functional element is not the last functional element for realizing the online service, repeating the step of determining a third target functional element in the plurality of target functional elements according to the splicing relation until the third target functional element is the last functional element for realizing the online service, and obtaining the target application according to the current splicing result.
5. The method of claim 3, wherein determining whether the second target functional element meets splice conditions for splicing to the first target functional element comprises:
judging whether second data input by the second target functional element exist in first data output by the first target functional element or not, and obtaining a first judgment result;
judging whether the second target functional element has a corresponding functional page or not to obtain a second judging result, wherein the functional page is used for acquiring second data corresponding to the second target functional element;
if the first judging result indicates that the second data exists in the first data or the second judging result indicates that the second target functional element exists in the corresponding functional page, determining that the target judging result is that the second target functional element accords with the splicing condition of being spliced to the first target functional element;
And if the first judging result indicates that the second data does not exist in the first data and the second judging result indicates that the second target functional element does not exist a corresponding functional page, determining that the target judging result is that the second target functional element does not accord with the splicing condition of the first target functional element.
6. The method of claim 1, wherein prior to determining a plurality of target functional elements from a library of functional elements in accordance with the business function, the method further comprises:
acquiring metadata definition rules and a plurality of functional modules;
determining metadata information corresponding to the plurality of functional modules according to the metadata definition rule;
generating an initial functional element corresponding to each functional module according to the metadata information;
and constructing the function element library according to the initial function element.
7. The method of claim 6, wherein generating an initial function element for each function module based on the metadata information comprises:
constructing a data adapter of each functional module according to the metadata information, wherein the data adapter is used for converting the data information corresponding to each functional module into corresponding metadata information;
And combining each functional module and the data adapter corresponding to each functional module to generate the initial functional element.
8. An apparatus for implementing an online service, comprising:
the first acquisition unit is used for acquiring service functions of online service to be realized;
a first determining unit, configured to determine a plurality of target function elements from a function element library according to the service function;
the second determining unit is used for determining the splicing relation among the plurality of target functional elements according to the communication rule of the functional elements;
and the splicing unit splices the plurality of target functional elements according to the splicing relation to obtain a target application for realizing the online service, and realizes the online service according to the target application.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls the storage medium to perform the method of implementing the on-line service of any one of claims 1 to 7 on a device.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of implementing the on-line service of any of claims 1-7.
CN202311516238.5A 2023-11-14 2023-11-14 Method and device for realizing online service, storage medium and electronic equipment Pending CN117492717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311516238.5A CN117492717A (en) 2023-11-14 2023-11-14 Method and device for realizing online service, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311516238.5A CN117492717A (en) 2023-11-14 2023-11-14 Method and device for realizing online service, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117492717A true CN117492717A (en) 2024-02-02

Family

ID=89681082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311516238.5A Pending CN117492717A (en) 2023-11-14 2023-11-14 Method and device for realizing online service, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117492717A (en)

Similar Documents

Publication Publication Date Title
CN106294113B (en) creation method and device based on programmable test service
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN111858727A (en) Multi-data-source data export system and method based on template configuration
CN111506579A (en) Method, program and equipment for generating intelligent contract code
CN110888922A (en) Method and device for creating target table during data synchronization
CN111414369A (en) Data processing method, device and equipment
CN110825764A (en) SQL script generation method, system, storage medium and processor
CN112631763A (en) Program changing method and device of host program
CN106874181B (en) Interface conversion verification method and device
CN110806891B (en) Method and device for generating software version of embedded device
CN115314573B (en) Dynamic loading method and device for message body, electronic equipment and storage medium
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
CN117492717A (en) Method and device for realizing online service, storage medium and electronic equipment
CN113485746B (en) Method and device for generating application program interface document
CN114791884A (en) Test environment construction method and device, storage medium and electronic equipment
CN110968500A (en) Test case execution method and device
CN114253845A (en) Automatic testing method and device for special-shaped architecture integration system
CN116185806A (en) Digital currency system testing method and device
CN106844056B (en) Hadoop big data platform multi-tenant job management method and system
CN111209283A (en) Data processing method and device
CN110688430A (en) Method and device for obtaining data bypass and electronic equipment
CN109857404B (en) SDK interface packaging method and device, storage medium and electronic equipment
CN114546472A (en) Payment application configuration method and device, storage medium and electronic equipment
CN114968795A (en) Test method, test device, electronic equipment and computer storage medium
CN113918632A (en) Data integration processing method and device, storage medium and processor

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