CN115237931A - Method and system for updating sub-service processing result of service arrangement - Google Patents
Method and system for updating sub-service processing result of service arrangement Download PDFInfo
- Publication number
- CN115237931A CN115237931A CN202210867146.0A CN202210867146A CN115237931A CN 115237931 A CN115237931 A CN 115237931A CN 202210867146 A CN202210867146 A CN 202210867146A CN 115237931 A CN115237931 A CN 115237931A
- Authority
- CN
- China
- Prior art keywords
- service
- sub
- updating
- processing result
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The application discloses a method and a system for updating sub-service processing results of service arrangement, which can be applied to the field of finance or data processing. The method comprises the following steps: configuring updating parameters of a plurality of sub-services corresponding to service arrangement; and updating the processing result of the target sub-service according to the updating parameter of the target sub-service. The method can effectively solve the problem that the same sub-service is used in different service arrangement, different transaction processing results can be updated according to different scenes, and the updating efficiency of the sub-service processing results of the service arrangement is improved.
Description
Technical Field
The present application relates to the field of data processing, and in particular, to a method, system, computer device, and storage medium for updating sub-service processing results of service orchestration.
Background
When executing service orchestration, an application system generally needs to update a processing result generated in the orchestration process. One service orchestration uses multiple sub-services, each of which may be used by multiple service orchestrations. However, in different service arrangements, for the same multiplexed sub-service, different processing results need to be updated according to different scenes, and therefore, it is cumbersome to update the processing results of a plurality of sub-services.
Disclosure of Invention
In view of the foregoing, the present application provides a method, a system, a computer device, and a storage medium for updating sub-service processing results of service orchestration, which can improve the updating efficiency of the sub-service processing results of service orchestration.
The application discloses following technical scheme:
a first aspect of the present application provides a method for updating sub-service processing results of service orchestration, including:
configuring updating parameters of a plurality of sub-services corresponding to service arrangement;
and updating the processing result of the target sub-service according to the updating parameter of the target sub-service.
In one possible implementation manner, the arranging the update parameters of the corresponding sub-services by the configuration service includes:
configuring a first updating parameter for representing whether the sub-service needs to be updated;
and configuring a second updating parameter for representing the target processing result which needs to be updated by the sub-service.
In a possible implementation manner, the configuring a second update parameter that represents a target processing result that the sub-service needs to update includes:
and configuring the number of the target processing result which is required to be updated by the representation sub-service.
In a possible implementation manner, the updating the processing result of the target sub-service according to the update parameter of the target sub-service includes:
if the first updating parameter of the target sub-service represents that the target sub-service needs to be updated, updating a corresponding processing result according to a second updating parameter of the target sub-service;
and if the first updating parameter of the target sub-service represents that the target sub-service does not need to be updated, not updating the processing result of the target sub-service.
A second aspect of the present application provides a system for updating sub-service processing results of service orchestration, comprising:
the parameter configuration module is used for configuring the updating parameters of the plurality of sub-services corresponding to the service arrangement;
and the updating module is used for updating the processing result of the target sub-service according to the updating parameter of the target sub-service.
In one possible implementation manner, the parameter configuration module includes:
the first parameter configuration module is used for configuring a first updating parameter for representing whether the sub-service needs to be updated;
and the second parameter configuration module is used for configuring a second updating parameter for representing a target processing result which is required to be updated by the sub-service.
In a possible implementation manner, the second parameter configuration module is specifically configured to configure a number representing a target processing result that the sub-service needs to be updated.
In a possible implementation manner, the updating unit is specifically configured to:
if the first updating parameter of the target sub-service represents that the target sub-service needs to be updated, updating a corresponding processing result according to a second updating parameter of the target sub-service;
and if the first updating parameter of the target sub-service represents that the target sub-service does not need to be updated, not updating the processing result of the target sub-service.
A third aspect of the present application provides a computer device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method for updating sub-service processing results for service orchestration according to any one of the first aspect of the present application when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium, having stored therein instructions, which, when run on a terminal device, cause the terminal device to execute the method for updating sub-service processing results for service orchestration according to any one of the first aspect of the present application.
Compared with the prior art, the method has the following beneficial effects:
the application provides a method for updating a sub-service processing result of service orchestration, which comprises the following steps: configuring updating parameters of a plurality of sub-services corresponding to service arrangement; and updating the processing result of the target sub-service according to the updating parameter of the target sub-service. The method can effectively solve the problem that the same sub-service is used in different service arrangement, different transaction processing results can be updated according to different scenes, and the updating efficiency of the sub-service processing results of the service arrangement is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a method for updating sub-service processing results of service orchestration according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a system for updating sub-service processing results of service orchestration according to an embodiment of the present application;
fig. 3 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
The service arrangement means that each service flow of the application system is divided into a plurality of sub-services, the sub-services can be multiplexed into different service flows, the sub-services are arranged according to a certain sequence, and a series of arranged services are called and executed to complete a certain service flow.
As mentioned above, when executing service orchestration, an application system generally needs to update processing results generated in the orchestration process. One service orchestration uses multiple sub-services, each of which may be used by multiple service orchestrations. However, in different service arrangements, for the same multiplexed sub-service, different processing results need to be updated according to different scenes, and therefore, updating the processing results of a plurality of sub-services is cumbersome.
In view of the above, a method for updating sub-service processing results of service orchestration includes: configuring updating parameters of a plurality of sub-services corresponding to service arrangement; and updating the processing result of the target sub-service according to the updating parameter of the target sub-service. The method can improve the updating efficiency of the sub-service processing result of the service arrangement.
For ease of understanding, the following first describes an architecture of an online customer service control system provided in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a method for updating a sub-service processing result of service orchestration according to an embodiment of the present disclosure. As shown in fig. 1, the method includes:
s110, configuring updating parameters of a plurality of sub-services corresponding to service arrangement;
in some embodiments, S110 includes:
configuring a first updating parameter for representing whether the sub-service needs to be updated;
and configuring a second updating parameter for representing the target processing result which needs to be updated by the sub-service.
In one example, the first update parameter may be updateFlag, if updateFlag =0 characterizes that the sub-service needs to be updated, and if updateFlag =1 characterizes that the sub-service does not need to be updated.
In some embodiments, configuring a second update parameter characterizing a target processing result that the sub-service needs to update includes: and configuring the number of the target processing result which is required to be updated by the representation sub-service.
And S120, updating the processing result of the target sub-service according to the updating parameter of the target sub-service. And updating the processing result after the execution of the sub-service is finished.
In some embodiments, the S120 includes:
if the first updating parameter of the target sub-service represents that the target sub-service needs to be updated, updating a corresponding processing result according to a second updating parameter of the target sub-service;
and if the first updating parameter of the target sub-service represents that the target sub-service does not need to be updated, not updating the processing result of the target sub-service.
In an example, if the first parameter updateFlag =0 corresponding to a sub-service, the value of the second update parameter updateResult corresponding to the sub-service is continuously read, and if the updateResult =1, the processing result with the number 1 of the sub-service in the data storage is updated. If the first parameter updateFlag =1 corresponding to one sub-service, the processing result of the sub-service is not updated.
According to the method and the device, relevant parameters are configured for the scheduled specified sub-service according to needs, when the service scheduling is executed and the sub-service is executed, the parameters are read and the updating rule is judged, and according to the parameters and the rule, different result data are updated after the sub-service is executed. The problem that the same sub-service is used in different service schedules is effectively solved, and different transaction processing results can be updated according to different scenes.
In one example, the sub-Service names used by the Service orchestration scenario 1 are Service1, service2, and Service3, and the sub-Service names used by the Service orchestration scenario 2 are Service1 and Service2. Then Service1 will generate a processing result 101 in the Service orchestration scenario 1 and generate a processing result 102 in the Service orchestration scenario 2; service2 generates a processing result 201 in the Service deployment scenario 1, and generates a processing result 202 in the Service deployment scenario 2.
The sub-service updating processing result rule is as follows: and formulating an updateFlag parameter rule, and judging which processing result needs to be updated after the current sub-service execution is finished.
1) If updateFlag =0, the sub-service needs to update the transaction result, then judges the value of updateResult, and finds the corresponding data from the data structure according to the value.
2) If updateFlag =1, the subservice does not update the transaction result, nor does it determine the value of updateResult.
Configuring the values of updateFlag and updateResult parameters for the specified sub-service arranged for the service as required, and performing binding configuration on the sub-service through a database table or a parameter configuration file, wherein the mapping relation is set as follows. The data storage of a plurality of different processing results in the sub-service can be realized by using data structures such as map, list and the like, and the data storage needs to be stored according to the sequence number. The sequence number is incremented from 0. The selection may be made to update that processing result.
The update parameters of the plurality of sub-services corresponding to the configuration service arrangement are shown in table 1:
table 1 update parameters table for sub-services
Service name | Whether to update | Update that processing result |
Service1 | 0 | 101 |
Service2 | 0 | 202 |
Service3 | 1 |
The embodiment of the application adds whether to update the processing result updateFlag parameter, which processing result updateResult parameter to update, and the processing result preset rule to update, so that the transaction result can be flexibly updated according to requirements in the service arrangement execution process.
Referring to fig. 2, fig. 2 is a system for updating sub-service processing results of service orchestration according to an embodiment of the present disclosure. As shown in fig. 2, the system includes:
a parameter configuration module 210, configured to configure update parameters of a plurality of sub-services corresponding to the service orchestration;
and the updating module 220 is configured to update the processing result of the target sub-service according to the update parameter of the target sub-service.
In some embodiments, the parameter configuration module comprises:
the first parameter configuration module is used for configuring a first updating parameter for representing whether the sub-service needs to be updated;
and the second parameter configuration module is used for configuring a second updating parameter for representing a target processing result which is required to be updated by the sub-service.
In one example, the first update parameter may be updateFlag, if updateFlag =0 characterizes the sub-service as needing to be updated, and if updateFlag =1 characterizes the sub-service as not needing to be updated.
In some embodiments, the second parameter configuration module is specifically configured to configure a number of a target processing result that characterizes a sub-service and needs to be updated.
In some embodiments, the update unit is specifically configured to:
if the first updating parameter of the target sub-service represents that the target sub-service needs to be updated, updating a corresponding processing result according to a second updating parameter of the target sub-service;
and if the first updating parameter of the target sub-service represents that the target sub-service does not need to be updated, not updating the processing result of the target sub-service.
In an example, if the first parameter updateFlag =0 corresponding to a sub-service, the value of the second update parameter updateResult corresponding to the sub-service is continuously read, and if updateResult =1, the processing result with the number 1 of the sub-service in the data storage is updated.
In practice, the computer-readable storage medium may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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 foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
As shown in fig. 3, an embodiment of the present application provides a schematic structural diagram of a computer device. Fig. 3 shows computer device 12, and computer device 12 is only an example and should not be taken as limiting the scope of use and functionality of embodiments of the present invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described.
The method and the system for updating the sub-service processing result of the service orchestration can be used in the financial field or other fields, for example, can be used in an application scenario of online marketing in the financial field. The other fields are arbitrary fields other than the financial field, for example, the data processing field. The foregoing is merely an example, and does not limit the application field of the method and system for updating sub-service processing results of service orchestration provided by the present invention.
It is noted that, as used herein, the term "include" and its variants are intended to be inclusive, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It is noted that, although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the application. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (10)
1. A method for sub-service process result updating for service orchestration, comprising:
configuring updating parameters of a plurality of sub-services corresponding to service arrangement;
and updating the processing result of the target sub-service according to the updating parameter of the target sub-service.
2. The method of claim 1, wherein the configuring service orchestrates update parameters of corresponding sub-services, comprising:
configuring a first updating parameter for representing whether the sub-service needs to be updated;
and configuring a second updating parameter for representing the target processing result which needs to be updated by the sub-service.
3. The method of claim 2, wherein configuring a second update parameter characterizing a target processing result that the sub-service needs to update comprises:
and configuring the number of the target processing result which is required to be updated by the characterization sub-service.
4. The method according to claim 2, wherein the updating the processing result of the target sub-service according to the updated parameter of the target sub-service comprises:
if the first updating parameter of the target sub-service represents that the target sub-service needs to be updated, updating a corresponding processing result according to a second updating parameter of the target sub-service;
and if the first updating parameter of the target sub-service represents that the target sub-service does not need to be updated, not updating the processing result of the target sub-service.
5. A system for sub-service process result updating for service orchestration, comprising:
the parameter configuration module is used for configuring the updating parameters of the plurality of sub-services corresponding to the service arrangement;
and the updating module is used for updating the processing result of the target sub-service according to the updating parameter of the target sub-service.
6. The system of claim 5, wherein the parameter configuration module comprises:
the first parameter configuration module is used for configuring a first updating parameter for representing whether the sub-service needs to be updated;
and the second parameter configuration module is used for configuring a second updating parameter for representing a target processing result which is required to be updated by the sub-service.
7. The system according to claim 6, wherein the second parameter configuration module is specifically configured to configure a number that represents a target processing result that the sub-service needs to be updated.
8. The system according to claim 6, wherein the updating unit is specifically configured to:
if the first updating parameter of the target sub-service represents that the target sub-service needs to be updated, updating a corresponding processing result according to a second updating parameter of the target sub-service;
and if the first updating parameter of the target sub-service represents that the target sub-service does not need to be updated, not updating the processing result of the target sub-service.
9. A computer device, comprising: memory, processor, and computer program stored on the memory and executable on the processor, the processor implementing a method for sub-service processing result update for service orchestration according to any one of claims 1-4 when executing the computer program.
10. A computer-readable storage medium having stored therein instructions which, when run on a terminal device, cause the terminal device to perform a method for sub-service processing result update for service orchestration according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210867146.0A CN115237931A (en) | 2022-07-22 | 2022-07-22 | Method and system for updating sub-service processing result of service arrangement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210867146.0A CN115237931A (en) | 2022-07-22 | 2022-07-22 | Method and system for updating sub-service processing result of service arrangement |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115237931A true CN115237931A (en) | 2022-10-25 |
Family
ID=83675795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210867146.0A Pending CN115237931A (en) | 2022-07-22 | 2022-07-22 | Method and system for updating sub-service processing result of service arrangement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115237931A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132513A (en) * | 2023-02-24 | 2023-05-16 | 重庆长安汽车股份有限公司 | Method, device, equipment and storage medium for updating parameters of service arrangement |
-
2022
- 2022-07-22 CN CN202210867146.0A patent/CN115237931A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132513A (en) * | 2023-02-24 | 2023-05-16 | 重庆长安汽车股份有限公司 | Method, device, equipment and storage medium for updating parameters of service arrangement |
CN116132513B (en) * | 2023-02-24 | 2024-04-19 | 重庆长安汽车股份有限公司 | Method, device, equipment and storage medium for updating parameters of service arrangement |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107451272B (en) | Information display method, medium, device and computing equipment | |
CN110502519B (en) | Data aggregation method, device, equipment and storage medium | |
CN108933695B (en) | Method and apparatus for processing information | |
CN110555150B (en) | Data monitoring method, device, equipment and storage medium | |
CN111324441A (en) | Operating environment switching method and device, computer equipment and storage medium | |
CN112052082B (en) | Task attribute optimization method, device, server and storage medium | |
CN112016794B (en) | Resource quota management method and device and electronic equipment | |
CN112184005A (en) | Operation task classification method, device, equipment and storage medium | |
CN115237931A (en) | Method and system for updating sub-service processing result of service arrangement | |
CN115795211A (en) | Page display method, device, system, equipment and storage medium | |
CN110675249A (en) | Matching method, device, server and storage medium for network lending | |
CN112363914B (en) | Parallel test resource allocation optimizing method, computing device and storage medium | |
CN111400353A (en) | Rule calculation method, device, equipment and storage medium | |
CN115167785B (en) | Label-based network disk file management method and device, network disk and storage medium | |
CN110070383B (en) | Abnormal user identification method and device based on big data analysis | |
CN111882413B (en) | Batch updating method and device for overdue rules of bills, server and storage medium | |
CN110515954B (en) | Data processing method, device, equipment and storage medium | |
CN112115316B (en) | Box separation method and device, electronic equipment and storage medium | |
CN113760317A (en) | Page display method, device, equipment and storage medium | |
CN110309121B (en) | Log processing method and device, computer readable medium and electronic equipment | |
CN112001787A (en) | User distribution method, device, server and storage medium | |
CN112035159A (en) | Configuration method, device, equipment and storage medium of audit model | |
CN112085426A (en) | Order issuing control method and device, storage medium and electronic equipment | |
CN113298636B (en) | Risk control method, device and system based on simulation resource application | |
CN115373819A (en) | Task batch processing method, system, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |