Business model-based associated data import and export method, system and medium
By adopting the associated data import and export method based on business model in the financial system, the problem of data loss during data backup and recovery in the prior art is solved, and the data integrity and no information loss are achieved.
Patent Information
- Application Number
- CN202410517241.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2044-04-28
AI Technical Summary
Existing financial systems have problems of data loss and information loss when data backup and recovery, especially when dealing with multi-dimensional and infinite-dimensional related data, the export and import process is complicated and difficult to recover complete related data information.
The associated data import and export method based on the business model is adopted, and the user operation request is obtained and the edited target business model is imported and exported. The method includes loading data based on the object inventory and reference relationship inventory of the target business model during import, selecting associated objects from the target business model for export during export, and marking when the reference relationship forms a ring graph to avoid repeated loops.
It realizes no information loss during the backup and recovery process, ensures data integrity, and solves the problem of partially associated data loss when recovering data.
Smart Images

Figure CN118535384B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method, system and medium for importing and exporting associated data based on a business model. Background Art
[0002] When users use the financial system, they often encounter data backup and data preparation operations. For example, when making a financial consolidation report, you need to import voucher data, and the voucher data itself may have attachments, and the attachments may have referenced related materials. In addition, the information of the operator and the reviewer is also related data, which cannot be as simple as a name on the form. After these data and reference materials are entered into the system, how to reuse these related data across application systems and even across subsidiary financial systems has become a problem that system designers need to solve.
[0003] The above data is essentially multi-dimensional (financial forms can be considered as two-dimensional or three-dimensional), and the referenced related data can be superimposed in infinite dimensions. As the reference relationship chain grows, the export (backup) and import (recovery) of data become increasingly difficult. Traditional financial systems have the following problems:
[0004] (1) The exported financial data is relatively simple, especially the processing of attachments, which is just saved as multiple files or compressed packages, and the index of the attachment in the form record is recorded in the export list;
[0005] (2) The exported backup package lacks business modeling of the key data itself, and will lose some business attributes, making it impossible to restore the complete associated data information when it is re-imported into the system. Summary of the invention
[0006] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method, system and medium for importing and exporting associated data based on a business model, so as to solve the above-mentioned problems.
[0007] In a first aspect, the present invention provides a method for importing and exporting associated data based on a business model, the method comprising the following steps:
[0008] Obtaining an operation request from a user terminal, wherein the operation request includes a common use operation request;
[0009] Based on the common use operation request and the edited target business model, a request operation is performed, wherein the request operation includes an import and export operation, wherein:
[0010] When performing an import operation, data is loaded according to the object list and reference relationship list of the current target business model based on the common use operation request;
[0011] When performing an export operation, a related object is selected from the target business model based on the common use operation request for export.
[0012] In a possible implementation of the present application, the method further includes obtaining the target business model by editing based on the operation request, specifically including:
[0013] Identifying a management editing operation request for editing the target business model based on the operation request of the user terminal;
[0014] The target business model is edited based on the management editing operation request in combination with a preset model design tool, wherein the target business model includes business objects, business attributes and link objects, and the model design tool includes the Xiansheng Cloud Platform Business Model Editor.
[0015] In a possible implementation of the present application, an operation request of a user terminal is obtained, wherein the operation request includes a management and editing operation request and a common use operation request, specifically including:
[0016] Identifying current user attributes of the data input by the user, wherein the user attributes include administrator attributes and non-administrator attributes;
[0017] Obtaining the management editing operation request based on user-side input data belonging to the administrator attribute;
[0018] The common use operation request is obtained based on the user-side input data belonging to the non-administrator attribute.
[0019] In a possible implementation of the present application, the editing of the target business model based on the management editing operation request in combination with a preset model design tool specifically includes:
[0020] Based on the management editing operation request, identifying the data filled in by the administrator user in the model design tool to edit the target business model, wherein:
[0021] Get the business object based on the filled object code and object name;
[0022] Obtain the business attribute based on the filled-in business primary key code and business primary key name;
[0023] The link object is obtained based on the filled-in link code and link name, wherein the link name includes an attachment group, and the attachment group includes at least one attachment object.
[0024] In a possible implementation of the present application, the method further includes adding link attributes to the link object, specifically including:
[0025] Based on the management edit operation request, identifying the filled data of the administrator user in the model design tool to add the link attribute, wherein,
[0026] Add the attribute code, attribute name and attribute type filled in as the link attribute of the current link object;
[0027] During the adding process, a check response of a target button is identified and marked, wherein the target button includes dynamic calculation, value editing, and value constraint.
[0028] In a possible implementation of the present application, when performing the import operation, data is loaded according to the object list and reference relationship list of the current target business model based on the common use operation request, specifically including:
[0029] identifying access data of non-administrator users in the target business model based on the common use operation request;
[0030] When it is determined based on the access data that the current request job is an import job, a hash value is obtained by sequentially loading from the business object according to the object list and the reference relationship list of the current target business model;
[0031] When loading, start from the main object in the business object and load the object's attributes, object links, target objects of the object links, and target object links in sequence until all related business objects are loaded, and then store the obtained hash values in a hash table.
[0032] In a possible implementation of the present application, when performing the export operation, selecting a related object from the target business model for export based on the common use operation request specifically includes:
[0033] identifying access data of non-administrator users in the target business model based on the common use operation request;
[0034] When it is determined based on the access data that the current request job is an export job, a related object is selected from the target business model for export based on the common use operation request, wherein:
[0035] If the reference relationship forms a directed acyclic graph, the associated objects and reference relationships are compressed and exported;
[0036] If the reference relationship forms a circular graph, the associated objects are marked for import to form a list of objects and reference relationships without repeated cycles, which are compressed and exported.
[0037] In a second aspect, the present invention provides a business model-based associated data import and export system, the system comprising:
[0038] An acquisition module, used to acquire an operation request from a user terminal, wherein the operation request includes a common operation request;
[0039] A request module is used to perform a request operation based on the common use operation request combined with the edited target business model, wherein the request operation includes an import and export operation, wherein:
[0040] An import module, used to load data according to the object list and reference relationship list of the current target business model based on the common use operation request when performing an import operation;
[0041] The export module is used to select related objects from the target business model for export based on the common use operation request when performing an export operation.
[0042] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;
[0043] The memory is used to store computer programs;
[0044] The processor is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned business model-based associated data import and export method.
[0045] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by an electronic device, implements the above-mentioned method for importing and exporting associated data based on a business model.
[0046] As described above, the business model-based associated data import and export method, system and medium described in the present invention have the following beneficial effects: it can solve the problem of partial associated data information loss when restoring data, and there is no information loss during the backup and recovery process, so that the entire system has data integrity. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 Shown is a schematic diagram of a scene of an electronic device in an embodiment of the present invention;
[0048] Figure 2 Shown is a flow chart of an embodiment of a method for importing and exporting associated data based on a business model of the present invention;
[0049] Figure 3a-3c Shown is a schematic diagram of creating a business model in an embodiment of the method for importing and exporting associated data based on a business model of the present invention;
[0050] Figure 4A schematic diagram showing a target business model in an embodiment of the business model-based associated data import and export method of the present invention;
[0051] Figure 5 Shown is a flow chart of an embodiment of a method for importing and exporting associated data based on a business model of the present invention;
[0052] Figure 6 Shown is a schematic diagram of the structure of a business model-based associated data import and export system in one embodiment of the present invention;
[0053] Figure 7 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION
[0054] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0055] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0056] The following embodiments of the present invention provide a method for importing and exporting associated data based on a business model, which can be applied to Figure 1 The electronic device shown. The electronic device described in the present invention may include a mobile phone 11 with a wireless charging function, a tablet computer 12, a laptop computer 13, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present invention does not impose any restrictions on the specific type of the electronic device.
[0057] For example, the electronic device may be a station (STAION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-terrestrial Network (NTN).
[0058] For example, the electronic device can communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS) and / or Satellite Based Augmentation Systems (SBAS).
[0059] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0060] Specifically, see Figure 2 In one embodiment of the invention, the business model-based associated data import and export method of the present invention includes the following steps:
[0061] Step S202, obtaining an operation request from the user terminal, wherein the operation request includes a common operation request;
[0062] Step S204, performing a request operation based on the common use operation request and the edited target business model, wherein the request operation includes an import and export operation;
[0063] Step S206, when performing the import operation, data is loaded according to the object list and reference relationship list of the current target business model based on the common use operation request;
[0064] Step S208: When performing an export operation, a related object is selected from the target business model based on the common use operation request for export.
[0065] It should be noted that, in this embodiment, it is specifically described how to obtain a common use operation request to perform a request job in combination with an edited target business model, especially for the content of import and export jobs, wherein, when performing an import job, data is loaded according to the object list and reference relationship list of the current target business model based on the common use operation request, specifically including: identifying the access data of non-administrator users in the target business model based on the common use operation request; when judging that the current request job is an import job based on the access data, loading in sequence from the business object according to the object list and reference relationship list of the current target business model to obtain a hash value; when loading, starting from the main object in the business object, loading the object's attributes, the object's link, the target object of the object link, and the target object's link in sequence until all related business objects are loaded, and then storing the obtained hash value in a hash table.
[0066] Furthermore, when performing an export job, related objects are selected from the target business model for export based on the common use operation request, specifically including: identifying access data of non-administrator users in the target business model based on the common use operation request; when judging that the current request job is an export job based on the access data, related objects are selected from the target business model for export based on the common use operation request, wherein if the reference relationship forms a directed acyclic graph, the related objects and the reference relationship are compressed and exported; if the reference relationship forms a ring graph, the related objects are marked for import to form a list of objects and a list of reference relationships without repeated cycles, which are compressed and exported.
[0067] Specifically, the imported data is identified, and the object list and the reference relationship list are followed, starting from the main object, and the object's attributes, the object's links, the target objects of the object links, and the links of the target objects are loaded in sequence. For each loaded object, taking the "Contract Management" model as an example, each imported data belongs to one of the three objects (contract, company, attachment). When it is stored, it is compressed in JSON object format. When it is imported, it can be decompressed to identify the object, attributes, and links stored at that time from the JSON text, and the main attributes of these data (contract name of the contract, company name of the company, attachment name of the attachment) are stored in a hash table. The key is the unique value of the primary attribute of the object, and the value is the object data itself. After this process is completed, the complete business model data (multiple business objects) will be obtained. In actual application, the target business model needs to be loaded into the target system. If it is a heterogeneous system (for example, from the "contract management" model to the "procurement management" model), it is necessary to map attributes to attributes before two different business models. If some objects or links are not needed, content trimming can also be performed. Among them, this trimming process depends on the actual needs of the system users and does not belong to the lack of data integrity. In addition, trimming is not the prominent focus of this case, so it will not be elaborated here.
[0068] As for exporting data, it is necessary to select relevant object members from the target business model. Take the "Contract Management" model as an example: select a contract data. Because the object relationship has been determined in the model design phase, and the contract and related attachments and company specific data have been entered in the use phase, all relevant attachments and company data can be found from a specific contract. There are two situations for calculating the relationship chain: if the reference relationship forms a directed acyclic graph, there will be no problem in exporting all objects and reference relationships (that is, directly compress and save for export). If the reference relationship forms a ring (infinite circular reference), start from exporting the main object, and load an associated object to determine whether it has been imported. If it has not been imported, it will be marked after loading. If it has been imported, only the basic information of the object (the value of the main attribute of the object) will be recorded, and the attributes and link information of the object will no longer be read, so as to finally form an object list and a reference relationship list, which will be compressed into a compressed package for export and preservation.
[0069] Furthermore, in one embodiment of the invention, the method also includes editing the target business model based on an operation request, specifically including: identifying a management editing operation request for editing the target business model based on the operation request from the user end; editing the target business model based on the management editing operation request in combination with a preset model design tool, wherein the target business model includes business objects, business attributes and link objects, and the model design tool includes the Xiansheng Cloud Platform Business Model Editor.
[0070] It should be noted that, in this embodiment, it is specifically explained how to edit the target business model based on the management editing operation request in combination with the preset model design tool before the target business model is applied to ordinary users, which specifically includes: based on the management editing operation request, identifying the data filled in by the administrator user in the model design tool to edit the target business model, wherein the business object is obtained based on the filled-in object code and object name; the business attribute is obtained based on the filled-in business primary key code and business primary key name; the link object is obtained based on the filled-in link code and link name, wherein the link name includes an attachment group, and the attachment group includes at least one attachment object.
[0071] Furthermore, the method also includes adding link attributes for the link object, specifically including: based on the management editing operation request, identifying the data filled in by the administrator user in the model design tool to add the link attributes, wherein the filled-in attribute code, attribute name and attribute type are added as link attributes of the current link object; during the adding process, identifying the check response of the target button and marking it, wherein the target button includes dynamic calculation, value editing and value constraint.
[0072] Specifically, Figure 3a-3c As shown, it shows a schematic diagram of creating a business model. Taking the contract management model as the target business model as an example, the administrator (the designer can only be operated by the administrator) drags the "General Object" from the object group to the canvas. At this time, a new object window will pop up ("The title is Create object based on template"). Fill in the object code "Contract", object name "Contract", business primary key (ie "business attribute") "name", business primary key name "Contract name" in the window, and the rest of the options are default. Click OK to complete the creation.
[0073] And drag "General Object" from the object group to the canvas, fill in the object code "Company", object name "Company", business primary key (ie "primary attribute") "name", business primary key name "Company name", and other options are default, click OK to complete the creation. Drag "General Object" from the object group to the canvas, fill in the object code "Attachment", object name "Attachment", business primary key (ie "primary attribute") "name", business primary key name "Attachment name", and other options are default, click OK to complete the creation. Add an "Attachment" link to the "Contract": Select the "Contract" object on the designer canvas, click "Add Link", the link code is "attachment_group", the link name is "Attachment Group", select the "Attachment" attachment object as the link object, and click OK.
[0074] In addition, edit the "Attachment Group" link of the "Contract", set the relationship cardinality-link object option to "Multiple Selection" (that is, the attachment group can have multiple attachment objects), and add a "Other Company" link to the "Contract": Select the "Contract" object on the designer canvas, click "Add Link", the link code is "other_company", the link name is "Other Company", select the "Company" company object as the link object, click OK, and add the "File Group" attribute to the link: Select the "Attachment" object on the designer canvas, click "Add Attribute": the attribute code is "file_group", the name is "File Group", and the attribute configuration is "Allow Multiple" (that is, the file group allows multiple files to be stored). Finally, if Figure 4 As shown, it is a schematic diagram of the final target business model (contract management model).
[0075] Furthermore, in an embodiment of the invention, in actual operation, the present application also describes how to distinguish between administrator users and non-administrator users, where Figure 5 As shown, the operation request includes a management and editing operation request and a common use operation request, which specifically includes the following steps:
[0076] Step S502, identifying the current user attributes of the user-side input data, wherein the user attributes include administrator attributes and non-administrator attributes;
[0077] Step S504, obtaining the management editing operation request based on the user input data belonging to the administrator attribute;
[0078] Step S506: obtaining the common use operation request based on the user-side input data belonging to the non-administrator attribute.
[0079] It should be noted that the type of the current user, specifically, whether the current user is an administrator user or a non-administrator user, can be obtained according to the user attribute of the user end that issues the operation request.
[0080] The embodiment of the present application also provides a business model-based associated data import and export system, which can implement the business model-based associated data import and export method described in the present application. However, the implementation device of the business model-based associated data import and export method described in the present application includes but is not limited to the structure of the business model-based associated data import and export system listed in the embodiment. All structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.
[0081] See also Figure 6 In one embodiment, this embodiment provides a business model-based associated data import and export system 60, the system comprising:
[0082] An acquisition module 61 is used to acquire an operation request from a user terminal, wherein the operation request includes a common operation request;
[0083] The request module 62 is used to perform a request operation based on the common use operation request combined with the edited target business model, wherein the request operation includes an import and export operation, wherein:
[0084] An import module 63 is used to load data according to the object list and reference relationship list of the current target business model based on the common use operation request when performing an import operation;
[0085] The export module 64 is used to select related objects from the target business model for export based on the common use operation request when performing an export operation.
[0086] Since the specific implementation of this embodiment corresponds to the aforementioned method embodiment, the same details will not be repeated here, and those skilled in the art should also understand that Figure 6The division of the modules in the embodiment is merely a division of logical functions, and in actual implementation, all or part of them can be integrated into one or more physical entities, and these modules can be implemented entirely in the form of software called by processing elements, or entirely in the form of hardware, or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware.
[0087] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0088] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0089] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0090] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0091] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0092] The memory is used to store computer programs.
[0093] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0094] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned business model-based associated data import and export method.
[0095] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0096] like Figure 7As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 71, a memory 72, and a bus 73 connecting different system components (including the memory 72 and the processing unit 71).
[0097] Bus 73 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0098] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0099] The memory 72 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 721 and / or cache memory 722. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 723 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 73 via one or more data medium interfaces. The memory 72 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0100] A program / utility 724 having a set (at least one) of program modules 7241 may be stored, for example, in the memory 72, such program modules 7241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 7241 generally perform the functions and / or methods of the embodiments described herein.
[0101] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 74. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 75. Figure 7 As shown, the network adapter 75 communicates with other modules of the electronic device via the bus 73. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0102] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for importing and exporting associated data based on a business model, characterized in that: The method comprises the following steps: Obtaining an operation request from a user terminal, wherein the operation request includes a common use operation request; Based on the common use operation request and the edited target business model, a request operation is performed, wherein the request operation includes an import and export operation, wherein: When performing an import operation, data is loaded according to the object list and reference relationship list of the current target business model based on the common use operation request, specifically including: identifying the access data of non-administrator users in the target business model based on the common use operation request; when judging that the current request operation is an import operation based on the access data, loading the hash value from the business object in sequence according to the object list and reference relationship list of the current target business model; when loading, starting from the main object in the business object, loading the object's attributes, the object's link, the target object of the object link, and the target object's link in sequence until all related business objects are loaded, and storing the obtained hash value in a hash table; When performing an export operation, selecting related objects from the target business model for export based on the common use operation request, specifically comprising: identifying access data of non-administrator users in the target business model based on the common use operation request; when judging that the current request operation is an export operation based on the access data, selecting related objects from the target business model for export based on the common use operation request, wherein if the reference relationship forms a directed acyclic graph, the related objects and the reference relationship are compressed and exported; if the reference relationship forms a cyclic graph, the related objects are marked for import to form a list of objects and a list of reference relationships without repeated cycles, and the lists are compressed and exported; and Identifying a management editing operation request for editing the target business model based on the operation request of the user end; editing the target business model based on the management editing operation request in combination with a preset model design tool, wherein the target business model includes business objects, business attributes, and link objects, the model design tool includes a Xiansheng Cloud Platform Business Model Editor, and the target business model includes a contract management model; and Adding link attributes to the link object specifically includes: based on the management editing operation request, identifying the data filled in by the administrator user in the model design tool to add the link attributes, wherein the filled-in attribute code, attribute name and attribute type are added as link attributes of the current link object; during the adding process, identifying the check response of the target button and marking it, wherein the target button includes dynamic calculation, value editing and value constraint.
2. The method for importing and exporting associated data based on a business model according to claim 1, characterized in that: Obtaining an operation request from the user, wherein the operation request includes a management and editing operation request and a common use operation request, specifically including: Identifying current user attributes of the data input by the user, wherein the user attributes include administrator attributes and non-administrator attributes; Obtaining the management editing operation request based on user-side input data belonging to the administrator attribute; The common use operation request is obtained based on the user-side input data belonging to the non-administrator attribute.
3. The method for importing and exporting associated data based on a business model according to claim 2, characterized in that: The editing of the target business model based on the management editing operation request in combination with a preset model design tool specifically includes: Based on the management editing operation request, identifying the data filled in by the administrator user in the model design tool to edit the target business model, wherein: Get the business object based on the filled object code and object name; Obtain the business attribute based on the filled-in business primary key code and business primary key name; The link object is obtained based on the filled-in link code and link name, wherein the link name includes an attachment group, and the attachment group includes at least one attachment object.
4. A business model-based associated data import and export system, characterized in that: include: An acquisition module, used to acquire an operation request from a user terminal, wherein the operation request includes a common operation request; A request module is used to perform a request operation based on the common use operation request combined with the edited target business model, wherein the request operation includes an import and export operation, wherein: The import module is used to load data according to the object list and reference relationship list of the current target business model based on the common use operation request when performing an import operation, specifically including: identifying the access data of non-administrator users in the target business model based on the common use operation request; when judging that the current request operation is an import operation based on the access data, loading the hash value from the business objects in sequence according to the object list and reference relationship list of the current target business model; when loading, loading the attributes of the object, the link of the object, the target object of the object link, and the link of the target object in sequence from the main object in the business object until all related business objects are loaded, and storing the obtained hash value in a hash table; An export module is used to select related objects from the target business model for export based on the common use operation request when performing an export operation, specifically including: identifying access data of non-administrator users in the target business model based on the common use operation request; when judging that the current request operation is an export operation based on the access data, selecting related objects from the target business model for export based on the common use operation request, wherein if the reference relationship forms a directed acyclic graph, the related objects and the reference relationship are compressed and exported; if the reference relationship forms a ring graph, the related objects are marked for import to form a list of objects and reference relationships without repeated cycles, and the same are compressed and exported; and identifying the administrator for editing the target business model based on the operation request of the user end. Management editing operation request; based on the management editing operation request and in combination with a preset model design tool to edit and obtain a target business model, wherein the target business model includes business objects, business attributes and link objects, the model design tool includes the Xiansheng Cloud Platform Business Model Editor, and the target business model includes a contract management model; and adding link attributes to the link objects, specifically including: based on the management editing operation request, identifying the data filled in by the administrator user in the model design tool to add the link attributes, wherein the filled-in attribute code, attribute name and attribute type are added as link attributes of the current link object; during the adding process, identifying the check response of the target button and marking it, wherein the target button includes dynamic calculation, value editing and value constraint.
5. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory, so that the electronic device executes the business model-based associated data import and export method according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by an electronic device, the method for importing and exporting associated data based on a business model as described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Data and associated data import and export method and device, equipment and storage medium
CN112711629A
Associated data exporting and importing method and device, equipment and storage medium
CN115905353A
Object query method and device based on index, equipment and medium
CN117909301A