CN114124735B - Route design method and electronic equipment - Google Patents

Route design method and electronic equipment Download PDF

Info

Publication number
CN114124735B
CN114124735B CN202210111319.6A CN202210111319A CN114124735B CN 114124735 B CN114124735 B CN 114124735B CN 202210111319 A CN202210111319 A CN 202210111319A CN 114124735 B CN114124735 B CN 114124735B
Authority
CN
China
Prior art keywords
component
routing
area
design
user
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
CN202210111319.6A
Other languages
Chinese (zh)
Other versions
CN114124735A (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.)
Nanchang Guoxun Information Technology Co ltd
Original Assignee
Nanchang Guoxun Information 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 Nanchang Guoxun Information Technology Co ltd filed Critical Nanchang Guoxun Information Technology Co ltd
Priority to CN202210111319.6A priority Critical patent/CN114124735B/en
Publication of CN114124735A publication Critical patent/CN114124735A/en
Application granted granted Critical
Publication of CN114124735B publication Critical patent/CN114124735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Abstract

The invention discloses a route design method and electronic equipment, wherein the method comprises the following steps: responding to an interface starting instruction of a user, and showing a routing design interface, wherein the routing design interface comprises a component panel and a design panel; in response to the user moving a source component in the component panel into a first region of the design panel, determining whether the source component is a leading component in the design panel, and determining whether to present the source component in the first region based on a result of the determining. The embodiment of the invention can realize that the user can design and arrange the route without mastering programming knowledge by graphically and visually dragging the route design interface.

Description

Route design method and electronic equipment
Technical Field
The invention belongs to the technical field of routing service, and particularly relates to a routing design method and electronic equipment.
Background
The design and control interfaces of Enterprise Service Bus (ESB) (Enterprise Service bus) of other competitive products on the market are basically based on desktop client software, the model definition adopts a mode of extensible Markup language (xml), and most of the model definition has graphical design interfaces.
The ESB service bus can define various services and then provide them to other system calls, and the operation principle can be basically divided into three steps: input, process, output, i.e., receive input data, process the data, and then return the results. The input step supports various types of input, such as input files, hypertext Transfer protocol (http) (hyper Text Transfer protocol) requests, simple Object Access protocol (soap) (simple Object Access protocol) requests, data messages of a certain protocol, monitoring message queues and the like; in the processing step, various processing components can be provided according to the data processing requirement to process, convert and format the data, or other interfaces can be called to obtain the data and the like; the data returned by the output step after processing can be files, or http output streams, protocol messages and the like.
The inventor finds that: ESB service bus software of other competitive product companies in the market is basically in a desktop client mode, namely the ESB service bus software can be used only by installing a client on a user computer; some competitive products such as ensemble need to use a programming language developed by the competitive products; ESB service bus software of other competitive product companies in the market has high requirements on users, and the users are required to have programming capability.
Disclosure of Invention
The embodiment of the invention aims to solve at least one of the technical problems.
In a first aspect, an embodiment of the present invention provides a method for designing a route, including: responding to an interface starting instruction of a user, and showing a routing design interface, wherein the routing design interface comprises a component panel and a design panel; in response to the user moving a source component in the component panel into a first region of the design panel, determining whether the source component is a leading component in the design panel, and determining whether to present the source component in the first region based on a result of the determining.
In a second aspect, an embodiment of the present invention provides an electronic device, which includes: the routing system comprises at least one processor and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the routing methods of the present invention described above.
In a third aspect, an embodiment of the present invention provides a storage medium, where one or more programs including execution instructions are stored, where the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to perform any one of the above-described routing methods of the present invention.
In a fourth aspect, the present invention further provides a computer program product, which includes a computer program stored on a storage medium, the computer program including program instructions, which when executed by a computer, cause the computer to execute any one of the above-mentioned route design methods.
The embodiment of the invention can realize that the user can design and arrange the route without mastering programming knowledge by graphically and visually dragging the route design interface.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of one embodiment of a method of routing of the present invention;
FIG. 2 is a flow chart of another embodiment of a method of routing of the present invention;
FIG. 3 is a flow chart of yet another embodiment of a route design method of the present invention;
FIG. 4 is a flow chart of yet another embodiment of a routing method of the present invention;
FIG. 5 is a flow chart of yet another embodiment of a method of routing of the present invention;
fig. 6 is a process flow diagram of a method for designing a route according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating the operation of the routing method of the present invention;
FIG. 8 is a diagram illustrating data storage transformation of the routing method of the present invention;
fig. 9 is a schematic structural diagram of an embodiment of an electronic device according to the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
As used in this disclosure, "module," "device," "system," and the like are intended to refer to a computer-related entity, either hardware, a combination of hardware and software, or software in execution. In particular, for example, an element may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. Also, an application or script running on a server, or a server, may be an element. One or more elements may be in a process and/or thread of execution and an element may be localized on one computer and/or distributed between two or more computers and may be operated by various computer-readable media. The elements may also communicate by way of local and/or remote processes based on a signal having one or more data packets, e.g., from a data packet interacting with another element in a local system, distributed system, and/or across a network in the internet with other systems by way of the signal.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the invention provides a route design method which can be applied to electronic equipment. The electronic device may be a computer, a server, or other electronic products, and the invention is not limited thereto.
Referring to fig. 1, a method for designing a route according to an embodiment of the present invention is shown.
As shown in fig. 1, in step 101, in response to an interface start instruction of a user, a routing design interface is presented, wherein the routing design interface includes a component panel and a design panel;
in step 102, in response to the user moving a source component in the component panel into a first region of the design panel, determining whether the source component is a first component in the design panel, and determining whether to display the source component in the first region based on a result of the determination.
In this embodiment, for step 101, a design interface of a route is displayed to a user according to a start instruction of the user, the design interface of the route does not need to enter through corresponding software or APP, and can directly run in a browser in a web page manner, a component panel and a design panel are designed in the route design interface, wherein the component panel has components of various types, the user can select different types of components in the multiple component panels to move into the design panel for design, and the components in the component panel can be classified into basic components, message components, network components, extension components, and the like.
Then, for step 102, it is determined whether the source component dragged by the user into the design panel is the first component in the design panel according to the fact that the user drags the source component in the component panel into the first area in the design panel, and then it is determined whether the source component is displayed in the first area according to the result of determining whether the source component is the first component in the design panel, for example, the user moves one component in the component panel into the first area in the design panel, and the system determines whether the component moved into the first area in the design panel by the user is the first component, and determines that the component cannot be placed in the first area for display according to the result of the determination.
According to the method, the route design interface is graphically and visually dragged, so that the route can be designed and arranged without mastering programming knowledge by a user.
In some optional embodiments, each component in the component panel has an attribute value, the attribute value is equivalent to basic information of the component and a parameter, and the parameter can be freely set; displaying an attribute value editing interface of the existing component through an editing instruction of the user on the existing component displayed in the design panel; and updating the attribute value of the existing component according to the editing operation of the user on the attribute value editing interface, for example, the user edits the attribute value of the existing component in the design panel, the editing operation on the attribute value can be performed on the attribute value of the component only when the user enters the editing interface of the attribute value of the component, and when the user finishes editing the attribute value of the component and ensures that the system can automatically update the attribute value information of the component edited by the user.
Referring to fig. 2, another method for designing a route according to an embodiment of the present invention is shown. The flow chart is primarily a flow chart illustrating a further step of determining whether to present the source component in the first region based on the result of the determination described in step 102 "of the flow chart of fig. 1.
As shown in fig. 2, in step 201, if the source component is the first component in the design panel, the source component is shown in the first area;
in step 202, if the source component is not the first component in the design panel, it is determined whether the first region is a target component region of any existing component in the design panel, and it is determined whether to display the source component in the target component region based on a result of the determination.
In this embodiment, for step 201, when the source component is the first component in the design panel, the source component is displayed in the first area of the design panel, for example, the user moves a component in the component panel to the first area of the design panel, and the system determines that the component in the first area of the design panel moved by the user is the first component, and then moves the user to the component in the design panel for display.
For step 202, when the source component is not the first component in the design panel, it is determined whether the first area is a target component area of any existing component in the design panel, and it is determined whether to display the source component in the target component area according to a result of the determination.
The method of the embodiment of the application determines that the source component cannot be displayed in the target component area by judging whether the first area is the target component area of the existing component in the design panel.
Referring to fig. 3, a route design method according to another embodiment of the present invention is shown. The flowchart is primarily a flowchart of the further steps of "determining whether to present the source component in the target component zone based on the result of the determination" in step 202 of fig. 2.
As shown in fig. 3, in step 301, if the first area is a target component area of any existing component in the design panel, the source component is shown in the target component area;
in step 302, if the first area is not the target component area of any existing component in the design panel, the user is prompted.
In this embodiment, for step 301, when the first area is a target component area of existing components in the design panel, the source component is shown in the target component area, for example, a component placed by a user in the first area is shown in the target component area, and the first area is the target component area.
For step 302, when the first area is not the target component area of the existing component in the design panel, the user is directly reminded, for example, the user places the component in the first area and the first area is not the target component area, and a reminder is sent to the user that the component cannot be placed in the area, wherein the reminder may be to remind the user that the component cannot be inserted in the area, and a red symbol ∅ is displayed beside the component.
The method of the embodiment of the application judges whether the first area is a target component area of the existing components in the design panel or not so as to decide that the components moved by the user cannot be inserted into the target component area.
In some alternative embodiments, the source component is connected to any one of the existing components and the connected source component is displayed in the target component area, for example, the components added to the design panel are connected to the existing components and the connection relationship between the existing components is displayed.
Referring to fig. 4, a further method for designing a route according to an embodiment of the present invention is shown. The flow chart is primarily a flow chart of the steps further defined for fig. 3.
As shown in fig. 4, in step 401, in response to the user saving a routing path composed of multiple components, storing the routing path as a JSON model file and starting the routing path;
in step 402, in response to the user modifying the routing path at the routing design interface, stopping the routing path, saving and updating the JSON model file based on the user's modification operation, and restarting the updated routing path.
In this embodiment, for step 401, storing a routing path composed of a plurality of components designed by a user, storing the routing path as a JSON model file, and restarting the routing path; for step 402, when the user needs to modify the routing path in the routing design interface, the routing path is stopped, the modified operation of the user is saved, the original JSON model file is updated, and the updated routing path is restarted.
The method of the embodiment of the application saves the routing path formed by the user, stores the routing path as the JSON model file, and stops the routing path, stores the modified routing path and updates and restarts the routing path if the routing path needs to be modified.
Referring to fig. 5, it shows another route design method provided by an embodiment of the present invention, wherein the route design interface is provided with a start control button and a stop control button, and each route path has a corresponding ID. The flow chart is primarily a flow chart of the steps further defined for fig. 4.
As shown in fig. 5, in step 501, in response to the user starting the routing path, obtaining a corresponding JSON model file according to the ID of the routing path and converting the JSON model file into a JSON object, and then converting the JSON object into an XML model supported by ESB, where the background of the routing design interface loads an XML model instantiates a related JAVA class and can run a service;
in step 502, in response to the user stopping the routing path, instantiating, according to the ID of the routing path, a JAVA class associated with the XML model instantiation to obtain an instance of the routing path, and executing a stopping method of the instance.
In this embodiment, for step 501, when the user starts the routing path, the corresponding JSON model file is obtained according to the ID of the routing path, the corresponding JSON model file is converted into a JSON object, and the JSON object is converted into an XML model supported by the ESB, where the background of the routing design interface loads the XML model to instantiate a related JAVA class, and the JAVA class can run a service; then, in step 502, when the user stops the routing path, the instance of the routing path is obtained by loading the relevant JAVA class in the XML model instantiation in the background according to the ID of the routing path, and the method for stopping the instance is executed, for example, the routing design interface has control buttons such as start and stop, when the user starts the routing, the system obtains the designed model file in the JSON format from the database according to the ID of the started routing path, and converts the model file into the JSON object, and then converts the JSON object into the XML model supported by ESB, and the system background loads the XML model instantiation relevant JAVA class and runs the service. When the user stops the routing path, the system acquires the routing instance from the JAVA running instance according to the transmitted routing path ID, and executes the stopping method of the instance. .
According to the method, the route model file is stored in the JSON format, so that the route design file and the service end component are decoupled, the design file can be mapped and analyzed into different route service engines, and the system expansibility is higher.
In some optional embodiments, the design panel includes a main routing area and a sub-routing area, and when the source component is the first component and the source component is the processing component, the system prompts a user that the source component cannot be inserted; when the source component is a first component and the source component is an input component, judging whether the first area is a main routing area, and determining whether the source component is shown in the first area according to the judgment result.
In some optional embodiments, when the first area is a main routing area, the source component is displayed in the main routing area, when the first area is a sub-routing area, whether the source component is a redirection component is determined, if the source component is the redirection component, the source component is directly displayed in the sub-routing area, if the source component is not the redirection component, a reminder is issued to a user to remind that the component cannot be placed in the area, and the reminder may be in a manner of reminding the user that the component cannot be inserted in the area, and a red symbol ∅ is displayed beside the component.
It should be noted that, in the present application, the routing design and control support is executed in a web page manner in the browser;
the first route in each route is a main route, and a plurality of sub-routes can be added;
the sub-route must be referred to by the redirection component, the first component of the sub-route must be the redirection route, the ID value must be the same as the value of the referred redirection component, and the sub-route can be called recursively;
the first component of the master route is an input component, which must be a component with a receiving input attribute;
all components have type and name attributes;
the modules in the route are arranged in sequence and connected by connecting lines;
when a component primitive is inserted into the design view, a component icon is dragged to the existing component primitive, the mouse can display the verification information of whether the component can be inserted at the position, and when the component can be inserted, the mouse is released, and a new component primitive can be inserted behind the selected component primitive;
each component in the design view has an enabled state and a disabled state, the disabled component remains in the design view but does not participate in the operation of the service, and the component can be enabled by modifying the states;
when the mandatory fill attribute of the component is not correctly set, a warning prompt appears on a component primitive;
the characteristic of a dynamic component is supported, namely the function of the component is defined through the path attribute of the component, and a server side creates a corresponding service instance through analyzing a path;
the route design is stored as JSON formatted data.
Fig. 6 is a process flow diagram illustrating a method for designing a route according to an embodiment of the present invention.
As shown in fig. 6, first, a source component to be added is selected in the component panel, and then the user can perform a drag operation on the source component by pressing a left mouse button on an icon of the source component, and then drag the source component onto the design panel by the mouse and move the mouse. At this time, it is determined whether the source component is located in the target area, and if the mouse is not located in the target area, the source component cannot be placed on the design panel, and the user needs to continue to drag the source component with the mouse. If the mouse drags the source component to the target area, whether the target component is the first component of the routing design is judged, if yes, whether the source component is an input component is judged, if not, whether the source component is a processing component is judged, if yes, whether the current mouse is located in the main routing area is continuously judged, if yes, the user releases the mouse, the component can be inserted, the operation is finished, and if the user does not release the mouse, the dragging is continuously carried out, and the judgment is carried out again. On the other branch, if the target component is not the first component of the route design, whether the source component is a processing component is continuously judged, if not, the operation is ended, and if so, the mouse node is switched to be judged to be released. On another branch, if the current mouse is not located in the main routing area, it is determined whether the source component is a redirection component, if so, the component is inserted and the insertion is finished, and if not, the insertion cannot be finished directly.
Referring to fig. 7, a schematic diagram of an operation of the routing method of the present invention is shown.
Please refer to fig. 8, which shows a data storage transformation diagram of the routing method of the present invention.
As shown in fig. 7 and 8, the implementation operations of the route design method of the present invention include route design, route modification, and route control.
Wherein, the route design: the routing design interface of the browser is a layout mode of a left column and a right column, the ESB routing design interface is arranged on the left side, the component column is arranged on the right side, and a mouse can be used for dragging the component icons from the component column on the right side to the design view on the left side. The components in the design view have directionality, the components are connected through connecting lines, the positions of the components in the design view can be changed through mouse dragging, each component has respective attributes, and attribute values can be set through an attribute editing interface. And after the route design is finished, storing the route design in a JSON format file in a database.
And (3) route modification: when the route needs to be modified, the route is modified on a route design interface, the JSON model file is saved and updated, the route is stopped, and then the route is restarted.
And (3) route control: the routing control interface is provided with control buttons such as start and stop, when the routing is started, the system obtains a designed JSON format model file from a database according to the started routing ID, converts the JSON format model file into a JSON object, converts the JSON object into an XML model supported by ESB, loads the XML model to instantiate a related JAVA class and runs the service. When stopping the route, the system acquires the route instance from the JAVA running instance according to the incoming route ID, and executes the stopping method of the instance.
It should be noted that for simplicity of explanation, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention. In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In some embodiments, the present invention provides a non-transitory computer-readable storage medium, in which one or more programs including executable instructions are stored, and the executable instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to perform any one of the above-mentioned routing methods of the present invention.
In some embodiments, the present invention further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above routing methods.
In some embodiments, an embodiment of the present invention further provides an electronic device, which includes: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a routing method.
Fig. 9 is a schematic hardware structure diagram of an electronic device for executing a route design method according to another embodiment of the present application, and as shown in fig. 9, the electronic device includes:
one or more processors 910 and a memory 920, one processor 910 being illustrated in fig. 9.
The electronic device performing the route design method may further include: an input device 930 and an output device 940.
The processor 910, the memory 920, the input device 930, and the output device 940 may be connected by a bus or other means, and fig. 9 illustrates an example of a connection by a bus.
The memory 920 is used as a non-volatile computer-readable storage medium for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the routing design method in the embodiment of the present application. The processor 910 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions and modules stored in the memory 920, namely, implements the routing design method of the above-described method embodiment.
The memory 920 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 920 may optionally include memory located remotely from the processor 910, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 930 may receive input numerical or character information and generate signals related to user settings and function control of the electronic apparatus. The output device 940 may include a display device such as a display screen.
The one or more modules are stored in the memory 920 and, when executed by the one or more processors 910, perform the routing method of any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones, multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, among others.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players, handheld game consoles, electronic books, as well as smart toys and portable vehicle navigation devices.
(4) Other onboard electronic devices with data interaction functions, such as a vehicle-mounted device mounted on a vehicle.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A routing design method for an enterprise service bus, comprising:
responding to an interface starting instruction of a user, and showing a routing design interface, wherein the routing design interface comprises a component panel and a design panel;
in response to the user moving a source component in the component panel into a first region of the design panel, determining whether the source component is a leading component in the design panel, determining whether to present the source component in the first region based on a result of the determining;
wherein the design panel includes a main routing area and a sub-routing area, the method further comprising:
if the source component is the first component and the source component is the processing component, prompting the user that the source component cannot be inserted;
if the source component is a first component and the source component is an input component, judging whether the first area is a main routing area;
if the first zone is a main routing zone, displaying the source component in the main routing zone;
if the first area is a sub-routing area, judging whether the source component is a redirection component;
if the source component is a redirection component, displaying the source component in the sub-routing area;
and if the source component is not a redirection component, prompting the user.
2. The method of claim 1, wherein each component in the component panel has an attribute value, the method further comprising:
responding to an editing instruction of the user on the existing component displayed in the design panel, and displaying a property value editing interface of the existing component;
and updating the attribute value of the existing component in response to the editing operation of the user on the attribute value editing interface.
3. The method of claim 1, wherein the determining whether to present the source component in the first zone based on the result of the determination comprises:
if the source component is the first component in the design panel, displaying the source component in the first zone;
if the source component is not the first component in the design panel, judging whether the first area is a target component area of any existing component in the design panel, and determining whether to display the source component in the target component area based on the judgment result.
4. The method of claim 3, wherein the determining whether to present the source component in the target component region based on the result of the determination comprises:
if the first area is a target component area of any existing component in the design panel, displaying the source component in the target component area;
and if the first area is not the target component area of any existing component in the design panel, prompting the user.
5. The method of claim 4, wherein said exposing the source component in the target component region comprises:
connecting the source component with any existing component and displaying the connected source component in the target component area.
6. The method of claim 4, wherein the method further comprises:
responding to the storage of a routing path formed by a plurality of components by the user, storing the routing path as a JSON model file and starting the routing path;
and responding to the modification of the routing path by the user on the routing design interface, stopping the routing path, saving and updating the JSON model file again based on the modification operation of the user, and restarting the updated routing path.
7. The method of claim 6, wherein the routing design interface is provided with a start control button and a stop control button, each routing path having a corresponding ID, the method further comprising:
responding to the starting of the routing path by the user, acquiring a corresponding JSON model file according to the ID of the routing path, converting the JSON model file into a JSON object, converting the JSON object into an XML model supported by an ESB, and loading the XML model in a background of the routing design interface to instantiate a related JAVA class and run a service;
and responding to the stopping of the routing path by the user, acquiring an instance of the routing path from the XML model instantiation related JAVA class according to the ID of the routing path, and executing a stopping method of the instance.
8. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any one of claims 1 to 7.
CN202210111319.6A 2022-01-29 2022-01-29 Route design method and electronic equipment Active CN114124735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210111319.6A CN114124735B (en) 2022-01-29 2022-01-29 Route design method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210111319.6A CN114124735B (en) 2022-01-29 2022-01-29 Route design method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114124735A CN114124735A (en) 2022-03-01
CN114124735B true CN114124735B (en) 2022-06-07

Family

ID=80361825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210111319.6A Active CN114124735B (en) 2022-01-29 2022-01-29 Route design method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114124735B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589849B1 (en) * 2003-07-11 2013-11-19 Altera Corporation Method and apparatus for implementing soft constraints in tools used for designing programmable logic devices
CN110855491A (en) * 2019-11-15 2020-02-28 无锡识凌科技有限公司 Routing cascade method and routing cascade structure based on enterprise service bus

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7814226B2 (en) * 2006-09-19 2010-10-12 Bea Systems, Inc. System and method for supporting service networks in a service-oriented architecture environment
CN106131630A (en) * 2016-06-27 2016-11-16 乐视控股(北京)有限公司 Web page browsing control method based on television set and relevant apparatus
CN110929201B (en) * 2018-09-20 2022-06-28 中国科学院信息工程研究所 Complex network topology editing and visualization system based on Web
CN110286896B (en) * 2019-06-28 2023-03-31 百度在线网络技术(北京)有限公司 Visual editing method, device, equipment and storage medium
CN111399729A (en) * 2020-03-10 2020-07-10 北京字节跳动网络技术有限公司 Image drawing method and device, readable medium and electronic equipment
CN111596913B (en) * 2020-05-22 2024-04-30 北京达佳互联信息技术有限公司 Visual component framework arranging method and device
CN112181602A (en) * 2020-10-23 2021-01-05 济南浪潮数据技术有限公司 Resource arranging method and device, electronic equipment and storage medium
CN112269527B (en) * 2020-11-16 2022-07-08 Oppo广东移动通信有限公司 Application interface generation method and related device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589849B1 (en) * 2003-07-11 2013-11-19 Altera Corporation Method and apparatus for implementing soft constraints in tools used for designing programmable logic devices
CN110855491A (en) * 2019-11-15 2020-02-28 无锡识凌科技有限公司 Routing cascade method and routing cascade structure based on enterprise service bus

Also Published As

Publication number Publication date
CN114124735A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US10091628B2 (en) Message based application state and card sharing methods for user devices
US8751558B2 (en) Mashup infrastructure with learning mechanism
JP5086183B2 (en) Enhanced widget composition platform
US9122848B2 (en) Authentication of user interface elements in a web 2.0 environment
US20190196672A1 (en) Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same
US8578334B2 (en) Dynamic language-based integrated development environment
US10970052B2 (en) System and method for enhancing component based development models with auto-wiring
WO2023093414A1 (en) Micro-application development method and apparatus, and device, storage medium and program product
CN111145745B (en) Conversation process customizing method and device
EP3732564A1 (en) Asynchronous c -js data binding bridge
CN111142833B (en) Method and system for developing voice interaction product based on contextual model
US7600188B2 (en) Interface for directing a user to build a website
US20100023875A1 (en) Automatic rendering of user interface elements
CN109814915B (en) Parameter configuration method, device, medium and electronic equipment based on lua
CN113095056B (en) Generation method, processing method, device, electronic equipment and medium
CN114124735B (en) Route design method and electronic equipment
CN112068879A (en) Method and device for constructing client application development framework based on configuration
CN109656669B (en) Launcher operation method, Launcher operation device, Launcher operation equipment and computer readable storage medium
CN110083407B (en) Method and device for realizing step bar in applet, electronic equipment and storage medium
US10986051B1 (en) System and method for dynamic chat message customization
JP2003015870A (en) Method for developing web application and development support device
Panda AngularJS: Novice to Ninja: Elegant, Powerful, Testable, Extendable
Ornbo Sams teach yourself Node. js in 24 hours
Gordon Isomorphic Web Applications: Universal Development with React
Wenz Programming ASP. NET AJAX: Build Rich, Web 2.0-Style UI with ASP. NET AJAX

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