A data subscription method, device, apparatus and storage medium

By using subscription templates and services created by the administrator, differentiated data subscriptions for different subscribers are achieved, solving the problem of insufficient data security in existing technologies and improving the security and accuracy of data subscriptions.

CN115828877BActive Publication Date: 2026-04-28KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
KINGDEE SOFTWARE(CHINA) CO LTD
Filing Date
2022-10-25
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing general data subscription solutions cannot implement differentiated query restrictions for different subscribers based on query conditions, resulting in insufficient data security.

Method used

The administrator creates a subscription template, which encapsulates the field attributes of the subscription object conditions, data scope organization, and subscriber organization scope. The subscriber enters the conditions on the subscription template page to meet the business information subscription of a specific object, and the subscription service matches and pushes the data.

Benefits of technology

This ensures that subscription data from different subscribers is differentiated, thereby improving data security and the accuracy of subscription information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115828877B_ABST
    Figure CN115828877B_ABST
Patent Text Reader

Abstract

The application discloses a data subscription method and device, equipment and storage medium, including: a management party creates a subscription template of a business object; wherein the subscription template encapsulates at least the field attribute content of a subscription object condition, a data range organization, and a subscription party organization range; a subscription party in the subscription party organization range inputs a subscription object condition corresponding to a subscription object condition field on the subscription template page to subscribe to business information of a target object meeting the subscription object condition; wherein the business information belongs to data in the data range organization. It can be seen that the management party creates a subscription template, which limits the subscription data of the subscription party in at least the three aspects of the subscription object condition, the data range organization, and the subscription party organization range. When the subscription party subscribes to data by using the corresponding subscription template, the subscription data of different subscription parties is different, thereby improving data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a data subscription method, apparatus, device, and storage medium. Background Technology

[0002] Traditional subscriptions involve readers paying a subscription fee for a specified period, with delivery personnel delivering the newspaper to the reader's designated address within the specified timeframe. With the development of internet technology, some websites offer RSS feeds, allowing users to read content without opening the website's main page. This facilitates access to the latest website information and employs a scheduled delivery method to proactively push data to all subscribers.

[0003] For data generated during business operations, companies require proactive and rapid data delivery while also prioritizing confidentiality. Access should be restricted to qualified individuals who meet specific query criteria. Existing general data subscription solutions can automatically push information based on query conditions, but they cannot implement different query restrictions for different users.

[0004] Therefore, the aforementioned technical problems urgently need to be solved by those skilled in the art. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide a data subscription method, apparatus, device, and storage medium that enables the subscription data of different subscribers to be differentiated, thereby improving data security. The specific solution is as follows:

[0006] The first aspect of this application provides a data subscription method, including:

[0007] The administrator creates a subscription template for a business object; wherein, the subscription template encapsulates at least the field attribute content of the subscription object conditions, data scope organization, and subscriber organization scope;

[0008] Subscribers within the scope of the subscriber organization enter the subscription object conditions corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data within the data scope organization.

[0009] Optionally, the administrator creates a subscription template, including:

[0010] The administrator sets the field attribute content of the subscription object conditions, the data range organization, and the subscriber organization range according to the target requirements, and encapsulates the set field attribute content to obtain the subscription template.

[0011] Optionally, before encapsulating the obtained field attribute content to obtain the subscription template, the method further includes:

[0012] The administrator sets the field attribute content of the number of valid days according to the target requirements, and encapsulates the field attribute content corresponding to the number of valid days into the subscription template; wherein, the field attribute content of the number of valid days represents the subscription effective period of the subscriber.

[0013] Optionally, before the administrator creates the subscription template for the business object, it also includes:

[0014] The management party creates a message template for the business object; wherein, the message template at least encapsulates the field attribute content of the subscription message output method;

[0015] Accordingly, after the administrator creates the subscription template for the business object, it also includes:

[0016] The administrator nests the message template into the subscription template so that the subscriber can receive the subscription message according to the message output method in the message template after subscribing using the subscription template.

[0017] Optionally, the subscription object conditions include fixed conditions and variable conditions, such that the subscriber within the scope of the subscriber organization enters the subscription object conditions corresponding to the variable condition field on the subscription template page.

[0018] Optionally, when the data operation stage of a business document is the target stage, the service call is triggered, and the method further includes:

[0019] The subscription service matches the subscription object conditions input by the subscriber with the target business documents in the document pool. If the match is successful, the data corresponding to the target business document is sent to the subscriber as a subscription message.

[0020] Optionally, the target business document in the document pool is the business document corresponding to the target stage;

[0021] Accordingly, after the subscription service sends the data corresponding to the target business document as a subscription message to the subscriber, it also includes:

[0022] The subscription service clears the target business document from the document pool and asynchronously generates the corresponding subscription log.

[0023] A second aspect of this application provides a data subscription device, comprising:

[0024] The subscription template creation module is used by the administrator to create subscription templates for business objects; wherein, the subscription template encapsulates at least the field attribute content of subscription object conditions, data range organization, and subscriber organization range;

[0025] The condition input module is used for subscribers within the subscriber organization to input subscription object conditions corresponding to the subscription object condition field on the subscription template page, so as to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data in the data scope organization.

[0026] A third aspect of this application provides an electronic device including a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the aforementioned data subscription method.

[0027] A fourth aspect of this application provides a computer-readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the aforementioned data subscription method.

[0028] The fifth aspect of this application provides a computer program product that can be directly loaded into the memory of at least one computer and includes methods for implementing the aforementioned time period generation method.

[0029] In this application, the administrator creates a subscription template for business objects. This subscription template encapsulates at least the field attributes for subscription object conditions, data scope organization, and subscriber organization scope. Subscribers within the subscriber organization scope input the subscription object conditions corresponding to the subscription object condition fields on the subscription template page to subscribe to the business information of target objects that meet the subscription object conditions. The business information belongs to the data within the data scope organization. Therefore, the administrator in this application creates subscription templates that restrict the subscriber's subscription data at least in three aspects: subscription object conditions, data scope organization, and subscriber organization scope. When subscribers use the corresponding subscription template to subscribe to data, the subscription data of different subscribers is differentiated, thereby improving data security. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0031] Figure 1 A flowchart of a data subscription method provided in this application;

[0032] Figure 2 A flowchart illustrating a specific data subscription method provided in this application;

[0033] Figure 3 A complete business logic diagram corresponding to a specific data subscription method provided in this application;

[0034] Figure 4 A flowchart illustrating a specific data subscription method provided in this application;

[0035] Figure 5 A technical architecture diagram of a specific data subscription scheme provided in this application;

[0036] Figure 6 A flowchart illustrating the logical implementation of a specific data subscription scheme provided in this application;

[0037] Figure 7 A schematic diagram of a data subscription device provided in this application;

[0038] Figure 8 A structural diagram of a data subscription electronic device provided in this application. Detailed Implementation

[0039] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0040] Existing general data subscription solutions can automatically push information based on query conditions. However, data queries have security limitations. For example, a client's payment status can only be accessed by the account manager responsible for that client; others cannot. Similarly, for large-scale financing, only specialists who know the financing contract number and amount can access the results, not just anyone in the group, to prevent the leakage of important company information. Current general subscription methods cannot address these issues. To address these technical shortcomings, this application provides a data subscription solution where the administrator creates subscription templates. These templates restrict the subscription data of subscribers in at least three aspects: subscription target conditions, data scope organization, and subscriber organization scope. When subscribers use the corresponding subscription templates, the subscription data of different subscribers is differentiated, thereby improving data security.

[0041] Figure 1 A flowchart illustrating a data subscription method provided in an embodiment of this application. See also... Figure 1 As shown, the data subscription method includes:

[0042] S11: The administrator creates a subscription template for the business object; the subscription template encapsulates at least the field attribute content of the subscription object conditions, data scope organization, and subscriber organization scope.

[0043] In this embodiment, the administrator is responsible for creating subscription templates, and the subscribers are responsible for subscribing to data using these templates. The administrator consists of management personnel, and the subscribers consist of business personnel.

[0044] In this embodiment, the subscribers are business personnel who are eligible to use the subscription templates. During use, different subscription templates can be provided to personnel in different departments based on different conditions. The administrator can also enable or disable subscription templates; subscribers can only select subscription templates that are enabled.

[0045] First, the administrator creates a subscription template for the business object. This template encapsulates at least the field attributes for subscription object conditions, data scope organization, and subscriber organization scope. In other words, the administrator creates the subscription template and configures the attribute content of the three fields—subscription object conditions, data scope organization, and subscriber organization scope—entered by the subscriber when subscribing. The business object is a specific document object; for example, for offline detail import data, the business object is selected as "Offline Detail Import"; for bank-enterprise direct connection download data, the business object is selected as "Bank Payment Processing," etc.

[0046] It should be noted that the subscription target conditions refer to the information of the target audience entered by the subscriber; the data scope organization defines the range of data that the subscriber can subscribe to, for example, only data from "XX Machinery Group Settlement Center" can be subscribed to; the subscriber organization scope defines the subscriber's administrative organization scope, for example, only those in the purchasing department can use this template to subscribe, and people from other departments cannot subscribe. The subscriber organization scope is used to specify the applicable targets of the subscription template. When subscribing, the subscriber needs to automatically verify the identity of the salesperson based on the subscriber organization scope; only salespeople within the scope can query the accounting data.

[0047] S12: Subscribers within the subscriber organization enter the subscription object conditions corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data within the data scope organization.

[0048] In this embodiment, the subscriber enters the subscription object conditions corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data within the data scope organization. It can be understood that the subscriber belongs to the subscriber organization scope, which is regulated and approved by the subscriber organization scope.

[0049] In this embodiment, subscribers will only receive subscription information pushed after subscription if all conditions specified in the subscription template are met. Subscribers can manually enter the target object information in "My Subscriptions" according to the fields specified in the subscription object conditions. Once the conditions are met, they will receive subscription information related to the target object. Subscribers can view the received subscription messages in "My Consumption List".

[0050] As can be seen, in this embodiment, the administrator creates a subscription template for business objects. The subscription template encapsulates at least the field attributes of subscription object conditions, data scope organization, and subscriber organization scope. Subscribers within the subscriber organization scope input the subscription object conditions corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of the target object that meets the subscription object conditions. The business information belongs to the data within the data scope organization. In this embodiment, the administrator creates a subscription template that restricts the subscriber's subscription data in at least three aspects: subscription object conditions, data scope organization, and subscriber organization scope. When subscribers use the corresponding subscription template to subscribe to data, the subscription data of different subscribers is differentiated, thereby improving data security.

[0051] Figure 2 A flowchart illustrating a specific data subscription method provided in this application embodiment. See also... Figure 2 As shown, the data subscription method includes:

[0052] S21: The administrator sets the field attribute content of subscription object conditions, data scope organization, subscriber organization scope, and effective days according to the target requirements, and encapsulates the set field attribute content to obtain the subscription template; among them, the field attribute content of effective days represents the subscription effective period of the subscriber.

[0053] In this embodiment, the administrator sets the field attributes for subscription object conditions, data scope organization, subscriber organization scope, and validity days according to the target requirements, and then encapsulates the set field attribute content to obtain a subscription template. In addition to limiting the subscription object conditions, data scope organization, and subscriber organization scope, the subscription template also limits the validity days. The validity days field attribute represents the subscription's effective period. After a business user sends a subscription inquiry, the system will send a message as long as the conditions are met within the validity days.

[0054] Furthermore, the subscription conditions include fixed and variable conditions, allowing subscribers within the same organization to input the corresponding subscription conditions in the variable condition fields on the subscription template page. Fixed conditions, also known as mandatory conditions, include, for example, allowing business personnel to query payment information from group settlement accounts, and business personnel cannot modify fixed conditions. Variable conditions are the information that business personnel need to correctly complete, such as the name of the subscription recipient, the recipient's account, and the amount received. Subscribers must complete and correctly fill in the variable conditions when subscribing to data in order to obtain results.

[0055] It's understandable that subscription templates vary widely. Besides setting subscription criteria, data scope organization, subscriber organization scope, and validity days, they can also include other additional fields, such as the maximum number of subscriptions. As the name suggests, the maximum number of subscriptions is the maximum number of messages that can be sent. For example, if a subscriber requests that a message be sent every time a customer receives payment, and the maximum number of subscriptions is 3, then the system will send a message for the first 3 messages that meet the criteria. If a 4th message is received, the system will not send any more messages. This embodiment does not limit this.

[0056] S22: The message template for the management to create business objects; wherein, the message template at least encapsulates the field attribute content of the subscription message output method.

[0057] S23: The administrator embeds the message template into the subscription template so that the subscriber can receive the subscription message according to the message output method in the message template after subscribing using the subscription template.

[0058] Data push is an essential part of data subscription, and the method of push is also very important. In this embodiment, the push method is determined by the message template created by the administrator for the business object. The message template at least encapsulates the field attributes of the subscription message output method. The message template can set the content, method, and frequency of message notifications, etc. Message notification methods include, but are not limited to, SMS, email, Cloud Home, WeChat, etc., but this embodiment does not limit them.

[0059] In this embodiment, after setting the good news template and the subscription template, the administrator further nests the message template into the subscription template so that the subscriber can receive the subscription message according to the message output method in the message template after subscribing using the subscription template. The complete business logic described above is as follows: Figure 3 As shown.

[0060] S24: Subscribers within the subscriber organization enter the subscription object conditions corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data within the data scope organization.

[0061] In this embodiment, the specific process of step S24 can be referred to the corresponding content disclosed in the previous embodiments, and will not be repeated here.

[0062] As can be seen, in this embodiment, the administrator first sets the field attributes of subscription object conditions, data scope organization, subscriber organization scope, and valid days according to the target requirements, and then encapsulates the set field attributes to obtain a subscription template. Simultaneously, the administrator creates a message template for the business object. Based on this, the administrator nests the message template into the subscription template so that subscribers can receive subscription messages according to the message output method in the message template after subscribing using the subscription template. The subscription template in this embodiment can limit multiple field contents such as subscription object conditions, data scope organization, subscriber organization scope, and valid days. It can also bind the push method of subscription messages to the subscription template in the form of a custom message template, allowing subscribers to query and receive messages according to the agreed field contents and push method when subscribing to data. The push speed is fast and the display methods are diverse.

[0063] Figure 4 A flowchart illustrating a specific data subscription method provided in this application embodiment. See also... Figure 4 As shown, the data subscription method includes:

[0064] S31: The administrator creates a subscription template for a business object; the subscription template encapsulates at least the field attribute content of the subscription object conditions, data scope organization, and subscriber organization scope.

[0065] S32: Subscribers within the scope of the subscriber organization enter the subscription object conditions corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data within the data scope organization.

[0066] In this embodiment, the specific processes of steps S31 and S32 can be referred to the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0067] S33: When the data operation stage of a business document is the target stage, the subscription service is triggered. The subscription service matches the subscription object conditions entered by the subscriber with the target business document in the document pool. If the match is successful, the data corresponding to the target business document is sent to the subscriber as a subscription message. The target business document in the document pool is the business document corresponding to the target stage.

[0068] S34: The subscription service will clear the target business documents in the document pool and asynchronously generate the corresponding subscription logs.

[0069] The technical architecture of the data subscription scheme in this embodiment is as follows: Figure 5 As shown, the logic implementation process is as follows: Figure 6 As shown, the interface service layer provides interfaces for subscription services, which can be called by other functional modules. These interface services can use socket calls, Web Service calls, or Web API calls. The subscription business is extracted from an independent business module and uses independent microservices for data processing, allowing it to be reused across all data pools to improve performance. Services can be flexibly bound to specific data operations, enabling rapid integration with business operations.

[0070] In this embodiment, the funds subscription service interface is bound to each operation in the business document. When the data operation stage of the business document reaches the target stage, the subscription service is triggered. For example, operations such as SAVE, SUBMIT, and AUDIT can be bound to the funds subscription service interface. When the business document enters the SUBMIT operation stage, the subscription service is triggered, and the server-side service is started.

[0071] In this embodiment, the subscription service matches the subscription conditions input by the subscriber with the target business documents in the document pool. If a match is successful, the data corresponding to the target business document is sent to the subscriber as a subscription message. The target business documents in the document pool are the business documents corresponding to the target stage. That is, matching is performed based on the data in the document pool and the personalized subscription plan, triggering the message push process in the subscription service. This embodiment can use timed scheduling for data processing and message push, or use an MQ message push mechanism to push subscription messages in real time according to the subscription conditions; simultaneously, an SDK is used to provide subscription service calls to replace RPC calls.

[0072] In this embodiment, for data that has been subscribed to, the data is transferred to reduce the amount of data in the document pool, and log data is generated asynchronously. Specifically, the subscription service clears the target business documents in the document pool and asynchronously generates corresponding subscription logs. Subscription consumption logs are recorded asynchronously, and abnormal data is compensated or resent afterward. Transferring and backing up historical data is a consideration for performance impact; furthermore, the use of microservices and Redis caching of business data in this embodiment also takes performance into account.

[0073] In this embodiment, Redis and ZooKeeper distributed locks can also be used to handle concurrent data subscription scenarios; custom data ranges, message scenarios, push frequencies, and recipients can also be added based on the template.

[0074] See Figure 7 As shown in the illustration, this application also discloses a data subscription device, including:

[0075] Subscription template creation module 11 is used by the administrator to create subscription templates for business objects; wherein, the subscription template encapsulates at least the field attribute content of subscription object conditions, data range organization, and subscriber organization range;

[0076] The condition input module 12 is used for subscribers within the subscriber organization to input subscription object conditions corresponding to the subscription object condition field on the subscription template page, so as to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data in the data scope organization.

[0077] As can be seen, in this embodiment, the administrator creates a subscription template for business objects. The subscription template encapsulates at least the field attributes of subscription object conditions, data scope organization, and subscriber organization scope. Subscribers within the subscriber organization scope input the subscription object conditions corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of target objects that meet the subscription object conditions. The business information belongs to the data within the data scope organization. In this embodiment, the administrator creates a subscription template that restricts the subscriber's subscription data in at least three aspects: subscription object conditions, data scope organization, and subscriber organization scope. When subscribers use the corresponding subscription template to subscribe to data, the subscription data of different subscribers is differentiated, thereby improving data security.

[0078] In some specific embodiments, the subscription template creation module 11 is specifically used for the administrator to set the field attribute content of the subscription object conditions, the data range organization, and the subscriber organization range according to the target requirements, and to encapsulate the set field attribute content to obtain the subscription template.

[0079] In some specific embodiments, the subscription template creation module 11 is further used for the administrator to set the field attribute content of the number of valid days according to the target requirements, so as to encapsulate the field attribute content corresponding to the number of valid days into the subscription template; wherein, the field attribute content of the number of valid days represents the subscription effective period of the subscriber.

[0080] In some specific embodiments, the data subscription device further includes:

[0081] The message template creation module is used by the administrator to create message templates for the business object; wherein, the message template at least encapsulates the field attribute content of the subscription message output method;

[0082] Correspondingly, the subscription template creation module 11 is further used by the administrator to nest the message template into the subscription template, so that the subscriber can receive the subscription message according to the message output method in the message template after subscribing using the subscription template.

[0083] In some specific embodiments, when the data operation stage of a business document is the target stage, the service call is triggered, and the data subscription device further includes:

[0084] The matching module is used by the subscription service to match the subscription object conditions input by the subscriber with the target business documents in the document pool. If the match is successful, the data corresponding to the target business document is sent to the subscriber as a subscription message.

[0085] The clearing module is used by the subscription service to clear the target business document in the document pool and asynchronously generate the corresponding subscription log.

[0086] Furthermore, embodiments of this application also provide an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0087] Figure 8 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data subscription method disclosed in any of the foregoing embodiments.

[0088] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0089] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222 and data 223, etc., and the storage method can be temporary storage or permanent storage.

[0090] The operating system 221 manages and controls the various hardware devices on the electronic device 20 and the computer program 222 to enable the processor 21 to perform calculations and processing on the massive amounts of data 223 in the memory 22. The operating system 221 can be Windows Server, Netware, Unix, Linux, etc. In addition to including computer programs capable of performing the data subscription method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks. The data 223 may include the subscription object conditions collected by the electronic device 20.

[0091] Furthermore, this application also discloses a storage medium storing a computer program. When the computer program is loaded and executed by a processor, it implements the data subscription method steps disclosed in any of the foregoing embodiments.

[0092] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0093] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0094] The data subscription method, apparatus, device, and storage medium provided by the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A data subscription method, characterized in that, include: The administrator creates a subscription template for a business object; wherein, the subscription template encapsulates at least the field attribute content of the subscription object conditions, data scope organization, and subscriber organization scope, so as to restrict the subscriber's subscription data at least in terms of subscription object conditions, data scope organization, and subscriber organization scope; the subscription object conditions are the information of the object to be subscribed to input by the subscriber, the data scope organization is the data scope subscribed to by the subscriber, and the subscriber organization scope is the administrative organization scope of the subscriber; Subscribers within the scope of the subscriber organization enter the subscription object condition corresponding to the subscription object condition field on the subscription template page to subscribe to the business information of the target object that meets the subscription object condition; wherein, the business information belongs to the data within the data scope organization; When the data operation stage of a business document is the target stage, the subscription service is triggered. The method further includes: the subscription service matches the subscription object conditions input by the subscriber with the target business document in the document pool. If the match is successful, the data corresponding to the target business document is sent to the subscriber as a subscription message.

2. The data subscription method according to claim 1, characterized in that, The administrator creates a subscription template, including: The administrator sets the field attribute content of the subscription object conditions, the data range organization, and the subscriber organization range according to the target requirements, and encapsulates the set field attribute content to obtain the subscription template.

3. The data subscription method according to claim 2, characterized in that, Before encapsulating the field attribute content obtained from the settings to obtain the subscription template, the method further includes: The administrator sets the field attribute content of the number of valid days according to the target requirements, and encapsulates the field attribute content corresponding to the number of valid days into the subscription template; wherein, the field attribute content of the number of valid days represents the subscription effective period of the subscriber.

4. The data subscription method according to claim 1, characterized in that, Before the administrator creates the subscription template for the business object, it also includes: The management party creates a message template for the business object; wherein, the message template at least encapsulates the field attribute content of the subscription message output method; Accordingly, after the administrator creates the subscription template for the business object, it also includes: The administrator nests the message template into the subscription template so that the subscriber can receive the subscription message according to the message output method in the message template after subscribing using the subscription template.

5. The data subscription method according to claim 1, characterized in that, The subscription object conditions include fixed conditions and variable conditions, such that the subscriber within the scope of the subscriber organization enters the subscription object conditions corresponding to the variable condition field on the subscription template page.

6. The data subscription method according to claim 1, characterized in that, The target business document in the document pool is the business document corresponding to the target stage; Accordingly, after the subscription service sends the data corresponding to the target business document as a subscription message to the subscriber, it also includes: The subscription service clears the target business document from the document pool and asynchronously generates the corresponding subscription log.

7. A data subscription device, characterized in that, include: The subscription template creation module is used by the administrator to create subscription templates for business objects. The subscription template encapsulates at least the field attributes of subscription object conditions, data scope organization, and subscriber organization scope, so as to restrict the subscriber's subscription data at least in terms of subscription object conditions, data scope organization, and subscriber organization scope. The subscription object conditions are the information of the object to be subscribed to input by the subscriber; the data scope organization is the data scope subscribed to by the subscriber; and the subscriber organization scope is the administrative organization scope of the subscriber. The condition input module is used for subscribers within the subscriber organization to input subscription object conditions corresponding to the subscription object condition field on the subscription template page, so as to subscribe to the business information of the target object that meets the subscription object conditions; wherein, the business information belongs to the data in the data scope organization; The matching module is used to match the subscription service when the data operation stage of the business document is the target stage. The subscription service matches the subscription object conditions input by the subscriber with the target business document in the document pool. If the match is successful, the data corresponding to the target business document is sent to the subscriber as a subscription message.

8. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the data subscription method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, Used to store computer-executable instructions, which, when loaded and executed by a processor, implement the data subscription method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product can be directly loaded into the memory of at least one computer and includes a method for implementing the data subscription method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Service number subscription management method and device, computer equipment and storage medium

    CN113259223A

  • service data collection method, device, equipment and storage medium

    CN113837636A