CN110308895B - Project development platform and project development method performed by application project development platform - Google Patents

Project development platform and project development method performed by application project development platform Download PDF

Info

Publication number
CN110308895B
CN110308895B CN201910559160.2A CN201910559160A CN110308895B CN 110308895 B CN110308895 B CN 110308895B CN 201910559160 A CN201910559160 A CN 201910559160A CN 110308895 B CN110308895 B CN 110308895B
Authority
CN
China
Prior art keywords
data
node
target
structure tree
storage medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910559160.2A
Other languages
Chinese (zh)
Other versions
CN110308895A (en
Inventor
王晓晖
黄毅
昝世翔
王悦城
高西宽
慕志明
谢双泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xinpufei Technology Co ltd
Original Assignee
Beijing Xinpufei Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xinpufei Technology Co ltd filed Critical Beijing Xinpufei Technology Co ltd
Priority to CN201910559160.2A priority Critical patent/CN110308895B/en
Publication of CN110308895A publication Critical patent/CN110308895A/en
Application granted granted Critical
Publication of CN110308895B publication Critical patent/CN110308895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a project development platform and a project development method performed by the application project development platform. The project development platform acquires configuration data of a current development project through a configuration module, constructs an object structure tree corresponding to the current development project through a structure tree construction module for the configuration data in the configuration module, acquires a mapping rule corresponding to a preset data storage medium type through a mapping rule acquisition module, and maps each data node in the object structure tree and object information corresponding to each data node in the object structure tree to a data storage medium corresponding to the preset data storage medium type through the mapping rule. The method enables developers to concentrate more on the realization of business logic, enables the functions realized by a large amount of code to be realized by configuration, and enables the whole system to be deployed and the maintenance cost to be greatly reduced.

Description

Project development platform and project development method performed by application project development platform
Technical Field
The invention relates to the technical field of computer software development, in particular to a project development platform, a project development method and a computer readable storage medium.
Background
With the rapid development of the information-based society, modules and data related to a software system are more and more complex, and the importance of a good programming idea and structural design is more and more important.
The programming idea of 'process-oriented' provides a flow programming mode, and the structural design of the whole system is similar to that of flowing on a production line, and data is input, processed and output continuously.
In the related art, the mainstream 'procedure-oriented' programming languages include C and Fortran. The object-oriented programming idea provides a thinking and a method for organizing objects, and data and logic in actual problems are organized into one object through methods such as encapsulation, abstraction, inheritance and the like, so that the efficiency is improved, and the method is very suitable for the design of a large-scale software system. However, the idea of "object-oriented" has no unified thinking rule, and particularly there is no criterion for "organizing objects" and planning "relationships between objects", so that the part mainly depends on the professional degree and related experience of personnel, a better design can achieve the effect of twice as much as half the effort, but the problems brought by a poorer design may be at a disaster level. Therefore, how to implement the object-oriented unified thinking rule has become an urgent problem to be solved.
Disclosure of Invention
The present invention has been made to solve at least one of the technical problems of the related art to some extent.
Therefore, one objective of the present invention is to provide a project development platform, which solves the problems that the object-oriented programming idea has no unified criterion for organizing the relationship between objects and planning the objects, and the design and implementation completely depend on the professional level of personnel, so that developers can concentrate more on the implementation of business logic without getting in detailed technical details, the operating environment is very independent, no other third-party plug-ins are needed, and the language itself provides technical means such as system deployment, problem troubleshooting, etc., so that the functions previously implemented by relying on a large amount of codes can be implemented by configuration, the whole system deployment is enabled, and the maintenance cost is greatly reduced.
The second purpose of the invention is to provide a project development method performed by the project development platform.
To achieve the above object, a project development platform according to an embodiment of the first aspect of the present invention includes:
the configuration module is used for acquiring configuration data of the current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object and relationship data between each data object and other data objects;
the structure tree building module is used for building an object structure tree corresponding to the current development project according to object information corresponding to each data and relationship data between each data object and other data objects, wherein each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and the corresponding data node also comprises object information of the corresponding data object;
the mapping rule obtaining module is used for obtaining a mapping rule corresponding to a preset data storage medium type;
and the mapping module is used for mapping each data node in the object structure tree and the object information corresponding to each data node to the data storage medium corresponding to the preset data storage medium type according to the mapping rule.
According to the project development platform provided by the embodiment of the invention, configuration data of a current development project can be acquired, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, the associated edge between each data node is the relationship data between corresponding data objects, the corresponding data node further comprises object information corresponding to the data object, then a mapping rule corresponding to a preset data storage medium type is acquired, and finally each data node in the object structure tree and the object information corresponding to each data node are mapped into a data storage medium corresponding to the preset data storage medium type according to the mapping rule. Therefore, the problem that the object-oriented programming idea has no unified criterion for the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel is solved, developers can concentrate on the implementation of business logic more without trapping detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that the function realized by a large amount of code can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
According to one embodiment of the invention, the project development platform further comprises: a providing module for providing candidate data storage media types; and the selection module is used for taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
According to an embodiment of the present invention, the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, and the mapping module is specifically configured to: and establishing a data table with an object name corresponding to the current data node as a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to the object attribute corresponding to the current data node.
According to an embodiment of the present invention, the configuration data further includes a logical relationship between a first target data object and a control object, where the first target data object is one or more of the plurality of data objects, and the structure tree building module is specifically configured to: according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in the object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to a logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
According to one embodiment of the invention, the project development platform further comprises: a data object adding module, configured to obtain object information and object relationship data of a first newly added data object, where the object relationship data includes relationship data between the first data object and a second target data object, and the second target data object is one or more of the multiple data objects; a first structure tree updating module, configured to update the object structure tree according to object information of the first data object and relationship data between the first data object and the second target data object, where the updated object structure tree includes a second target data node corresponding to the first data object, the second target data node further includes the object information of the first data object, and a correlation edge is formed between the second target data node and a data node corresponding to the second target data object.
According to one embodiment of the invention, the project development platform further comprises: the data object adding module is used for acquiring a second data object to be deleted; and the second structure tree updating module is used for deleting the target data node corresponding to the second data object in the object structure tree.
According to one embodiment of the invention, the project development platform further comprises: the data access module is used for determining a third data object corresponding to the data access request, determining a third target data point corresponding to the third data object according to the object structure tree, and acquiring target object data matched with the data access request from the data storage medium according to the third target data point; and the display module is used for displaying the target object data.
In order to achieve the above object, a project development method performed by a project development platform according to an embodiment of a second aspect of the present invention includes:
acquiring configuration data of a current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects;
according to object information corresponding to each data and relationship data between each data object and other data objects, constructing an object structure tree corresponding to the current development project, wherein each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and the corresponding data node also comprises object information of the corresponding data object;
acquiring a mapping rule corresponding to a preset data storage medium type;
and mapping each data node in the object structure tree and the object information corresponding to each data node into a data storage medium corresponding to the preset data storage medium type according to the mapping rule.
According to the project development method performed by the project development platform of the embodiment of the invention, the configuration data of the current development project can be acquired, wherein the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data object and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, the association edge between each data node is the relationship data between corresponding data objects, the corresponding data node further includes the object information of the corresponding data object, then a mapping rule corresponding to a preset data storage medium type is acquired, and finally each data node in the object structure tree and the object information corresponding to each data node are mapped into the data storage medium corresponding to the preset data storage medium type according to the mapping rule. Therefore, the problem that the object-oriented programming idea has no unified criterion for the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel is solved, developers can concentrate on the implementation of business logic more without trapping detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that the function realized by a large amount of code can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: providing candidate data storage media types; and taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
According to an embodiment of the present invention, the mapping of the object information to the data storage medium corresponding to the preset data storage medium type includes: and establishing a data table with an object name corresponding to the current data node as a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to the object attribute corresponding to the current data node.
According to an embodiment of the present invention, the configuration data further includes a logical relationship between a first target data object and a control object, where the first target data object is one or more of the plurality of data objects, and the object structure tree corresponding to the current development project is constructed according to object information corresponding to each data and relationship data between each data object and other data objects, including; according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in the object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to a logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: acquiring object information and object relation data of a first newly added data object, wherein the object relation data comprises relation data between the first data object and a second target data object, and the second target data object is one or more of the data objects; and updating the object structure tree according to the object information of the first data object and the relationship data between the first data object and the second target data object, wherein the updated object structure tree comprises a second target data node corresponding to the first data object, the second target data node also comprises the object information of the first data object, and a correlation edge is arranged between the second target data node and the data node corresponding to the second target data object.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: acquiring a second data object to be deleted; and deleting the target data node corresponding to the second data object in the object structure tree.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: determining a third data object corresponding to the data access request; determining a third target data point corresponding to the third data object from the object structure tree; acquiring target object data matched with the data access request from the data storage medium according to the third target data point; and displaying the target object data.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a schematic structural diagram of a project development platform according to one embodiment of the invention.
FIG. 2 is a diagram of a relational data structure between each data object and other data objects, according to one embodiment of the invention.
FIG. 3 is a structural diagram of an object structure tree for managing projects for employees according to the current development project of the present invention.
FIG. 4 is a schematic diagram of another object structure tree for managing projects for employees according to the current development project of the present invention.
Fig. 5 is a schematic structural diagram of a mapping rule of a storage medium type database according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a mapping rule of a storage medium type being a file according to an embodiment of the present invention.
FIG. 7 is a schematic structural diagram of a project development platform according to another embodiment of the invention.
Fig. 8 is a schematic structural diagram of a project development platform according to another embodiment of the present invention.
FIG. 9 is a schematic structural diagram of a project development platform according to another embodiment of the invention.
FIG. 10 is a flow diagram of a project development method performed by an application project development platform, according to one embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related art, the mainstream procedure-oriented programming languages include C and Fortran. The object-oriented programming idea provides a thinking and a method for organizing objects, and data and logic in actual problems are organized into one object through methods such as encapsulation, abstraction, inheritance and the like, so that the efficiency is improved, and the method is very suitable for the design of a large-scale software system. However, the idea of "object-oriented" has no unified thinking rule, and particularly there is no criterion for "organizing objects" and planning "relationships between objects", so that the part mainly depends on the professional degree and related experience of personnel, a better design can achieve the effect of twice as much as half the effort, but the problems brought by a poorer design may be at a disaster level. Therefore, how to implement the object-oriented unified thinking rule has become an urgent problem to be solved. In order to solve the technical problems in the prior art, the invention provides a project development platform and a project development method performed by the application project development platform.
Fig. 1 is a schematic structural diagram of a project development platform according to an embodiment of the present invention, and as shown in fig. 1, the project development platform 100 may include: a configuration module 110, a structure tree construction module 120, a mapping rule obtaining module 130 and a mapping module 140. Wherein the content of the first and second substances,
the configuration module 110 is configured to obtain configuration data of a current development project, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects;
the structure tree construction module 120 is configured to construct an object structure tree corresponding to the current development project according to object information corresponding to each data and relationship data between each data object and other data objects, where each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and each corresponding data node further includes object information of the corresponding data object;
the mapping rule obtaining module 130 is configured to obtain a mapping rule corresponding to a preset data storage medium type;
the mapping module 140 is configured to map each data node in the object structure tree and its corresponding object information to a data storage medium corresponding to the preset data storage medium type according to the mapping rule.
Specifically, the configuration module 110 is configured to obtain configuration data of the current development project, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
In the embodiment of the present invention, configuration data may be respectively selected according to data types generated by each service applicable to the current development project system, and the configuration data is sent to the configuration module 110, so that the configuration module 110 is configured to obtain the configuration data of the current development project, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
It should be noted that any data object can access other objects through a direct or indirect association relationship, and does not necessarily need to be a direct association relationship, a strong association relationship is associated through a direct association relationship, and a weak association relationship is associated through an indirect relationship, so as to obtain relationship data between each data object and other data objects. For example, FIG. 2 is a diagram of a relational data structure between each data object and other data objects, according to one embodiment of the invention. As shown in fig. 2, although there is no direct association relationship between "enterprise a" and "citizen B", indirect association can be performed through the path of "enterprise a" < - > "province a" < - > "country" < - > "province B" < - > "citizen B", so that any object is associated.
The structure tree building module 120 is configured to build an object structure tree corresponding to the current development project according to object information corresponding to each data and relationship data between each data object and other data objects, where each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and each corresponding data node further includes object information of the corresponding data object.
In the embodiment of the present application, a current development project is taken as an example of an employee management project, and fig. 3 is a schematic structural diagram of an object structure tree of which the current development project is an employee management project according to the present invention, and as shown in fig. 3, it is assumed that one configuration data includes departments, and the departments include "department 1" and "department 2", where "department 1" includes "department of project 1" and "department of project 2", and an object structure tree of which the employee management project is constructed according to a relationship between the corresponding department and department of the configuration data and "department 1" and "department 2".
In an embodiment of the present invention, the configuration data further comprises a logical relationship between a first target data object and the control object, wherein the first target data object is one or more of the plurality of data objects.
It should be noted that the logical relationship is understood that a change in one object causes a change in another object, "and the process is likely to be" recursive, "i.e.," a change in another object causes another change in the object.
The structure tree building module 120 is specifically configured to: according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in an object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to the logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
Continuing with the above employee management project as an example, fig. 4 is a schematic structural diagram of another object structure tree of the employee management project according to the current development project of the present invention, as shown in fig. 4, it is assumed that the configuration data includes departments and office halls, where the departments include "department 1" and "department 2", where "department 1" includes "project 1 department" and "project 2 department"; the office includes "office 1" and "office 2". And setting a display logic relationship on the page, so as to construct a logic node in an object structure tree of the employee management project.
The mapping rule obtaining module 130 is configured to obtain a mapping rule corresponding to a preset data storage medium type.
Optionally, the candidate data storage medium type corresponding to the user selection operation may be used as the preset data storage medium type according to the provided candidate data storage medium type, so as to obtain the mapping rule corresponding to the preset data storage medium type.
That is, the project development stage starts with the steps of establishing the related structure of the storage medium after determining the object definitions and the relationships between the objects, configuring the related operation strategies of the storage medium according to the characteristics of the storage medium, and implementing the modification of different media and the specific method of querying data according to the types and codes of different storage media. The mapping rules of the storage medium type database and the storage medium type file will be described below.
In the embodiment of the present invention, fig. 5 is a schematic structural diagram of a mapping rule in which a storage medium type is a database according to the embodiment of the present invention, and as shown in fig. 5, when the storage medium is a database, it is necessary to create a database according to definitions, construct a related table and specific attributes, define a related table, add a data index, create a backup scheme, and other related technical details.
In the embodiment of the present invention, fig. 6 is a schematic structural diagram of a mapping rule in which a storage medium type is a file according to the embodiment of the present invention, and as shown in fig. 6, when a storage medium is a file, it is generally necessary to construct a corresponding directory structure and related file formats and contents according to a hierarchy, including attributes such as planning related operation permissions of the file, sharing permissions, and the like. And different versions of the same storage medium, or policies and methods related to different platforms (Windows, linux, etc.) may be completely different.
The mapping module 140 is configured to map each data node in the object structure tree and its corresponding object information to a data storage medium corresponding to a preset data storage medium type according to a mapping rule.
Optionally, the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, a data table with the object name corresponding to the current data node as a table name may be established in the database for each data node in the object structure tree, and an object field is set in the data table, where the object field corresponds to the object attribute corresponding to the current data node.
In the process of a current development project, sometimes a data object is added according to a business requirement of the current development project, for example, the current development project is an employee management project, and it is assumed that the employee management project currently includes a configuration module 110, a structure tree building module 120, a mapping rule obtaining module 130, and a mapping module 140. In order to facilitate adding data objects in a development platform by developers, as an exemplary implementation manner, on the basis of the embodiment shown in fig. 1, fig. 7 is a schematic structural diagram of a project development platform according to another embodiment of the present invention, as shown in fig. 7, the project development platform may further include a data object adding module 710 and a first structural tree updating module 720, where the data object adding module 710 is configured to obtain object information and object relationship data of a newly added first data object, the object relationship data includes relationship data between the first data object and a second target data object, and the second target data is one or more of the plurality of data objects;
the first structure tree updating module 720 is configured to update the object structure tree according to the object information of the first data object and the relationship data between the first data object and the second target data object, where the updated object structure tree includes a second target data node corresponding to the first data object, the second target data node further includes the object information of the first data object, and an associated edge is formed between the second target data node and the data node corresponding to the second target data object.
In the embodiment of the present invention, the object attribute further includes an object attribute modification module, so that a user can modify the object attribute of the corresponding data object through the object attribute modification module conveniently.
The object attribute modification module modifies the object attribute of the corresponding data object, so that the object attribute of the corresponding data object can be added, deleted and modified.
In the process of a current development project, a data object may be deleted according to a business requirement of the current development project, for example, the current development project is an employee management project, and it is assumed that the employee management project currently includes a configuration module 110, a structure tree building module 120, a mapping rule obtaining module 130, and a mapping module 140. In order to facilitate a developer to delete a data object in a development platform, as an exemplary implementation manner, on the basis of the embodiment shown in fig. 1, fig. 8 is a schematic structural diagram of a project development platform according to another embodiment of the present invention, as shown in fig. 8, the project development platform may further include a data object deletion module 810 and a second structure tree deletion module 820, where the data object deletion module 810 is configured to obtain a second data object to be deleted; the second structure tree deleting module 820 is configured to delete a target data node in the object structure tree corresponding to the second data object.
As an exemplary implementation manner, on the basis of the embodiment shown in fig. 7 or fig. 8, fig. 9 is a schematic structural diagram of a project development platform according to another embodiment of the present invention, as shown in fig. 9, the project development platform may further include a data access module 910 and a display module 920, where the data access module 910 is configured to determine a third data object corresponding to a data access request, determine a third target data point corresponding to the third data object according to the object structure tree, and obtain target object data matching the data access request from the data storage medium according to the third target data point; the display module 920 is configured to display the target object data.
The method of accessing the object includes, but is not limited to, a relative path access method and an absolute path access method.
According to the project development platform provided by the embodiment of the invention, configuration data of a current development project can be acquired, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, the associated edge between each data node is the relationship data between corresponding data objects, the corresponding data node further comprises object information corresponding to the data object, then a mapping rule corresponding to a preset data storage medium type is acquired, and finally each data node in the object structure tree and the object information corresponding to each data node are mapped into a data storage medium corresponding to the preset data storage medium type according to the mapping rule. Therefore, the problem that the object-oriented programming idea has no unified criterion for the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel is solved, developers can concentrate on the implementation of business logic more without trapping detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that the function realized by a large amount of code can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
In order to implement the above embodiments, the present application further provides a project development method performed by the application project development platform.
FIG. 10 is a flow diagram of a project development method performed by an application project development platform, in accordance with one embodiment of the present invention. It should be noted that the project development method performed by the application project development platform according to the embodiment of the present application may be the project development described in any of the above embodiments of the present application.
S1010, obtaining configuration data of the current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
In the embodiment of the invention, the configuration data can be respectively selected according to the data types generated by each service applicable to the current development project system, and the configuration data is sent to the configuration module, so that the configuration module obtains the configuration data of the current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
It should be noted that any data object can access other objects through a direct or indirect association relationship, and does not necessarily need to be a direct association relationship, a strong association relationship is associated through a direct association relationship, and a weak association relationship is associated through an indirect relationship, so as to obtain relationship data between each data object and other data objects.
And S1020, constructing an object structure tree corresponding to the current development project according to the object information corresponding to each data and the relationship data between each data object and other data objects, wherein each data node in the object structure tree is each data object in the configuration data, the association edge between each data node is the relationship data between the corresponding data objects, and the corresponding data node also comprises the object information of the corresponding data object.
In an embodiment of the present invention, the configuration data further comprises a logical relationship between a first target data object and the control object, wherein the first target data object is one or more of the plurality of data objects.
It should be noted that the logical relationship is understood that a change in one object causes a change in another object, "and the process is likely to be" recursive, "i.e.," a change in another object causes another change in the object.
According to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in an object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to the logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
S1030, acquiring a mapping rule corresponding to the preset data storage medium type.
Optionally, the candidate data storage medium type corresponding to the user selection operation may be used as the preset data storage medium type according to the provided candidate data storage medium type, so as to obtain the mapping rule corresponding to the preset data storage medium type.
That is, the project development stage starts with the steps of establishing the related structure of the storage medium after determining the object definitions and the relationships between the objects, configuring the related operation strategies of the storage medium according to the characteristics of the storage medium, and implementing the modification of different media and the specific method of querying data according to the types and codes of different storage media.
And S1040, according to the mapping rule, mapping each data node in the object structure tree and the object information corresponding to each data node into the data storage medium corresponding to the preset data storage medium type.
Optionally, the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, a data table with the object name corresponding to the current data node as a table name may be established in the database for each data node in the object structure tree, and an object field is set in the data table, where the object field corresponds to the object attribute corresponding to the current data node.
In the process of developing a current development project, sometimes, data objects are added according to business requirements of the current development project, and in order to facilitate addition of the data objects in a development platform by developers, optionally, in an embodiment of the present invention, object information and object relationship data of a first data object newly added may be obtained, where the object relationship data includes relationship data between the first data object and a second target data object, and the second target data object is one or more of a plurality of data objects; and updating the object structure tree according to the object information of the first data object and the relation data between the first data object and the second target data object, wherein the updated object structure tree comprises a second target data node corresponding to the first data object, the second target data node also comprises the object information of the first data object, and a correlation edge is arranged between the second target data node and the data node corresponding to the second target data object.
In the process of the current development project, sometimes a situation that a data object is deleted according to a service requirement of the current development project occurs, and in order to facilitate a developer to delete the data object in a development platform, optionally, in the embodiment of the present invention, a second data object to be deleted is obtained; and deleting the target data node corresponding to the second data object in the object structure tree.
In the process of the current development project, accessing a data object in the current development project, optionally, in an embodiment of the present invention, determining a third data object corresponding to the data access request; determining a third target data point corresponding to a third data object according to the object structure tree; acquiring target object data matched with the data access request from the data storage medium according to the third target data point; and displaying the target object data.
According to the project development method performed by the project development platform of the embodiment of the invention, the configuration data of the current development project can be acquired, wherein the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data object and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, the association edge between each data node is the relationship data between corresponding data objects, the corresponding data node further includes the object information of the corresponding data object, then a mapping rule corresponding to a preset data storage medium type is acquired, and finally each data node in the object structure tree and the object information corresponding to each data node are mapped into the data storage medium corresponding to the preset data storage medium type according to the mapping rule. Therefore, the problems that the object-oriented programming idea has no unified criterion on the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel are solved, developers can concentrate on the implementation of business logic more without getting into detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that a large number of functions which are realized by relying on codes can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A project development platform, comprising:
the configuration module is used for acquiring configuration data of a current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, relationship data between each data object and other data objects, and a logical relationship between a first target data object and a control object, the first target data object is one or more of the data objects, and the object information comprises an object name and an object attribute;
the structure tree construction module is used for constructing data nodes and associated edges between the data nodes in an object structure tree corresponding to a current development project according to object information corresponding to each data and relationship data between each data object and other data objects, constructing logic nodes in the object structure tree according to a logic relationship between a first target data object and a control object, wherein the logic nodes correspond to the control object, the logic edges between the logic nodes and the first target data node are the logic relationship between the first target data object and the control object, the first target data node is a data node corresponding to the first target data object, each data node in the object structure tree is respectively each data object in the configuration data, the associated edges between each data node are relationship data between corresponding data objects, and the corresponding data nodes also include object information of the corresponding data objects;
the mapping rule obtaining module is used for obtaining a mapping rule corresponding to a preset data storage medium type;
and the mapping module is used for mapping each data node in the object structure tree and the object information corresponding to each data node to a data storage medium corresponding to the preset data storage medium type according to the mapping rule, wherein when the data storage medium type is a database type, the data storage medium is a database, the mapping module is used for establishing a data table in which an object name corresponding to the current data node is a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to an object attribute corresponding to the current data node.
2. The platform of claim 1, further comprising:
a providing module for providing candidate data storage media types;
and the selection module is used for taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
3. The platform of claim 1, wherein the platform further comprises:
a data object adding module, configured to obtain object information and object relationship data of a first newly added data object, where the object relationship data includes relationship data between the first data object and a second target data object, and the second target data object is one or more of the multiple data objects;
a first structure tree updating module, configured to update the object structure tree according to object information of the first data object and relationship data between the first data object and the second target data object, where the updated object structure tree includes a second target data node corresponding to the first data object, the second target data node further includes the object information of the first data object, and a correlation edge is formed between the second target data node and a data node corresponding to the second target data object.
4. The platform of claim 1, wherein the platform further comprises:
the data object deleting module is used for acquiring a second data object to be deleted;
and the second structure tree deleting module is used for deleting the target data node corresponding to the second data object in the object structure tree.
5. The platform of any one of claims 1-4, wherein the platform further comprises:
the data access module is used for determining a third data object corresponding to the data access request, determining a third target data point corresponding to the third data object according to the object structure tree, and acquiring target object data matched with the data access request from the data storage medium according to the third target data point;
and the display module is used for displaying the target object data.
6. A project development method applied by the project development platform according to any one of claims 1 to 5, comprising:
acquiring configuration data of a current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects;
according to object information corresponding to each data and relationship data between each data object and other data objects, constructing an object structure tree corresponding to the current development project, wherein each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and the corresponding data node also comprises object information of the corresponding data object;
acquiring a mapping rule corresponding to a preset data storage medium type;
and mapping each data node in the object structure tree and the object information corresponding to each data node into a data storage medium corresponding to the preset data storage medium type according to the mapping rule.
7. The method of claim 6, further comprising:
providing candidate data storage media types;
and taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
8. The method of claim 6, wherein the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, and the mapping each data node in the object structure tree and its corresponding object information to the data storage medium corresponding to the preset data storage medium type according to the mapping rule comprises:
and establishing a data table with an object name corresponding to the current data node as a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to the object attribute corresponding to the current data node.
9. The method of claim 6, wherein the configuration data further comprises a logical relationship between a first target data object and a control object, wherein the first target data object is one or more of the plurality of data objects,
constructing an object structure tree corresponding to the current development project according to the object information corresponding to each data and the relation data between each data object and other data objects, wherein the object structure tree comprises the data objects;
according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in the object structure tree and associated edges between the data nodes;
and constructing a logic node in the object structure tree according to a logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
10. The method of claim 6, wherein the method further comprises:
acquiring object information and object relation data of a first newly added data object, wherein the object relation data comprises relation data between the first data object and a second target data object, and the second target data object is one or more of the plurality of data objects;
and updating the object structure tree according to the object information of the first data object and the relationship data between the first data object and the second target data object, wherein the updated object structure tree comprises a second target data node corresponding to the first data object, the second target data node also comprises the object information of the first data object, and a correlation edge is arranged between the second target data node and the data node corresponding to the second target data object.
11. The method of claim 6, wherein the method further comprises:
acquiring a second data object to be deleted;
and deleting the target data node corresponding to the second data object in the object structure tree.
12. The method of any one of claims 6-11, further comprising:
determining a third data object corresponding to the data access request;
determining a third target data point corresponding to the third data object from the object structure tree;
acquiring target object data matched with the data access request from the data storage medium according to the third target data point;
and displaying the target object data.
CN201910559160.2A 2019-06-26 2019-06-26 Project development platform and project development method performed by application project development platform Active CN110308895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910559160.2A CN110308895B (en) 2019-06-26 2019-06-26 Project development platform and project development method performed by application project development platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910559160.2A CN110308895B (en) 2019-06-26 2019-06-26 Project development platform and project development method performed by application project development platform

Publications (2)

Publication Number Publication Date
CN110308895A CN110308895A (en) 2019-10-08
CN110308895B true CN110308895B (en) 2023-03-24

Family

ID=68076323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910559160.2A Active CN110308895B (en) 2019-06-26 2019-06-26 Project development platform and project development method performed by application project development platform

Country Status (1)

Country Link
CN (1) CN110308895B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698819A (en) * 2019-10-22 2021-04-23 北京信普飞科科技有限公司 Method, device and storage medium for designing tree-oriented object programming program
CN111694618A (en) * 2020-06-04 2020-09-22 北京字节跳动网络技术有限公司 Object processing method, device, equipment and storage medium
CN114489497B (en) * 2022-01-14 2024-05-28 深圳市汇川技术股份有限公司 Data mapping method, server side and computer readable storage medium
CN117539884B (en) * 2024-01-10 2024-04-02 湖南科研云信息科技有限公司 Method and related device for associating and storing research and development process data of enterprise project

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6609129B1 (en) * 2000-10-26 2003-08-19 Hon Hai Precision Ind. Co., Ltd. Method for integrating various information objects among different databases into a system structure
CN103631596A (en) * 2013-12-05 2014-03-12 用友软件股份有限公司 Configuration device and configuration method of business object data entry and updating rule
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
CN104572833A (en) * 2014-12-10 2015-04-29 南车青岛四方机车车辆股份有限公司 Mapping rule establishing method and device
CN106294409A (en) * 2015-05-22 2017-01-04 阿里巴巴集团控股有限公司 Data processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885325A (en) * 2005-06-23 2006-12-27 国际商业机器公司 Work breakdown structure design manager, design tool and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6609129B1 (en) * 2000-10-26 2003-08-19 Hon Hai Precision Ind. Co., Ltd. Method for integrating various information objects among different databases into a system structure
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
CN103631596A (en) * 2013-12-05 2014-03-12 用友软件股份有限公司 Configuration device and configuration method of business object data entry and updating rule
CN104572833A (en) * 2014-12-10 2015-04-29 南车青岛四方机车车辆股份有限公司 Mapping rule establishing method and device
CN106294409A (en) * 2015-05-22 2017-01-04 阿里巴巴集团控股有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN110308895A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110308895B (en) Project development platform and project development method performed by application project development platform
US10558642B2 (en) Mechanism for deprecating object oriented data
KR101982303B1 (en) Building applications for configuring processes
US6105062A (en) Method and system for pruning and grafting trees in a directory service
CN111061817B (en) Adaptive business construction system, method and computer readable medium
US8364683B2 (en) Importing and reconciling resources from disjoint name spaces to a common namespace
US20200004866A1 (en) Visualization customization
US20200004865A1 (en) Autolayout of visualizations based on contract maps
US11593324B2 (en) Reversible data transforms
KR20060080527A (en) Prescribed navigation using topology metadata and navigation path
US11100173B2 (en) Autolayout of visualizations based on graph data
US10148486B2 (en) Object version management
US8086588B2 (en) Computer program product and method for sharing information between multiple computer applications using a grafted model network
CN112698819A (en) Method, device and storage medium for designing tree-oriented object programming program
US11604776B2 (en) Multi-value primary keys for plurality of unique identifiers of entities
US20220078228A1 (en) Infrastructure imports for an information technology platform
CN109739484B (en) Asset relationship model construction system, method and storage medium
Leida et al. Facing big data variety in a model driven approach
KR20150099456A (en) Methods and systems for filtering components in hierarchically-referenced data
CN117667951B (en) Data processing method and device for characteristic data of camera
CN118151891A (en) Application management method and related equipment
JPH05241800A (en) Total control system for data base, file, and program
CN118312166A (en) Quick development platform based on metadata

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant