Modeling method, device, electronic device and storage medium based on relationship and relationship annotation

By building optional association relationships in the modeling system and configuring page selection trigger conditions, the problem of cumbersome relationship configuration and single logic in the modeling method is solved, and richer association meanings and flexible trigger conditions are achieved.

CN120179248BActive Publication Date: 2025-09-02BEIJING TONGYU ZHICHENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510639036.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2025-09-02
Estimated Expiration
2045-05-19

AI Technical Summary

Technical Problem

When creating association relationships between primitives, the existing modeling methods are cumbersome to configure, and the meaning and logic of the configuration relationship are single, and the triggering conditions are poor flexibility.

Method used

The graphical user interface of the modeling system displays the starting and terminating ingots to be connected through the graphical user interface. It has a built-in optional association relationship. It establishes an initial association relationship in response to the connection operation, and displays a configuration page on the graphical user interface to select and configure the types and trigger conditions of the association relationship to create an annotated association relationship.

Benefits of technology

The configuration process of association relationships is simplified, the meaning and logical richness of association relationships are increased, the flexibility of trigger conditions is improved, and the problems of cumbersome configuration and single logic in traditional modeling methods are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120179248B_ABST
    Figure CN120179248B_ABST
Patent Text Reader

Abstract

The present invention provides a modeling method, device, electronic device and storage medium based on relationships and relationship annotations, which belongs to the technical field of graphical models. In this method, an optional association relationship between the starting graphic element to be connected and the ending graphic element to be connected is built into the modeling system. In this way, there is no need to perform a tedious process of configuring the association relationship before establishing the association relationship. In addition, after the initial association relationship is established, the configuration page of the initial association relationship will be displayed, and the type and trigger conditions of the initial association relationship will be configured to obtain an annotated association relationship. The meaning and logic of the annotated association relationship are richer, and the trigger conditions can also be configured, that is, the trigger conditions are more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of graphical models, and in particular to a modeling method, device, electronic device and storage medium based on relationships and relationship annotations. Background Art

[0002] The existing model is to first configure the association relationship and specify the information represented by each association relationship; then use the association relationship to connect the elements to express specific logic. Figure 1 shown.

[0003] Configure association relationships: Configure each association relationship that needs to be used in turn, and specify its display style and expression meaning;

[0004] Drag and drop to connect elements: On the layer where you want to establish an association, use the mouse to drag from one element to another to create an association;

[0005] Select an association relationship: Depending on the type of elements at both ends of the connection, select different types of association relationships to express different meanings and logic.

[0006] The existing technical solutions for association relationships have the following two main problems:

[0007] (1) If you want to make the relationship express more diverse and complex logic, you need to go through a more tedious configuration process before establishing the relationship;

[0008] (2) The meaning and logic of the configured association relationships are relatively simple, and the association relationships are triggered when the data changes.

[0009] In summary, in traditional modeling methods, when creating association relationships between graphic elements, there are technical problems such as cumbersome configuration, single meaning and logic of the configured association relationships, and poor flexibility of triggering conditions. Summary of the Invention

[0010] In view of this, the purpose of the present invention is to provide a modeling method, device, electronic device and storage medium based on relationships and relationship annotations, so as to alleviate the technical problems in traditional modeling methods when creating relationships between graphic elements, such as cumbersome configuration, single meaning and logic of the configured relationships, and poor flexibility of triggering conditions.

[0011] In a first aspect, an embodiment of the present invention provides a modeling method based on relationships and relationship annotations, wherein a starting primitive to be connected and an ending primitive to be connected are displayed through a graphical user interface of a modeling system, wherein the modeling system has a built-in optional association relationship between the starting primitive to be connected and the ending primitive to be connected. The method includes:

[0012] In response to a connection operation from the to-be-connected start primitive to the to-be-connected end primitive, an initial association relationship is established between the to-be-connected start primitive and the to-be-connected end primitive;

[0013] In response to the end of the connection operation, displaying a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: a type of each association relationship in the optional association relationships and a trigger condition corresponding to each association relationship;

[0014] In response to a configuration operation on the configuration page, an annotated association relationship is created between the starting graphic element to be connected and the ending graphic element to be connected, thereby obtaining a model consisting of the starting graphic element to be connected, the ending graphic element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and triggering conditions of the association relationship configured in the configuration operation.

[0015] Furthermore, the method further comprises:

[0016] In response to a selection operation on the annotated association relationship, displaying a modification page for the annotated association relationship;

[0017] In response to a modification operation on the modification page, a modified annotated association relationship is created between the start graphic element to be connected and the end graphic element to be connected.

[0018] Furthermore, the trigger conditions include: object generation, object change and object disappearance.

[0019] Furthermore, the modification page includes: relationship probability, optional type and logical judgment.

[0020] Furthermore, the method further comprises:

[0021] In response to a deduction and execution operation for the model, the model is deduced and executed.

[0022] Furthermore, the method further comprises:

[0023] In response to a deletion operation on the annotated association relationship, the annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive is deleted.

[0024] In a second aspect, an embodiment of the present invention further provides a modeling device based on relationships and relationship annotations, wherein a starting primitive to be connected and an ending primitive to be connected are displayed through a graphical user interface of a modeling system, wherein the modeling system has a built-in optional association relationship between the starting primitive to be connected and the ending primitive to be connected, and the device comprises:

[0025] an establishing unit, configured to establish an initial association relationship between the to-be-connected starting primitive and the to-be-connected ending primitive in response to a connection operation on the to-be-connected starting primitive to the to-be-connected ending primitive;

[0026] a display unit, configured to display, in response to the completion of the connection operation, a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: a type of each association relationship in the optional association relationships and a trigger condition corresponding to each association relationship;

[0027] A creation unit is used to respond to a configuration operation on the configuration page, create an annotated association relationship between the starting graphic element to be connected and the ending graphic element to be connected, and then obtain a model consisting of the starting graphic element to be connected, the ending graphic element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and trigger condition of the association relationship configured in the configuration operation.

[0028] Furthermore, the device is also used for:

[0029] In response to a selection operation on the annotated association relationship, displaying a modification page for the annotated association relationship;

[0030] In response to a modification operation on the modification page, a modified annotated association relationship is created between the start graphic element to be connected and the end graphic element to be connected.

[0031] In a third aspect, an embodiment of the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0032] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute any method described in the first aspect above.

[0033] In an embodiment of the present invention, a modeling method based on relationships and relationship annotations is provided, in which a starting element to be connected and an ending element to be connected are displayed through a graphical user interface of a modeling system, and an optional association relationship between the starting element to be connected and the ending element to be connected is built into the modeling system. The method includes: in response to a connection operation from the starting element to be connected to the ending element to be connected, establishing an initial association relationship between the starting element to be connected and the ending element to be connected; in response to the end of the connection operation, displaying a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: the type of each association relationship in the optional association relationship, and the trigger condition corresponding to each association relationship; in response to the configuration operation on the configuration page, creating an annotated association relationship between the starting element to be connected and the ending element to be connected, thereby obtaining a model consisting of the starting element to be connected, the ending element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and trigger condition of the association relationship configured in the configuration operation. From the above description, it can be seen that in the modeling method based on relationships and relationship annotations of the present invention, an optional association relationship between the starting graphic element to be connected and the ending graphic element to be connected has been built into the modeling system. In this way, there is no need to perform a tedious process of configuring the association relationship before establishing the association relationship. In addition, after the initial association relationship is established, the configuration page of the initial association relationship will be displayed, and the type and trigger conditions of the initial association relationship will be configured to obtain an annotated association relationship. The meaning and logic of the annotated association relationship are richer, and the trigger conditions can also be configured, that is, the trigger conditions are more flexible, which alleviates the technical problems in traditional modeling methods when creating association relationships between graphic elements, such as cumbersome configuration, single meaning and logic of the configured association relationship, and poor flexibility of the trigger conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 A flowchart of a traditional modeling method provided by an embodiment of the present invention;

[0036] Figure 2 A flowchart of a modeling method based on relationships and relationship annotations provided by an embodiment of the present invention;

[0037] Figure 3 A schematic diagram of establishing an initial association relationship provided by an embodiment of the present invention;

[0038] Figure 4 A schematic diagram of a configuration page for an initial association relationship provided by an embodiment of the present invention;

[0039] Figure 5 A schematic diagram of annotated association relationships provided by an embodiment of the present invention;

[0040] Figure 6 A schematic diagram of a modification page with annotated association relationships provided by an embodiment of the present invention;

[0041] Figure 7 A schematic diagram of a modeling device based on relationships and relationship annotations provided by an embodiment of the present invention;

[0042] Figure 8 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The following will clearly and completely describe the technical solutions of the present invention in conjunction with the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0044] In traditional modeling methods, when creating association relationships between graphic elements, the configuration is cumbersome, the meaning and logic of the configured association relationships are simple, and the triggering conditions are inflexible.

[0045] Based on this, in the modeling method based on relationships and relationship annotations of the present invention, an optional association relationship between the starting graphic element to be connected and the ending graphic element to be connected has been built into the modeling system. In this way, there is no need to go through the tedious process of configuring the association relationship before establishing the association relationship. In addition, after the initial association relationship is established, the configuration page of the initial association relationship will be displayed, and the type and trigger conditions of the initial association relationship will be configured to obtain an annotated association relationship. The meaning and logic of the annotated association relationship are richer, and the trigger conditions can also be configured, that is, the trigger conditions are more flexible.

[0046] To facilitate understanding of this embodiment, a modeling method based on relationships and relationship annotations disclosed in an embodiment of the present invention is first introduced in detail.

[0047] Example 1:

[0048] According to an embodiment of the present invention, an embodiment of a modeling method based on relationships and relationship annotations is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0049] Figure 2 is a flow chart of a modeling method based on relationships and relationship annotations according to an embodiment of the present invention. Figure 2 As shown, the method includes the following steps:

[0050] Step S202 , in response to a connection operation from the start primitive to be connected to the end primitive to be connected, establishing an initial association relationship between the start primitive to be connected and the end primitive to be connected;

[0051] In an optional embodiment of the present invention, the starting primitives to be connected and the ending primitives to be connected are displayed through the graphical user interface of the modeling system, and the modeling system has built-in optional association relationships between the starting primitives to be connected and the ending primitives to be connected.

[0052] The above-mentioned starting element to be connected and the ending element to be connected can be elements built into the modeling system, obtained by the user dragging the elements to the graphical user interface. The above-mentioned elements can specifically include objects and processes. The above-mentioned connection operation can specifically be a drag-and-drop operation, that is, by dragging the starting element to be connected to the ending element to be connected, thereby establishing an initial association relationship between the starting element to be connected and the ending element to be connected, such as Figure 3 As shown, the above connection operation can also be a double-click operation, specifically, first double-clicking on the starting element to be connected, and then double-clicking on the ending element to be connected, thereby establishing an initial association relationship between the starting element to be connected and the ending element to be connected. Of course, the above connection operation can also be a single-click operation, or a right-click operation. The embodiment of the present invention does not impose specific restrictions on the above connection operation.

[0053] In addition, the above-mentioned graphic elements and their relationships are obtained in advance through programming in the modeling system through the modeling language. They have specific meanings and can be deduced and run subsequently.

[0054] Step S204: In response to the completion of the connection operation, a configuration page of the initial association relationship is displayed on the graphical user interface, wherein the configuration page includes: the type of each association relationship among the optional association relationships and the triggering condition corresponding to each association relationship;

[0055] Specifically, if the connection operation is a drag operation, the end of the connection operation is the end of the drag operation, that is, after dragging to the end element to be connected, releasing the left mouse button, the configuration page of the initial association relationship will be displayed in the graphical user interface, such as Figure 4 As shown, the above configuration page includes: the type of each relationship in the optional relationship, the triggering conditions corresponding to each relationship, such as Figure 4 As shown, the types include: conditional relationship, call relationship, unidirectional labeled relationship, bidirectional labeled relationship, and symbols of each type of association relationship. The trigger condition mentioned above is Figure 4 Events in .

[0056] Step S206, in response to the configuration operation for the configuration page, creates an annotated association relationship between the starting element to be connected and the ending element to be connected, thereby obtaining a model consisting of the starting element to be connected, the ending element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and triggering conditions of the association relationship configured in the configuration operation.

[0057] Specifically, according to the needs of the scene, the user can select different association relationships and check the event (i.e., trigger condition) when the association relationship is triggered. After completing the configuration operation on the configuration page, a labeled association relationship is created between the start element to be connected and the end element to be connected. A model consisting of the start element to be connected, the end element to be connected, and the labeled association relationship is obtained, such as Figure 5 As shown, the annotated association relationship is used to express specific logic (i.e., call logic, which is displayed through the association relationship ontology, i.e. Figure 5 ), and the event at which the association is triggered (i.e. Figure 5 The a and v in the __name__ indicate that the event is triggered when an object is created or changed).

[0058] In an embodiment of the present invention, a modeling method based on relationships and relationship annotations is provided, in which a starting element to be connected and an ending element to be connected are displayed through a graphical user interface of a modeling system, and an optional association relationship between the starting element to be connected and the ending element to be connected is built into the modeling system. The method includes: in response to a connection operation from the starting element to be connected to the ending element to be connected, establishing an initial association relationship between the starting element to be connected and the ending element to be connected; in response to the end of the connection operation, displaying a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: the type of each association relationship in the optional association relationship, and the trigger condition corresponding to each association relationship; in response to the configuration operation on the configuration page, creating an annotated association relationship between the starting element to be connected and the ending element to be connected, thereby obtaining a model consisting of the starting element to be connected, the ending element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and trigger condition of the association relationship configured in the configuration operation. From the above description, it can be seen that in the modeling method based on relationships and relationship annotations of the present invention, an optional association relationship between the starting graphic element to be connected and the ending graphic element to be connected has been built into the modeling system. In this way, there is no need to perform a tedious process of configuring the association relationship before establishing the association relationship. In addition, after the initial association relationship is established, the configuration page of the initial association relationship will be displayed, and the type and trigger conditions of the initial association relationship will be configured to obtain an annotated association relationship. The meaning and logic of the annotated association relationship are richer, and the trigger conditions can also be configured, that is, the trigger conditions are more flexible, which alleviates the technical problems in traditional modeling methods when creating association relationships between graphic elements, such as cumbersome configuration, single meaning and logic of the configured association relationship, and poor flexibility of the trigger conditions.

[0059] The above content briefly introduces the modeling method based on relationships and relationship annotations of the present invention. The specific contents involved are described in detail below.

[0060] In an optional embodiment of the present invention, the method further comprises the following steps:

[0061] (1) In response to a selection operation on a labeled relationship, a modification page for the labeled relationship is displayed;

[0062] Specifically, after obtaining the annotated relationship, you can click to select the annotated relationship to display the modification page of the annotated relationship, such as Figure 6 As shown, the page on the right is the modification page.

[0063] (2) In response to a modification operation on the modification page, a modified annotated association relationship is created between the start element to be connected and the end element to be connected.

[0064] Specifically, such as Figure 6 As shown in the figure, after setting the relationship probability to 0.5 and the logical judgment to (>10) on the modification page, a modified annotated association relationship is created between the starting element to be connected and the ending element to be connected. The modified annotated association relationship is annotated with the relationship probability and logical judgment, that is, by adding annotations to the association relationship, richer meanings and logic are expressed.

[0065] In an optional embodiment of the present invention, the triggering conditions include: object generation, object change, and object disappearance.

[0066] In an optional embodiment of the present invention, the modification page includes: relationship probability, optional type and logical judgment.

[0067] In an optional embodiment of the present invention, the method further comprises the following steps:

[0068] In response to the deduction and running operation for the model, the model is deduced and run.

[0069] In an optional embodiment of the present invention, the method further comprises the following steps:

[0070] In response to a deletion operation on the labeled association relationship, the labeled association relationship between the to-be-connected start graphic element and the to-be-connected end graphic element is deleted.

[0071] Specifically, the user may first select the aforementioned labeled association relationship, and then click a delete key (such as a delete key) to delete the labeled association relationship, so as to select a new association relationship.

[0072] The modeling method based on relationships and relationship annotations of the present invention creates initial relationships and assigns annotations (such as type, event, relationship probability, and logical judgment) to these relationships based on the scenario, enabling the modeling scenario to concisely express more semantics and logic. When creating relationships, users can select different annotations to give them more meaning and trigger conditions. After creating annotated relationships, they can also modify their properties to add more identifiers (i.e., annotations) to express more semantics and logic. This provides relationships with more semantics and expressible logic while ensuring convenience and simplicity.

[0073] In the method of the present invention, users can express the logical relationships between different graphic elements in a richer manner. By adding identifiers to the association relationships, the types of logic that can be expressed by the association relationships can be further improved.

[0074] Example 2:

[0075] An embodiment of the present invention also provides a modeling device based on relationships and relationship annotations. The modeling device based on relationships and relationship annotations is mainly used to execute the modeling method based on relationships and relationship annotations provided in Example 1 of the present invention. The following is a detailed introduction to the modeling device based on relationships and relationship annotations provided in the embodiment of the present invention.

[0076] Figure 7 is a schematic diagram of a modeling device based on relationships and relationship annotations according to an embodiment of the present invention, such as Figure 7 As shown, the device mainly includes: an establishment unit 10, a display unit 20 and a creation unit 30, wherein:

[0077] An establishing unit, configured to establish an initial association relationship between the start primitive to be connected and the end primitive to be connected in response to a connection operation from the start primitive to be connected to the end primitive to be connected;

[0078] A display unit, configured to display a configuration page of the initial association relationship on a graphical user interface in response to the end of the connection operation, wherein the configuration page includes: a type of each association relationship among the optional association relationships and a trigger condition corresponding to each association relationship;

[0079] A creation unit is used to respond to a configuration operation on a configuration page, create an annotated association relationship between the starting element to be connected and the ending element to be connected, and then obtain a model consisting of the starting element to be connected, the ending element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and triggering conditions of the association relationship configured in the configuration operation.

[0080] In an embodiment of the present invention, a modeling device based on relationships and relationship annotations is provided, which displays the starting element to be connected and the ending element to be connected through the graphical user interface of the modeling system, and the modeling system has built-in optional association relationships between the starting element to be connected and the ending element to be connected. The device includes: in response to a connection operation from the starting element to be connected to the ending element to be connected, establishing an initial association relationship between the starting element to be connected and the ending element to be connected; in response to the end of the connection operation, displaying a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: the type of each association relationship in the optional association relationship, and the trigger condition corresponding to each association relationship; in response to the configuration operation on the configuration page, creating an annotated association relationship between the starting element to be connected and the ending element to be connected, thereby obtaining a model composed of the starting element to be connected, the ending element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and trigger condition of the association relationship configured in the configuration operation. From the above description, it can be seen that in the modeling device based on relationships and relationship annotations of the present invention, an optional association relationship between the starting graphic element to be connected and the ending graphic element to be connected has been built into the modeling system. In this way, there is no need to perform a tedious process of configuring the association relationship before establishing the association relationship. In addition, after the initial association relationship is established, the configuration page of the initial association relationship will be displayed, and the type and trigger conditions of the initial association relationship will be configured to obtain an annotated association relationship. The meaning and logic of the annotated association relationship are richer, and the trigger conditions can also be configured, that is, the trigger conditions are more flexible, which alleviates the technical problems in traditional modeling methods when creating association relationships between graphic elements, such as cumbersome configuration, single meaning and logic of the configured association relationship, and poor flexibility of the trigger conditions.

[0081] Optionally, the device is also used to: respond to a selection operation on the annotated association relationship, display a modification page of the annotated association relationship; respond to a modification operation on the modification page, create a modified annotated association relationship between the starting element to be connected and the ending element to be connected.

[0082] Optionally, the triggering conditions include: object generation, object change, and object disappearance.

[0083] Optionally, the modification page includes: relationship probability, optional type and logical judgment.

[0084] Optionally, the device is also used to: respond to a deduction and running operation on the model and perform deduction and running on the model.

[0085] Optionally, the apparatus is further configured to: in response to a deletion operation on the annotated association relationship, delete the annotated association relationship between the start graphic element to be connected and the end graphic element to be connected.

[0086] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference can be made to the corresponding content in the aforementioned method embodiment.

[0087] like Figure 8 As shown, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the above-mentioned modeling method based on relationships and relationship annotations.

[0088] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memories and processors, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, it can execute the above-mentioned modeling method based on relationships and relationship annotations.

[0089] The processor 601 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 601 or by instructions in the form of software. The above-mentioned processor 601 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. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in memory 602, and processor 601 reads the information in memory 602 and performs the steps of the above method in conjunction with its hardware.

[0090] Corresponding to the above-mentioned modeling method based on relationships and relationship annotations, an embodiment of the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned modeling method based on relationships and relationship annotations.

[0091] The modeling device based on relationships and relationship annotations provided in the embodiments of the present application can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiments of the present application, its implementation principle and the technical effects produced are the same as those in the aforementioned method embodiments. For the sake of brief description, for parts not mentioned in the device embodiment, reference can be made to the corresponding contents in the aforementioned method embodiments. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0092] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components 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 communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0093] For another example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a 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 an order different from that marked in the accompanying drawings. For example, two consecutive boxes 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 action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0094] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0095] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0096] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the modeling method based on relationships and relationship annotations described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0097] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0098] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-mentioned embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. However, these modifications, changes, or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application. They should all be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A modeling method based on relationships and relationship annotations, characterized in that: The method includes: displaying a start primitive to be connected and an end primitive to be connected via a graphical user interface of a modeling system, wherein an optional association relationship between the start primitive to be connected and the end primitive to be connected is built into the modeling system; In response to a connection operation from the to-be-connected start primitive to the to-be-connected end primitive, an initial association relationship is established between the to-be-connected start primitive and the to-be-connected end primitive; In response to the end of the connection operation, displaying a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: a type of each association relationship in the optional association relationships and a trigger condition corresponding to each association relationship; In response to a configuration operation on the configuration page, an annotated association relationship is created between the starting graphic element to be connected and the ending graphic element to be connected, thereby obtaining a model consisting of the starting graphic element to be connected, the ending graphic element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and triggering conditions of the association relationship configured in the configuration operation.

2. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation on the annotated association relationship, displaying a modification page for the annotated association relationship; In response to a modification operation on the modification page, a modified annotated association relationship is created between the start graphic element to be connected and the end graphic element to be connected.

3. The method according to claim 1, characterized in that The trigger conditions include: object generation, object change and object disappearance.

4. The method according to claim 2, characterized in that The modification page includes: relationship probability, optional type and logical judgment.

5. The method according to claim 1, characterized in that The method further comprises: In response to a deduction and execution operation for the model, the model is deduced and executed.

6. The method according to claim 1, characterized in that The method further comprises: In response to a deletion operation on the annotated association relationship, the annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive is deleted.

7. A modeling device based on relationships and relationship annotations, characterized in that: The graphical user interface of the modeling system is used to display the starting primitive to be connected and the ending primitive to be connected, wherein the modeling system has a built-in optional association relationship between the starting primitive to be connected and the ending primitive to be connected, and the device includes: an establishing unit, configured to establish an initial association relationship between the to-be-connected starting primitive and the to-be-connected ending primitive in response to a connection operation on the to-be-connected starting primitive to the to-be-connected ending primitive; a display unit, configured to display, in response to the end of the connection operation, a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: a type of each association relationship in the optional association relationships and a trigger condition corresponding to each association relationship; A creation unit is used to respond to a configuration operation on the configuration page, create an annotated association relationship between the starting graphic element to be connected and the ending graphic element to be connected, and then obtain a model consisting of the starting graphic element to be connected, the ending graphic element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and trigger condition of the association relationship configured in the configuration operation.

8. The device according to claim 7, characterized in that The device is also used for: In response to a selection operation on the annotated association relationship, displaying a modification page for the annotated association relationship; In response to a modification operation on the modification page, a modified annotated association relationship is created between the start graphic element to be connected and the end graphic element to be connected.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Business process management method and device, electronic equipment and storage medium

    CN111695827A

  • Custom method and device of primitives, storage medium and computer equipment

    CN115730096A