CN110780870B - Service execution method, device, equipment and storage medium - Google Patents

Service execution method, device, equipment and storage medium Download PDF

Info

Publication number
CN110780870B
CN110780870B CN201911039602.7A CN201911039602A CN110780870B CN 110780870 B CN110780870 B CN 110780870B CN 201911039602 A CN201911039602 A CN 201911039602A CN 110780870 B CN110780870 B CN 110780870B
Authority
CN
China
Prior art keywords
service
elements
arrangement
sub
request
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
CN201911039602.7A
Other languages
Chinese (zh)
Other versions
CN110780870A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201911039602.7A priority Critical patent/CN110780870B/en
Publication of CN110780870A publication Critical patent/CN110780870A/en
Application granted granted Critical
Publication of CN110780870B publication Critical patent/CN110780870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms

Abstract

The embodiment of the invention discloses a service execution method, a device, equipment and a storage medium. The method comprises the following steps: acquiring a service request; determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements; sequentially loading the service orchestration elements according to the service orchestration rules and the logical relations among the service orchestration elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions. By operating the technical scheme provided by the application, the purposes of enhancing the flexibility of service modification, increasing the code multiplexing rate and improving the efficiency of developing operation and maintenance can be realized.

Description

Service execution method, device, equipment and storage medium
Technical Field
The present invention relates to computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for executing a service.
Background
At present, with the development of computer technology, in order to meet the demands of users, the types of online services are more and more, and the functions which can be realized are more and more abundant.
Due to the objects that the business implementation is oriented to or the functions of the business implementation are different, developers often write different service codes for different businesses.
However, since the business rules may change, the developer needs to modify the already fixed service codes each time the business rules change, which increases the complexity of modification. When most of services are actually realized in the specific field, the used code logic or service logic is similar, and repeated service codes not only lead the code quality to be low and difficult to maintain, but also lead developers to repeatedly work and reduce the efficiency of developing operation and maintenance.
Disclosure of Invention
The embodiment of the invention provides a service execution method, a device, equipment and a storage medium, which are used for realizing the purposes of enhancing the flexibility of service modification, increasing the code multiplexing rate and improving the efficiency of development operation and maintenance.
In a first aspect, an embodiment of the present invention provides a service execution method, where the method includes:
acquiring a service request;
determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements;
sequentially loading the service orchestration elements according to the service orchestration rules and the logical relations among the service orchestration elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions.
In a second aspect, an embodiment of the present invention further provides a service execution device, where the device includes:
the service request acquisition module is used for acquiring a service request;
the service arrangement rule acquisition module is used for determining a service ID according to the request information in the service request and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements;
the service arrangement element loading module is used for loading the service arrangement elements in sequence according to the service arrangement rules and the logic relations among the service arrangement elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the business execution method as described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a service execution method as described above.
The embodiment of the invention acquires the service request. And determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID. Wherein the service orchestration rules are formed by the service orchestration elements according to the logical relationships between the service orchestration elements. And loading the service arrangement elements in turn according to the logic relation among the service arrangement elements according to the service arrangement rules so as to execute the service. Wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions. The method solves the problems of complex process of modifying the service codes and repeated service codes, and has the effects of enhancing the flexibility of service modification, increasing the code multiplexing rate and improving the efficiency of developing operation and maintenance.
Drawings
Fig. 1 is a flowchart of a service execution method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a service execution method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a service execution method according to a second embodiment of the present application
Fig. 4 is a schematic structural diagram of a service execution device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a service execution method according to an embodiment of the present invention, where the method may be implemented by a service execution device according to an embodiment of the present invention, and the device may be implemented by software and/or hardware. Referring to fig. 1, the service execution method provided in this embodiment includes:
s110, acquiring a service request.
The operator performing the service request may be any object capable of processing the service request, such as a website, an Application (APP), a server, etc. The service request may be generated based on operation of the user, for example, the user needs to process services such as financial direct sale, financial escrow clearing, financial proxy sale, etc. on the financial platform, and then the service request is generated through an operation instruction. The executing service request operator acquires a specific service request by acquiring an operation instruction of a user.
S120, determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service orchestration rules are formed by the service orchestration elements according to the logical relationships between the service orchestration elements.
In the technical scheme, if the application program relates to the service execution process, the application program can respond to the received service execution request and acquire the request information of the service execution request. The request information may include the target service content of the service request, may further include information of the user, such as identity information and authority information of the user, and may further include information of the system, such as information of a time when the service request is sent out.
The service ID may be a specific number corresponding to each service request, may be preset, for example, for an order generation service request, the service ID may be preset as: 0001, for an order query service request, its service ID may be preset as: 0002. then, the service ID may be determined according to the target service content of the request information.
The service orchestration rules may be:
the service orchestration elements may include service elements, call elements, judgment elements, and function elements. The service orchestration elements and the logical relationships between them constitute the service orchestration rules. The logical relationship may be a judgment relationship and/or a call relationship, and the embodiment does not limit this.
Service element: the granularity of the service elements can be adjusted according to the service requirement.
Calling elements: sub-elements of the service element are used to invoke other services in the current service. For example
Judging element: and the sub-element of the service element is used for determining branches according to the judging result of the expression in the current service so as to call the service.
Functional elements: the sub-elements of the service element, the functional element corresponds to the most basic function method, which can only be called and can not be nested.
The service elements include at least functional elements, and may also include call elements and/or judgment elements.
Taking a query single transaction record as an example, the service elements in the corresponding service arrangement elements can comprise channel verification service elements, customer identification service elements and transaction record query service elements, and calling the channel verification, customer identification and transaction record query services in sequence; in the process of calling the channel verification service, the method can comprise the following steps: judging different channels by utilizing the judging elements so as to determine the service to be called after the judgment; in the process of calling the business function of the transaction record inquiry, a place where the time judgment service is available is called by using a calling element to call the service related to the time judgment; the whole inquiry single transaction record process is called through the functional element when the basic function is used. The service orchestration elements described above and the logical relationships between them constitute a service orchestration rule that queries a single transaction record business.
S130, loading the service orchestration elements in turn according to the logic relations among the service orchestration elements according to the service orchestration rules so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions
The sub-service is at least one business function in the business function set, and can be composed of only one business function or multiple business functions together for realizing the functions of each functional module. The sub-service may be a service frequently used in most of the services, for example, the sub-service frequently used in the services of financial direct sale, financial escrow clearing, financial replacement sale and the like is: channel verification, customer identification, product verification, transaction admission verification, share registration, product inquiry, transaction records, customer billing and the like. The business function set is a set of function methods for realizing the sub-service functions, and the business function set can be stored in a software development kit (Software Development Ki, SDK), wherein the SDK is a set of development tools used for creating application software for specific software packages, software frameworks, hardware platforms, operating systems and the like, and functions are called by names and parameters of the functions in the SDK. The advantage of this arrangement is that different services can invoke the same sub-service, thereby increasing the code multiplexing rate. And when the service needs to be modified, only the service arrangement rule is modified, and the service function is not required to be modified, so that the flexibility of service modification is enhanced.
According to the technical scheme provided by the embodiment of the invention, the service request is acquired; determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements; sequentially loading the service orchestration elements according to the service orchestration rules and the logical relations among the service orchestration elements so as to execute the service; the service arrangement element is used for calling a sub-service, the sub-service is at least one service function in a service function set, the problems of complex service code modification process and repeated service codes are solved, the flexibility of service modification is enhanced, the code multiplexing rate is increased, and the efficiency of operation and maintenance development is improved.
On the basis of the above technical solution, optionally, before the service request is acquired, the method further includes:
determining sub-services contained in the service type according to the service type;
setting the types and logic relations of all service arrangement elements in the service arrangement rules of the current service type according to the service rules among all sub-services; to determine a service ID for the service type.
Wherein, because of different service types, the sub-services contained in the service are different, and the sub-service types contained in the service can be determined according to development requirements.
Wherein the business rule is a rule for contacting each sub-service. According to the business rule, setting a service arrangement rule, and determining the kind and logic relation of each service arrangement element in the service arrangement rule. And distributing the service IDs corresponding to different service types according to the service types and the corresponding service arrangement rules. When the business rule is changed, only the corresponding service arrangement rule needs to be modified, so that the flexibility of service modification is enhanced.
On the basis of the technical scheme, optionally, the service arrangement rules are stored in a configuration file or a database;
reading and analyzing service arrangement rules in a configuration file or a database, and storing the service ID and the service arrangement elements in a service arrangement register in the form of key value pairs.
Wherein, the configuration file can be an xml or yaml file. The service orchestration rules are stored in a configuration file or database, and can be parsed by the SDK into objects identifiable by the program, and the parsed service orchestration elements and service IDs are saved in the service orchestration registry in the form of key-value pairs. Optionally, when developing in Java language, the service orchestration register is a Map container; when developed in the Python language, the service orchestration registry serves as a dictionary container.
The service ID is used as a key, the service arrangement element is used as a value, and a mapping relation is established. The service orchestration rules can be directly modified in the configuration file or the database, so that the flexibility of service modification is enhanced.
On the basis of the above scheme, optionally, before matching the corresponding service ID according to the service request, the method further includes:
inquiring whether the service ID corresponding to the service request exists or not, if so, matching; if not, judging whether a service code corresponding to the service request exists or not; if so, executing the service coding; wherein the service code is based on a fixed code arrangement.
Because of various services, some services have few or no sub-services shared with other services, so that service arrangement rules do not need to be set for the services, and corresponding codes can be directly written; service orchestration rules are set for commonly used services and service IDs are assigned. And if the corresponding service ID exists, matching is carried out, and the service flow is executed. If the service ID does not exist, judging whether a corresponding service code exists, wherein the service code is a service code well arranged for the service, and if the service code exists, executing the service code; if not, reporting errors, thereby improving the efficiency of executing the common service.
Example two
Fig. 2 is a flowchart of a service execution method according to a second embodiment of the present invention. The technical scheme is explained for the process of executing the service. Compared with the scheme, the scheme sequentially loads the service arrangement elements according to the service arrangement rules and the logic relations among the service arrangement elements, and further comprises the following steps:
before the service orchestration element of the service orchestration rule is executed, judging whether the request information in the service request meets the execution condition of the sub-service called by the service orchestration element;
and if yes, executing the sub-service called by the service orchestration element. Specifically, the flow of the service execution method is shown in fig. 2:
s210, acquiring a service request.
S220, determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service orchestration rules are formed by the service orchestration elements according to the logical relationships between the service orchestration elements.
S230, before the service orchestration element of the service orchestration rule is executed, judging whether the request information in the service request meets the execution condition of the sub-service called by the service orchestration element;
the request information at least comprises information required by each sub-service in execution, and whether the execution condition of the sub-service is met is judged according to the information. For example, a time inquiry sub-service requires time information, an address inquiry sub-service requires an address to be provided, and the like.
And S240, if the service layout element is satisfied, executing the sub-service called by the service layout element.
If not, stopping calling the sub-service, and judging the next sub-service. Therefore, in the execution process of the service, when the abnormality occurs, the part which does not meet the condition can be rapidly judged.
For example, for a transaction record inquiry sub-service, the request information comprises inquiry time, whether the time meets the inquiry range is judged firstly, and when the time meets the set range, the specific transaction record inquiry is executed, namely the transaction record inquiry sub-service is called; when the set range is not met, a prompt can be made to the user, and the query is beyond the range.
S250, loading the service orchestration elements in turn according to the logic relations among the service orchestration elements according to the service orchestration rules so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions.
The present application also provides a preferred embodiment in order to enable those skilled in the art to more clearly understand the technical solutions disclosed in the present application.
Fig. 3 is a flowchart of a service execution method according to a second embodiment of the present application. As shown in fig. 3, the service execution method includes:
s310, acquiring a service request.
S320, inquiring whether a service ID corresponding to the service request exists; if not, go to S330; if yes, go to S340.
S330, executing service coding corresponding to the service request.
S340, obtaining the service arrangement rules according to the service IDs, and calling and executing the sub-services in turn according to the service arrangement rules.
Wherein, the obtaining of the arrangement rule may be by: reading a service arrangement rule in a configuration file or a database, analyzing the service arrangement rule, storing the analyzed service ID and service arrangement element in a key value pair form into a service arrangement register, and transmitting the service ID and service arrangement element identifiable by a program to a service executive party by the service arrangement register so as to acquire the arrangement rule.
S350, judging whether the sub-service meets the execution condition; if yes, go to S360; if not, go to S380;
s360, calling and executing the sub-service.
S370, sub-service post-processing.
The post-processing of the sub-service is processing of the result obtained after the sub-service is executed, for example, whether the output of the previous sub-service is to be changed to the input of the next sub-service.
S380, judging whether a subsequent sub-service exists; if yes, go to S350; if not, the process is ended.
The method has the advantages that when the business flow is changed, the execution process can be changed only by modifying the service arrangement rules, so that the flexibility of service modification is enhanced, the difficulty of modification is reduced, and the working efficiency is improved. And judging the execution conditions of the sub-services in sequence, so that the part which does not meet the conditions can be rapidly judged when the abnormality occurs in the execution process of the service.
Example III
Fig. 4 is a schematic structural diagram of a service execution device according to a third embodiment of the present invention. The device can be realized by hardware and/or software, and can execute the service execution method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. As shown in fig. 4, the apparatus includes:
a service request acquisition module 410, configured to acquire a service request;
a service orchestration rule obtaining module 420, configured to determine a service ID according to the request information in the service request, and obtain a corresponding service orchestration rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements;
a service orchestration element loading module 430, configured to sequentially load the service orchestration elements according to the service orchestration rules and the logical relationships between the service orchestration elements, so as to execute services; wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions.
According to the technical scheme provided by the embodiment of the invention, the service request is acquired; determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements; sequentially loading the service orchestration elements according to the service orchestration rules and the logical relations among the service orchestration elements so as to execute the service; the service arrangement element is used for calling a sub-service, the sub-service is at least one service function in a service function set, the problems of complex service code modification process and repeated service codes are solved, the flexibility of service modification is enhanced, the code multiplexing rate is increased, and the efficiency of operation and maintenance development is improved.
Optionally, the device further includes:
a sub-service determining module, configured to determine, before the service request obtaining module 410, a sub-service included in the service type according to the service type;
the service ID determining module is configured to set, before the service request obtaining module 410, types and logic relationships of service orchestration elements in a service orchestration rule of a current service type according to service rules among the sub-services; to determine a service ID for the service type.
Optionally, the device further includes: a service orchestration rule storage module, configured to store the service orchestration rule in a configuration file or database before the service request acquisition module 410;
and the key value pair saving module is used for reading and analyzing the service arrangement rules in the configuration file or the database before the service request acquisition module 410, and saving the service ID and the service arrangement elements in a service arrangement register in the form of key value pairs.
Optionally, the service orchestration element loading module 430 further includes:
the request information judging unit is used for judging whether the request information in the service request meets the execution condition of the sub-service called by the service orchestration element before the service orchestration element of the service orchestration rule is executed;
and the sub-service execution unit is used for executing the sub-service called by the service orchestration element if the request information judging unit judges that the request information is yes.
Optionally, the device further includes:
the service ID query module is configured to query whether the service ID corresponding to the service request exists before the service orchestration rule obtaining module 420, and if yes, match the service ID; if not, judging whether a service code corresponding to the service request exists or not; if so, executing the service coding; wherein the service code is based on a fixed code arrangement.
Example IV
Fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, and as shown in fig. 5, the apparatus includes a processor 50, a memory 51, an input device 52 and an output device 53; the number of processors 50 in the device may be one or more, one processor 50 being taken as an example in fig. 5; the processor 50, the memory 51, the input means 52 and the output means 53 in the device may be connected by a bus or by other means, in fig. 5 by way of example.
The memory 51 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the service execution method in the embodiment of the present invention. The processor 50 executes various functional applications of the device and data processing, i.e., implements the above-described service execution method, by running software programs, instructions, and modules stored in the memory 51.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 51 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 51 may further include memory located remotely from processor 50, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a service execution method, the method comprising:
acquiring a service request;
determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements;
sequentially loading the service orchestration elements according to the service orchestration rules and the logical relations among the service orchestration elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, the sub-service being at least one business function in a set of business functions.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the service execution method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the above-mentioned embodiments of the search apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A service execution method, comprising:
acquiring a service request;
determining a service ID according to the request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements; the service ID is a specific number corresponding to each service request;
sequentially loading the service orchestration elements according to the service orchestration rules and the logical relations among the service orchestration elements so as to execute the service; the service arrangement element is used for calling a sub-service, and the sub-service is at least one business function in a business function set;
wherein the service orchestration rules are stored in a configuration file or database;
reading and analyzing service arrangement rules in a configuration file or a database, and storing the service ID and the service arrangement elements in a service arrangement register in a key value pair mode;
before determining the service ID according to the request information in the service request, the method further comprises:
inquiring whether the service ID corresponding to the service request exists or not, if so, matching; if not, judging whether a service code corresponding to the service request exists or not; if so, executing the service coding; if not, reporting errors; wherein the business codes are obtained based on a fixed code arrangement mode;
the service arrangement element comprises a service element, a calling element, a judging element and a functional element; the service elements are main elements in the service arrangement rules, the granularity of the service elements is adjusted according to service requirements, and the service elements at least comprise functional elements, calling elements and/or judging elements; the calling element is a sub-element of the service element and is used for calling other services in the current service; the judging element is a sub-element of the service element and is used for determining branches according to the judging result of the expression in the current service so as to call the service; the functional element is a function method;
the service request comprises a query of a single transaction record, and the service elements in the service arrangement element comprise a channel verification service element, a client identification service element and a transaction record query service element; calling the services of channel verification, customer identification and transaction record inquiry in sequence; in the process of calling the service of channel verification, judging different channels by utilizing judging elements, and determining the service to be called after judging; in the process of calling the business function of the transaction record query, calling the service related to time judgment by using a calling element; the whole inquiry single transaction record process is called through the functional element when the basic function is used.
2. The method of claim 1, further comprising, prior to the acquiring the service request:
determining sub-services contained in the service type according to the service type;
setting the types and logic relations of all service arrangement elements in the service arrangement rules of the current service type according to the service rules among all sub-services; to determine a service ID for the service type.
3. The method of claim 1, wherein the loading of the service orchestration elements according to the service orchestration rules in turn according to logical relationships between the service orchestration elements, further comprises:
before the service orchestration element of the service orchestration rule is executed, judging whether the request information in the service request meets the execution condition of the sub-service called by the service orchestration element;
and if yes, executing the sub-service called by the service orchestration element.
4. A service execution apparatus, comprising:
the service request acquisition module is used for acquiring a service request;
the service arrangement rule acquisition module is used for determining a service ID according to the request information in the service request and acquiring a corresponding service arrangement rule according to the service ID; wherein the service arrangement rule is formed by service arrangement elements according to the logic relationship among the service arrangement elements; the service ID is a specific number corresponding to each service request;
the service arrangement element loading module is used for loading the service arrangement elements in sequence according to the service arrangement rules and the logic relations among the service arrangement elements so as to execute the service; the service arrangement element is used for calling a sub-service, and the sub-service is at least one business function in a business function set;
wherein, the device further includes: the service arrangement rule storage module is used for storing the service arrangement rule in a configuration file or a database before the service request acquisition module;
the key value pair storage module is used for reading and analyzing the service arrangement rules in the configuration file or the database before the service request acquisition module, and storing the service ID and the service arrangement elements in a service arrangement register in the form of key value pairs;
wherein, the device further includes:
the service ID inquiry module is used for inquiring whether the service ID corresponding to the service request exists or not before the service arrangement rule acquisition module, and if so, matching is carried out; if not, judging whether a service code corresponding to the service request exists or not; if so, executing the service coding; if not, reporting errors; wherein the business codes are obtained based on a fixed code arrangement mode;
the service arrangement element comprises a service element, a calling element, a judging element and a functional element; the service elements are main elements in the service arrangement rules, the granularity of the service elements is adjusted according to service requirements, and the service elements at least comprise functional elements, calling elements and/or judging elements; the calling element is a sub-element of the service element and is used for calling other services in the current service; the judging element is a sub-element of the service element and is used for determining branches according to the judging result of the expression in the current service so as to call the service; the functional element is a function method;
the service request comprises a query of a single transaction record, and the service elements in the service arrangement element comprise a channel verification service element, a client identification service element and a transaction record query service element; calling the services of channel verification, customer identification and transaction record inquiry in sequence; in the process of calling the service of channel verification, judging different channels by utilizing judging elements, and determining the service to be called after judging; in the process of calling the business function of the transaction record query, calling the service related to time judgment by using a calling element; the whole inquiry single transaction record process is called through the functional element when the basic function is used.
5. The apparatus as recited in claim 4, further comprising:
the sub-service determining module is used for determining sub-services contained in the service type according to the service type before the service request acquiring module;
the service ID determining module is used for setting the types and the logic relations of all the service arrangement elements in the service arrangement rules of the current service type according to the service rules among all the sub-services before the service request acquiring module; to determine a service ID for the service type.
6. The apparatus of claim 4, wherein the service orchestration element loading module further comprises:
the request information judging unit is used for judging whether the request information in the service request meets the execution condition of the sub-service called by the service orchestration element before the service orchestration element of the service orchestration rule is executed;
and the sub-service execution unit is used for executing the sub-service called by the service orchestration element if the request information judging unit judges that the request information is yes.
7. An electronic device, the device comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of service execution of any of claims 1-3.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the service execution method according to any of claims 1-3.
CN201911039602.7A 2019-10-29 2019-10-29 Service execution method, device, equipment and storage medium Active CN110780870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911039602.7A CN110780870B (en) 2019-10-29 2019-10-29 Service execution method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911039602.7A CN110780870B (en) 2019-10-29 2019-10-29 Service execution method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110780870A CN110780870A (en) 2020-02-11
CN110780870B true CN110780870B (en) 2024-02-09

Family

ID=69387578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911039602.7A Active CN110780870B (en) 2019-10-29 2019-10-29 Service execution method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110780870B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553652B (en) * 2020-04-23 2023-10-27 中国银行股份有限公司 Service processing method and device
CN112363714A (en) * 2020-11-03 2021-02-12 中国建设银行股份有限公司 Development method, device, storage medium and equipment of service combination model
CN114697395A (en) * 2020-12-11 2022-07-01 北京神州泰岳软件股份有限公司 Service resource calling execution method, device, service gateway and readable storage medium
CN113064588B (en) * 2021-04-07 2024-01-30 浪潮通用软件有限公司 Command arranging method, device and computer readable medium
CN113204396A (en) * 2021-05-21 2021-08-03 珠海金山网络游戏科技有限公司 Service processing system, method and device
CN117251713A (en) * 2023-10-11 2023-12-19 易方达基金管理有限公司 Data processing method, device, terminal equipment and medium for buying quantity service

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513976A (en) * 2012-06-29 2014-01-15 中兴通讯股份有限公司 Service process modeling method and device
CN105550851A (en) * 2015-12-09 2016-05-04 中国建设银行股份有限公司 Business flow generation method and system
CN105844422A (en) * 2016-04-01 2016-08-10 阿里巴巴集团控股有限公司 Business flow execution method and device
CN106445536A (en) * 2016-09-28 2017-02-22 湛江市霞山区新软佳科技有限公司 Automated business design management system
CN106557342A (en) * 2015-09-30 2017-04-05 阿里巴巴集团控股有限公司 A kind of implementation method and device of service logic
CN107274023A (en) * 2017-06-20 2017-10-20 阿里巴巴集团控股有限公司 Flow of insuring generation method, insure request processing method and device and electronic equipment
CN108279866A (en) * 2018-01-24 2018-07-13 马上消费金融股份有限公司 A kind of the layout execution method, apparatus and medium of operation flow
CN108897610A (en) * 2018-06-15 2018-11-27 上海陆家嘴国际金融资产交易市场股份有限公司 Method for scheduling task, device, computer equipment and storage medium
CN108984567A (en) * 2017-06-02 2018-12-11 华为技术有限公司 A kind of Service Data Management system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513976A (en) * 2012-06-29 2014-01-15 中兴通讯股份有限公司 Service process modeling method and device
CN106557342A (en) * 2015-09-30 2017-04-05 阿里巴巴集团控股有限公司 A kind of implementation method and device of service logic
CN105550851A (en) * 2015-12-09 2016-05-04 中国建设银行股份有限公司 Business flow generation method and system
CN105844422A (en) * 2016-04-01 2016-08-10 阿里巴巴集团控股有限公司 Business flow execution method and device
CN106445536A (en) * 2016-09-28 2017-02-22 湛江市霞山区新软佳科技有限公司 Automated business design management system
CN108984567A (en) * 2017-06-02 2018-12-11 华为技术有限公司 A kind of Service Data Management system and method
CN107274023A (en) * 2017-06-20 2017-10-20 阿里巴巴集团控股有限公司 Flow of insuring generation method, insure request processing method and device and electronic equipment
CN108279866A (en) * 2018-01-24 2018-07-13 马上消费金融股份有限公司 A kind of the layout execution method, apparatus and medium of operation flow
CN108897610A (en) * 2018-06-15 2018-11-27 上海陆家嘴国际金融资产交易市场股份有限公司 Method for scheduling task, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110780870A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN110780870B (en) Service execution method, device, equipment and storage medium
CN108389121B (en) Loan data processing method, loan data processing device, loan data processing program, and computer device and storage medium
WO2020259003A1 (en) Link tracking method and apparatus
KR102417742B1 (en) API Data Aggregation System And Method Of The Same
CN107633016B (en) Data processing method and device and electronic equipment
CN107920094B (en) Data acquisition method and device, server and network equipment
CN111723313A (en) Page jump processing method, device, equipment and storage medium
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN108416665B (en) Data interaction method and device, computer equipment and storage medium
CN112232818A (en) Data reconciliation method and device, computer equipment and storage medium
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN115827084A (en) Data processing method, device, equipment and storage medium
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
CN113360210A (en) Data reconciliation method and device, computer equipment and storage medium
CN112990937B (en) Resource data acquisition method and device, computer equipment and storage medium
CN113902415A (en) Financial data checking method and device, computer equipment and storage medium
CN115460265A (en) Interface calling method, device, equipment and medium
CN115098738A (en) Service data extraction method and device, storage medium and electronic equipment
CN114896955A (en) Data report processing method and device, computer equipment and storage medium
CN114428723A (en) Test system, system test method, related device and storage medium
CN112596974A (en) Full link monitoring method, device, equipment and storage medium
CN113986955B (en) Service chain determining method and device, electronic equipment and medium
CN117041356B (en) Index distribution method, index calculation method, apparatus, electronic device and system
CN111131471B (en) Operation method and device of service system and electronic equipment
CN110413507B (en) System test method, device, computer equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20220920

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant