CN117667049A - Development mode switching method and device - Google Patents

Development mode switching method and device Download PDF

Info

Publication number
CN117667049A
CN117667049A CN202211056928.2A CN202211056928A CN117667049A CN 117667049 A CN117667049 A CN 117667049A CN 202211056928 A CN202211056928 A CN 202211056928A CN 117667049 A CN117667049 A CN 117667049A
Authority
CN
China
Prior art keywords
development
development mode
page
mode
dag
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
CN202211056928.2A
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.)
4Paradigm Beijing Technology Co Ltd
Original Assignee
4Paradigm Beijing 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 4Paradigm Beijing Technology Co Ltd filed Critical 4Paradigm Beijing Technology Co Ltd
Priority to CN202211056928.2A priority Critical patent/CN117667049A/en
Publication of CN117667049A publication Critical patent/CN117667049A/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/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a development mode switching method and device, the method comprising: displaying a first page corresponding to a first development mode, wherein the first page is displayed with a first switching control; responding to touch operation for the first switching control, switching the first page into a second page corresponding to a second development mode, and completely synchronizing development contents displayed by the first page and the second page; the first development mode is a DAG development mode, and the second development mode is a code development mode; or, the first development mode is a code development mode, and the second development mode is a DAG development mode; the code development mode is a development mode for representing development content in a pure code form, and the DAG development mode is a development mode for representing development content in a graphical form.

Description

Development mode switching method and device
Technical Field
The present application relates to the field of computers, and the following description relates to a method and an apparatus for switching development modes.
Background
Currently, the task flow development tools are relatively single, and part of the task flow development tools only provide the function of code development, and part of the task flow development tools only provide the function of development in the form of directed acyclic graphs (Direct Acyclic Graph, abbreviated as DAGs). CODE class development tools are more suitable for users who are accustomed to writing scripts themselves to achieve the desired functionality, but are less visual; the DAG class development tool visualizes well but cannot implement all functions, and part of the functional configuration also requires script writing to assist.
Disclosure of Invention
Exemplary embodiments of the present disclosure may solve at least the above problems.
According to a first aspect of the present disclosure, there is provided a development mode switching method, the method including: displaying a first page corresponding to a first development mode, wherein the first page is displayed with a first switching control; responding to touch operation for the first switching control, switching the first page into a second page corresponding to a second development mode, and completely synchronizing development contents displayed by the first page and the second page; the first development mode is a DAG development mode, and the second development mode is a code development mode; or, the first development mode is a code development mode, and the second development mode is a DAG development mode; the code development mode is a development mode for representing development content in a pure code form, and the DAG development mode is a development mode for representing development content in a graphical form.
Optionally, the development content includes at least one of: nodes, relationships among the nodes, node configuration information and node content information.
Optionally, when the first development mode is a DAG development mode, before the first page is switched to a second page corresponding to the second development mode in response to a touch operation for the first switching control, the method further includes; in response to receiving a box selection operation for the development content displayed in the first page, determining target display content based on the box selection operation; responding to the touch operation for the first switching control, switching the first page to a second page corresponding to a second development mode, wherein the touch operation comprises the following steps: in response to a touch operation for the first switching control, the first page is switched to a second page, which displays the target display content only in an editable manner, or which displays all the content of the first page and highlights the target display content.
Optionally, in the DAG development mode, the method further includes: in response to receiving a box selection operation for development content displayed in a corresponding page of the DAG development mode, determining target display content based on the box selection operation; and displaying a node development window in a corresponding page of the DAG development mode, wherein the node development window is displayed with a second switching control, and the second switching control is used for controlling the switching of the development mode of the node development window.
Optionally, the method further comprises: responding to touch operation for a second switching control, switching the node development window from a first window to a second window, wherein the development content displayed by the first window and the development content displayed by the second window are completely synchronous; the third development mode corresponding to the first window is a code development mode, and the fourth development mode corresponding to the second window is a form configuration mode; or the third development mode corresponding to the first window is a form configuration mode, and the fourth development mode corresponding to the second window is a code development mode.
Optionally, the method further comprises: and synchronously updating the development content displayed in the corresponding page of the DAG development mode in response to the editing operation aiming at the target display content in the node development window.
Optionally, the node development window includes at least one of: code editor controls and form configuration controls.
Optionally, the node comprises at least one of: custom operators, existing operators.
Optionally, the method further comprises: and responding to the search operation of the search control displayed in the first page, searching target content in the first page, and displaying the search result in the first page.
Optionally, the first page further displays a template control, where the template control includes at least one of: uploading a sub-control, downloading a sub-control, sharing a sub-control and managing resources; the resource management control is used for managing a resource library where the development template is located, and the resource library comprises: private repositories and/or public repositories.
Optionally, the method further comprises: and in response to the touch operation for the uploading sub-control, uploading the development content displayed on the first page to a resource library in the form of a development template.
Optionally, the method further comprises: and responding to touch operation for the download sub-control, and displaying the downloaded target development template on the current page.
Optionally, the method further comprises: and in response to the touch operation for the uploading sub-control, uploading the development content displayed on the first page and the corresponding business scene to a resource library in the form of a solution development template.
According to a second aspect of the present disclosure, there is provided a development mode switching apparatus including: the first display unit is configured to display a first page corresponding to the first development mode, and the first page is displayed with a first switching control; the first switching unit is configured to switch the first page into a second page corresponding to the second development mode in response to touch operation of the first switching control, and the development content displayed by the first page and the development content displayed by the second page are completely synchronous; the first development mode is a DAG development mode, and the second development mode is a code development mode; or, the first development mode is a code development mode, and the second development mode is a DAG development mode; the code development mode is a development mode for representing development content in a pure code form, and the DAG development mode is a development mode for representing development content in a graphical form.
Optionally, the development content includes at least one of: nodes, relationships among the nodes, node configuration information and node content information.
Optionally, when the first development mode is a DAG development mode, the first switching unit is further configured to determine, in response to receiving a box selection operation for the development content displayed in the first page, a target display content based on the box selection operation; in response to a touch operation for the first switching control, the first page is switched to a second page, which displays the target display content only in an editable manner, or which displays all the content of the first page and highlights the target display content.
Optionally, in the DAG development mode, the apparatus further includes: a second display unit configured to determine a target display content based on a box selection operation in response to receiving the box selection operation for the development content displayed in the corresponding page of the DAG development mode; and displaying a node development window in a corresponding page of the DAG development mode, wherein the node development window is displayed with a second switching control, and the second switching control is used for controlling the switching of the development mode of the node development window.
Optionally, the apparatus further includes: the second switching unit is configured to switch the node development window from the first window to the second window in response to the touch operation for the second switching control, and the development content displayed by the first window and the development content displayed by the second window are completely synchronous; the third development mode corresponding to the first window is a code development mode, and the fourth development mode corresponding to the second window is a form configuration mode; or the third development mode corresponding to the first window is a form configuration mode, and the fourth development mode corresponding to the second window is a code development mode.
Optionally, the apparatus further includes: and an updating unit configured to synchronously update the development content displayed in the corresponding page of the DAG development mode in response to an editing operation for the target display content in the node development window.
Optionally, the node development window includes at least one of: code editor controls and form configuration controls.
Optionally, the node comprises at least one of: custom operators, existing operators.
Optionally, the apparatus further includes: and a search unit configured to perform a search for the target content in the first page in response to a search operation for a search control displayed in the first page, and display a search result in the first page.
Optionally, the first page further displays a template control, where the template control includes at least one of: uploading a sub-control, downloading a sub-control, sharing a sub-control and managing resources; the resource management control is used for managing a resource library where the development template is located, and the resource library comprises: private repositories and/or public repositories.
Optionally, the apparatus further includes: and the uploading unit is configured to respond to the touch operation for the uploading sub-control and upload the development content displayed on the first page to the resource library in the form of a development template.
Optionally, the apparatus further includes: and the downloading unit is configured to respond to the touch operation for the downloading sub-control and display the downloaded target development template on the current page.
Optionally, the apparatus further includes: and the uploading unit is further configured to respond to the touch operation for the uploading sub-control and upload the development content displayed on the first page and the corresponding service scene to the resource library in the form of a solution development template.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium storing instructions, wherein the instructions, when executed by at least one computing device, cause the at least one computing device to perform a development mode switching method as above.
According to a fourth aspect of the present disclosure, there is provided a system comprising at least one computing device and at least one storage device storing instructions, wherein the instructions, when executed by the at least one computing device, cause the at least one computing device to perform a development mode switching method as above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the development mode switching method and device, the DAG development mode and the code development mode can be switched with each other, namely, a first switching control is displayed on a corresponding first page of the DAG development mode or the code development mode, and a second page corresponding to another development mode can be switched by touching the first switching control, so that the user can realize the required functions by combining the DAG development mode and the code development mode.
Drawings
These and/or other aspects and advantages of the present invention will become apparent from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 illustrates a flowchart of a development mode switching method according to an exemplary embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of a DAG development mode in accordance with an exemplary embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of a code development mode according to an exemplary embodiment of the present disclosure;
FIG. 4 illustrates a schematic diagram of a form configuration mode of a node according to an exemplary embodiment of the present disclosure;
FIG. 5 illustrates a schematic diagram of a code development mode of a node according to an exemplary embodiment of the present disclosure;
FIG. 6 illustrates a schematic diagram of a global search control, according to an exemplary embodiment of the present disclosure;
FIG. 7 illustrates a schematic diagram of a common repository according to an exemplary embodiment of the present disclosure;
FIG. 8 illustrates a schematic diagram of a download child control according to an exemplary embodiment of the present disclosure;
FIG. 9 illustrates a schematic diagram of a custom component in accordance with an exemplary embodiment of the present disclosure;
fig. 10 shows a block diagram of a development mode switching apparatus according to an exemplary embodiment of the present disclosure.
Detailed Description
The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of embodiments of the invention defined by the claims and their equivalents. Various specific details are included to aid understanding, but are merely to be considered exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be noted that, in this disclosure, "at least one of the items" refers to a case where three types of juxtaposition including "any one of the items", "a combination of any of the items", "an entirety of the items" are included. For example, "including at least one of a and B" includes three cases side by side as follows: (1) comprises A; (2) comprising B; (3) includes A and B. For example, "at least one of the first and second steps is executed", that is, three cases are juxtaposed as follows: (1) performing step one; (2) executing the second step; (3) executing the first step and the second step.
Development mode switching methods and apparatuses of embodiments of the present disclosure will be described below in order to explain the present disclosure by referring to the accompanying drawings.
Fig. 1 illustrates a flowchart of a development mode switching method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the development mode switching method includes the steps of:
in step S101, a first page corresponding to the first development mode is displayed, and the first page is displayed with a first switching control. The first development mode of the step may be a DAG development mode or a code development mode, which is not limited in this disclosure; the first switching control of this step may be in the form of a button, or may be in other forms, and this disclosure is not limited thereto.
In step S102, in response to the touch operation for the first switching control, the first page is switched to a second page corresponding to the second development mode, and the development content displayed by the first page and the second page are completely synchronized; the first development mode is a DAG development mode, and the second development mode is a code development mode; or, the first development mode is a code development mode, and the second development mode is a DAG development mode; the code development mode is a development mode for representing development content in a pure code form, and the DAG development mode is a development mode for representing development content in a graphical form.
For example, taking a first development mode as a DAG development mode, a second development mode as a CODE development mode as an example, fig. 2 shows a schematic diagram of the DAG development mode according to an exemplary embodiment of the present disclosure, fig. 3 shows a schematic diagram of the CODE development mode according to an exemplary embodiment of the present disclosure, fig. 2 and fig. 3 combine to show that a CODE development mode and a DAG development mode are implemented in the same tool and are compatible and switchable with each other, as shown in fig. 2 and fig. 3, the control in the uppermost frame in the drawing may be a first switching control, where Flow represents switching to the DAG development mode, CODE represents switching to the CODE development mode, and of course, may be other forms of control, which is not limited to this disclosure.
According to an exemplary embodiment of the present disclosure, the development includes at least one of: nodes, relationships among the nodes, node configuration information and node content information. The nodes may be conventional operators, which are typically packaged one by complex codes, functions, etc.
Specifically, when the target task flow needs to be built, a user can build DAG components required by the target task flow in a first page in a DAG development mode in a dragging mode, wherein each DAG component comprises at least one node, a DAG graph of the target task flow is built based on the required DAG components, when a CODE of the DAG graph is required to be checked, a control (namely a first switching control) in the uppermost frame shown in fig. 2 can be touched, so that the first page in the DAG development mode can be switched to a second page corresponding to the CODE development mode, and all CODEs corresponding to the DAG graph are displayed on the second page, as shown in fig. 3; similarly, the control in the uppermost frame shown in fig. 3 may be touched, so that the second page corresponding to the CODE (CODE) development mode may be switched back to the first page of the DAG development mode, and the corresponding DAG graph may be continuously displayed. When the target task flow needs to be adjusted, the DAG graph in the DAG development page may be adjusted by a simple drag and drop method, or may be adjusted and edited by a code in the code development page, and specifically, which development mode is selected may be selected by a user according to custom or preference, which is not limited in this disclosure. In addition, a component is typically a combination of multiple nodes (i.e., operators) that are obtained to achieve a particular function.
It should be appreciated that in the present disclosure, the development content displayed by the first page and the second page are completely synchronized, which means that the task flow data edited or processed by the user can be automatically synchronized between the two modes without manual processing by the user, whether the user adopts the DAG development mode or the code development mode.
Further, in the embodiment of the present disclosure, besides the unified mode switching can be performed for the whole development page, in consideration of complexity and increasing size of the development flow along with the task, for example, when there are thousands of nodes in the DAG graph, the user may not be able to quickly find the content that wants to be modified after performing the mode switching. Based on this, the disclosure still further gives one possible functionality: the user may frame the content on the first page, and thus, after switching to the second page, the second page may display only the user-framed content, or may highlight the user-framed content.
In an exemplary embodiment, when the first development mode is a DAG development mode, before switching the first page to a second page corresponding to the second development mode in response to a touch operation for the first switching control, the method further includes; in response to receiving a box selection operation for the development content displayed in the first page, determining target display content based on the box selection operation; responding to the touch operation for the first switching control, switching the first page to a second page corresponding to a second development mode, wherein the touch operation comprises the following steps: in response to a touch operation for the first switching control, the first page is switched to a second page, which displays the target display content only in an editable manner, or which displays all the content of the first page and highlights the target display content.
According to the embodiment, when a user needs to edit or modify a certain DAG component or DAG operator in the DAG development mode, the code portion corresponding to the DAG component or DAG operator can be quickly located through operations of frame selection and mode switching, so that the user can quickly find only the displayed or highlighted code portion in the code development page and perform self-defining processing on the code portion, and the user does not need to look over all development contents, thereby reducing the workload of the user.
In another exemplary embodiment, when the first development mode is a code development mode, before switching the first page to a second page corresponding to the second development mode in response to a touch operation for the first switching control, the method further includes; in response to receiving a box selection operation for the development content displayed in the first page, determining target display content based on the box selection operation; responding to the touch operation for the first switching control, switching the first page to a second page corresponding to a second development mode, wherein the touch operation comprises the following steps: and switching the first page into a second page in response to the touch operation for the first switching control, wherein the second page displays all contents of the first page and highlights the target display content.
According to the embodiment, when the user edits or modifies the operator in the code development mode, or the user wants to view the DAG component or the DAG operator corresponding to the part of code, the user can quickly find the DAG component or the DAG operator corresponding to the part of code in the complex DAG graph through the box selection operation and the mode switching operation.
For example, when the target task flow needs to be adjusted, a portion (target display content) to be adjusted of the target task flow may be determined in advance, at this time, the portion to be adjusted may be selected directly by a frame, and then the portion to be adjusted may be displayed on the second page by touching the first switching control, so that the user may adjust the portion individually, or all the contents of the first page may be displayed on the second page and the portion to be adjusted may be highlighted, and the user may also adjust the portion individually, which is not limited in this disclosure.
In addition to development mode switching for the overall development process, the present disclosure further provides mode switching control functions for part of the development content.
According to an exemplary embodiment of the present disclosure, in the DAG development mode, the method further includes: in response to receiving a box selection operation for development content displayed in a corresponding page of the DAG development mode, determining target display content based on the box selection operation; and displaying a node development window in a corresponding page of the DAG development mode, wherein the node development window is displayed with a second switching control, and the second switching control is used for controlling the switching of the development mode of the node development window. According to the embodiment, the node development window is displayed in the corresponding page of the DAG development mode, and the node development window can realize the switching of the development modes of the nodes to be checked or the nodes to be modified, so that the mode switching of all development contents is not needed, the reaction time of the task flow development tool is reduced, and the switching efficiency is improved.
It should be noted that, the disclosure does not limit the frame selection range of the frame selection operation, and the user may customize the frame selection, for example, the frame selection range may be one node or may be multiple nodes, which is not limited to this disclosure.
In particular implementation, in the code development mode, a similar function may be adopted, that is, the user may perform frame selection of the code in the code development mode, so that in response to receiving a frame selection operation for development content displayed in a corresponding page of the code development mode, the target display content is determined based on the frame selection operation; and displaying a node development window in a corresponding page of the code development mode, wherein the node development window is displayed with a second switching control, and the second switching control is used for controlling the switching of the development mode of the node development window. In this embodiment, the user may also customize the framing code.
In the embodiment of the disclosure, the node development window displayed on any development page (abbreviated as a first page) is specifically used for editing or configuring the node. Similarly, based on different habits and favorites of users, the present disclosure also designs different switchable development modes for node development windows.
According to an exemplary embodiment of the present disclosure, the above method further includes: responding to touch operation for a second switching control, switching the node development window from a first window to a second window, wherein the development content displayed by the first window and the development content displayed by the second window are completely synchronous; the third development mode corresponding to the first window is a code development mode, and the fourth development mode corresponding to the second window is a form configuration mode; or the third development mode corresponding to the first window is a form configuration mode, and the fourth development mode corresponding to the second window is a code development mode.
For example, taking the third development mode corresponding to the first window as a form configuration mode, the fourth development mode corresponding to the second window as a CODE development mode as an example, fig. 4 shows a schematic diagram of the form configuration mode of the node according to an exemplary embodiment of the disclosure, fig. 5 shows a schematic diagram of the CODE development mode of the node according to an exemplary embodiment of the disclosure, fig. 4 and 5 combine to show that the form configuration mode and the CODE development mode are compatible and switchable with each other in the same tool, so that the node can be arbitrarily switched in the two modes of the form configuration mode and the CODE development mode, as shown in fig. 4 and 5, the control at the upper right corner of the right frame in the drawing can be regarded as a second switching control, and of course, the second switching control can also be a control in other forms, which is not limited to the disclosure.
Specifically, when the target task flow needs to be adjusted, the node to be adjusted in the target task flow can be determined in advance, at this time, the node to be adjusted can be directly selected by a frame, and when a plurality of nodes are framed, the node can be regarded as framing a DAG component, at this time, the second switching control can be touched, so that the mode can be switched from the form configuration mode shown in fig. 4 to the CODE development mode shown in fig. 5. When the DAG component needs to be adjusted, the DAG component may be implemented by adjusting a form in a form configuration mode, or may be implemented by adjusting a CODE corresponding to a CODE development mode, which development mode is specifically selected, and the DAG component may be intelligently selected according to a habit of a user, which is not limited in this disclosure.
According to an exemplary embodiment of the present disclosure, the node may include at least one of: custom operators, existing operators. The existing operators can be understood to be operators which can be provided for users by the development tool, and the operators can be provided by default by a system, template operators stored in advance by users or other users, and the like. The existing operator can be put into use without additional editing by a user, and meanwhile, the user-defined operator writing service is provided for the user, so that the operator writing service is more convenient for the user to use. According to the embodiment, the node not only comprises the existing operator, but also is added with the custom operator, and a user can write the common operator in a CODE development mode, so that the usability of the tool can be further improved. It should be noted that, the custom operator may expose the items to be modified in the later stage to the form, so that the custom operator may also implement the switching between the form configuration mode and the code development mode as the existing operator.
According to an exemplary embodiment of the present disclosure, the above method further includes: and synchronously updating the development content displayed in the corresponding page of the DAG development mode in response to the editing operation aiming at the target display content in the node development window. According to the embodiment, by editing the target display content, the development content displayed in the corresponding page of the DAG development mode can be synchronously updated, so that the usability of the tool is further improved.
Specifically, when the target task flow needs to be adjusted, the node to be adjusted in the target task flow can be determined in advance, at this time, the node to be adjusted can be selected directly by a frame, the CODE development mode shown in fig. 5 can be entered by touching the second switching control, the target display content is edited and adjusted in the development mode, and the target display content in the development content is updated together in the process of editing and adjusting.
According to an exemplary embodiment of the present disclosure, the node development window includes at least one of: code editor controls and form configuration controls. The code editor control may box a portion as in fig. 5, and the form configuration control may box a portion as in fig. 4, without limitation to this disclosure.
As more and more content is developed, there is a large amount of content, whether DAG graphs or code, and users may not be able to quickly find what they want to process or view, so the present disclosure further provides the user with the ability to search for developed content.
According to an exemplary embodiment of the present disclosure, the above method further includes: and responding to the search operation of the search control displayed in the first page, searching target content in the first page, and displaying the search result in the first page. According to the embodiment, the search is performed through the search control in the page, and whether the search code or the search node is used, the anchor point can be positioned to the search result, so that the accurate search result is displayed.
Fig. 6 shows a schematic diagram of a global search control according to an exemplary embodiment of the present disclosure, as shown in fig. 6, with a portion of the search control of the present embodiment being framed, through which a search for target content can be performed in a first page, and search results displayed in the first page. The form and location of the search control are not limited to this disclosure.
Specifically, when a target node needs to be searched, information of the target node, such as a name or a keyword, can be input in a search control, then searching in a page of the current development mode is started, and the search result locates the position of the node in the page of the current development mode and displays the node.
On the basis of any one of the foregoing embodiments, according to an exemplary embodiment of the present disclosure, the first page further displays a template control, where the template control includes at least one of the following: uploading a sub-control, downloading a sub-control, sharing a sub-control and managing resources; the resource management control is used for managing a resource library where the development template is located, and the resource library comprises: private repositories and/or public repositories.
The resource library may include a component template library, an operator template library (i.e., a node template library), and a solution template library (i.e., a development template of a development content or a solution development template including a business scenario), and may also include other template libraries, which is not limited in this disclosure.
For example, fig. 7 shows a schematic diagram of a common repository, as shown in fig. 7, which may include a solution template repository and a component template repository for storing corresponding templates, where it is explained that a component is a combination of multiple operators grouped together to achieve a certain functionality, according to an exemplary embodiment of the present disclosure. Meanwhile, fig. 7 also shows an upload sub-control, namely an "upload template" control in the figure, through which a user can directly upload a corresponding template from a local place into a template library. It should be noted that the form and location of the solution template library, the component template library, and the "upload template" control are not limited in this disclosure.
For another example, fig. 8 shows a schematic diagram of a download sub-control, as shown in fig. 8, which may be the "download" control shown in the figure, through which a user may download a corresponding template in a template library locally, according to an exemplary embodiment of the present disclosure. In addition, fig. 8 also shows a control of "sharing to the solution template library", that is, a development template corresponding to the development content of the current page may be downloaded locally, or may be shared to the solution template library, which is not limited to this disclosure. It should be noted that, the form and location of the "download" control and the "share to solution template library" control are not limited in this disclosure.
According to an exemplary embodiment of the present disclosure, the above method further includes: and in response to the touch operation for the uploading sub-control, uploading the development content displayed on the first page to a resource library in the form of a development template.
For example, the development content may be formed by a plurality of components, and assuming that a certain component is not stored in a template library in the task flow development tool, where a new component needs to be configured, the development content may be implemented by a custom component, fig. 9 shows a schematic diagram of the custom component according to an exemplary embodiment of the present disclosure, and as shown in fig. 9, a part of a lower right corner box, that is, the custom component, is shown in fig. 9, and by clicking the part, a user enters a code development mode or a DAG development mode, directly edits a required component according to a configuration of the user in the corresponding development mode, for example, in the code development mode, in the DAG development mode, an operator may be dragged to construct the required component, and then the configured component is shared to a resource library, so that the user may be opened for subsequent use by the user. The component and other components are then formed into development content, which can also be uploaded to a resource library in the form of a development template for other users to use. It should be noted that the form and the position of the custom component are not limited in this disclosure. The development may be made of one component, and the present disclosure is not limited thereto.
According to an exemplary embodiment of the present disclosure, the above method further includes: and responding to touch operation for the download sub-control, and displaying the downloaded target development template on the current page.
According to the embodiment, the uploading and downloading of the development module can be realized through the uploading sub-control and the downloading sub-control, so that a user can use the tool conveniently, and the usability of the tool is further improved.
According to an exemplary embodiment of the present disclosure, the above method further includes: and in response to the touch operation for the uploading sub-control, uploading the development content displayed on the first page and the corresponding business scene to a resource library in the form of a solution development template. In general, a service in one scenario may be composed of N nodes, and thus the scenario is a general scenario, which indicates that the service corresponding to the scenario is frequently used, and according to this embodiment, the development content and the corresponding service scenario are uploaded to the resource library in the form of a solution development template, so that the service scenario can be used by other users, and when a similar scenario exists subsequently, the development content of the service scenario is re-structured, that is, the usability of the tool is further improved. It should be noted that the development content and the corresponding service scenario may also be uploaded to the private resource library in the form of a solution development template for use by other authorized users, which is not limited to this disclosure.
For example, the uploading sub-control may also be a control "share to solution template library" shown in fig. 8, through which development content and corresponding business scenario can be shared to a resource library in the form of a solution development template, such as the solution template library shown in fig. 7, for other users to use.
Fig. 10 shows a block diagram of a development mode switching apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 10, the development mode switching apparatus includes: a first display unit 102 and a first switching unit 104.
The first display unit 102 is configured to display a first page corresponding to the first development mode, and the first page is displayed with a first switching control; the first switching unit 104 is configured to switch the first page to a second page corresponding to the second development mode in response to a touch operation for the first switching control, and the development content displayed by the first page and the development content displayed by the second page are completely synchronized; the first development mode is a DAG development mode, and the second development mode is a code development mode; or, the first development mode is a code development mode, and the second development mode is a DAG development mode; the code development mode is a development mode for representing development content in a pure code form, and the DAG development mode is a development mode for representing development content in a graphical form.
According to an exemplary embodiment of the present disclosure, the development includes at least one of: nodes, relationships among the nodes, node configuration information and node content information.
According to an exemplary embodiment of the present disclosure, when the first development mode is the DAG development mode, the first switching unit 104 is further configured to determine, in response to receiving a frame selection operation for the development content displayed in the first page, a target display content based on the frame selection operation; in response to a touch operation for the first switching control, the first page is switched to a second page, which displays the target display content only in an editable manner, or which displays all the content of the first page and highlights the target display content.
According to an exemplary embodiment of the present disclosure, in the DAG development mode, the above apparatus further includes: a second display unit 106 configured to determine a target display content based on a box selection operation in response to receiving the box selection operation for the development content displayed in the corresponding page of the DAG development mode; and displaying a node development window in a corresponding page of the DAG development mode, wherein the node development window is displayed with a second switching control, and the second switching control is used for controlling the switching of the development mode of the node development window.
According to an exemplary embodiment of the present disclosure, the above apparatus further includes: the second switching unit 108 is configured to switch the node development window from the first window to the second window in response to a touch operation for the second switching control, and the first window is completely synchronous with development content displayed by the second window; the third development mode corresponding to the first window is a code development mode, and the fourth development mode corresponding to the second window is a form configuration mode; or the third development mode corresponding to the first window is a form configuration mode, and the fourth development mode corresponding to the second window is a code development mode.
According to an exemplary embodiment of the present disclosure, the above apparatus further includes: and an updating unit 1010 configured to synchronously update the development content displayed in the corresponding page of the DAG development mode in response to an editing operation for the target display content in the node development window.
According to an exemplary embodiment of the present disclosure, the node development window includes at least one of: code editor controls and form configuration controls.
According to an exemplary embodiment of the present disclosure, the node comprises at least one of: custom operators, existing operators.
According to an exemplary embodiment of the present disclosure, the above apparatus further includes: the search unit 1012 is configured to perform a search for target content in the first page in response to a search operation for a search control displayed in the first page, and display a search result in the first page.
According to an exemplary embodiment of the present disclosure, the first page further displays a template control, the template control including at least one of: uploading a sub-control, downloading a sub-control, sharing a sub-control and managing resources; the resource management control is used for managing a resource library where the development template is located, and the resource library comprises: private repositories and/or public repositories.
According to an exemplary embodiment of the present disclosure, the above apparatus further includes: an uploading unit 1014 configured to upload the development content displayed on the first page to the repository in the form of a development template in response to a touch operation for the uploading sub-control.
According to an exemplary embodiment of the present disclosure, the above apparatus further includes: and the downloading unit 1016 is configured to respond to the touch operation for the download sub-control, and display the downloaded target development template on the current page.
According to an exemplary embodiment of the present disclosure, the above apparatus further includes: the uploading unit 1014 is further configured to upload the development content displayed on the first page and the corresponding business scenario to the repository in the form of a solution development template in response to a touch operation for the uploading sub-control.
Development mode switching methods and apparatuses according to exemplary embodiments of the present disclosure have been described above with reference to fig. 1 to 10.
The various units in the development mode switching apparatus shown in fig. 10 may be configured as software, hardware, firmware, or any combination of the above to perform a specific function. For example, each unit may correspond to an application specific integrated circuit, may correspond to a pure software code, or may correspond to a module in which software is combined with hardware. Furthermore, one or more functions implemented by the respective units may also be uniformly performed by components in a physical entity device (e.g., a processor, a client, a server, or the like).
Further, the development mode switching method described with reference to fig. 1 may be implemented by a program (or instructions) recorded on a computer-readable storage medium. For example, according to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions may be provided, wherein the instructions, when executed by at least one computing device, cause the at least one computing device to perform a development mode switching method according to the present disclosure.
The computer program in the above-described computer-readable storage medium may be run in an environment deployed in a computer device such as a client, a host, a proxy device, a server, etc., and it should be noted that the computer program may also be used to perform additional steps other than the above-described steps or to perform more specific processes when the above-described steps are performed, and the contents of these additional steps and further processes have been mentioned in the description of the related method with reference to fig. 1, so that a repetition will not be repeated here.
It should be noted that each unit in the development mode switching apparatus according to the exemplary embodiment of the present disclosure may completely depend on the execution of the computer program to realize a corresponding function, i.e., each unit corresponds to each step in the functional architecture of the computer program, so that the entire system is called through a specific software package (e.g., lib library) to realize the corresponding function.
On the other hand, the respective units shown in fig. 10 may also be implemented by hardware, software, firmware, middleware, microcode, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the corresponding operations may be stored in a computer-readable medium, such as a storage medium, so that the processor can perform the corresponding operations by reading and executing the corresponding program code or code segments.
For example, exemplary embodiments of the present disclosure may also be implemented as a computing device including a storage component and a processor, the storage component having stored therein a set of computer-executable instructions that, when executed by the processor, perform a development mode switching method according to exemplary embodiments of the present disclosure.
In particular, the computing devices may be deployed in servers or clients, as well as on node devices in a distributed network environment. Further, the computing device may be a PC computer, tablet device, personal digital assistant, smart phone, web application, or other device capable of executing the above set of instructions.
Here, the computing device is not necessarily a single computing device, but may be any device or aggregate of circuits capable of executing the above-described instructions (or instruction set) alone or in combination. The computing device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with locally or remotely (e.g., via wireless transmission).
In a computing device, the processor may include a Central Processing Unit (CPU), a Graphics Processor (GPU), a programmable logic device, a special purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
Some operations described in the development mode switching method according to the exemplary embodiment of the present disclosure may be implemented in software, some operations may be implemented in hardware, and furthermore, the operations may be implemented in a combination of software and hardware.
The processor may execute instructions or code stored in one of the memory components, where the memory component may also store data. The instructions and data may also be transmitted and received over a network via a network interface device, which may employ any known transmission protocol.
The memory component may be integrated with the processor, for example, RAM or flash memory disposed within an integrated circuit microprocessor or the like. Further, the storage component may comprise a stand-alone device, such as an external disk drive, a storage array, or any other storage device usable by a database system. The storage component and the processor may be operatively coupled or may communicate with each other, such as through an I/O port, network connection, etc., such that the processor is able to read files stored in the storage component.
In addition, the computing device may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the computing device may be connected to each other via buses and/or networks.
The development mode switching method according to the exemplary embodiments of the present disclosure may be described as various interconnected or coupled functional blocks or functional diagrams. However, these functional blocks or functional diagrams may be equally integrated into a single logic device or operate at non-exact boundaries.
Thus, the development mode switching method described with reference to FIG. 1 may be implemented by a system including at least one computing device and at least one storage device storing instructions.
According to an exemplary embodiment of the present disclosure, at least one computing device is a computing device for performing a development mode switching method according to an exemplary embodiment of the present disclosure, a storage device having stored therein a set of computer-executable instructions that, when executed by the at least one computing device, perform the development mode switching method described with reference to fig. 1.
The foregoing description of exemplary embodiments of the present disclosure has been presented only to be understood as illustrative and not exhaustive, and the present disclosure is not limited to the exemplary embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. Accordingly, the scope of the present disclosure should be determined by the scope of the claims.

Claims (10)

1. A method of developing a mode switch, the method comprising:
displaying a first page corresponding to a first development mode, wherein the first page is displayed with a first switching control;
Responding to touch operation for the first switching control, switching the first page into a second page corresponding to a second development mode, wherein the development content displayed by the first page and the development content displayed by the second page are completely synchronous;
wherein the first development mode is a DAG development mode, and the second development mode is a code development mode; alternatively, the first development mode is a code development mode, and the second development mode is a DAG development mode;
the code development mode is a development mode for representing development content in a pure code form, and the DAG development mode is a development mode for representing development content in a graphical form.
2. The method of claim 1, wherein the development content comprises at least one of: nodes, relationships among the nodes, node configuration information and node content information.
3. The method of claim 1 or 2, wherein, when the first development mode is a DAG development mode,
before the first page is switched to a second page corresponding to a second development mode in response to the touch operation of the first switching control, the method further comprises the steps of;
responsive to receiving a box selection operation for development content displayed in the first page, determining target display content based on the box selection operation;
The responding to the touch operation for the first switching control, the first page is switched to a second page corresponding to a second development mode, and the method comprises the following steps:
and responding to the touch operation of the first switching control, switching the first page into the second page, wherein the second page only displays the target display content in an editable mode, or displays all the content of the first page and highlights the target display content.
4. The method as recited in claim 1 or 2, wherein in the DAG development mode, the method further comprises:
in response to receiving a box selection operation for development content displayed in a corresponding page of the DAG development mode, determining target display content based on the box selection operation;
and displaying a node development window in a corresponding page of the DAG development mode, wherein the node development window is displayed with a second switching control, and the second switching control is used for controlling the switching of the development mode of the node development window.
5. The method as recited in claim 4, wherein the method further comprises:
switching the node development window from a first window to a second window in response to touch operation for the second switching control, wherein the first window is completely synchronous with development content displayed by the second window;
The third development mode corresponding to the first window is a code development mode, and the fourth development mode corresponding to the second window is a form configuration mode; or the third development mode corresponding to the first window is a form configuration mode, and the fourth development mode corresponding to the second window is a code development mode.
6. The method as recited in claim 4, wherein the method further comprises:
and synchronously updating the development content displayed in the corresponding page of the DAG development mode in response to the editing operation aiming at the target display content in the node development window.
7. The method of claim 4, wherein the node development window comprises at least one of: code editor controls and form configuration controls.
8. A development mode switching apparatus, the apparatus comprising:
the first display unit is configured to display a first page corresponding to a first development mode, and the first page is displayed with a first switching control;
the first switching unit is configured to switch the first page into a second page corresponding to a second development mode in response to touch operation of the first switching control, and the first page is completely synchronous with development content displayed by the second page;
Wherein the first development mode is a DAG development mode, and the second development mode is a code development mode; alternatively, the first development mode is a code development mode, and the second development mode is a DAG development mode;
the code development mode is a development mode for representing development content in a pure code form, and the DAG development mode is a development mode for representing development content in a graphical form.
9. A computer-readable storage medium storing instructions that, when executed by at least one computing device, cause the at least one computing device to perform the development mode switching method of any one of claims 1-7.
10. A system comprising at least one computing device and at least one storage device storing instructions that, when executed by the at least one computing device, cause the at least one computing device to perform the development mode switching method of any one of claims 1-7.
CN202211056928.2A 2022-08-31 2022-08-31 Development mode switching method and device Pending CN117667049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211056928.2A CN117667049A (en) 2022-08-31 2022-08-31 Development mode switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211056928.2A CN117667049A (en) 2022-08-31 2022-08-31 Development mode switching method and device

Publications (1)

Publication Number Publication Date
CN117667049A true CN117667049A (en) 2024-03-08

Family

ID=90085036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211056928.2A Pending CN117667049A (en) 2022-08-31 2022-08-31 Development mode switching method and device

Country Status (1)

Country Link
CN (1) CN117667049A (en)

Similar Documents

Publication Publication Date Title
CN108292206B (en) Workflow development system with easy-to-use features
CN107077273B (en) Application command control for small screen display
KR101296008B1 (en) Scroll bar control
CN102520841B (en) Collection user interface
WO2018040943A1 (en) Display data control method, device, and system
US20090100129A1 (en) Thin terminal computer architecture utilizing roaming keyboard files
US10073604B2 (en) UI-driven model extensibility in multi-tier applications
US11442705B2 (en) Code execution and data processing pipeline
US20200097138A1 (en) Application builder
WO2017089744A1 (en) A method and system for providing and executing web applications
US9898255B2 (en) Grid designer for multiple contexts
CN105493074A (en) Method to generate dynamic customized context-sensitive help
CN112016692A (en) Method and system for displaying machine learning automatic modeling process
US11029818B2 (en) Graphical user interface management for different applications
JP2017522639A (en) Semantic content access in development systems
CN117667049A (en) Development mode switching method and device
US11003317B2 (en) Desktop and mobile graphical user interface unification
CN113704593B (en) Operation data processing method and related device
WO2024179195A1 (en) Icon display method based on theme switching, and electronic device and storage medium
US20230393861A1 (en) Using interchangeable non-compute resources for cloud-based applications
TWI609272B (en) Terminal device and terminal operating system thereof and cloud device and cloud operating system thereof
CN115048191A (en) Method for switching display equipment by fast application and related equipment
US20190138328A1 (en) System and method for designating multi-object favorites
WO2023177756A1 (en) Collaborative widget state synchronization
CN118484180A (en) System development method, device, equipment and storage medium

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