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

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

Info

Publication number
CN110780870A
CN110780870A CN201911039602.7A CN201911039602A CN110780870A CN 110780870 A CN110780870 A CN 110780870A CN 201911039602 A CN201911039602 A CN 201911039602A CN 110780870 A CN110780870 A CN 110780870A
Authority
CN
China
Prior art keywords
service
arrangement
request
sub
rule
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.)
Granted
Application number
CN201911039602.7A
Other languages
Chinese (zh)
Other versions
CN110780870B (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
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd 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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

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 request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements; sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, which is 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 reuse rate and improving the efficiency of development, operation and maintenance can be achieved.

Description

Service execution method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate 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 requirements of users, the types of online services are more and more, and the achievable functions are more and more abundant.
Due to the object oriented service implementation or different functions implemented by the service, developers will generally write different service codes for different services.
However, since the business rules may change, the developer needs to modify the fixed service code each time the business rules change, which increases the complexity of modification. When most of services are actually realized in a specific field, the used code logics or service logics are similar, and repeated service codes not only cause low code quality and are difficult to maintain, but also cause developers to repeatedly work, thereby reducing the efficiency of development, operation and maintenance.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for service execution, so as to achieve the purposes of enhancing flexibility of service modification, increasing code reuse rate, and improving 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 request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements;
sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, which is 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 apparatus, where the apparatus includes:
a service request acquisition module 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; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements;
the service arrangement element loading module is used for sequentially loading the service arrangement elements according to the service arrangement rule and the logic relationship among the service arrangement elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, which is 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, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a business execution method as described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service execution method described above.
The embodiment of the invention obtains 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. The service arranging rule is formed by service arranging elements according to the logic relation among the service arranging elements. And sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging elements so as to execute the service. Wherein the service orchestration element is used to invoke a sub-service, which is at least one business function in a set of business functions. The problems of complex process of modifying the service codes and repeated service codes are solved, the flexibility of modifying the services is enhanced, the code reuse rate is increased, and the efficiency of developing operation and maintenance is improved.
Drawings
Fig. 1 is a flowchart of a service execution method according to an 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 the second embodiment of the present application
Fig. 4 is a schematic structural diagram of a service execution apparatus 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 present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a service execution method according to an embodiment of the present invention, where this embodiment is applicable to a case where a service is executed according to a service request, and the method may be executed by a service execution device provided in 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:
and S110, acquiring the service request.
The operation party for executing the service request may be any object capable of processing the service request, such as a website, an Application (APP), and a server. The service request is a request sent for implementing a service function, and may be generated based on an operation of a user, for example, if the user needs to process services such as direct financing, managed financing, clearing, financing, and surrogating, the service request may be generated through an operation instruction. And the operation party for executing the service request acquires the specific service request by acquiring the operation instruction of the user.
S120, determining a service ID according to request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arranging rule is formed by service arranging elements according to the logic relation among the service arranging elements.
In the technical solution, as long as the application program relates to a service execution process, the application program can respond to the received service execution request and obtain request information of the service execution request through the application program. The request information may include the target service content of the service request, may also include information of the user, such as identity information and authority information of the user, and may also include information of the system, such as time when the service request is issued.
The service ID may be a specific number corresponding to each service request, and may be preset, for example, for the order generation service request, the service ID may be preset as: 0001, for the order inquiry service request, the service ID thereof can be preset as: 0002. then the service ID may be determined based on the target service content of the request message.
The service orchestration rule 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 present embodiment does not limit this.
Service elements: the main elements in the service arrangement rule, the granularity of the service elements can be adjusted according to the service requirement.
Calling an element: a sub-element of the service element for invoking other services in the current service. For example
Judging elements: and the sub-elements of the service elements are used for determining branches according to the judgment result of the expression in the current service so as to call the service.
Functional elements: the sub-elements of the service elements and the functional elements correspond to the most basic function methods, and can only be called and cannot be nested.
The service element includes at least a function element, and may further include a call element and/or a judgment element.
Taking the query of a single transaction record as an example, the service elements in the corresponding service arrangement elements may include a channel verification service element, a customer identification service element and a transaction record query service element, and the services of channel verification, customer identification and transaction record query are invoked in sequence; in the process of calling the service for channel verification, the method may include: judging different channels by using the judging elements so as to determine services to be called after the judgment; in the process of calling a business function for inquiring transaction records, calling a service related to time judgment by using a calling element where a time judgment service is available; and calling through the functional elements when the basic function is used in the whole process of inquiring the single transaction record. The service arrangement elements and the logic relationship between the service arrangement elements form a service arrangement rule for inquiring single transaction record service.
S130, sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging 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
The sub-service is at least one service function in the service function set, and may be composed of only one service function, or may be composed of a plurality of service functions together, and is used to implement the function of each function module. The sub-services can be services frequently used in most businesses, for example, the sub-services frequently used in businesses such as direct financing, managed financing, clearing, financing, and brokering: channel verification, customer identification, product verification, transaction admission verification, share registration, product inquiry, transaction record, customer account loading and unloading and the like. The service function set is a set of these function methods for implementing sub-service functions, and the service function set may be stored in a Software Development Kit (SDK), which is a set of Development tools used to create application Software for a specific Software package, Software framework, hardware platform, operating system, and the like, and the function is called in the SDK by the name and parameters of the function. The advantage of this arrangement is that different services can invoke the same sub-service, thereby increasing code reuse. 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 request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements; sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging 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 the 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 reuse rate is increased, and the efficiency of development, operation and maintenance is improved.
On the basis of the above technical solution, optionally, before the obtaining the service request, the method further includes:
determining sub-services contained in the service type according to the service type;
setting the types and the logical relationship of each service arrangement element in the service arrangement rule of the current service type according to the service rule among the sub-services; to determine a service ID for the service type.
The sub-services included in the service are different due to different service types, and the types of the sub-services included in the service can be determined according to development requirements.
Wherein the business rule is a rule for contacting each sub-service. And setting a service arrangement rule according to the business rule, and determining the type and the logical relationship 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 service arrangement rules corresponding to the service types. When the business rule is changed, only the corresponding service arrangement rule needs to be modified, and the flexibility of service modification is enhanced.
On the basis of the above technical solution, optionally, the service orchestration rule is stored in a configuration file or a database;
and reading and analyzing the service arrangement rule in the configuration file or the database, and storing the service ID and the service arrangement element in a service arrangement register in a key value pair mode.
The configuration file may be an xml or yaml file. The service arrangement rule is stored in a configuration file or a database, the service arrangement rule can be analyzed into an object which can be identified by a program through an SDK, and the analyzed service arrangement element and the service ID are stored in a service arrangement register in a key value pair mode. Optionally, when the Java language is developed, the service orchestration registry is a Map container; when the Python language is developed, the service arrangement register is used as a dictionary container.
The mapping relationship can be established by taking the service ID as a key and the service arrangement element as a value. The service arrangement rule can be directly modified in a configuration file or a database, and 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, and if so, matching; if not, judging whether a service code corresponding to the service request exists; if yes, executing the service coding; wherein the service code is obtained based on a fixed code arrangement mode.
Because the services are various and the sub-services shared by some services and other services are few or none, the services do not need to be set with service arrangement rules and corresponding codes are directly written; setting service arrangement rules for common services and distributing service IDs. And if the corresponding service ID exists, matching is carried out, and the service process is executed. If no service ID exists, judging whether a corresponding service code exists, wherein the service code is a service code which is arranged aiming at the service, and if yes, executing the service code; if not, the error is reported, 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 aiming at the process of business execution. Compared with the scheme, the scheme loads the service arrangement elements in sequence according to the service arrangement rule and the logic relationship among the service arrangement elements, and further comprises the following steps:
before executing the service arranging element of the service arranging rule, judging whether the request information in the service request meets the executing condition of the sub-service called by the service arranging element;
and if so, executing the sub-service called by the service arranging 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 request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arranging rule is formed by service arranging elements according to the logic relation among the service arranging elements.
S230, before the service arranging element of the service arranging rule is executed, whether the request information in the service request meets the executing condition of the sub-service called by the service arranging element is judged;
the request information at least comprises information required by the execution of each sub-service, and whether the execution condition of the sub-service is met or not is judged according to the information. For example, the time inquiry sub-service requires time information, the address inquiry sub-service requires providing an address, and the like.
And S240, if so, executing the sub-service called by the service arranging element.
If not, stopping calling the sub-service, and judging the next sub-service. Therefore, in the execution process of the service, the part which does not meet the condition can be quickly judged when the abnormity occurs.
For example, for the transaction record query sub-service, the request information includes query time, whether the time meets the query range is judged, and when the time meets the set range, the query of the specific transaction record is executed, namely, the transaction record query sub-service is called; when the set range is not met, the user can be reminded to inquire whether the range is exceeded.
S250, sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, which is at least one business function in a set of business functions.
In order to make the technical solution disclosed in the present application more clear to those skilled in the art, the present application also provides a preferred embodiment.
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.
And S330, executing the service code corresponding to the service request.
S340, acquiring the service arrangement rule according to the service ID, and sequentially calling and executing the sub-services according to the service arrangement rule.
Wherein, the obtaining of the arrangement rule can be realized by: reading the service arrangement rule in the configuration file or the database, analyzing the service arrangement rule, storing the service ID and the service arrangement element obtained by analysis into a service arrangement register in a key value pair mode, and transmitting the service ID and the service arrangement element which can be identified by a program to a service executive party by the service arrangement register so as to obtain the arrangement rule.
S350, judging whether the sub-service meets the execution condition; if yes, go to S360; if not, go to S380;
and S360, calling and executing the sub-service.
And S370, sub-service post-processing.
The sub-service post-processing is processing of an obtained result after the sub-service is executed, for example, whether to change an output of a previous sub-service to an input of a next sub-service, or not.
S380, judging whether a subsequent sub-service exists; if yes, go to S350; if not, the flow ends.
The method has the advantages that when the service flow is changed, the execution process can be changed only by modifying the service arrangement rule, the flexibility of service modification is enhanced, the modification difficulty 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 quickly judged when abnormality occurs in the execution process of the service.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a service execution apparatus according to a third embodiment of the present invention. The device can be realized by hardware and/or software, can execute the service execution method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 4, the apparatus includes:
a service request obtaining module 410, configured to obtain a service request;
a service arrangement rule obtaining module 420, configured to determine a service ID according to request information in the service request, and obtain a corresponding service arrangement rule according to the service ID; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements;
the service arrangement element loading module 430 is configured to sequentially load the service arrangement elements according to the service arrangement rule and the logical relationship between the service arrangement elements to execute a service; wherein the service orchestration element is used to invoke a sub-service, which is 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 request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements; sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging 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 the 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 reuse rate is increased, and the efficiency of development, operation and maintenance is improved.
Optionally, the apparatus 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;
a service ID determining module, configured to set, before the service request obtaining module 410, a type and a logical relationship of each service arrangement element in the service arrangement rule of the current service type according to the service rule between each sub-service; to determine a service ID for the service type.
Optionally, the apparatus further includes: a service arrangement rule storage module, configured to store the service arrangement rule in a configuration file or a database before the service request obtaining module 410;
and a key value pair storage module, configured to read and analyze a service arrangement rule in a configuration file or a database before the service request obtaining module 410, and store the service ID and the service arrangement element in a service arrangement register in a key value pair manner.
Optionally, the service orchestration element loading module 430 further includes:
the service scheduling unit is used for scheduling the service scheduling elements according to the service scheduling rules, and the request information judging unit is used for judging whether the request information in the service request meets the execution conditions of the sub-services called by the service scheduling elements or not before the service scheduling elements of the service scheduling rules are executed;
and the sub-service execution unit is used for executing the sub-service called by the service arrangement element if the request information judgment unit judges that the request information is positive.
Optionally, the apparatus further includes:
a service ID query module, configured to query whether the service ID corresponding to the service request exists before the service orchestration rule obtaining module 420, and if yes, perform matching; if not, judging whether a service code corresponding to the service request exists; if yes, executing the service coding; wherein the service code is obtained based on a fixed code arrangement mode.
Example four
Fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, 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, and one processor 50 is taken as an example in fig. 5; the processor 50, the memory 51, the input device 52 and the output device 53 in the apparatus may be connected by a bus or other means, which is exemplified in fig. 5.
The memory 51 is used as a computer-readable storage medium for storing software programs, computer-executable programs, 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 by executing software programs, instructions and modules stored in the memory 51, that is, implements the service execution method described above.
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, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the 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, the memory 51 may further include memory located remotely from the processor 50, which may be connected to the device over 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
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a service execution method, and the method includes:
acquiring a service request;
determining a service ID according to request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements;
sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, which is at least one business function in a set of business functions.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the service execution method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied 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 (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for performing a service, comprising:
acquiring a service request;
determining a service ID according to request information in the service request, and acquiring a corresponding service arrangement rule according to the service ID; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements;
sequentially loading the service arranging elements according to the service arranging rule and the logic relation among the service arranging elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, which is at least one business function in a set of business functions.
2. The method of claim 1, further comprising, prior to the obtaining the service request:
determining sub-services contained in the service type according to the service type;
setting the types and the logical relationship of each service arrangement element in the service arrangement rule of the current service type according to the service rule among the sub-services; to determine a service ID for the service type.
3. The method of claim 2, wherein the service orchestration rules are stored in a configuration file or a database;
and reading and analyzing the service arrangement rule in the configuration file or the database, and storing the service ID and the service arrangement element in a service arrangement register in a key value pair mode.
4. The method of claim 1, wherein the loading the service orchestration elements in order according to the logical relationship between the service orchestration elements according to the service orchestration rule further comprises:
before executing the service arranging element of the service arranging rule, judging whether the request information in the service request meets the executing condition of the sub-service called by the service arranging element;
and if so, executing the sub-service called by the service arranging element.
5. The method of claim 1, further comprising, before determining a service ID based on request information in the service request:
inquiring whether the service ID corresponding to the service request exists or not, and if so, matching; if not, judging whether a service code corresponding to the service request exists; if yes, executing the service coding; wherein the service code is obtained based on a fixed code arrangement mode.
6. A service execution apparatus, comprising:
a service request acquisition module 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; the service arrangement rule is formed by service arrangement elements according to the logic relation among the service arrangement elements;
the service arrangement element loading module is used for sequentially loading the service arrangement elements according to the service arrangement rule and the logic relationship among the service arrangement elements so as to execute the service; wherein the service orchestration element is used to invoke a sub-service, which is at least one business function in a set of business functions.
7. The apparatus of claim 6, further comprising:
the sub-service determining module is used for determining sub-services contained in the service types according to the service types before the service request acquiring module;
the service ID determining module is used for setting the type and the logic relationship of each service arrangement element in the service arrangement rule of the current service type according to the service rule among the sub-services before the service request acquiring module; to determine a service ID for the service type.
8. The apparatus of claim 6, wherein the service orchestration element loading module further comprises:
the service scheduling unit is used for scheduling the service scheduling elements according to the service scheduling rules, and the request information judging unit is used for judging whether the request information in the service request meets the execution conditions of the sub-services called by the service scheduling elements or not before the service scheduling elements of the service scheduling rules are executed;
and the sub-service execution unit is used for executing the sub-service called by the service arrangement element if the request information judgment unit judges that the request information is positive.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method for service execution as recited in any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the service execution method of any one of claims 1-5.
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 true CN110780870A (en) 2020-02-11
CN110780870B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553652A (en) * 2020-04-23 2020-08-18 中国银行股份有限公司 Service processing method and device
CN112363714A (en) * 2020-11-03 2021-02-12 中国建设银行股份有限公司 Development method, device, storage medium and equipment of service combination model
CN113064588A (en) * 2021-04-07 2021-07-02 浪潮通用软件有限公司 Command arranging method and device and computer readable medium
CN113204396A (en) * 2021-05-21 2021-08-03 珠海金山网络游戏科技有限公司 Service processing system, method and device
CN113760226A (en) * 2020-11-25 2021-12-07 北京沃东天骏信息技术有限公司 Service construction method and device, electronic equipment and storage medium
CN114697395A (en) * 2020-12-11 2022-07-01 北京神州泰岳软件股份有限公司 Service resource calling execution method, device, service gateway and readable storage medium
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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553652A (en) * 2020-04-23 2020-08-18 中国银行股份有限公司 Service processing method and device
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
CN113760226A (en) * 2020-11-25 2021-12-07 北京沃东天骏信息技术有限公司 Service construction method and device, electronic equipment and storage medium
CN114697395A (en) * 2020-12-11 2022-07-01 北京神州泰岳软件股份有限公司 Service resource calling execution method, device, service gateway and readable storage medium
CN113064588A (en) * 2021-04-07 2021-07-02 浪潮通用软件有限公司 Command arranging method and device and computer readable 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

Also Published As

Publication number Publication date
CN110780870B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN110780870B (en) Service execution method, device, equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
KR102417742B1 (en) API Data Aggregation System And Method Of The Same
WO2020259003A1 (en) Link tracking method and apparatus
CN111163129A (en) Resource processing method and device based on cross-link network
CN110704037A (en) Rule engine implementation method and device
CN111143087A (en) Interface calling method and device, storage medium and server
CN113205416A (en) Service processing method and system based on block chain prediction machine
CN114172966B (en) Service calling method, service processing method and device under unitized architecture
CN110851207B (en) State transition management method and device, electronic equipment and storage medium
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
CN114138877A (en) Method, device and equipment for realizing theme data service based on micro-service architecture
CN113987337A (en) Search method, system, equipment and storage medium based on componentized dynamic arrangement
CN115460265A (en) Interface calling method, device, equipment and 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
CN114581241A (en) Intelligent contract processing method and device, processor and electronic equipment
CN110750271B (en) Service aggregation, method and device for executing aggregated service and electronic equipment
CN113946363A (en) Method and device for executing and configuring service data, computer equipment and storage medium
CN112380128A (en) Automatic testing method and device of intelligent contract, computer equipment and storage medium
CN114428723A (en) Test system, system test method, related device and storage medium
CN113986955B (en) Service chain determining method and device, electronic equipment and medium
CN111459474A (en) Templated data processing method and device
CN114637555B (en) General method for obtaining logistics information in batches

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