Method and apparatus for processing service information, computer device and storage medium
By automatically scheduling service resources for the next event stage, the automatic advancement of business lifecycle events is achieved, solving the problem of low efficiency in traditional business information processing and reducing labor costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INDUSTRIAL AND COMMERCIAL BANK OF CHINA
- Filing Date
- 2022-01-26
- Publication Date
- 2026-06-26
Smart Images

Figure CN114416375B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information processing technology, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for processing business information. Background Technology
[0002] In the process of processing business information, the entire process from the occurrence to the end of a business transaction is typically referred to as a business lifecycle event. For example, in the banking system, a lifecycle event specifically refers to a series of transaction behaviors that occur during the lifecycle of a business product, from the occurrence of the transaction to its processing by various departments, and the transaction itself. It encompasses the entire process from the transaction's inception to its termination. A business lifecycle event consists of multiple event stages. Each event stage relies on its own independent functional module to execute the corresponding business processing.
[0003] In traditional technologies, in order to process multiple event stages in a business lifecycle event sequentially, the traditional method of processing business information requires manual triggering to start the business processing of the next event stage's functional module after the previous event stage's functional module has been completed, until all event stages in the business lifecycle event have been completed and the final business processing result is obtained.
[0004] It is easy to see that using traditional methods for processing business information requires a lot of manpower and suffers from low processing efficiency. Summary of the Invention
[0005] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for processing business information that can improve the efficiency of business information processing, in response to the above-mentioned technical problems.
[0006] Firstly, this application provides a method for processing business information. The method includes:
[0007] Obtain business information for pending transactions;
[0008] If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information according to the current service resource, and obtain the business processing result;
[0009] Based on the process migration information corresponding to the current event process identifier, determine the next event process identifier, wherein the current event process identifier corresponds to the current event process instance;
[0010] Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result;
[0011] Return to the step of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0012] In one embodiment, the method further includes:
[0013] The business event identifier is determined based on the event element information in the business information;
[0014] Obtain the first event stage identifier from among multiple event stage identifiers associated with the business event identifier;
[0015] Based on the process element information in the business information, construct the first event process instance corresponding to the first event process identifier.
[0016] In one embodiment, the method further includes:
[0017] Based on the event element information, construct the business event instance corresponding to the business event identifier;
[0018] Based on the business event identifier determined by the business event instance, obtain the process migration information associated with the business event identifier;
[0019] Based on the matching results of the current event stage identifier and multiple event stage identifiers associated with the business event identifier, the stage migration information corresponding to the current event stage identifier is determined.
[0020] In one embodiment, scheduling the current service resource corresponding to the current event stage instance includes:
[0021] Obtain the current event stage identifier corresponding to the current event stage instance;
[0022] Based on the service scheduler associated with the current event stage identifier, construct the current service scheduler instance corresponding to the current event stage identifier;
[0023] Based on the current service scheduling instance, schedule the current service resources corresponding to the current event stage instance.
[0024] In one embodiment, obtaining the next event stage instance corresponding to the next event stage identifier includes:
[0025] Based on the process element information in the business information, construct the next event process instance corresponding to the next event process identifier.
[0026] In one embodiment, the method further includes:
[0027] After the business processing corresponding to the current event stage instance is completed, update the processing status of the current event stage instance to the completed status;
[0028] The step of determining the next event stage identifier based on the stage transition information corresponding to the current event stage identifier includes:
[0029] If the processing status corresponding to the current event stage instance is detected to be completed, the next event stage identifier is determined based on the stage migration information corresponding to the current event stage identifier.
[0030] Secondly, this application also provides a business information processing apparatus. The apparatus includes:
[0031] The information acquisition module is used to acquire business information for the business to be processed.
[0032] The business processing module is used to schedule the current service resources corresponding to the current event stage instance when the current event stage instance is the first event stage instance, perform business processing on the business information according to the current service resources, and obtain the business processing result.
[0033] The identifier determination module is used to determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, wherein the current event stage identifier corresponds to the current event stage instance;
[0034] The business processing module is further configured to obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result.
[0035] The result determination module is used to return the step of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0036] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0037] Obtain business information for pending transactions;
[0038] If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information according to the current service resource, and obtain the business processing result;
[0039] Based on the process migration information corresponding to the current event process identifier, determine the next event process identifier, wherein the current event process identifier corresponds to the current event process instance;
[0040] Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result;
[0041] Return to the step of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0042] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0043] Obtain business information for pending transactions;
[0044] If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information according to the current service resource, and obtain the business processing result;
[0045] Based on the process migration information corresponding to the current event process identifier, determine the next event process identifier, wherein the current event process identifier corresponds to the current event process instance;
[0046] Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result;
[0047] Return to the step of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0048] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0049] Obtain business information for pending transactions;
[0050] If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information according to the current service resource, and obtain the business processing result;
[0051] Based on the process migration information corresponding to the current event process identifier, determine the next event process identifier, wherein the current event process identifier corresponds to the current event process instance;
[0052] Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result;
[0053] Return to the step of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0054] The aforementioned methods, apparatus, computer equipment, storage media, and computer program products for processing business information, for each event stage in the business lifecycle, utilize the corresponding event stage instance to schedule relevant service resources, and perform business processing on the business information based on these service resources to obtain the business processing result for that event stage. Furthermore, by obtaining the stage migration information corresponding to the current event stage identifier, the next event stage identifier is determined, and the corresponding business processing process is executed based on the next event stage instance corresponding to the next event stage identifier. This achieves the goal of automatically triggering the business processing of the next event node, enabling the business lifecycle events to proceed automatically without human intervention, reducing labor costs, and thus improving the efficiency of business information processing. Attached Figure Description
[0055] Figure 1 This is a flowchart illustrating a method for processing business information in one embodiment;
[0056] Figure 2 This is an application environment diagram of a business information processing method in one embodiment;
[0057] Figure 3 This is a flowchart illustrating a method for processing business information in another embodiment;
[0058] Figure 4 This is a structural block diagram of a business information processing device in one embodiment;
[0059] Figure 5This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0061] In one embodiment, such as Figure 1 As shown, a method for processing business information is provided. This embodiment illustrates the method applied to a server, but it is understood that the method can also be applied to a terminal, or to a system including both a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0062] Step S102: Obtain the business information of the business to be processed.
[0063] In this context, "business operations" refers to the transactions that need to be handled in various industries. Business operations include product transactions, remittance transactions, and so on. Business operations can be banking operations, hospital operations, and so on.
[0064] Specifically, the server obtains the business information of the transactions to be processed. Optionally, the user can input the business information of the transactions to be processed through a terminal and upload it to the server. Taking product transaction business as an example, the business information includes transaction product information, transaction amount, transaction user information, etc.
[0065] Step S104: If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information according to the current service resource, and obtain the business processing result.
[0066] The entire process from the start to the end of a business transaction is called a business lifecycle event (hereinafter referred to as an "event"). For example, the transaction preprocessing event after transaction access. Typically, an event includes multiple event stages. An event stage can be understood as an internal processing stage within each event. For example, the transaction preprocessing event includes the transaction element check stage, the transaction net amount identification stage, the transaction route mapping relationship check stage, and the transaction route matching stage. The execution order of each event stage is pre-defined.
[0067] Specifically, taking a transaction preprocessing event as an example, the server first obtains the identifier of the first event stage in the transaction preprocessing event, namely the transaction element inspection stage identifier, and uses it as the current event stage identifier (i.e., the event stage identifier being processed by the server). There is a one-to-one correspondence between event stage identifiers and event stages. Then, based on the business information, the server constructs the current event stage instance corresponding to the current event stage identifier, namely the transaction element inspection stage instance. Next, the server schedules the current service resources corresponding to the transaction element inspection stage instance. These service resources refer to the resources used for business processing corresponding to the event stage, including computing resources, storage resources, etc. Finally, the server performs business processing on the business information based on these current service resources to obtain the business processing result.
[0068] Step S106: Determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier.
[0069] The current event stage identifier corresponds to the current event stage instance. A pre-established correspondence is established between the event stage identifier and the stage migration information.
[0070] Specifically, the server obtains the current event stage identifier corresponding to the current event stage instance, and determines the next event stage identifier based on the stage migration information corresponding to this current event stage identifier. Optionally, the stage migration information includes stage migration relationships and stage migration rules. Stage migration relationships indicate the path taken by an event stage to enter the next event stage within an event. Stage migration relationships can be sequential execution, parallel execution, etc. Continuing the previous example, after the transaction element inspection stage is completed, the transaction route mapping relationship inspection stage is executed sequentially first, followed by the transaction route matching stage. Alternatively, after the transaction element inspection stage is completed, the transaction net amount identification stage and the transaction route mapping relationship inspection stage can be executed simultaneously in parallel. Stage migration rules indicate the rules by which two event stages migrate. Continuing the previous example, after the transaction element inspection stage is completed, the stage only migrates sequentially to the transaction net amount identification stage if the transaction element inspection result is successful.
[0071] Step S108: Obtain the next event stage instance corresponding to the next event stage identifier, schedule the next service resource corresponding to the next event stage instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result.
[0072] Specifically, it should be noted that when the server obtains the next event stage instance corresponding to the next event stage identifier, it indicates that the server is currently processing the business processing of that next event stage instance. At this time, the "next event stage instance" should be understood as the "current event stage instance," while the previously processed "current event stage instance" should be understood as the "previous event stage instance." The use of "current" and "next" here is merely to distinguish between different event stages. Based on business information, the server constructs the next event stage instance corresponding to the next event stage identifier, such as a transaction net amount identification instance. Then, it schedules the next service resource corresponding to the next event stage instance and performs business processing on the business processing result based on the next service resource, such as the transaction net amount identification process, to obtain a new business processing result. It can be understood that the next event stage instance is a further processing of the business processing result obtained from the previous event stage instance. Of course, the processing methods for the two event stages can be the same or different.
[0073] Optionally, the server constructs a next event step instance corresponding to the next event step identifier based on the step element information in the business information.
[0074] Step S110: Return to the execution of the step to determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0075] Specifically, the server determines whether all event stages of the event have been completed. If not, it returns to the previous step, executing the steps to determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained, such as the business processing result obtained after all event stages have been completed. This achieves automatic event progression.
[0076] Continuing with the previous example, after the business processing of the transaction element inspection stage is completed, two subsequent parallel stages are retrieved based on the stage migration relationship: the transaction net amount identification stage and the transaction confluence mapping relationship inspection stage. Based on the stage migration rules of these two stages, it is determined whether the next stage can be started. If the determination result is yes, the transaction net amount identification and transaction confluence mapping relationship inspection stages are instantiated respectively, and then the processing is automatically advanced until all event stages are completed.
[0077] In the aforementioned method for processing business information, for each event stage in the business lifecycle, the corresponding event stage instance is used to schedule relevant service resources, and business information is processed based on these service resources to obtain the business processing result for that event stage. Furthermore, by obtaining the stage migration information corresponding to the current event stage identifier, the next event stage identifier is determined, and the corresponding business processing process is executed based on the next event stage instance. This achieves the goal of automatically triggering the business processing of the next event node, allowing business lifecycle events to proceed automatically without human intervention, reducing labor costs, and thus improving the efficiency of business information processing.
[0078] In one embodiment, the method involves the specific construction process of the first event stage instance. Building upon the above embodiment, the method further includes the following steps:
[0079] Step S122: Determine the business event identifier based on the event element information in the business information;
[0080] Step S124: Obtain the first event stage identifier among multiple event stage identifiers associated with the business event identifier;
[0081] Step S126: Based on the process element information in the business information, construct the first event process instance corresponding to the first event process identifier.
[0082] Event element information refers to element information related to events in the business lifecycle. Event element information may include elements such as business name and organization.
[0083] Among them, the business event identifier is used to uniquely identify the lifecycle events of a business.
[0084] Specifically, the server can pre-define a mapping relationship between event element information and business event identifiers. The server extracts event element information from the business information and determines the business event identifier based on this mapping relationship. Since a lifecycle event includes multiple event stages, one business event identifier is associated with multiple event stage identifiers. The server searches for the first event stage identifier among these multiple event stage identifiers. This first event stage identifier refers to the identifier of the first event stage in the event that requires business processing. Finally, the server extracts the stage element information from the business information, and based on this stage element information and the pre-defined attribute information of the first event stage corresponding to the first event stage identifier, instantiates the first event stage corresponding to the first event stage identifier, creating an instance of the first event stage in the event, thus obtaining the first event stage instance.
[0085] In this embodiment, the business event identifier is determined by the event element information in the business information, and then the first event step identifier among multiple event step identifiers associated with the business event identifier is determined and the first event step instance is constructed, so that the first event step instance can be accurately constructed.
[0086] In one embodiment, the method involves a specific process of determining process migration information based on event element information. Building upon the above embodiment, the method further includes the following steps:
[0087] Step S132: Based on the event element information, construct the business event instance corresponding to the business event identifier;
[0088] Step S134: Based on the business event identifier determined by the business event instance, obtain the process migration information associated with the business event identifier;
[0089] Step S136: Based on the matching results of multiple event stage identifiers associated with the current event stage identifier and the business event identifier, determine the stage migration information corresponding to the current event stage identifier.
[0090] Specifically, the server instantiates the business event corresponding to the business event identifier based on the event element information and the attribute information of the preset business event corresponding to the business event identifier, thus obtaining a business event instance. For example, for each incoming transaction, an instantiated event object for that transaction is generated, i.e., a transaction event instance. Then, the server obtains the process migration information associated with the business event identifier based on the business event identifier determined by the business event instance. Finally, the server matches the current event process identifier with multiple event process identifiers associated with the business event identifier, and determines the process migration information corresponding to the successfully matched event process identifier as the process migration information corresponding to the current event process identifier.
[0091] In this embodiment, by constructing a business event instance corresponding to the business event identifier to obtain the process migration information corresponding to the current event process identifier, the accuracy of the obtained process migration information is improved.
[0092] In one embodiment, one possible implementation of step S104, "scheduling the current service resources corresponding to the current event stage instance," is as follows: Based on the above embodiment, this method can be implemented through the following steps:
[0093] Step S1042: Obtain the current event stage identifier corresponding to the current event stage instance;
[0094] Step S1044: Based on the service scheduler associated with the current event stage identifier, construct the current service scheduler instance corresponding to the current event stage identifier;
[0095] Step S1046: Based on the current service scheduling instance, schedule the current service resources corresponding to the current event stage instance.
[0096] The event stage identifier and the service scheduler are pre-associated. The service scheduler is used to schedule the corresponding business processing services.
[0097] Specifically, the server obtains the current event stage identifier corresponding to the current event stage instance, constructs the current service scheduling instance corresponding to the current event stage identifier based on the service scheduler associated with the current event stage identifier, and finally schedules the current service resources corresponding to the current event stage instance based on the current service scheduling instance.
[0098] In this embodiment, by constructing the current service scheduling instance corresponding to the current event stage identifier, the corresponding service resources can be accurately scheduled, thereby improving the accuracy of subsequent business processing.
[0099] In one embodiment, the method further includes the following steps:
[0100] Step S142: After the business processing corresponding to the current event stage instance is completed, update the processing status corresponding to the current event stage instance to the completed status.
[0101] Furthermore, step S116 can be implemented through the following steps:
[0102] Step S1162: If the processing status corresponding to the current event stage instance is detected to be completed, determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier.
[0103] Specifically, while the business process corresponding to the current event stage instance is being executed, the server records the processing status of the current event stage instance as "processing". After the business process corresponding to the current event stage instance is completed, the server updates the processing status of the current event stage instance to "completed". If the server detects that the processing status of the current event stage instance is "completed", it determines the next event stage identifier based on the stage migration information corresponding to the current event stage identifier. Optionally, the server performs logical judgments on the stage migration rules based on the stage migration relationship and rules corresponding to the current event stage identifier, and selects the next event stage identifier based on the judgment result.
[0104] In this embodiment, determining whether to trigger the next event processing step based on the processing status ensures the accurate advancement of event processing.
[0105] The following describes an embodiment of this application using a specific application scenario.
[0106] This embodiment proposes a simple event processing device for the banking business lifecycle based on an automatic advancement mechanism. The device includes an event definition device 202, an event instantiation device 204, an event scheduling device 206, and an event processing device 208.
[0107] The event definition device 202 is used to define lifecycle events and event stages. The event instantiation device 204 is used to instantiate and store each event processing unit based on the events and event stages of each transaction after it is accessed. The event scheduling device 206 is used to schedule lifecycle events, routing the instantiated events to different event processing services. The event processing device 208 is used to execute and process the instantiated events and feed back the processing results to the event scheduling device 206.
[0108] Event definition device 202
[0109] The event definition device 202 includes an event definition unit, an event link definition unit, a link migration relationship definition unit, and a link migration rule definition unit.
[0110] Specifically, the event definition unit defines a business lifecycle event for each complete processing step in the business lifecycle, such as the transaction preprocessing event after transaction access.
[0111] Event Component Definition Unit: Defines the internal processing components of each event. An event can include multiple components. For example, a transaction preprocessing event may include components such as transaction element checking, transaction net amount identification, transaction route mapping relationship checking, and transaction route matching. Each component is defined as an entity in this unit. The default service scheduler for each component is also defined.
[0112] The unit defining the migration relationship between multiple stages of an event defines the migration relationship between stages, i.e., the path taken from one stage to the next. The migration relationship can be sequential or parallel. For example, after checking the transaction elements, the stages of checking the transaction route mapping relationship and matching the transaction route can be performed sequentially; alternatively, after checking the transaction elements, the stages of identifying the net transaction amount and checking the transaction route mapping relationship can be performed in parallel.
[0113] The step migration rule definition unit defines the rules for migration between two steps. For example, if the transaction element check is completed and the transaction element event returns a success result, then migration to the transaction net amount recognition step is allowed.
[0114] Event instantiation device 204
[0115] The event instantiation device 204 includes an event instantiation unit, an event link instantiation unit, and an event scheduling instantiation unit.
[0116] Specifically, the event instantiation unit is: based on the event definition, for each incoming transaction, an instantiated event object is generated for that transaction, i.e., a business event instance.
[0117] Event segment instantiation unit: Based on the event segment definition, for each transaction's instantiation event, an instantiation object of each segment in the event is generated, that is, an event segment instance.
[0118] Event scheduling instantiation unit: Based on the instantiated object of the event stage, and combined with the service scheduler defined on the event stage, it generates an instantiated object of event scheduling, i.e., a service scheduling instance. This object is mainly used by the event scheduling device 206 for scheduling, and records the processing status after scheduling is completed to facilitate the advancement of subsequent stages.
[0119] Event scheduling device 206
[0120] The event scheduling device 206 includes an instantiated event scheduling selection unit, an event scheduling allocation unit, and an event automatic advancement unit.
[0121] Specifically, the instantiation event scheduling selection unit consists of a distributed multi-threaded scheduling selection service. After the scheduling selection service starts, it periodically polls the scheduling event instantiation device 204, retrieves the event scheduling instantiation object, selects the instantiation event to be scheduled, and obtains the service scheduling instance that can execute the event.
[0122] Event scheduling and allocation unit: Based on the instantiated event and service scheduling instance selected by the instantiated event scheduling and selection unit, it schedules the corresponding service resources of the event processing device and executes the business logic processing of the corresponding event.
[0123] Automatic Event Advancement Unit: After the service scheduling of the previous event stage is completed, the event scheduling device 206 calls the event definition device 202 to retrieve the stage transition relationship and stage transition rules of the event, executes the logical judgment of the stage transition rules, and selects the next event stage based on the result. Then, it calls the event instantiation device 204 to instantiate the next event stage. This process recursively calls all processing stages of the event to achieve automatic event advancement.
[0124] Event handling device 208
[0125] The event handling device 208 includes an instantiated event handling unit and an event handling result feedback unit.
[0126] Specifically, the instantiation event handling unit executes the corresponding service and performs business logic processing based on the incoming business information and instantiation event information.
[0127] Event processing result feedback unit: After completing the processing of the current instantiated event, it encapsulates the state and context of the event process and sends it back to the event scheduling device 206 for further processing.
[0128] Based on the above-mentioned device, the automatic processing of lifecycle events in banking business can be achieved. Specifically, the processing flow of the business information processing method is as follows:
[0129] Step S301: Obtain business information elements.
[0130] Specifically, information elements are extracted from business information (such as transaction information) and used as the data source to drive the event processing device.
[0131] Step S302: Instantiate the business event.
[0132] Specifically, based on business information elements, the event instantiation unit in the event instantiation device is invoked to generate the event for the instantiation of the transaction. For example, a mapping relationship between key business information elements (information elements) and corresponding events is preset (e.g., product + institution + keyword TRADE --> mapped to a specific transaction processing event). In this way, the event to be triggered can be found through the business information elements, and then the event is instantiated based on the business information elements according to the event definition.
[0133] Step S303: Instantiate the event handler.
[0134] Specifically, based on business information elements and business events, an instantiated object of the transaction is generated for the first processing stage in the business event.
[0135] Step S304: Execute event scheduling instantiation.
[0136] Specifically, based on the instantiated event stage, the service that handles the event stage is located, and an event scheduling instantiated object is generated.
[0137] Step S305, event scheduling and allocation.
[0138] Specifically, the event scheduling device polls the instantiated events to be scheduled and assigns them to the corresponding services for processing.
[0139] Step S306: Instantiate the event handler.
[0140] Specifically, it completes the business logic processing for instantiated events.
[0141] Step S307: The event proceeds automatically.
[0142] Specifically, the event automatic advancement unit of the event scheduling device advances the current event to the next processing stage.
[0143] Step S308: Event phase end judgment.
[0144] Specifically, if the current event stage has not yet ended, proceed to step S303 to continue processing. If all stages of the current event have been completed, the processing of the current business event is finished.
[0145] This embodiment proposes an automated advancement mechanism-based banking business lifecycle event processing device, which improves upon commonly used industry-standard lifecycle event processing solutions. This device can adapt to business event processing across different product lines and business scenarios within banking systems, and also guides the transformation and decoupling of banking system architecture. The device can provide standardized and unified definition and centralized management of business lifecycle events, and fully leverage its automated advancement function in scheduling different lifecycle events, effectively improving event scheduling capabilities and processing efficiency. With a high degree of abstraction and strong universality, this device can be widely applied in banking systems with complex business scenarios and long business process chains.
[0146] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0147] Based on the same inventive concept, this application also provides a business information processing apparatus for implementing the above-described business information processing method. The solution provided by this apparatus is similar to the implementation scheme described in the above-described method; therefore, the specific limitations in one or more business information processing apparatus embodiments provided below can be found in the limitations of the business information processing method described above, and will not be repeated here.
[0148] In one embodiment, such as Figure 4 As shown, a business information processing device is provided, including: an information acquisition module 402, a business processing module 404, an identifier determination module 406, and a result determination module 408, wherein:
[0149] Information acquisition module 402 is used to acquire business information of the business to be processed;
[0150] The business processing module 404 is used to schedule the current service resources corresponding to the current event stage instance when the current event stage instance is the first event stage instance, perform business processing on the business information according to the current service resources, and obtain the business processing result.
[0151] The identifier determination module 406 is used to determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, wherein the current event stage identifier corresponds to the current event stage instance;
[0152] The business processing module 404 is also used to obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result.
[0153] The result determination module 408 is used to return the steps of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0154] In the aforementioned business information processing device, for each event stage in the business lifecycle event, the corresponding event stage instance is used to schedule relevant service resources, and business information is processed based on these service resources to obtain the business processing result for that event stage. Furthermore, by obtaining the stage migration information corresponding to the current event stage identifier, the next event stage identifier is determined, and the corresponding business processing process is executed based on the next event stage instance corresponding to the next event stage identifier. This achieves the goal of automatically triggering the business processing of the next event node, enabling the business lifecycle event to proceed automatically without human intervention, reducing labor costs, and thus improving the processing efficiency of business information.
[0155] In one embodiment, the device further includes:
[0156] The instance construction module is used to determine the business event identifier based on the event element information in the business information; obtain the first event stage identifier among multiple event stage identifiers associated with the business event identifier; and construct the first event stage instance corresponding to the first event stage identifier based on the stage element information in the business information.
[0157] In one embodiment, the device further includes:
[0158] The information determination module is used to construct a business event instance corresponding to a business event identifier based on event element information; obtain the process migration information associated with the business event identifier based on the business event identifier determined from the business event instance; and determine the process migration information corresponding to the current event process identifier based on the matching results of the current event process identifier and multiple event process identifiers associated with the business event identifier.
[0159] In one embodiment, the business processing module 404 is specifically used to obtain the current event stage identifier corresponding to the current event stage instance; construct the current service scheduling instance corresponding to the current event stage identifier based on the service scheduler associated with the current event stage identifier; and schedule the current service resource corresponding to the current event stage instance based on the current service scheduling instance.
[0160] In one embodiment, the business processing module 404 is specifically used to construct a next event step instance corresponding to the next event step identifier based on the step element information in the business information.
[0161] In one embodiment, the identifier determination module 406 is specifically used to update the processing status of the current event stage instance to the completed state after the business processing corresponding to the current event stage instance is completed; and when the processing status corresponding to the current event stage instance is detected to be completed, determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier.
[0162] Each module in the aforementioned business information processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0163] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for processing business information.
[0164] Those skilled in the art will understand that Figure 5The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0165] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0166] Obtain business information for pending transactions;
[0167] If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information based on the current service resource, and obtain the business processing result;
[0168] Based on the process migration information corresponding to the current event process identifier, determine the next event process identifier, where the current event process identifier corresponds to the current event process instance;
[0169] Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, perform business processing on the business processing result based on the next service resource, and obtain a new business processing result;
[0170] Return to the execution and determine the next event stage based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0171] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0172] Based on the event element information in the business information, determine the business event identifier; obtain the first event stage identifier among multiple event stage identifiers associated with the business event identifier; and construct the first event stage instance corresponding to the first event stage identifier based on the stage element information in the business information.
[0173] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0174] Based on the event element information, construct the business event instance corresponding to the business event identifier; based on the business event identifier determined by the business event instance, obtain the process migration information associated with the business event identifier; based on the matching results of the current event process identifier and multiple event process identifiers associated with the business event identifier, determine the process migration information corresponding to the current event process identifier.
[0175] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0176] Obtain the current event stage identifier corresponding to the current event stage instance; construct the current service scheduling instance corresponding to the current event stage identifier based on the service scheduler associated with the current event stage identifier; schedule the current service resource corresponding to the current event stage instance based on the current service scheduling instance.
[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0178] Based on the process element information in the business information, construct the next event process instance corresponding to the next event process identifier.
[0179] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0180] After the business processing corresponding to the current event stage instance is completed, update the processing status of the current event stage instance to the completed status; if the processing status corresponding to the current event stage instance is detected to be completed, determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier.
[0181] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0182] Obtain business information for pending transactions;
[0183] If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information based on the current service resource, and obtain the business processing result;
[0184] Based on the process migration information corresponding to the current event process identifier, determine the next event process identifier, where the current event process identifier corresponds to the current event process instance;
[0185] Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, perform business processing on the business processing result based on the next service resource, and obtain a new business processing result;
[0186] Return to the execution and determine the next event stage based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0187] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0188] Based on the event element information in the business information, determine the business event identifier; obtain the first event stage identifier among multiple event stage identifiers associated with the business event identifier; and construct the first event stage instance corresponding to the first event stage identifier based on the stage element information in the business information.
[0189] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0190] Based on the event element information, construct the business event instance corresponding to the business event identifier; based on the business event identifier determined by the business event instance, obtain the process migration information associated with the business event identifier; based on the matching results of the current event process identifier and multiple event process identifiers associated with the business event identifier, determine the process migration information corresponding to the current event process identifier.
[0191] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0192] Obtain the current event stage identifier corresponding to the current event stage instance; construct the current service scheduling instance corresponding to the current event stage identifier based on the service scheduler associated with the current event stage identifier; schedule the current service resource corresponding to the current event stage instance based on the current service scheduling instance.
[0193] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0194] Based on the process element information in the business information, construct the next event process instance corresponding to the next event process identifier.
[0195] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0196] After the business processing corresponding to the current event stage instance is completed, update the processing status of the current event stage instance to the completed status; if the processing status corresponding to the current event stage instance is detected to be completed, determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier.
[0197] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0198] Obtain business information for pending transactions;
[0199] If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information based on the current service resource, and obtain the business processing result;
[0200] Based on the process migration information corresponding to the current event process identifier, determine the next event process identifier, where the current event process identifier corresponds to the current event process instance;
[0201] Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, perform business processing on the business processing result based on the next service resource, and obtain a new business processing result;
[0202] Return to the execution and determine the next event stage based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
[0203] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0204] Based on the event element information in the business information, determine the business event identifier; obtain the first event stage identifier among multiple event stage identifiers associated with the business event identifier; and construct the first event stage instance corresponding to the first event stage identifier based on the stage element information in the business information.
[0205] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0206] Based on the event element information, construct the business event instance corresponding to the business event identifier; based on the business event identifier determined by the business event instance, obtain the process migration information associated with the business event identifier; based on the matching results of the current event process identifier and multiple event process identifiers associated with the business event identifier, determine the process migration information corresponding to the current event process identifier.
[0207] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0208] Obtain the current event stage identifier corresponding to the current event stage instance; construct the current service scheduling instance corresponding to the current event stage identifier based on the service scheduler associated with the current event stage identifier; schedule the current service resource corresponding to the current event stage instance based on the current service scheduling instance.
[0209] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0210] Based on the process element information in the business information, construct the next event process instance corresponding to the next event process identifier.
[0211] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0212] After the business processing corresponding to the current event stage instance is completed, update the processing status of the current event stage instance to the completed status; if the processing status corresponding to the current event stage instance is detected to be completed, determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier.
[0213] The business information processing method and apparatus provided in this application can be used in the financial field in the scenario of banking business product transactions, and can also be used in any field other than the financial field, such as the home appliance field, the industrial equipment field, etc. This application does not limit the application field of the business information processing method and apparatus.
[0214] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0215] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0216] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0217] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for processing business information, characterized in that, The method includes: Obtain business information for pending transactions; The business event identifier is determined based on the event element information in the business information; Obtain the first event stage identifier from among multiple event stage identifiers associated with the business event identifier; Based on the process element information in the business information, construct the first event process instance corresponding to the first event process identifier; If the current event stage instance is the first event stage instance, schedule the current service resource corresponding to the current event stage instance, perform business processing on the business information according to the current service resource, and obtain the business processing result; After the business processing corresponding to the current event stage instance is completed, update the processing status of the current event stage instance to the completed status; If the processing status corresponding to the current event stage instance is detected to be completed, the next event stage identifier is determined according to the stage migration information corresponding to the current event stage identifier. The current event stage identifier corresponds to the current event stage instance. The stage migration information includes stage migration relationships and stage migration rules. Obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result; Return to the step of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained.
2. The method according to claim 1, characterized in that, The method further includes: Based on the event element information, construct the business event instance corresponding to the business event identifier; Based on the business event identifier determined by the business event instance, obtain the process migration information associated with the business event identifier; Based on the matching results of the current event stage identifier and multiple event stage identifiers associated with the business event identifier, the stage migration information corresponding to the current event stage identifier is determined.
3. The method according to claim 1, characterized in that, The scheduling of the current service resources corresponding to the current event stage instance includes: Obtain the current event stage identifier corresponding to the current event stage instance; Based on the service scheduler associated with the current event stage identifier, construct the current service scheduler instance corresponding to the current event stage identifier; Based on the current service scheduling instance, schedule the current service resources corresponding to the current event stage instance.
4. The method according to claim 1, characterized in that, The step of obtaining the next event step instance corresponding to the next event step identifier includes: Based on the process element information in the business information, construct the next event process instance corresponding to the next event process identifier.
5. A business information processing device, characterized in that, The device includes: The information acquisition module is used to acquire business information for the business to be processed. The business processing module is used to schedule the current service resources corresponding to the current event stage instance when the current event stage instance is the first event stage instance, perform business processing on the business information according to the current service resources, and obtain the business processing result. The identifier determination module is used to determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, wherein the current event stage identifier corresponds to the current event stage instance; the stage migration information includes stage migration relationships and stage migration rules; The business processing module is further configured to obtain the next event step instance corresponding to the next event step identifier, schedule the next service resource corresponding to the next event step instance, and perform business processing on the business processing result according to the next service resource to obtain a new business processing result. The result determination module is used to return the step of determining the next event stage identifier based on the stage migration information corresponding to the current event stage identifier, until the final business processing result of the pending business is obtained; The instance construction module is used to determine the business event identifier based on the event element information in the business information; obtain the first event stage identifier among multiple event stage identifiers associated with the business event identifier; and construct the first event stage instance corresponding to the first event stage identifier based on the stage element information in the business information. The identifier determination module is specifically used to update the processing status of the current event stage instance to a completed state after the business processing corresponding to the current event stage instance is completed; and when the processing status of the current event stage instance is detected to be completed, to determine the next event stage identifier based on the stage migration information corresponding to the current event stage identifier.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.