Data disclosure method and apparatus
By receiving data disclosure requests, generating disclosure tasks, and calling target channels to execute the tasks, the problems of security and channel isolation in financial data disclosure are solved, and secure and efficient data transmission is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
- Filing Date
- 2021-11-09
- Publication Date
- 2026-04-21
AI Technical Summary
Existing financial data disclosure solutions lack security, are difficult to effectively prevent data leaks, and are difficult to adapt to the channel isolation requirements of different environments.
A data disclosure method and apparatus are provided, which receive data disclosure requests, generate disclosure tasks, and invoke target channels to execute disclosure tasks according to the configuration information of the target channels, thereby achieving channel isolation and secure data transmission.
It enables secure data disclosure in different environments, improves the security and efficiency of data transmission, and ensures channel isolation and accurate data transmission.
Smart Images

Figure CN114021169B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computer technology, and in particular to a data disclosure method. One or more embodiments of this specification also relate to a data disclosure apparatus, a computing device, and a computer-readable storage medium. Background Technology
[0002] With the continuous development of computer technology, more and more computer technologies are being applied in the financial field, and the traditional financial sector is gradually transforming into fintech. The financial sector has high requirements for security and real-time performance, thus placing higher demands on computer technology.
[0003] In the financial sector, financial institutions, bond issuers, and other disclosing entities have an obligation to investors, requiring them to disclose data that affects investor decisions and the entity's operations. Because data disclosed to investors often involves user privacy, regulatory agencies place great emphasis on the security of data disclosure and must prevent data breaches. Therefore, more secure data disclosure solutions are needed. Summary of the Invention
[0004] In view of this, embodiments of this specification provide a data disclosure method. One or more embodiments of this specification also relate to a data disclosure apparatus, a computing device, and a computer-readable storage medium, to address technical deficiencies in the prior art.
[0005] According to a first aspect of the embodiments of this specification, a data disclosure method is provided, comprising:
[0006] Receive a data disclosure request, wherein the data disclosure request includes a specified disclosure strategy and data to be disclosed, and the specified disclosure strategy includes configuration information of the target channel for disclosing the data to be disclosed;
[0007] Generate disclosure tasks for the data to be disclosed based on the specified disclosure strategy;
[0008] Based on the configuration information, the target channel is invoked to perform the disclosure task.
[0009] Optionally, the data disclosure request may also include environmental information associated with the target channels, where different channels are pre-deployed in different environments.
[0010] Optionally, the step of generating a disclosure task for the data to be disclosed, based on a specified disclosure strategy, includes:
[0011] Create a disclosure task;
[0012] The configuration information of the target channel and the data to be disclosed are associated with the disclosure task to obtain the disclosure task for the data to be disclosed.
[0013] Optionally, the configuration information of the target channel includes: the identification information of the target channel, the state machine transition information on the target channel, and the topology information of the target channel.
[0014] Optionally, the steps for invoking the target channel to perform the disclosure task, based on the configuration information, include:
[0015] Based on the configuration information, the target channel is invoked, and the data to be disclosed is disclosed to the target device through the target channel.
[0016] Optionally, after invoking the target channel to perform the disclosure task according to the configuration information, the process may also include:
[0017] If the target channel's interface is a synchronous interface, the response information from the target device is received through the synchronous interface;
[0018] Based on the response information, determine the execution results of the disclosure task;
[0019] Update the status of the disclosure task based on the execution results.
[0020] Optionally, after the step of invoking the target channel to perform the disclosure task based on the configuration information, the method further includes:
[0021] If the target channel's interface is asynchronous, trigger the corresponding receipt check task for the target channel periodically and obtain the check results of the receipt check task.
[0022] Based on the inspection results, determine the outcome of the disclosure task.
[0023] Update the status of the disclosure task based on the execution results.
[0024] Optionally, after updating the status of the disclosure task based on the execution result, the method further includes:
[0025] If the disclosure task status is "execution failed", then if the cumulative number of retries for the disclosure task has not reached the preset threshold, return to the execution step according to the configuration information, call the target channel to execute the disclosure task, and increment the cumulative number of retries by 1.
[0026] Optionally, after the step of invoking the target channel to perform the disclosure task based on the configuration information, the method further includes:
[0027] View the status of the disclosure task within the preset time period;
[0028] If the status of the disclosure task cannot be viewed, the disclosure task has timed out.
[0029] According to a second aspect of the embodiments of this specification, a data disclosure apparatus is provided, comprising:
[0030] The request receiving module is configured to receive data disclosure requests, wherein the data disclosure request includes a specified disclosure strategy and data to be disclosed, and the specified disclosure strategy includes configuration information of the target channel for disclosing the data to be disclosed;
[0031] The task generation module is configured to generate disclosure tasks for the data to be disclosed based on a specified disclosure strategy.
[0032] The task invocation module is configured to invoke the target channel to execute the disclosure task based on the configuration information.
[0033] Optionally, the data disclosure request may also include environmental information associated with the target channels, where different channels are pre-deployed in different environments.
[0034] Optionally, the task generation module is further configured to: create a disclosure task; associate the configuration information of the target channel and the data to be disclosed with the disclosure task to obtain a disclosure task for the data to be disclosed.
[0035] Optionally, the configuration information of the target channel includes: the identification information of the target channel, the state machine transition information on the target channel, and the topology information of the target channel.
[0036] Optionally, the task invocation module is further configured to: invoke the target channel according to the configuration information, and disclose the data to be disclosed to the target device through the target channel.
[0037] Optionally, the device further includes:
[0038] The response receiving module is configured to receive response information from the target device through the synchronous interface when the interface of the target channel is a synchronous interface;
[0039] The result determination module is configured to determine the execution result of the disclosure task based on the response information.
[0040] The status update module is configured to update the status of the disclosure task based on the execution result.
[0041] Optionally, the device further includes:
[0042] The task triggering module is configured to periodically trigger the corresponding receipt check task for the target channel when the target channel's interface is an asynchronous interface, and obtain the check result of the receipt check task.
[0043] The results determination module is configured to determine the execution result of the disclosure task based on the inspection results;
[0044] The status update module is configured to update the status of the disclosure task based on the execution result.
[0045] Optionally, the device further includes:
[0046] The retry module is configured to, if the status of the disclosure task is execution failure, return to the execution step of calling the target channel according to the configuration information and executing the disclosure task if the cumulative number of retries for the disclosure task has not reached the preset threshold, and increment the cumulative number of retries by 1.
[0047] Optionally, the device further includes:
[0048] The timeout determination module is configured to check the status of the disclosure task within a preset time period; if the status of the disclosure task cannot be checked, the disclosure task is determined to have timed out.
[0049] According to a third aspect of the embodiments of this specification, a computing device is provided, comprising:
[0050] Memory and processor;
[0051] Memory is used to store executable instructions for a computer, and the processor is used to execute those instructions.
[0052] Receive data disclosure requests, wherein the data disclosure requests include a specified disclosure strategy and the data to be disclosed, and the specified disclosure strategy includes the configuration information of the target channel for disclosing the data to be disclosed;
[0053] Generate disclosure tasks for the data to be disclosed based on the specified disclosure strategy;
[0054] Based on the configuration information, the target channel is invoked to perform the disclosure task.
[0055] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of any one of the data disclosure methods described herein.
[0056] In one embodiment of this specification, a data disclosure request including a specified disclosure strategy and the data to be disclosed is received. Based on the specified disclosure strategy, a disclosure task for the data to be disclosed is generated. According to the configuration information of the target channel for the data to be disclosed included in the specified disclosure strategy, the target channel is invoked to execute the disclosure task. This enables the specified disclosure strategy and the data to be disclosed to be sent as a data disclosure request to the scheduling center when there is a disclosure requirement. The scheduling center can select and invoke different target channels for different data to be disclosed, achieving channel isolation when disclosing different data to be disclosed, thereby ensuring the security of data disclosure. Attached Figure Description
[0057] Figure 1 This is a flowchart illustrating a data disclosure method provided in one embodiment of this specification;
[0058] Figure 2 This is a flowchart illustrating the processing procedure of another data disclosure method provided in one embodiment of this specification;
[0059] Figure 3 This is a flowchart illustrating the processing steps of another data disclosure method provided in one embodiment of this specification;
[0060] Figure 4 This is a flowchart illustrating a process by which a bank discloses transaction data to regulatory authorities, as provided in one embodiment of this specification.
[0061] Figure 5 This is a schematic diagram of the structure of a data disclosure device provided in one embodiment of this specification;
[0062] Figure 6 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation
[0063] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0064] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0065] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0066] First, the terms and concepts used in one or more embodiments of this specification will be explained.
[0067] Data disclosure: In the financial sector, data disclosure refers to the act of financial institutions disclosing project data, operational data, corporate data, etc., to regulatory agencies or investors.
[0068] This specification provides a data disclosure method, and also relates to a data disclosure device, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
[0069] Figure 1 A flowchart of a data disclosure method according to an embodiment of this specification is shown, including steps 102 to 106.
[0070] This specification provides a system architecture in one or more embodiments, which includes a scheduling center, data disclosure channels, and a management center. The management center is configured with various disclosure strategies. A disclosure strategy includes one or more channels, the flow information of the disclosure task state machine, the topology of the disclosure channels, etc. A channel refers to the data transmission channel method when disclosing data, such as the Hypertext Transfer Protocol (HTTP) channel method, the email channel method, the system interface channel method, etc.
[0071] In one or more embodiments of this specification, the execution entity of the data disclosure method is the scheduling center in the above system architecture. The scheduling center is generally set on the disclosure entity side, including but not limited to software modules, servers, etc., and is set according to the actual application. This application does not limit it in any way.
[0072] Step 102: Receive a data disclosure request, wherein the data disclosure request includes a specified disclosure strategy and the data to be disclosed, and the specified disclosure strategy includes the configuration information of the target channel for disclosing the data to be disclosed.
[0073] In one or more embodiments of this specification, when an upstream system needs to disclose data to a target device, the upstream system initiates a data disclosure request, carrying a specified disclosure strategy and the data to be disclosed in the data disclosure request. The specified disclosure strategy includes the configuration information of the target channel for disclosing the data to be disclosed, wherein a disclosure strategy includes one or more disclosure channels. By carrying the disclosure strategy and data in the disclosure request, the system parses out which channel the disclosure task requires, and then schedules the disclosure task to the corresponding channel according to the configuration information of the target channel. Generally, the upstream system refers to the data disclosure entity, including but not limited to financial institutions, bond issuers, etc., which are set according to actual applications, and this application does not impose any limitations on this.
[0074] In one implementation of this specification, the data disclosure request may also include environmental information associated with the target channel, wherein different channels are pre-deployed in different environments.
[0075] The channels for data disclosure are closely related to the environment in which they are applied. This environment can refer to the production environment of the specific company or institution disclosing the data, or it can be the network environment, market environment, etc. For example, if financial institution A only needs a Secure File Transfer Protocol (SFTP) channel for data disclosure, then the SFTP channel can be deployed separately in financial institution A's production environment, making the SFTP channel associated with financial institution A's production environment. In this way, channels can be deployed accordingly for different environments, ensuring that the disclosed data meets the requirements of each environment. This is equivalent to modularizing the channels; different channel modules are suitable for different environments, achieving the goal of isolating and deploying different channels for different environments, improving the efficiency of data disclosure, and ensuring the security of the disclosed data.
[0076] The disclosure strategy defines certain disclosure rules, generally referring to the rules specified by the disclosing entity when disclosing data to be disclosed. These rules stipulate the disclosure channels, methods, and target devices. Disclosure channels include, but are not limited to, email and HTTP channels. Target devices include, but are not limited to, regulatory agencies and investors. These are set according to actual application, and this application does not impose any restrictions. The data to be disclosed generally refers to data of interest to regulatory agencies, investors, etc., including but not limited to user information, transaction information, and integrity information. These are set according to actual application, and this application does not impose any restrictions.
[0077] The configuration information of the target channel for the data to be disclosed represents the relevant information configured for the target channel. In one implementation of this specification, the configuration information of the target channel includes: the identification information of the target channel, the state machine transition information on the target channel, and the topology information of the target channel.
[0078] When performing disclosure tasks, it is mainly achieved by invoking target channels. However, invoking target channels can be done not only through their identification information, but also because target channels transmit data according to certain flow rules and topologies. Therefore, to execute disclosure tasks more accurately and quickly, the configuration information of target channels can include their identification information, state machine flow information on the target channel, and topology information. Specifically, the target channel identification information can be the target channel ID, the state machine flow information can be the ID of the transferring device and the flow order, and the topology information can be the channel's topology diagram, etc.
[0079] Step 104: Generate a disclosure task for the data to be disclosed based on the specified disclosure strategy.
[0080] In one or more embodiments of this specification, the disclosure strategy defines some disclosure rules. In specific execution, a disclosure task is generated according to the specified disclosure strategy. The disclosure task can be specific execution code, that is, according to the rules in the specified disclosure strategy, the corresponding execution code is generated, wherein the execution code is used to execute the disclosure task.
[0081] Step 106: Based on the configuration information, invoke the target channel to execute the disclosure task.
[0082] In one or more embodiments of this specification, after generating a disclosure task for the data to be disclosed according to a specified disclosure strategy, since the specified disclosure strategy includes the configuration information of the target channel, that is, the configuration information stipulates the response configuration rules of the target channel, the target channel can be called to execute the disclosure task according to the configuration rules.
[0083] This specification adopts a modular design for disclosure channels, which combines the channels and intermediary institutions within those channels into a single module. In practical applications, this module can be directly invoked, avoiding the problems of centralized systems that are only deployed on the main site, have high coupling between core functional modules, incur high system expansion costs, are difficult to adapt to the main production environments of other financial companies, and are difficult to achieve technological empowerment.
[0084] The scheme implemented in this specification receives a data disclosure request including a specified disclosure strategy and the data to be disclosed. Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed. According to the configuration information of the target channel for the data to be disclosed included in the specified disclosure strategy, the target channel is invoked to execute the disclosure task. This enables the specified disclosure strategy and the data to be disclosed to be sent as a data disclosure request to the scheduling center when there is a disclosure requirement. The scheduling center can select and invoke different target channels for different data to be disclosed, achieving channel isolation when disclosing different data to be disclosed, thereby ensuring the security of data disclosure.
[0085] The following is about Figure 1 The specific implementation of each step in the illustrated embodiment is explained in detail.
[0086] In one or more embodiments of this specification, step 104 can be implemented through the following steps:
[0087] Create a disclosure task;
[0088] The configuration information of the target channel and the data to be disclosed are associated with the disclosure task to obtain the disclosure task for the data to be disclosed.
[0089] After receiving a data disclosure request, the dispatch center can create a disclosure task. This involves generating a corresponding execution code template based on the rules and data in the disclosure strategy. After creating the task, to ensure it fulfills the specified disclosure strategy, the configuration information of the target channel and the data to be disclosed can be associated with the task through assignment, thus generating a disclosure task specific to the data to be disclosed. For example, if financial institution A specifies that its transaction data be disclosed to regulatory agency B via an SFTP file transfer channel, the dispatch center will assign the configuration information of the specified SFTP file transfer channel and the transaction data to the designated execution code, generating a disclosure task for the transaction data. This method ensures accurate generation of disclosure tasks for the data to be disclosed, guaranteeing the accuracy of data disclosure.
[0090] In one or more embodiments of this specification, after step 106, the method further includes:
[0091] Check the status of the disclosure task within the preset time period; if the status of the disclosure task cannot be viewed, it is determined that the disclosure task has timed out.
[0092] If the disclosure task has timed out, you can return to step 106 to re-execute the disclosure task; or you can provide feedback to the staff of the target device so that they can handle it manually, such as filtering, reorganizing, or selecting to re-disclose the data.
[0093] In one or more embodiments of this specification, the status of the disclosure task is viewed within a preset time period. This preset time period is set according to the actual application, and this application does not impose any limitations on it. If the status of the disclosure task cannot be viewed within the preset time period, it indicates that a problem has occurred in the execution of the disclosure task (e.g., interruption), confirming that the disclosure task has timed out. This enables tracking of the disclosure task, improves the efficiency of data disclosure, and promptly detects timeout issues that occur during the execution of the disclosure task.
[0094] The scheme implemented in this specification receives a data disclosure request including a specified disclosure strategy and the data to be disclosed. Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed. According to the configuration information of the target channel for the data to be disclosed included in the specified disclosure strategy, the target channel is invoked to execute the disclosure task. This enables the specified disclosure strategy and the data to be disclosed to be sent as a data disclosure request to the scheduling center when there is a disclosure requirement. The scheduling center can select and invoke different target channels for different data to be disclosed, achieving channel isolation when disclosing different data to be disclosed, thereby ensuring the security of data disclosure.
[0095] Figure 2A flowchart of another data disclosure method provided in one embodiment of this specification is shown, with specific steps including steps 202 to 212.
[0096] Step 202: Receive a data disclosure request, wherein the data disclosure request includes a specified disclosure strategy and the data to be disclosed, and the specified disclosure strategy includes the configuration information of the target channel for disclosing the data to be disclosed.
[0097] Step 204: Generate a disclosure task for the data to be disclosed based on the specified disclosure strategy.
[0098] Steps 202-204 are the same as steps 102-104 in the previous embodiment, and will not be described again in this embodiment.
[0099] Step 206: Based on the configuration information, invoke the target channel and disclose the data to be disclosed to the target device through the target channel.
[0100] In one or more embodiments of this specification, the data to be disclosed is disclosed to the target device by calling the target channel according to the configuration information of the target channel. The target device includes, but is not limited to, regulatory agencies, investors, etc. The target channel discloses the data to be disclosed to the target device through a relay mechanism, thereby realizing the disclosure of the data to be disclosed to the target device through the corresponding target channel and ensuring the security of the data to be disclosed.
[0101] Step 208: If the target channel's interface is a synchronous interface, receive the response information from the target device through the synchronous interface.
[0102] Step 210: Determine the execution result of the disclosure task based on the response information.
[0103] Step 212: Update the status of the disclosure task based on the execution results.
[0104] In one or more embodiments of this specification, if the interface of the target channel is a synchronous interface, the scheduling center will receive a response message from the target device for each disclosure message received by the target device. The scheduling center determines the execution result of the disclosure task based on the response message, and the disclosure subject can also determine the disclosure result of the disclosure task. This realizes information synchronization between the disclosure subject and the target device, improves data disclosure efficiency, and updates the status of the disclosure task based on the execution result, so that the disclosure subject and the target device can know the execution status of the data disclosure task in a timely manner, thereby improving the experience of both parties.
[0105] In one or more embodiments of this specification, after step 212, the method further includes:
[0106] If the disclosure task is in the state of execution failure, then if the cumulative number of retries for the disclosure task has not reached the preset threshold, return to step 206 and increment the cumulative number of retries by 1.
[0107] In one or more embodiments of this specification, if the status of the disclosed task is execution failure, the execution step 206 is returned and the retry count is incremented by 1. When the retry count reaches a preset threshold, the task failure is reported. In addition, the task can be deleted after the task failure is reported.
[0108] The preset thresholds are specifically set according to actual applications. Different disclosure tasks correspond to different retry requirements. By setting different preset thresholds for retry counts for different disclosure tasks, disclosure tasks can be executed more effectively, making data disclosure more flexible. Furthermore, in the embodiments of this specification, if the status of a disclosure task is "execution failed," the disclosure task is not immediately deleted. Instead, the disclosure task is retried multiple times to ensure its normal execution as much as possible, thereby improving the success rate of disclosure task execution.
[0109] The scheme implemented in this specification receives a data disclosure request including a specified disclosure strategy and the data to be disclosed. Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed. According to the configuration information of the target channel for the data to be disclosed included in the specified disclosure strategy, the target channel is invoked to execute the disclosure task. This enables the specified disclosure strategy and the data to be disclosed to be sent as a data disclosure request to the scheduling center when there is a disclosure requirement. The scheduling center can select different target channels to invoke for different data to be disclosed, achieving channel isolation when disclosing different data, thereby ensuring the security of data disclosure. Furthermore, when the target channel interface is a synchronous interface, the scheduling center receives a response message from the target device for each disclosure message received. The scheduling center determines the execution result of the disclosure task based on the response message, and the disclosing entity can also determine the disclosure result, achieving information synchronization between the disclosing entity and the target device, improving data disclosure efficiency. The status of the disclosure task is updated based on the execution result, allowing the disclosing entity and the target device to promptly understand the execution status of the data disclosure task, improving the user experience for both parties.
[0110] Figure 3 A flowchart of another data disclosure method provided in one embodiment of this specification is shown, with specific steps including steps 302 to 312.
[0111] Step 302: Receive a data disclosure request, wherein the data disclosure request includes a specified disclosure strategy and the data to be disclosed, and the specified disclosure strategy includes the configuration information of the target channel for disclosing the data to be disclosed.
[0112] Step 304: Generate a disclosure task for the data to be disclosed based on the specified disclosure strategy.
[0113] Step 306: Based on the configuration information, invoke the target channel to execute the disclosure task.
[0114] Steps 302-306 are the same as steps 102-106 in the previous embodiment, and will not be described again in this embodiment.
[0115] Step 308: If the target channel's interface is an asynchronous interface, trigger the corresponding receipt check task for the target channel periodically and obtain the check result of the receipt check task.
[0116] Step 310: Based on the inspection results, determine the execution results of the disclosure task.
[0117] Step 312: Update the status of the disclosure task based on the execution results.
[0118] In one or more embodiments of this specification, if the target channel's interface is an asynchronous interface, the scheduling center triggers a receipt check task corresponding to the target device at predetermined intervals, obtains the check results of the receipt check task, and determines the status of the disclosure task through the receipt check, thus accurately knowing the execution status of the disclosure task. Different target channels correspond to different receipt check schemes, and the predetermined intervals are specifically set according to actual applications; this application does not impose any limitations on this.
[0119] In one or more embodiments of this specification, the target device can store the execution results of the data disclosure task in a database, and the scheduling center can obtain the data disclosure results from the database, thereby reducing the storage burden of the target device and improving the efficiency of data disclosure. The target device includes, but is not limited to, regulatory agencies, investors, etc., and is specifically set according to actual applications. This application does not limit it in any way.
[0120] In one or more embodiments of this specification, after step 312, the method further includes:
[0121] If the disclosure task status is "execution failed", then if the cumulative number of retries for the disclosure task has not reached the preset threshold, return to the execution step according to the configuration information, call the target channel to execute the disclosure task, and increment the cumulative number of retries by 1.
[0122] In one or more embodiments of this specification, if the status of the disclosed task is execution failure, the execution step 306 is returned and the retry count is incremented by 1. When the retry count reaches a preset threshold, the task failure is reported. In addition, the task can be deleted after the task failure is reported.
[0123] The preset thresholds are specifically set according to actual applications. Different disclosure tasks correspond to different retry requirements. By setting different preset thresholds for retry counts for different disclosure tasks, disclosure tasks can be executed more effectively, making data disclosure more flexible. Furthermore, in the embodiments of this specification, if the status of a disclosure task is "execution failed," the disclosure task is not immediately deleted. Instead, the disclosure task is retried multiple times to ensure its normal execution as much as possible, thereby improving the success rate of disclosure task execution.
[0124] The scheme implemented in this specification receives a data disclosure request including a specified disclosure strategy and the data to be disclosed. Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed. According to the configuration information of the target channel for the data to be disclosed included in the specified disclosure strategy, the target channel is invoked to execute the disclosure task. This enables the specified disclosure strategy and the data to be disclosed to be sent as a data disclosure request to the scheduling center when there is a disclosure requirement. The scheduling center can select and invoke different target channels for different data to be disclosed, achieving channel isolation when disclosing different data, thereby ensuring the security of data disclosure. Furthermore, when the target channel interface is an asynchronous interface, the scheduling center triggers a receipt check task corresponding to the target device at predetermined intervals, obtains the check results of the receipt check task, and determines the status of the disclosure task through the receipt check, thus accurately knowing the execution status of the disclosure task.
[0125] Figure 4 This specification illustrates a flowchart of a bank's process for disclosing transaction data to regulatory authorities, according to an embodiment of the present specification. The specific steps include steps 402 to 412.
[0126] Step 402: The server receives a request from the bank to disclose transaction data to the regulatory agency via the HTTP synchronization interface.
[0127] Step 404: The server creates execution code, associates the HTTP interface configuration information and transaction data with the created execution code, and obtains a disclosure task for the transaction data.
[0128] Step 406: The server discloses the transaction data to the regulatory agency through the HTTP interface according to the configuration information of the HTTP interface.
[0129] Step 408: Check the status of the disclosure task within 30 seconds. If the status of the disclosure task cannot be checked, the server will automatically re-execute the disclosure task, that is, disclose the transaction data to the regulatory agency through the HTTP interface according to the configuration information of the HTTP interface.
[0130] Step 410: For each transaction data received by the regulatory agency, a response message is sent to the server. After receiving the response message from the regulatory agency, the server updates the disclosure task status based on the response message.
[0131] Step 412: If the task fails, the server will retry. The initial number of retries is 0. If the first retry fails, a second retry will be performed. At this time, the number of retries is 2. Once the preset threshold of 2 is reached, the server will report the task failure and delete the task.
[0132] The scheme implemented in this specification receives a data disclosure request including a specified disclosure strategy and the data to be disclosed. Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed. According to the configuration information of the target channel for the data to be disclosed included in the specified disclosure strategy, the target channel is invoked to execute the disclosure task. This enables the specified disclosure strategy and the data to be disclosed to be sent as a data disclosure request to the scheduling center when there is a disclosure requirement. The scheduling center can select and invoke different target channels for different data to be disclosed, achieving channel isolation when disclosing different data to be disclosed, thereby ensuring the security of data disclosure.
[0133] Corresponding to the above method embodiments, this specification also provides embodiments of a data disclosure device. Figure 5 A schematic diagram of a data disclosure device according to one embodiment of this specification is shown. Figure 5 As shown, the device includes:
[0134] The request receiving module 502 is configured to receive data disclosure requests, wherein the data disclosure request includes a specified disclosure strategy and data to be disclosed, and the specified disclosure strategy includes configuration information of the target channel for disclosing the data to be disclosed;
[0135] The task generation module 504 is configured to generate disclosure tasks for the data to be disclosed based on a specified disclosure strategy.
[0136] Task invocation module 506 is configured to invoke the target channel to execute the disclosure task based on the configuration information.
[0137] Optionally, the data disclosure request may also include environmental information associated with the target channels, where different channels are pre-deployed in different environments.
[0138] Optionally, the task generation module 504 is further configured to: create a disclosure task; associate the configuration information of the target channel and the data to be disclosed with the disclosure task to obtain a disclosure task for the data to be disclosed.
[0139] Optionally, the configuration information of the target channel includes: the identification information of the target channel, the state machine transition information on the target channel, and the topology information of the target channel.
[0140] Optionally, the task invocation module 506 is further configured to: invoke the target channel according to the configuration information, and disclose the data to be disclosed to the target device through the target channel.
[0141] Optionally, the device further includes:
[0142] The response receiving module is configured to receive response information from the target device through the synchronous interface when the interface of the target channel is a synchronous interface;
[0143] The result determination module is configured to determine the execution result of the disclosure task based on the response information.
[0144] The status update module is configured to update the status of the disclosure task based on the execution result.
[0145] Optionally, the device further includes:
[0146] The task triggering module is configured to periodically trigger the corresponding receipt check task for the target channel when the target channel's interface is an asynchronous interface, and obtain the check result of the receipt check task.
[0147] The results determination module is configured to determine the execution result of the disclosure task based on the inspection results;
[0148] The status update module is configured to update the status of the disclosure task based on the execution result.
[0149] Optionally, the device further includes:
[0150] The retry module is configured to, if the status of the disclosure task is execution failure, return to the execution step of calling the target channel according to the configuration information and executing the disclosure task if the cumulative number of retries for the disclosure task has not reached the preset threshold, and increment the cumulative number of retries by 1.
[0151] Optionally, the device further includes:
[0152] The timeout determination module is configured to check the status of the disclosure task within a preset time period; if the status of the disclosure task cannot be checked, the disclosure task is determined to have timed out.
[0153] The scheme implemented in this specification receives a data disclosure request including a specified disclosure strategy and the data to be disclosed. Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed. According to the configuration information of the target channel for the data to be disclosed included in the specified disclosure strategy, the target channel is invoked to execute the disclosure task. This enables the specified disclosure strategy and the data to be disclosed to be sent as a data disclosure request to the scheduling center when there is a disclosure requirement. The scheduling center can select and invoke different target channels for different data to be disclosed, achieving channel isolation when disclosing different data to be disclosed, thereby ensuring the security of data disclosure.
[0154] The above is an illustrative scheme of a data disclosure device according to this embodiment. It should be noted that the technical solution of this data disclosure device and the technical solution of the data disclosure method described above belong to the same concept. For details not described in detail in the technical solution of the data disclosure device, please refer to the description of the technical solution of the data disclosure method described above.
[0155] Figure 6 A structural block diagram of a computing device 600 according to one embodiment of this specification is shown. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and a database 650 is used to store data.
[0156] The computing device 600 also includes an access device 640, which enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 640 may include one or more of any type of wired or wireless network interface (e.g., Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (World Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0157] In one embodiment of this specification, the above-described components of the computing device 600 and Figure 6 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 6 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0158] The computing device 600 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 600 can also be a mobile or stationary server.
[0159] The processor 620 is configured to execute the following computer-executable instructions: receive a data disclosure request including a specified disclosure strategy and data to be disclosed; generate a disclosure task for the data to be disclosed according to the specified disclosure strategy; execute the disclosure task by calling the target channel based on the specified disclosure strategy including configuration information of the target channel for the data to be disclosed, according to the configuration information.
[0160] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the data disclosure method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the data disclosure method described above.
[0161] An embodiment of this specification also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used to: receive a data disclosure request including a specified disclosure strategy and data to be disclosed; generate a disclosure task for the data to be disclosed according to the specified disclosure strategy; execute the specified disclosure strategy based on configuration information of a target channel including the data to be disclosed; and invoke the target channel to execute the disclosure task according to the configuration information.
[0162] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the data disclosure method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the data disclosure method described above.
[0163] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0164] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0165] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.
[0166] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0167] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A data disclosure method applied to a scheduling center in a data disclosure system, the system comprising a scheduling center, channels for disclosing data, and a management center, the management center being used to store disclosure strategies, the method comprising: Receive a data disclosure request, the data disclosure request includes a specified disclosure strategy and data to be disclosed, the specified disclosure strategy includes the configuration information of the target channel for disclosing the data to be disclosed, the disclosure method of the data to be disclosed, and the target device for data disclosure, the data disclosure request also includes environmental information associated with the target channel, and different channels are pre-isolated and deployed in different environments; Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed; According to the configuration information, the target channel is invoked to execute the disclosure task. The target channel is obtained through modular design, which is used to form a module by combining the channel and the relay mechanism on the channel. The target channel is pre-deployed in the environment corresponding to the environmental information.
2. The method according to claim 1, wherein the step of generating a disclosure task for the data to be disclosed according to the specified disclosure strategy comprises: Create a disclosure task; The configuration information of the target channel and the data to be disclosed are associated with the disclosure task to obtain the disclosure task for the data to be disclosed.
3. The method according to claim 1, wherein the configuration information of the target channel includes: The target channel's identification information, the state machine transition information on the target channel, and the target channel's topology information.
4. The method according to claim 3, wherein the step of invoking the target channel to execute the disclosure task according to the configuration information includes: Based on the configuration information, the target channel is invoked, and the data to be disclosed is disclosed to the target device through the target channel.
5. The method according to claim 4, after the step of invoking the target channel to execute the disclosure task according to the configuration information, the method further includes: If the interface of the target channel is a synchronous interface, the response information fed back by the target device is received through the synchronous interface; Based on the response information, determine the execution result of the disclosure task; Update the status of the disclosure task based on the execution result.
6. The method according to claim 1, after the step of invoking the target channel to execute the disclosure task according to the configuration information, the method further includes: If the interface of the target channel is an asynchronous interface, the corresponding receipt check task of the target channel is triggered periodically to obtain the check result of the receipt check task; Based on the inspection results, determine the execution result of the disclosure task; Update the status of the disclosure task based on the execution result.
7. The method according to claim 5 or 6, after the step of updating the status of the disclosure task based on the execution result, the method further includes: If the disclosure task is in the state of execution failure, then if the cumulative number of retries for the disclosure task has not reached the preset threshold, return to the step of calling the target channel to execute the disclosure task according to the configuration information, and increment the cumulative number of retries by 1.
8. The method according to claim 1, after the step of invoking the target channel to execute the disclosure task according to the configuration information, the method further includes: View the status of the disclosure task within the preset time period; If the status of the disclosure task cannot be viewed, the disclosure task is determined to have timed out.
9. A data disclosure device, comprising: The request receiving module is configured to receive data disclosure requests. The data disclosure request includes a specified disclosure strategy and data to be disclosed. The specified disclosure strategy includes configuration information of the target channel for disclosing the data to be disclosed, the disclosure method of the data to be disclosed, and the target device for data disclosure. The data disclosure request also includes environmental information associated with the target channel. Different channels are pre-isolated and deployed in different environments. The task generation module is configured to generate a disclosure task for the data to be disclosed based on the specified disclosure strategy. The task invocation module is configured to invoke the target channel to execute the disclosure task according to the configuration information. The target channel is obtained through modular design, which is used to form a module by combining the channel and the relay mechanism on the channel. The target channel is pre-deployed in the environment corresponding to the environment information.
10. A computing device, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: Receive a data disclosure request, the data disclosure request including a specified disclosure strategy and data to be disclosed, the specified disclosure strategy including the configuration information of the target channel for disclosing the data to be disclosed, the disclosure method of the data to be disclosed, and the target device for data disclosure, wherein the data disclosure request also includes environmental information associated with the target channel, and different channels are pre-isolated and deployed in different environments; Based on the specified disclosure strategy, a disclosure task is generated for the data to be disclosed; According to the configuration information, the target channel is invoked to execute the disclosure task. The target channel is obtained through modular design, which is used to form a module by combining the channel and the relay mechanism on the channel. The target channel is pre-deployed in the environment corresponding to the environmental information.
11. A computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the data disclosure method according to any one of claims 1 to 8.
Citation Information
Patent Citations
File processing method and device, storage medium and computer equipment
CN111866087A