Information processing method and apparatus, and electronic device and storage medium
By displaying and referring to the shared object model in the second application within the first application, creating or updating the first object model, making it reference the second object model, the sharing of object models and data between different applications is realized, and the problem that the inter-application object model and data cannot be shared and accessed in the prior art is solved.
Patent Information
- Application Number
- PCT/CN2024/111850
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-31
- Filing Date
- 2024-08-13
- Publication Date
- 2025-03-06
AI Technical Summary
In the prior art, an application cannot use object models under other applications, limiting the sharing and access of object models and data between different applications.
By responding to operation events within the first application, displaying and referring to the shared object model in the second application, creating or updating the first object model, making it reference the second object model, thereby realizing the sharing of the object model and data across the application.
It realizes the sharing of object models between different applications and cross-application access to data, solving the problem that the object model and data cannot be accessed across applications when the object model belongs to the application.
Smart Images

Figure CN2024111850_06032025_PF_FP_ABST
Abstract
Description
Information processing method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of Chinese Patent Application No. 202311117904.8, filed on August 31, 2023. The entire teachings of the above application are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computer technology, and in particular to an information processing method, device, electronic device, and storage medium. Background Art
[0004] In an application platform, an object model (metadata describing data storage) often belongs to a certain application. The upper-layer configuration within the application depends on the object model of this application. Therefore, one application cannot use the object model of another application.
[0005] Summary of the Invention
[0006] The present disclosure provides an information processing method, apparatus, electronic device, and storage medium.
[0007] The present disclosure adopts the following technical solutions.
[0008] In some embodiments, the present disclosure provides an information processing method, including:
[0009] In response to a first operation event within the first application, a second object model is displayed; wherein the second object model is an object model shared by the second application, an object model is metadata describing data storage, and data under fields of the shared object model is in a shared state;
[0010] In response to a second operation event on the second object model, a first object model is created or updated within the first application, and the created or updated first object model references the second object model.
[0011] In some embodiments, the present disclosure provides an information processing device, including:
[0012] A display unit, configured to display a second object model in response to a first operation event within the first application; wherein the second object model is a shared object model in the second application, an object model is metadata describing data storage, and data under fields of the shared object model is in a shared state;
[0013] The control unit is configured to create or update a first object model within the first application in response to a second operation event on the second object model, wherein the created or updated first object model references the second object model.
[0014] In some embodiments, the present disclosure provides an electronic device comprising: at least one memory and at least one processor;
[0015] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.
[0016] In some embodiments, the present disclosure provides a computer-readable storage medium for storing program code, which, when executed by a processor, prompts the processor to perform the above method. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0018] FIG1 is a schematic diagram of an information processing method according to an embodiment of the present disclosure.
[0019] FIG2 is a schematic diagram of the relationship between the object model and the application in the related art of the embodiment of the present disclosure.
[0020] FIG3 is a schematic diagram showing the relationship between the object model and the application according to an embodiment of the present disclosure.
[0021] 4 to 11 are schematic diagrams of display interfaces when the information processing method is executed according to an embodiment of the present disclosure.
[0022] FIG12 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0024] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed sequentially and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0025] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0027] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as “one or more”.
[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0029] The solution provided by the embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0030] As shown in FIG1 , FIG1 is a flowchart of an information processing method according to an embodiment of the present disclosure, which includes the following steps.
[0031] S11: In response to a first operation event within the first application, display a second object model.
[0032] In some embodiments, the method proposed in the present disclosure can be used in a terminal, for example, in an application platform within the terminal, where the application platform can be the carrier of the application. The first application and the second application are two different applications, which can be applications within the application platform. The application has an object model, which belongs to the application. The object model is metadata that describes data storage. The object model can have one or more fields, each of which can contain data. The object model is located in the application, and the data under the fields can be located in a database outside the application. The application is a complete system that can run independently and can include object model descriptions, process descriptions, page descriptions, etc. Upper-level configuration within the application is only allowed to depend on the object models within the application. The second object model is a shared object model within the second application. In some embodiments, the administrator of the second application can operate on one or more second object models in the second application, thereby setting the one or more second object models as shared object models. The first operation event can include one or more operations related to creating the first object model performed within the first application. Therefore, the first operation event can be an operation event for creating a new object model within the first application, and the first object model can be an object model to be created. The first operation event may also be an operation of updating the first object model already existing in the first application in the first application. The first object model may be an object model that already existed in the first application before the first operation event. After executing the first operation event, the first application may obtain and display the object model shared by other applications (including the second application). For example, it may be an operation of obtaining and displaying the object model shared by applications located on the same application platform as the first application. In some embodiments, the data under the field of the shared object model is in a shared state. If the shared object model has a field, the data under the field may be in a shared state as the object model is shared. Therefore, the data under the field of the second object model is also in a shared state. In some embodiments, a field may be an attribute of a column or a row of cells in a database, which defines the type of data that can be stored in the column or the row of cells, and the data under the field is the data in the column or the row of cells. For example, a field may be a name or an age, and the data under the field is a specific name or a specific age.
[0033] S12: In response to a second operation event on the second object model, the first object model is created or updated within the first application, and the created or updated first object model references the second object model.
[0034] In some embodiments, a second operation event is performed in a first application on a shared second object model displayed in the first application, and a first object model will be created or an existing first object model will be updated, and the created or updated first object model references the second object model. The names of the first object model and the second object model can be the same, which is convenient for use between different applications. The first object model can have the name of the field in the second object model, and because the data under the field in the second object is also in a shared state, when the data under the field is accessed through the first object model, the shared data under the field can be obtained based on the second model according to the reference relationship. In this way, the data under the field in the second object model can be queried through the first object model in the first application, thereby realizing the sharing of object models and data across applications.
[0035] In some embodiments, in order to achieve the sharing of object models and data, in some technologies, as shown in Figure 2, the application is set on the application platform, and the object model is not set in the application, but is set in the database, so that all applications can access the object model in the database. However, in this solution, the data administrator and the application developers who develop the application are not the same group, and the communication cost when the object model needs to be changed is high. Therefore, in some embodiments of the present disclosure, the object model is set in the application, thereby reducing the communication cost, but this limits the use of object models between different applications. Therefore, in some embodiments of the present disclosure, the object model in the application (the second application) is set to be shared in a shared manner, and other applications (such as applications on the same application platform) can access the object model that is set to be shared. In some embodiments of the present disclosure, by creating or updating a copy object model (the first object model), the second object model is referenced, and the data under the field of the second object model can be accessed through the first object model, thereby achieving cross-application sharing of data.
[0036] In some embodiments of the present disclosure, in response to a first application having a third object model, the third object model referencing a fourth object model in a second application, and a first association relationship between the second object model and the fourth object model, a first association relationship is established between the first object model and the third object model.
[0037] In some embodiments, as shown in FIG3 , a first application (a user application package) has a first object model (Object A') and a third object model (Object B'), and a second application has a second object model (Object A) and a fourth object model (Object B), with the first object model referencing the second object model. As shown in FIG3 , if the second object model and the fourth object model have a first association relationship (lookup), such as a reference relationship, then the same first association relationship will be established for the first object model and the third object model. Specifically, the first association relationship may be determined between a field in the second object model and a field in the fourth application object model, and then the fields to which these fields are mapped in the first and second object models are determined, and then corresponding first association relationships are established between the mapped fields. For example, there is a first association relationship between Text-A.F1 in the second object model and Text-B.F1 in the fourth object model, Text-A.F1' in the first object model is a reference or mapping of Text-A.F1 in the second object model, and Text-B.F1 in the third object model is a reference or mapping of Text-B.F1 in the fourth object model, then the same first association relationship will be established between Text-A.F1' in the first object model and Text-B.F1 in the third object model.
[0038] In some embodiments of the present disclosure, the first application can only access the object model under the namespace of the first application. The second application can only access the object model under the namespace of the second application. In some embodiments, an application can only access the object model under its own namespace (namespace), so it is necessary to create an object model (first object model) in the first application for use by the upper layer, so that users of the first application can access the data of the fields under the second object model based on the reference relationship by accessing the first object model. If the second object model is accessed directly in the first application, it cannot be accessed due to the limitation of the namespace.
[0039] In some embodiments of the present disclosure, the further step includes: in response to a data query event based on a first identifier of the target field in the first object model, determining a second identifier of the target field in the second object model, and querying data of the target field based on the second identifier.
[0040] In some embodiments, the target field is a field of the second object model referenced in the first object model. When the first object model is created, metadata of the first object model is created. Information such as ID and layout in the metadata can be customized by the user, and other information such as options and floating-point percentiles can be the same as the settings in the second data model. The field in the second object model is referenced in the first object model, and the target field can be part or all of the referenced field. When you want to access the target field through the first object model in the first application, that is, when you execute a data query event based on the first identifier, the first identifier of the target field in the first object model will be converted to the second identifier of the target content in the second object model, and then the second identifier will be used to query the data under the target field in the database, such as the record value under the target field.
[0041] In some embodiments of the present disclosure, in response to a second operation event on a second object model, creating a first object model within a first application includes: determining at least a portion of the first fields of the second object model as fields referenced by the first object model. Alternatively, determining at least a portion of the first fields of the second object model as fields referenced by the first object model, and adding new fields to the first object model.
[0042] In some embodiments, the second object model has a field, and the first field is a field in the second object model, which may be a shared field in the second object model. The first field may include one or more fields. As shown in FIG4 , before executing the method proposed in the present disclosure, the administrator of the second application can first set the second object model in the second application (Test 1 under Shareable Objects in FIG4 ) as a shared object. Specifically, this can be done by clicking the Sharing Settings button on the right side of Test 1 in FIG4 . Then, as shown in FIG5 , the first field in the second object model that allows sharing can be set and saved. Then, the method proposed in the present disclosure is executed, and the first operation event is executed in the first application. Specifically, as shown in FIG6 , the control for creating a new object model in the first application (“New” in FIG6 ) is triggered. Then, as shown in FIG7 , the method for creating a new object model is displayed. Selecting the method for referencing an existing object will display the first field of the second object model shared by the second application (the three fields under Test 1 in FIG8 are the first field). The user of the first application can select some fields in the first field as referenced fields (for example, the two fields of Work Area Name and ID are selected in FIG8 ). In addition, new fields can be added to the first object model, and new fields can be created.
[0043] In some embodiments of the present disclosure, the first object model is created or updated based on the referenced fields; or, the first object model is created or updated based on the referenced fields and the newly added fields, wherein the newly added fields serve as fields of the first object model.
[0044] In some embodiments, after the fields referenced by the first object model are determined, a first object model referencing these referenced fields is created, or the first object model is updated so that the first object model references these referenced fields, thereby enabling access to data under the referenced fields in the first object model (e.g., access to the record values under the work area name and ID fields in FIG8 ). In other embodiments, if the fields referenced by the first object model are determined and new fields are added to the first object model, the first object model is created or updated based on the referenced fields and the new fields, so that the first object model has the referenced fields and the new fields.
[0045] In some embodiments of the present disclosure, after determining at least a portion of the fields in the first field of the second object model as fields referenced by the first object model, the method further includes: sending an application for referencing the second object model to the second application.
[0046] In some embodiments, as shown in FIG10 , after the referenced fields are determined, an application may be submitted to the second application before the first object model is created or updated, and the application may include: the referenced fields in the second object model and the filtering conditions. The filtering conditions are conditions for filtering the data under the referenced fields, and the first object model created or updated in the first application can access the data under the referenced fields that meet the filtering conditions. For example, in this embodiment, the filtering conditions can be conditions for filtering the record values under the fields, so that the data that the first object model can access are the record values under the referenced fields that meet the filtering conditions. After the application is approved by the administrator of the second application, as shown in FIG11 , the first object model will be displayed in the first application (Test 1 in FIG11 ).
[0047] In some embodiments of the present disclosure, an application can only access the object model under the namespace of the application. Therefore, a first object model is created in the first application for use by the upper layer. On the premise that the object model belongs to the application, the object model is shared between different applications and data access is achieved by referencing the second object model (specifically, it can be a reference to the fields in the second object model) through the first object model, thereby solving the problem of being unable to access object models and data across applications when the object model belongs to the application.
[0048] Some embodiments of the present disclosure further provide an information processing device, including:
[0049] A display unit, configured to display a second object model in response to a first operation event within the first application; wherein the second object model is a shared object model in the second application, an object model is metadata describing data storage, and data under fields of the shared object model is in a shared state;
[0050] The control unit is configured to create or update a first object model within the first application in response to a second operation event on the second object model, wherein the created or updated first object model references the second object model.
[0051] In some embodiments, the control unit is further used to: establish the first association relationship between the first object model and the third object model in response to the first application having a third object model, the third object model referencing a fourth object model within the second application, and the second object model having a first association relationship with the fourth object model.
[0052] In some embodiments, the first application can only access the object model under the namespace of the first application; the second application can only access the object model under the namespace of the second application.
[0053] In some embodiments, the control unit is further used to: in response to a data query event based on a first identifier of a target field in the first object model, determine a second identifier of the target field in the second object model, and query data of the target field based on the second identifier; wherein the target field is a field of the second object model referenced in the first object model.
[0054] In some embodiments, in response to a second operation event on the second object model, creating or updating the first object model within the first application includes: determining at least a portion of the fields from the first field of the second object model as fields referenced by the first object model; or, determining at least a portion of the fields from the first field of the second object model as fields referenced by the first object model, and adding new fields to the first object model.
[0055] In some embodiments, the control unit is further configured to: after determining at least a portion of the fields in the first field of the second object model as fields referenced by the first object model, send a request for referencing the second object model to the second application.
[0056] In some embodiments, the application includes: referenced fields and filtering conditions in the second object model; the first object model created or updated in the first application can access data that meets the filtering conditions under the referenced fields.
[0057] In some embodiments, the control unit is used to create or update the first object model based on the referenced fields; or, to create or update the first object model based on the referenced fields and the newly added fields, wherein the newly added fields serve as fields of the first object model.
[0058] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art can understand and implement them without paying creative work.
[0059] The method and apparatus of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.
[0060] Reference is now made to FIG12 , which illustrates a schematic diagram of the structure of an electronic device (e.g., a terminal device or server) 800 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in the figure is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0061] The electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0062] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the electronic device 800 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0063] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0064] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0065] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0066] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0067] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.
[0068] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0069] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0070] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0071] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0072] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0073] According to one or more embodiments of the present disclosure, there is provided an information processing method, including:
[0074] In response to a first operation event within the first application, a second object model is displayed; wherein the second object model is an object model shared by the second application, an object model is metadata describing data storage, and data under fields of the shared object model is in a shared state;
[0075] In response to a second operation event on the second object model, a first object model is created or updated within the first application, and the created or updated first object model references the second object model.
[0076] According to one or more embodiments of the present disclosure, an information processing method is provided, in response to the first application having a third object model, the third object model referencing a fourth object model within the second application, and the second object model having a first association relationship with the fourth object model, establishing the first association relationship between the first object model and the third object model.
[0077] According to one or more embodiments of the present disclosure, there is provided an information processing method, wherein the first application can only access an object model under the namespace of the first application;
[0078] The second application can only access the object model under the namespace of the second application.
[0079] According to one or more embodiments of the present disclosure, there is provided an information processing method, further comprising:
[0080] In response to a data query event based on a first identifier of a target field in the first object model, a second identifier of the target field in the second object model is determined, and data of the target field is queried based on the second identifier; wherein the target field is a field of the second object model referenced in the first object model.
[0081] According to one or more embodiments of the present disclosure, there is provided an information processing method, wherein, in response to a second operation event on the second object model, a first object model is created or updated within the first application, comprising:
[0082] determining at least a portion of the first fields of the second object model as fields referenced by the first object model;
[0083] or,
[0084] At least a portion of the first fields of the second object model is determined as fields referenced by the first object model, and new fields are added to the first object model.
[0085] According to one or more embodiments of the present disclosure, there is provided an information processing method, which, after determining at least a portion of the first fields of the second object model as fields referenced by the first object model, further includes:
[0086] A request for referencing the second object model is sent to the second application.
[0087] According to one or more embodiments of the present disclosure, there is provided an information processing method, the application comprising: referenced fields and screening conditions in the second object model;
[0088] The first object model created or updated in the first application can access data that meets the screening condition under the referenced field.
[0089] According to one or more embodiments of the present disclosure, there is provided an information processing method for creating or updating the first object model based on the referenced fields;
[0090] or,
[0091] The first object model is created or updated based on the referenced fields and the newly added fields, wherein the newly added fields serve as fields of the first object model.
[0092] According to one or more embodiments of the present disclosure, there is provided an information processing apparatus, including:
[0093] A display unit, configured to display a second object model in response to a first operation event within the first application; wherein the second object model is a shared object model in the second application, an object model is metadata describing data storage, and data under fields of the shared object model is in a shared state;
[0094] The control unit is configured to create or update a first object model within the first application in response to a second operation event on the second object model, wherein the created or updated first object model references the second object model.
[0095] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one memory and at least one processor;
[0096] The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute any one of the above methods.
[0097] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is configured to store program code, and when the program code is executed by a processor, the processor is prompted to execute the above method.
[0098] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0099] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0100] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. An information processing method, comprising: In response to a first operation event in the first application, displaying a second object model; wherein the second object model is an object model shared in the second application, the object model is metadata describing data storage, and the data under the fields of the shared object model are in a shared state; In response to a second operation event on the second object model, a first object model is created or updated in the first application, and the created or updated first object model references the second object model.
2. The method according to claim 1, further comprising: In response to the first application having a third object model, the third object model referencing a fourth object model in the second application, and a first association relationship between the second object model and the fourth object model, the first association relationship is established between the first object model and the third object model.
3. The method according to claim 1, wherein: The first application can only access the object model under the namespace of the first application; The second application can only access the object model under the namespace of the second application.
4. The method according to claim 1, further comprising: In response to a data query event based on a first identifier of a target field in the first object model, a second identifier of the target field in the second object model is determined, and data of the target field is queried based on the second identifier; wherein the target field is a field of the second object model referenced in the first object model.
5. The method according to claim 1, wherein: In response to a second operation event on the second object model, creating or updating a first object model in the first application includes: determining at least a portion of the first fields of the second object model as fields referenced by the first object model; or, At least a portion of the fields in the first fields of the second object model are determined as fields referenced by the first object model, and new fields are added to the first object model.
6. The method according to claim 5, wherein after determining at least a part of the first fields of the second object model as the fields referenced by the first object model, the method further comprises: A request referencing the second object model is sent to the second application.
7. The method according to claim 6, wherein: The application includes: the referenced fields and screening conditions in the second object model; The first object model created or updated in the first application can access the data satisfying the screening condition under the referenced field.
8. The method according to claim 5, wherein: Based on the referenced fields, create or update the first object model; or, Based on the referenced fields and the newly added fields, the first object model is created or updated, wherein the newly added fields serve as fields of the first object model.
9. An information processing device, comprising: A display unit, configured to display a second object model in response to a first operation event in the first application; wherein the second object model is an object model shared in the second application, the object model is metadata describing data storage, and the data under the fields of the shared object model are in a shared state; The control unit is configured to create or update a first object model in the first application in response to a second operation event on the second object model, wherein the created or updated first object model references the second object model.
10. An electronic device comprising: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, the computer-readable storage medium being used to store program code, wherein when the program code is executed by a processor, the processor is prompted to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for allowing a plurality of applications to run on system platform and device thereof
CN103136350A
Data sharing method and device
CN113392159A
Information processing method and device, electronic equipment and storage medium
CN117075963A
Developing application objects that interoperate with external objects
US20080002817A1