Service method calling method and system, electronic equipment and storage medium

Through the integration of the process engine and the service center and the specified expression parsing logic, the service parameters are automatically parsed, and the complex interface configuration problem in large-scale business systems is solved, and efficient service method calls and system management are realized.

CN120371564APending Publication Date: 2025-07-25CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510467376.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-15
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

When the business system is large in scale, a large number of interfaces need to be configured after splitting into multiple service systems. When adding a new service system, the process automation call needs cannot be met.

Method used

Introduce the integration of the process engine and the service center, adopt the new specified expression parsing logic, automatically resolve service names, service objects and service methods through the service discovery function, and quickly retrieve callback methods in the service center to reduce interaction with each service center.

Benefits of technology

It improves the degree of automation of service methods, reduces the workload of customized interfaces, and enhances the scalability and management efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371564A_ABST
    Figure CN120371564A_ABST
Patent Text Reader

Abstract

The invention relates to the field of service architecture, and discloses a service method calling method and system, electronic equipment and a storage medium, the method is applied to a process engine, and the method comprises the following steps: receiving a calling request comprising a specified expression; if the service discovery function is started and the specified expression is the updated preset expression, analyzing to obtain a service name, a service object and a service method in the specified expression; and sending the service name, the service object and the service method to a service center, so that the service center calls a callback method required by the call request from the plurality of service systems based on the service name, the service object and the service method. Related service methods can be efficiently called without interaction between a process engine and each service center, and the automation degree of calling the service methods is improved. Meanwhile, the application does not need to customize an exclusive interface for each service system, so that a large amount of customization work is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of service architectures, and specifically to a method, system, electronic device, and storage medium for invoking a service method. Background Art

[0002] With the growth of the demand for business process automation, for the process docking of business systems, generally, the entire business system is split, and each service system obtained by splitting is connected to the process system through customized interfaces, so as to realize the mutual invocation between the business system and the process system.

[0003] However, if the scale of the business system is large and a large number of service systems are obtained by splitting, a large number of interfaces need to be configured to meet the method invocation requirements. At the same time, if a new service system needs to be added, a customized new interface is required, which cannot meet the requirements of process automation invocation. Summary of the Invention

[0004] In view of the above problems, this application provides a method, system, electronic device, and storage medium for invoking a service method, which is used to optimize the invocation method between the process engine and each service system, so as to improve the automation degree of invoking the service method.

[0005] According to one aspect of this application, a method for invoking a service method is provided, which is applied to a process engine. The invocation method includes: receiving an invocation request including a specified expression; if the service discovery function is enabled and the specified expression is an updated preset expression, parsing the service name, service object, and service method in the specified expression; sending the service name, service object, and service method to a service center, so that the service center invokes the callback method required by the invocation request from multiple service systems based on the service name, service object, and service method.

[0006] In an optional manner, the invocation method further includes: if the service discovery function is disabled, or the specified expression is an original expression, or any parameter of the service name, service object, and service method is missing in the parsed specified expression, invoking the callback method in the specified service system based on a preset interface.

[0007] In an optional manner, the invocation method further includes: encapsulating the process function into a service interface and registering it to the service center, so that each service system sends the invocation request to the process engine through the service interface.

[0008] According to one aspect of the present application, there is provided another method for invoking a service method, which is applied to a service center. The invocation method includes: receiving a service name, a service object, and a service method sent by a process engine; wherein the service name, the service object, and the service method are parameters parsed from the specified expression by the process engine in response to an invocation request when the service discovery function is enabled and the specified expression is an updated preset expression; determining a callback method required for the invocation request from multiple service systems based on the service name, the service object, and the service method.

[0009] In an optional manner, determining a callback method required for the invocation request from multiple service systems based on the service name, the service object, and the service method includes: determining a target service system whose name matches the service name from multiple service systems; matching the service object with each preset service object in the target service system, and determining an instance method corresponding to the service method from the successfully matched preset service objects as the callback method required for the invocation request.

[0010] In an optional manner, the invocation method further includes: receiving a service invocation request from a first service system; wherein the invocation object in the service invocation request is a second service system; determining a callback method required for the service invocation request from the second service system according to the invocation parameters in the service invocation request, and invoking it to the first service system.

[0011] According to another aspect of the present application, there is provided a system for invoking a service method. The invocation system includes a service center respectively connected to a process engine and multiple service systems; the process engine parses the service name, the service object, and the service method from the specified expression in response to an invocation request including the specified expression when the service discovery function is enabled and the specified expression is an updated preset expression; the service center determines a callback method required for the invocation request from the multiple service systems based on the service name, the service object, and the service method.

[0012] In an alternative approach, the process engine encapsulates process functions into service interfaces and registers them with the service center, enabling each service system to send the call requests to the process engine through the service interfaces. Among them, the process engine can also perform method callbacks with a specified service system through a preset interface. Each service system registers its respective instance information with the service center, enabling the service center to call the corresponding callback method from the corresponding service system according to the corresponding instance information. Among them, any service system can call the process functions of the process engine through the service center and call the callback methods in other service systems. The callback methods can also be called through hyperlinks between the service systems.

[0013] According to one aspect of the present application, there is provided an electronic device, including: a controller; a memory for storing one or more programs, which when executed by the controller, are configured to execute the above-mentioned calling method.

[0014] According to one aspect of the present application, there is also provided a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the above-mentioned calling method.

[0015] According to one aspect of the present application, there is also provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to execute the above-mentioned calling method.

[0016] The present application integrates the process engine with the service center and introduces a new parsing logic for the execution of specified expressions. The process engine automatically sends the parsed service names, service objects, and service methods to the service center through the service discovery function, enabling the service center to quickly retrieve the required callback methods from the corresponding service systems. Without the need for the process engine to interact with each service center, relevant service methods can be retrieved efficiently, improving the automation level of calling service methods. At the same time, the present application does not require customizing exclusive interfaces for each service system, thereby reducing a large amount of customization work.

[0017] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the specific embodiments of the present application are hereinafter specifically exemplified. Brief Description of the Drawings

[0018] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 is a schematic diagram of data interaction between a process system and a business system in the related art.

[0020] Figure 2 is a schematic flowchart of a method for invoking a service method shown in an exemplary embodiment of the present application.

[0021] Figure 3 is a schematic diagram of the invocation process of a service method shown in an exemplary embodiment of the present application.

[0022] Figure 4 is a schematic flowchart of a method for invoking a service method shown in an exemplary embodiment of the present application.

[0023] Figure 5 is a schematic flowchart of another method for invoking a service method shown in an exemplary embodiment of the present application.

[0024] Figure 6 is a schematic structural diagram of a system for invoking a service method shown in an exemplary embodiment of the present application.

[0025] Figure 7 is a schematic structural diagram of another system for invoking a service method shown in an exemplary embodiment of the present application.

[0026] Figure 8 is a schematic structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. Detailed implementation manners

[0027] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0029] The flowcharts shown in the accompanying drawings are merely illustrative and not necessarily include all content and operations / steps, nor are they necessarily executed in the described order. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.

[0030] In this application, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0031] Regarding the refined management between the process system and the business system, as Figure 1 shown, Figure 1 is a schematic diagram of data interaction between the process system and the business system in the related art. It splits the business system into multiple service systems and customizes the interfaces between each service system and the process system respectively, so as to facilitate the mutual invocation between each service system and the process system. It is equivalent to directly connecting the process system to each service system, and different interfaces need to be provided for different service systems, that is, a large number of interfaces need to be configured to meet the method call requirements.

[0032] At the same time, if a new service system needs to be added, new interfaces need to be customized, which cannot meet the requirements of process automation invocation.

[0033] Therefore, one aspect of this application provides a method for invoking a service method. For details, please refer to Figure 2 , Figure 2 is a flowchart of a method for invoking a service method shown in an exemplary embodiment of this application. This invocation method at least includes S210 to S230 and is applied to a process engine, that is, the process engine serves as the execution subject of this invocation method, which is introduced in detail as follows:

[0034] S210: Receive a call request including a specified expression.

[0035] The call request is a request related to process management sent by a relevant service system and requires invoking a service method, which includes but is not limited to a specified expression. The call request can be a request related to process management sent by the corresponding service system. For example, Figure 3The shown service system A issues a request involving process management and expects to call relevant service methods in service system C. Service system A configures the service name, service object, and service method to be called in a specified expression and sends it to the process engine to execute the corresponding service task.

[0036] The process engine of this application can be Activiti, Camunda, Flowable, Zeebe, etc. The service center can be a service framework with service registration and discovery functions built by Nacos, Dubbo, etc. The process engine and service center applicable to this application need to have service discovery and registration functions, and the process engine can adapt to new expressions. When a connection is established between the process engine and the service, the process engine can encapsulate the process functions as service interfaces and register them to the service center, so that each service system can send call requests to the process engine through the service interfaces. Exemplarily, the process engine registers process functions such as initiating a process, passing through a process, and terminating a process to the service center, and can also register process templates and updated expression formats to the service center; each service system can insert the service parameters required for the call into the updated expression to form a call request including the specified expression and send it to the process engine through the service interface.

[0037] S220: If the service discovery function is enabled and the specified expression is an updated preset expression, then the service name, service object, and service method in the specified expression are parsed.

[0038] The updated preset expression is a completely new expression for the process engine. It is different from the original expression of the process engine, and its format is different from that of the original expression. Different formats correspond to different parsing logics. When each service system uses the unified process management ability, it can configure the business process more flexibly based on the updated preset expression. Exemplarily, the original expression that the Activiti process engine can support for parsing is ${}, and its parsing logic is the parsing logic of the original JUEL expression; the updated preset expression is #{}, and its parsing logic is the new preset parsing logic. When the process engine recognizes that the specified expression is #{serviceName:service.function}, it determines that it is an updated preset expression and quickly parses it according to the preset parsing method to parse out the service name (serviceName), service object (service), and service method (function).

[0039] This application integrates a service center and a process engine, and sets up a service function enabling module in the process engine to start and stop the service discovery function. The process engine needs to parse the updated preset expression to parse out the corresponding service parameters, namely the service name, service object, and service method, when the service discovery function is enabled.

[0040] The prerequisite for the process engine to parse a specified expression not only requires the service discovery function to be in an enabled state, but also requires the format of the specified expression to match the format of the updated preset expression. If the match is successful, it indicates that the specified expression is the updated preset expression.

[0041] The service name is used for service discovery and can be considered as the name of the service system expected to be invoked. The service object is used to determine a specific object from the corresponding service system and can be considered as a service interface or implementation class. The service method can be understood as the name of the callback method expected to be invoked and is used to determine a specific instance method.

[0042] S230: Send the service name, service object, and service method to the service center so that the service center can retrieve the callback method required for the call request from multiple service systems based on the service name, service object, and service method.

[0043] The service system can be a microservice system split from the entire business system, that is, the business system is a system composed of multiple microservice systems. Among them, each microservice system can register its own service instance information with the service center to facilitate the service center to dynamically call the service methods of each microservice system, that is, the callback methods required for related call requests.

[0044] The process engine sends the service name, service object, and service method to the service center. The service center determines the target based on the service name, service object, and service method to quickly determine the target service method of the target object in the target service system as the callback method required for the call request.

[0045] This application integrates the process engine with the service center and introduces a new parsing logic for the specified expression. The process engine automatically sends the parsed service name, service object, and service method to the service center through the service discovery function, enabling the service center to quickly retrieve the required callback methods from the corresponding service systems. Without the process engine interacting with each service center, relevant service methods can be retrieved efficiently, improving the automation degree of calling service methods. At the same time, this application does not require customizing exclusive interfaces for each service system, reducing a large amount of customization work. Even if a service system is added or changed, relevant instance information can be quickly registered in the service center through the service registration function, and the process engine can easily simplify the configuration process between the process engine and the added or changed service system.

[0046] In another exemplary embodiment of the present application, another fallback call method is introduced in detail. When the above call method fails to succeed, the service method is called based on a preset interface. For details, please refer to Figure 4 , Figure 4 which is a schematic flowchart of a method for calling a service method shown in an exemplary embodiment of the present application. Based on S210 to S230 as shown in Figure 2 , this call method further includes at least S410, which is introduced in detail as follows:

[0047] S410: If the service discovery function is turned off, or the specified expression is an original expression, or any parameter among the service name, service object, and service method is missing in the parsed specified expression, then the callback method in the specified service system is called based on the preset interface.

[0048] Among them, the preset interface is a communication interface between the process engine and a service system with frequent interaction or high importance level. In order to minimize the number of customized interfaces, the number of preset interfaces is generally small, such as 2 to 3, which can be adjusted according to specific circumstances. If the preset interface corresponding to the corresponding service system is not set, the process engine cannot call the service method of the service system based on the corresponding interface. The specified service system has a high importance level or there is frequent interaction between the specified service system and the process engine. In order to ensure the normal call requirements of the specified service system when the service method cannot be called in the service center, a preset interface can be directly established between them and the process engine to ensure the normal call of the service method.

[0049] If the service discovery function is turned off, it means that the service method cannot be called through the service discovery function.

[0050] If the specified expression is an original expression, it means that the execution logic is the parsing logic of the original expression, and this parsing logic cannot parse the service parameters for the expression, or the parsed service parameters are missing. In some embodiments, the original expression is an expression that cannot perform service parameter parsing or cannot obtain complete service parameters after parsing. The original expression follows the original execution logic. In order to retain the original functions of the process engine, the process engine of the present application can still recognize the original expression and execute the original execution logic to achieve the original functions.

[0051] The parsing logics corresponding to different expressions are different. If the specified expression is not the updated preset expression, even if it is parsed according to the parsing logic corresponding to the updated preset expression, the parsing may fail, and complete service parameters cannot be parsed, or the parsing operation cannot be performed at all.

[0052] If the parsing expression is missing any parameter in the service name, service object, and service method, the parsing does not obtain complete service parameters. Even if the missing service parameters are sent to the service center, the service center cannot call the correct callback method based on the missing service parameters.

[0053] This embodiment sets a preset interface between the specified service system and the process engine so that the process engine can not only call back the service method in the specified service system through the service center, but also call the service method in the specified service system through the preset interface, thereby providing two calling methods to ensure the calling requirements.

[0054] One aspect of the present application provides another method for calling a service method. Figure 5 , Figure 5 This is a flowchart of another service method calling method shown in an exemplary embodiment of the present application. The calling method includes at least S510 to S520, which is applied to the service center, that is, the service center is the execution subject of the calling method, and is described in detail as follows:

[0055] S510: Receive the service name, service object and service method issued by the process engine; wherein the service name, service object and service method are the parameters obtained by parsing the specified expression in response to the call request of the process engine when the service discovery function is turned on and the specified expression is an updated preset expression.

[0056] When the service discovery function is enabled, the process engine recognizes that the specified expression in the call request is an updated preset expression, and then parses the service name, service object and service method in the specified expression. The call request can be a request involving process management issued by any service system.

[0057] This application service center acts as an intermediate bridge between the process engine and various service systems. Under the condition of realizing process management, mutual calls can be realized through the service center. This application service center can also directly serve as an intermediate bridge for service method calls between various service systems. The specific introduction is as follows:

[0058] Receive a service call request from the first service system; wherein the calling object in the service call request is the second service system; and determine the callback method required by the service call request from the second service system according to the calling parameters in the service call request, so as to call the first service system.

[0059] The first service system and the second service system are merely exemplified as two different service systems, and no specific limitation is imposed on them. A business call request is a request that does not involve process management and is limited to calling a service method between service systems.

[0060] Among the various service systems of this application, for business call requests that do not involve process management, there is no need for the participation of a process engine. Any service system only needs to quickly determine the callback method from the service methods of other service systems through the relevant instance information of other service systems registered in the service center for quick invocation.

[0061] S520: Based on the service name, service object, and service method, determine the callback method required for the call request from multiple service systems.

[0062] The service center can perform target determination based on the service name, service object, and service method to quickly determine the target service method of the target object in the target service system as the callback method required for the call request.

[0063] Exemplarily, determine the target service system whose name matches the service name from multiple service systems; match the service object with each preset service object in the target service system, and determine the instance method corresponding to the service method from the successfully matched preset service objects as the callback method required for the call request.

[0064] Combined with Figure 3 For specific illustration, if the service name is "Service System C", the service object is "Object B", and the service method is "A Service Method", the service center will match the service name with the names of each service system to determine that the target service system is Slave Service System C, match the service object with each object name in Service System C to obtain the successfully matched Object B, and determine the example method corresponding to the A Service Method from Object B as the callback method required for the call request.

[0065] This application integrates the process engine with the service center and introduces a new specified expression execution parsing logic. The process engine automatically sends the parsed service name, service object, and service method to the service center through the service discovery function. The service center quickly retrieves the required callback method from the corresponding service system according to the received service name, service object, and service method, without the need for the process engine to interact with each service center, so as to efficiently retrieve relevant service methods, improving the automation degree of calling service methods. At the same time, this application does not require customizing exclusive interfaces for each service system, thus reducing a large amount of customization work. Even if a service system is newly added or changed, relevant instance information can be quickly registered in the service center through the service registration function, and without the process engine, it is easy to simplify the configuration process between the process engine and the newly added or changed service system.

[0066] One aspect of this application provides a calling system for service methods. For details, please refer to Figure 6 , Figure 6It is a schematic structural diagram of a call system for a service method shown in an exemplary embodiment of the present application. The call system includes a service center 300 connected to a process engine 100 and a business system 200 respectively. The business system 200 includes a plurality of service systems. In some embodiments, the call system further includes a switch module for starting and stopping the service discovery function.

[0067] Among them, the process engine 100 can be Activiti, Camunda, Flowable, Zeebe, etc., and the service center can be Nacos, Dubbo, etc.; each service system can be a microservice system, such as Figure 7 As shown, the Activiti process engine is integrated with the service center built by Nacos, and each microservice system can perform data interaction with the service center built by Nacos through service registration and discovery.

[0068] The process engine 100 is placed in the process system. When the service discovery function is enabled and the specified expression is an updated preset expression, in response to a call request including the specified expression, the service name, service object, and service method parsed from the specified expression are obtained.

[0069] Based on the service name, service object, and service method, the service center 300 determines the callback method required for the call request from multiple service systems. For example, the service center 300 determines a target service system whose name matches the service name from multiple service systems; the service center 300 matches the service object with each preset service object in the target service system, and determines an instance method corresponding to the service method from the successfully matched preset service objects as the callback method required for the call request.

[0070] In another exemplary embodiment, when the process engine 100 detects that the service discovery function is closed, or the specified expression is an original expression, or any parameter of the service name, service object, and service method is missing in the parsed specified expression, the callback method in the specified service system is called based on the preset interface.

[0071] In another exemplary embodiment, the process engine 100 encapsulates process functions into service interfaces and registers them with the service center 300, enabling each service system to send call requests to the process engine 100 through the service interfaces. Among them, the process engine 100 can also perform method callbacks with a specified service system through a preset interface. Each service system registers its respective instance information with the service center 300, enabling the service center 300 to call the corresponding callback method from the corresponding service system according to the corresponding instance information. Among them, any service system can call the process functions of the process engine 100 through the service center 300 and call the callback methods in other service systems. The service systems can also call the corresponding callback methods through hyperlinks, that is, instead of performing service discovery through the service center 300, http requests are called in the form of HttpClient.

[0072] In another exemplary embodiment, the service center 300 receives a service call request from the first service system. Among them, the call object in the service call request is the second service system. The service center 300 determines the callback method required for the service call request from the second service system according to the call parameters in the service call request and calls it to the first service system.

[0073] The process engine in the call system of this application integrates a service discovery function to flexibly and securely call the call capabilities of relevant service systems through the service center. This application decouples the service systems, enabling each service system to maintain the callback methods required for the process template through the updated expressions, without customizing the interfaces between the process engine and each service system, reducing the development cost while also increasing the scalability of the call system of this application. At the same time, it can also effectively manage the service capabilities provided by each service system and the process system.

[0074] Another aspect of this application also provides an electronic device, including: a controller; a memory for storing one or more programs, which when executed by the controller, execute the above-mentioned call method.

[0075] Please refer to Figure 8 , Figure 8 which is a schematic diagram of the computer system of the electronic device shown in an exemplary embodiment of this application, showing the schematic diagram of the computer system of the electronic device suitable for implementing the embodiments of this application.

[0076] It should be noted that Figure 8 the computer system 800 of the electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of this application.

[0077] Such as Figure 8As shown, computer system 800 includes a Central Processing Unit (CPU) 801, which can perform various appropriate actions and processes according to programs stored in a Read-Only Memory (ROM) 802 or programs loaded from a storage section 808 into a Random Access Memory (RAM) 803, such as executing the methods in the above embodiments. In the RAM 803, various programs and data required for system operations are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An Input / Output (I / O) interface 805 is also connected to the bus 804.

[0078] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including, for example, a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc. and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as required. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as required so that a computer program read from it can be installed into the storage section 808 as required.

[0079] Specifically, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 809, and / or installed from the removable medium 811. When the computer program is executed by a Central Processing Unit (CPU) 801, various functions defined in the system of the present application are executed.

[0080] It should be noted that the computer-readable medium shown in the embodiments of the present application may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in conjunction with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted by any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0081] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Among them, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in an order different from that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0082] The units involved in the embodiments described in this application can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not, in some cases, constitute a limitation on the units themselves.

[0083] Another aspect of this application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned calling method is implemented. The computer-readable storage medium can be included in the electronic device described in the above embodiments, or can exist alone without being assembled into the electronic device.

[0084] Another aspect of this application also provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the calling methods provided in the above various embodiments.

[0085] According to one aspect of the embodiments of this application, a computer system is also provided, including a Central Processing Unit (CPU), which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage part into a Random Access Memory (RAM), such as executing the methods in the above embodiments. In the RAM, various programs and data required for system operations are also stored. The CPU, ROM, and RAM are connected to each other through a bus. An Input / Output (I / O) interface is also connected to the bus.

[0086] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc. and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a Local Area Network (LAN) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. A removable medium, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive as needed, so that a computer program read from it can be installed into the storage part as needed.

[0087] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation of the present application. Those of ordinary skill in the art can easily make corresponding adaptations or modifications according to the main concept and spirit of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope required by the claims.

Claims

1. A calling method for a service method, characterized in that Applied to a process engine, the calling method includes: Receiving a calling request including a specified expression; If the service discovery function is enabled and the specified expression is an updated preset expression, parsing the service name, service object, and service method in the specified expression; Sending the service name, service object, and service method to a service center so that the service center, based on the service name, service object, and service method, retrieves the callback method required by the calling request from multiple service systems.

2. The invocation method according to claim 1, wherein The calling method further includes: If the service discovery function is disabled, or the specified expression is an original expression, or any one of the service name, service object, and service method is missing when parsing the specified expression, calling the callback method in the specified service system based on a preset interface.

3. The invocation method according to claim 1, characterized in that, The calling method further includes: Encapsulating the process function as a service interface and registering it with the service center so that each service system sends the calling request to the process engine through the service interface.

4. A method for invoking a service method, characterized in that Applied to a service center, the calling method includes: Receiving the service name, service object, and service method sent by the process engine; wherein, the service name, service object, and service method are the parameters parsed from the specified expression by the process engine in response to the calling request when the service discovery function is enabled and the specified expression is an updated preset expression; Based on the service name, service object, and service method, determining the callback method required by the calling request from multiple service systems.

5. The invocation method according to claim 4, wherein Based on the service name, service object, and service method, determining the callback method required by the calling request from multiple service systems includes: Determining a target service system with a name matching the service name from multiple service systems; Matching the service object with each preset service object in the target service system and determining the instance method corresponding to the service method from the successfully matched preset service objects as the callback method required by the calling request.

6. The invocation method according to claim 4, wherein The calling method further includes: Receiving a business calling request from a first service system; wherein, the calling object in the business calling request is a second service system; Based on the calling parameters in the business calling request, determining the callback method required by the business calling request from the second service system and calling it to the first service system.

7. A calling system for a service method, characterized in that, The calling system includes a service center respectively connected to a process engine and multiple service systems; The process engine, in response to a calling request including a specified expression, when the service discovery function is enabled and the specified expression is an updated preset expression, parses the service name, service object, and service method from the specified expression; The service center, based on the service name, service object, and service method, determines the callback method required by the calling request from the multiple service systems.

8. The calling system according to claim 7, wherein The process engine encapsulates the process functions into service interfaces and registers them with the service center, so that each service system can send the call requests to the process engine through the service interfaces; wherein, the process engine can also perform method callbacks with a specified service system through a preset interface. Each service system registers its respective instance information with the service center, so that the service center can call the corresponding callback method from the corresponding service system according to the corresponding instance information; wherein, any service system can call the process functions of the process engine through the service center, as well as call the callback methods in other service systems, and the service systems can also call the corresponding callback methods through hyperlinks.

9. An electronic device, characterized in that, Including: A controller; A memory for storing one or more programs, which when executed by the controller, cause the controller to implement the call method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, A computer-readable instruction is stored thereon, which when executed by a processor of a computer, causes the computer to execute the call method according to any one of claims 1 to 6.