CN117369788A - Drag type business logic editing system method - Google Patents

Drag type business logic editing system method Download PDF

Info

Publication number
CN117369788A
CN117369788A CN202311326890.0A CN202311326890A CN117369788A CN 117369788 A CN117369788 A CN 117369788A CN 202311326890 A CN202311326890 A CN 202311326890A CN 117369788 A CN117369788 A CN 117369788A
Authority
CN
China
Prior art keywords
behavior tree
editing
flow chart
resources
tree
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.)
Pending
Application number
CN202311326890.0A
Other languages
Chinese (zh)
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.)
Chengdu Yuntaili Automation Equipment Co ltd
Original Assignee
Chengdu Yuntaili Automation Equipment 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 Chengdu Yuntaili Automation Equipment Co ltd filed Critical Chengdu Yuntaili Automation Equipment Co ltd
Priority to CN202311326890.0A priority Critical patent/CN117369788A/en
Publication of CN117369788A publication Critical patent/CN117369788A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention aims to provide a drag type business logic editing system method which is low in cost, low in risk, high in efficiency, universal, flexible and personalized. S1, loading a data file of a system platform; s2, automatically creating an empty behavior tree for the system platform after receiving a request for creating the behavior tree template by the user; s3, editing the newly created or stored behavior tree for the system platform, and creating behavior tree resources according to the selected behavior tree template; s4, performing resource binding or modification of a parameter entry list on newly built or stored behavior tree resources for the system platform; s5, editing the newly built or stored flow chart for the system platform according to actual business logic; s6, completing the creation operation of the flow chart. The invention is applied to the technical field of computers.

Description

Drag type business logic editing system method
Technical Field
The invention is applied to the technical field of computers, and particularly relates to a drag-type business logic editing system method.
Background
With the development of computer technology and informatization, the demands of various computer systems are increasing. When the traditional computer system program is developed, the development period is longer, the cost is higher, professional programmers are required to develop and maintain, and the cost is too high. Thus, a low code platform is created, and a system can be developed without a programmer. The automation software system is an upper computer software system applied to the manufacturing industry of automation equipment. Currently, the method is mostly written in a mode of compiling software engineer codes. However, the development threshold of the automation software and the cost are high. There is a need for a low cost, low risk, efficient, versatile, flexible, personalized drag-type business logic editing system approach.
Disclosure of Invention
The invention aims to solve the technical problem of overcoming the defects of the prior art and providing a drag type business logic editing system method which has low cost, low risk, high efficiency, universality, flexibility and individuation.
The technical scheme adopted by the invention is as follows: the drag service logic editing system method comprises the following steps,
s1, loading a data file of a system platform;
s2, automatically creating an empty behavior tree for the system platform after receiving a request for creating the behavior tree template by the user;
s3, editing the newly created or stored behavior tree for the system platform, and creating behavior tree resources according to the selected behavior tree template;
s4, performing resource binding or modification of a parameter entry list on newly built or stored behavior tree resources for the system platform;
s5, editing the newly built or stored flow chart for the system platform according to actual business logic;
s6, completing the creation operation of the flow chart.
As can be seen from the scheme, the drag service logic editing system method simplifies the implementation of the section-oriented programming; the operation efficiency of the section-oriented programming is optimized; the system can be accessed to effectively reduce the requirements on programming skills of engineers and industry knowledge reserves, effectively shorten the development time of business logic and greatly reduce the cost; the visualized service logic creation mode makes the existing problems easier to find in the service logic creation process, so that the risk is low; according to different real-time service demands, the operation mode provided by the system can be used for quickly realizing the creation and editing of service logic, and meanwhile, the existing service logic is not influenced, so that the system has high efficiency; the business logic created by using the behavior template created by the behavior tree and the flow chart mode can realize seamless connection of resources with a system with the same hardware equipment and software platform, and the business logic has universality: the flexibility mainly reflects the unique drag operation mode, the behavior tree template, the diversity of resources and the diversity of flow chart binding resources, and the unique flexibility of the achievement system platform; the individuation is embodied in that the flow chart node can create different nodes according to the existing service demands, then different behavior tree resources and basic data resources are bound under the nodes, and further the customizing demands of service logic are realized.
In a preferred embodiment, step S1 comprises the following subdivision steps:
s1.1, a program sequentially loads basic data of a platform and presents the basic data in a software editing interface in a resource tree mode;
s1.2, loading the behavior tree template data from a data source to a software interface;
s1.3, loading the behavior tree resource data from a data source to a software interface;
s1.4, loading flow chart data from a data source to a software interface.
Preferably, the base data includes a data type resource, a global variable resource, a hardware factory resource, and a hardware resource.
In a preferred scheme, step S3 is implemented by adopting a drag mode for newly creating nodes in the process of editing the behavior tree, and the specific operation of editing the behavior tree nodes mainly involves node attribute, deletion and movement of the nodes.
In a preferred embodiment, step S3 comprises the following subdivision steps:
s3.1, editing the behavior tree template, namely, creating the behavior tree template or editing the existing behavior tree template in a mode of dragging the behavior tree;
s3.2, storing the behavior tree template, namely, carrying out a serialization storage process on the metadata of the newly added or edited behavior tree template;
s3.3, the step is mainly to check whether the operation of the step S3.2 is successful, if so, the step shows that the behavior tree resources needed by the service can be created based on the current behavior tree template, if not, the step shows that the creation of the current service flow is finished;
s3.4, creating the behavior tree resource, namely automatically creating the behavior tree resource by the program according to the selected behavior tree template on the basis of S3.3;
and S3.5, judging whether the action tree resource in the step S3.4 is successfully created, if so, indicating that the current action tree resource can be edited, and if not, indicating that the current business process creation is finished.
In a preferred embodiment, step S4 comprises the following subdivision steps:
s4.1, editing the behavior tree resources, namely performing resource binding on the behavior tree parameters;
s4.2, storing the behavior tree resources, namely automatically serializing the behavior tree resources by a program and storing metadata based on the editing process of the S4.1;
and S4.3, performing successful detection on the tree resource metadata preservation, wherein if the tree resource metadata preservation is successful, the next step of flow chart creation operation can be performed, and if the tree resource metadata preservation is unsuccessful, the current business flow creation is finished.
In a preferred scheme, the editing process in step S5 is implemented by adopting a dragging mode for node selection and position adjustment, the editing of the node attribute mainly includes node basic attribute editing and binding of execution resources corresponding to the current node, and the operation of the flow chart can implement flexible combination of one or more nodes according to the actual business logic and the existing basic resources and the behavior tree resources, so that the editing of the business logic is quickly implemented.
In a preferred embodiment, step S5 comprises the following subdivision steps:
s5.1, creating a flow chart, namely automatically creating an empty flow chart when a program receives a flow chart creation instruction;
s5.2, editing the flow chart, namely editing the flow chart or the finished flow chart by an operator according to service requirements;
s5.3, saving a flow chart, namely, carrying out serialization storage on edited flow chart metadata by a program;
s5.4, detecting success of the creation and editing of the flow chart, and marking that the creation operation of the flow chart is completed if the success is detected, otherwise, indicating that the creation and editing of the flow chart are failed.
Drawings
FIG. 1 is an edit system platform architecture diagram of the present invention;
FIG. 2 is a block diagram of the overall functional architecture of the present invention;
FIG. 3 is a functional block diagram of a behavior tree of the present invention;
FIG. 4 is a functional block diagram of a flow chart of the present invention;
FIG. 5 is a first flowchart of the steps performed by the present invention;
FIG. 6 is a first flowchart of the steps performed by the present invention;
FIG. 7 is a logical diagram of the behavior tree template operation of the present invention;
FIG. 8 is a logic diagram of behavior tree resource operations of the present invention;
fig. 9 is a flow chart operational logic diagram of the present invention.
Detailed Description
As shown in fig. 1, 2, 5 and 6, in this embodiment, the method of the drag service logic editing system includes the following steps:
s1, loading a data file of a system platform;
s2, automatically creating an empty behavior tree for the system platform after receiving a request for creating the behavior tree template by the user; the data protocol format is Json character string;
s3, editing a newly created or stored behavior tree for the system platform and creating behavior tree resources according to the selected behavior tree template, as shown in FIG. 7;
s4, performing resource binding or modification of a parameter entry list on newly built or stored behavior tree resources for the system platform, as shown in FIG. 8;
s5, editing the newly built or stored flow chart according to actual business logic for the system platform, as shown in FIG. 9;
s6, completing the creation operation of the flow chart.
As shown in fig. 5 and 6, in the present embodiment, the step S1 includes the following subdivision steps:
s1.1, a program sequentially loads basic data of a platform and presents the basic data in a software editing interface in a resource tree mode;
s1.2, loading the behavior tree template data from a data source to a software interface;
s1.3, loading the behavior tree resource data from a data source to a software interface;
s1.4, loading flow chart data from a data source to a software interface.
In this embodiment, the base data includes data type resources, global variable resources, hardware factory resources, hardware resources.
In this embodiment, as shown in fig. 3, step S3 is implemented by adopting a drag manner for newly creating a node in the process of editing the behavior tree, and the specific operation of editing the behavior tree node mainly involves node attribute, deletion and movement of the node.
As shown in fig. 5 and 6, in the present embodiment, step S3 includes the following subdivision steps:
s3.1, editing the behavior tree template, namely, creating the behavior tree template or editing the existing behavior tree template in a mode of dragging the behavior tree; the data protocol format is Json character string;
s3.2, storing the behavior tree template, namely, carrying out a serialization storage process on the metadata of the newly added or edited behavior tree template;
s3.3, the step is mainly to check whether the operation of the step S3.2 is successful, if so, the step shows that the behavior tree resources needed by the service can be created based on the current behavior tree template, if not, the step shows that the creation of the current service flow is finished;
s3.4, creating the behavior tree resource, namely automatically creating the behavior tree resource by the program according to the selected behavior tree template on the basis of S3.3; the data protocol format is Json character string;
and S3.5, judging whether the action tree resource in the step S3.4 is successfully created, if so, indicating that the current action tree resource can be edited, and if not, indicating that the current business process creation is finished.
As shown in fig. 5 and 6, in the present embodiment, step S4 includes the following subdivision steps:
s4.1, editing the behavior tree resources, namely performing resource binding on the behavior tree parameters; the data protocol format is Json character string;
s4.2, storing the behavior tree resources, namely automatically serializing the behavior tree resources by a program and storing metadata based on the editing process of the S4.1;
and S4.3, performing successful detection on the tree resource metadata preservation, wherein if the tree resource metadata preservation is successful, the next step of flow chart creation operation can be performed, and if the tree resource metadata preservation is unsuccessful, the current business flow creation is finished.
As shown in fig. 4 and fig. 9, in this embodiment, the editing process in step S5 is implemented by adopting a dragging manner for node selection and position adjustment, the editing of the node attribute mainly includes node basic attribute editing and binding of the execution resource corresponding to the current node, and the flowchart operation can implement flexible combination of one or more nodes according to the actual service logic in combination with the existing basic resource and the behavior tree resource, so as to implement editing of the service logic quickly.
As shown in fig. 5 and 6, in the present embodiment, step S5 includes the following subdivision steps:
s5.1, creating a flow chart, namely automatically creating an empty flow chart when a program receives a flow chart creation instruction;
s5.2, editing the flow chart, namely editing the flow chart or the finished flow chart by an operator according to service requirements;
s5.3, saving a flow chart, namely, carrying out serialization storage on edited flow chart metadata by a program;
s5.4, successfully detecting the creation (editing) of the flow chart, and if the successful detection indicates that the creation operation of the flow chart is completed, otherwise, indicating that the creation (editing) of the flow chart fails.
As shown in fig. 1, in this embodiment, the basic resource provides a necessary resource parameter-entering definition for the action tree template creation, the action tree template provides a specific operation basis for the action tree resource creation, the created action tree resource forms diversity of action tree resources because of diversity of parameter-entering resource binding specific examples, and the action tree resource and the basic resource simultaneously provide diversity of resources for binding of flow chart node resources, and the system can be easily cast with high efficiency and flexibility by combining diversity of flow chart nodes.
In this embodiment, in step S2 and step S3.1, the behavior tree entry list and the obvious expression of behavior tree node data involved in the operation are both JOSN strings, including: parameter type, parameter name, initial value of shape parameter, scope relation, node name, binding resource, node position, node style information, action tree template name, ICON, action tree template ID.
In this embodiment, step S3.4 and step S4.1, the behavior tree resource information involved in the operation is in the form of JSON strings, which includes: resource type, resource name, resource object, resource scope, behavior tree resource name, ICON, behavior tree resource ID.
In this embodiment, in step S5.1 and step S5.2, the flow chart structure and node binding resource information involved in the operation are both in JSON string format form, including: flow chart ID, flow chart name, flow chart node ID, flow chart node name, flow chart node binding resource information, flow chart node location information.

Claims (8)

1. The drag type business logic editing system method is characterized by comprising the following steps of:
s1, loading a data file of a system platform;
s2, automatically creating an empty behavior tree for the system platform after receiving a request for creating the behavior tree template by the user;
s3, editing the newly created or stored behavior tree for the system platform, and creating behavior tree resources according to the selected behavior tree template;
s4, performing resource binding or modification of a parameter entry list on newly built or stored behavior tree resources for the system platform;
s5, editing the newly built or stored flow chart for the system platform according to actual business logic;
s6, completing the creation operation of the flow chart.
2. The method of claim 1, wherein,
wherein step S1 comprises the following subdivision steps:
s1.1, a program sequentially loads basic data of a platform and presents the basic data in a software editing interface in a resource tree mode;
s1.2, loading the behavior tree template data from a data source to a software interface;
s1.3, loading the behavior tree resource data from a data source to a software interface;
s1.4, loading flow chart data from a data source to a software interface.
3. The method of a drag service logic editing system according to claim 2, wherein: the base data includes data type resources, global variable resources, hardware factory resources, hardware resources.
4. The method of a drag service logic editing system according to claim 1, wherein: and step S3, newly creating nodes in the process of editing the behavior tree is realized in a dragging mode, and the specific operation of editing the behavior tree nodes mainly relates to node attributes, deleting the nodes and moving the nodes.
5. The method of claim 4, wherein,
wherein step S3 comprises the following subdivision steps:
s3.1, editing the behavior tree template, namely, creating the behavior tree template or editing the existing behavior tree template in a mode of dragging the behavior tree;
s3.2, storing the behavior tree template, namely, carrying out a serialization storage process on the metadata of the newly added or edited behavior tree template;
s3.3, the step is mainly to check whether the operation of the step S3.2 is successful, if so, the step shows that the behavior tree resources needed by the service can be created based on the current behavior tree template, if not, the step shows that the creation of the current service flow is finished;
s3.4, creating the behavior tree resource, namely automatically creating the behavior tree resource by the program according to the selected behavior tree template on the basis of S3.3;
and S3.5, judging whether the action tree resource in the step S3.4 is successfully created, if so, indicating that the current action tree resource can be edited, and if not, indicating that the current business process creation is finished.
6. The method of claim 1, wherein step S4 comprises the following subdivision steps:
s4.1, editing the behavior tree resources, namely performing resource binding on the behavior tree parameters;
s4.2, storing the behavior tree resources, namely automatically serializing the behavior tree resources by a program and storing metadata based on the editing process of the S4.1;
and S4.3, performing successful detection on the tree resource metadata preservation, wherein if the tree resource metadata preservation is successful, the next step of flow chart creation operation can be performed, and if the tree resource metadata preservation is unsuccessful, the current business flow creation is finished.
7. The method of a drag service logic editing system according to claim 1, wherein: the editing process of step S5 is realized by adopting a dragging mode for node selection and position adjustment, the editing of the node attribute mainly comprises node basic attribute editing and binding of execution resources corresponding to the current node, and the operation of the flow chart can realize flexible combination of one or more nodes according to the actual business logic and the existing basic resources and the behavior tree resources, so that the editing of the business logic is realized rapidly.
8. The method of claim 7, wherein the drag service logic editing system is characterized by:
wherein step S5 comprises the following subdivision steps:
s5.1, creating a flow chart, namely automatically creating an empty flow chart when a program receives a flow chart creation instruction;
s5.2, editing the flow chart, namely editing the flow chart or the finished flow chart by an operator according to service requirements;
s5.3, saving a flow chart, namely, carrying out serialization storage on edited flow chart metadata by a program;
s5.4, successfully detecting the creation (editing) of the flow chart, and if the successful detection indicates that the creation operation of the flow chart is completed, otherwise, indicating that the creation (editing) of the flow chart fails.
CN202311326890.0A 2023-10-13 2023-10-13 Drag type business logic editing system method Pending CN117369788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311326890.0A CN117369788A (en) 2023-10-13 2023-10-13 Drag type business logic editing system method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311326890.0A CN117369788A (en) 2023-10-13 2023-10-13 Drag type business logic editing system method

Publications (1)

Publication Number Publication Date
CN117369788A true CN117369788A (en) 2024-01-09

Family

ID=89397673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311326890.0A Pending CN117369788A (en) 2023-10-13 2023-10-13 Drag type business logic editing system method

Country Status (1)

Country Link
CN (1) CN117369788A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117648081A (en) * 2024-01-30 2024-03-05 北京微迪航天科技有限公司 Visual software integrated development method, system and storage medium
CN118394254A (en) * 2024-06-27 2024-07-26 北京能嘉科技有限公司 Encryption algorithm tree diagram generation method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117648081A (en) * 2024-01-30 2024-03-05 北京微迪航天科技有限公司 Visual software integrated development method, system and storage medium
CN117648081B (en) * 2024-01-30 2024-05-07 北京微迪航天科技有限公司 Visual software integrated development method, system and storage medium
CN118394254A (en) * 2024-06-27 2024-07-26 北京能嘉科技有限公司 Encryption algorithm tree diagram generation method and device

Similar Documents

Publication Publication Date Title
CN117369788A (en) Drag type business logic editing system method
CN108363587B (en) Application program operation monitoring method and device, computer equipment and storage medium
US20160004516A1 (en) Code Generation Framework for Application Program Interface for Model
CN110705237B (en) Automatic document generation method, data processing device and storage medium
JP4973867B2 (en) PLC control program development device and program
EP2098954B1 (en) Systems and methods for template reverse engineering
CN107875632B (en) Method and system for realizing artificial intelligence behavior and artificial intelligence behavior editor
JP4588295B2 (en) Sequence analysis method and sequence analysis apparatus
CN113094125B (en) Business process processing method, device, server and storage medium
CN105700890A (en) Skill program realization method automatically deleting dangling vias in PCB design
US20060075352A1 (en) Property independent in-place editing
CN105426609A (en) Method for automatically deleting dangling lines in PCB design
JP5026925B2 (en) Control program creation device and control program creation method
CN110543113B (en) Robot hardware assembling and managing method, device, medium, system, front-end assembling client and robot body operation system
KR101408280B1 (en) Apparatus and method for logic creation of development tools, and storage medium recording program for implementing method thereof
CN106789200A (en) A kind of method of the self-defined automatic deployment of cloud platform
JP6370503B1 (en) Program creation device
KR20220125658A (en) Method and system for assisting software development using connection of graphic objects, each representing a software component
CN116630990B (en) RPA flow element path intelligent restoration method and system
CN102147797A (en) Method and device for managing element files in content management system
US20230195424A1 (en) Method and apparatus for generating applications
CN110806891A (en) Method and device for generating software version of embedded equipment
CN115344966A (en) CAD assembly body part replacement method and system
JP2009169628A (en) Construction device, construction method and program for monitoring control system
CN107844639B (en) Project standard structure automatic generation method and system

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