Method and apparatus for editing workflow, and device and storage medium

By displaying workflows and resource components in the editing interface, the problem of difficult to balance high readability and high editability in traditional editing tools is solved, and the same-screen editing and rapid jump of workflows and resources is achieved, improving editing efficiency and flexibility.

WO2025152450A1PCT designated stage Publication Date: 2025-07-24BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/115653
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2025-07-24

AI Technical Summary

Technical Problem

The traditional visual editing workflow business is difficult to balance the high readability and editability of the canvas, and the workflow and resources cannot be edited on the same screen, resulting in low editing efficiency and insufficient flexibility.

Method used

By displaying the editing interface of the workflow, in response to the operation of the target node, the resource identifier associated with the node is determined, and the resource components associated with the target resource are displayed in the editing interface, so as to realize the same-screen editing and rapid jump of the workflow and resources.

Benefits of technology

Improve the efficiency and flexibility of workflow editing, and realize unified management and rapid jump of workflows and resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024115653_24072025_PF_FP_ABST
    Figure CN2024115653_24072025_PF_FP_ABST
Patent Text Reader

Abstract

On the basis of the embodiments of the present disclosure, provided are a method and apparatus for editing a workflow, and a device and a storage medium. The method comprises: displaying an editing interface of a workflow, wherein the workflow comprises a group of nodes; in response to receiving a preset operation performed on a target node in the group of nodes, determining a first resource identifier associated with the target node; and on the basis of the first resource identifier, displaying in the editing interface a resource component associated with a target resource, wherein the target resource is determined on the basis of the first resource identifier. The embodiments of the present disclosure can improve the efficiency of workflow editing, thus also improving the flexibility of workflow editing.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for editing workflow Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to a method, apparatus, device, and computer-readable storage medium for editing a workflow. Background Art

[0002] Visual editing of workflows is a method of designing and organizing workflows through a graphical interface, which allows users to create, edit, and modify workflows in an intuitive way. How to edit workflows is a key issue.

[0003] Summary of the Invention

[0004] In a first aspect of the present disclosure, a method for editing a workflow is provided. The method comprises: displaying an editing interface for the workflow, the workflow comprising a set of nodes; in response to receiving a preset operation on a target node in the set of nodes, determining a first resource identifier associated with the target node; and displaying, in the editing interface, a resource component associated with the target resource based on the first resource identifier, the target resource being determined based on the first resource identifier.

[0005] In a second aspect of the present disclosure, a device for editing a workflow is provided. The device includes: a first display module configured to display an editing interface for the workflow, where the workflow includes a set of nodes; a first determination module configured to, in response to receiving a preset operation on a target node in the set of nodes, determine a first resource identifier associated with the target node; and a second display module configured to, based on the first resource identifier, display a resource component associated with the target resource in the editing interface, where the target resource is determined based on the first resource identifier.

[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the method of the first aspect.

[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.

[0008] In a fifth aspect of the present disclosure, a computer program product is provided, which includes computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method of the first aspect is implemented.

[0009] It should be understood that the content described in this summary section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0011] FIG1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;

[0012] 2A to 2E are schematic diagrams illustrating example interfaces according to some embodiments of the present disclosure;

[0013] FIG3 shows a flowchart of a process for editing a workflow according to some embodiments of the present disclosure;

[0014] FIG4 shows a schematic structural block diagram of an apparatus for editing a workflow according to certain embodiments of the present disclosure;

[0015] FIG5 shows a block diagram of an electronic device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0017] It should be noted that the titles of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and any type of embodiment may be included under any section / subsection. Furthermore, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or in different sections / subsections.

[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.

[0019] The embodiments of the present disclosure may involve user data, data acquisition and / or use, etc. These aspects shall comply with the corresponding laws, regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user is aware of and confirms them. Accordingly, when implementing the various embodiments of the present disclosure, the types, scope of use, and usage scenarios of the data or information that may be involved should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with the relevant laws and regulations. The specific notification and / or authorization method may vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.

[0020] If this specification and the solutions in the examples involve the processing of personal information, such processing will be done only with a legitimate basis (such as with the consent of the subject of personal information or as necessary for the performance of a contract) and only within the prescribed or agreed scope. A user's refusal to process personal information other than that required for basic functions will not affect the user's use of basic functions.

[0021] Traditional visual workflow editing services, limited by the space of a single page, struggle to balance high readability and high editability on the canvas, resulting in low development and maintenance efficiency. Furthermore, traditional workflow editing services suffer from issues such as the inability to edit workflows and resources on the same screen, and the inability to route between workflows and resources.

[0022] Embodiments of the present disclosure provide a solution for editing a workflow. According to the solution, an editing interface for a workflow is displayed, wherein the workflow includes a set of nodes; in response to receiving a preset operation on a target node in the set of nodes, a first resource identifier associated with the target node is determined; and based on the first resource identifier, a resource component associated with the target resource is displayed in the editing interface, wherein the target resource is determined based on the first resource identifier.

[0023] The embodiments of the present disclosure can realize the same-screen display of workflows and resource components associated with target resources, and can centrally manage resources based on resource identifiers. As a result, the embodiments of the present disclosure can realize the same-screen editing of workflows and target resources and the rapid jump between resources and workflows, which can improve the efficiency and flexibility of workflow editing.

[0024] Sample Environment

[0025] FIG1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG1 , the example environment 100 may include an electronic device 110 .

[0026] In this example environment 100, electronic device 110 may run an application 120 that supports interface interaction. Application 120 may be any appropriate type of application for interface interaction, examples of which may include, but are not limited to, workflow-related editing applications. Workflows are used to define and automate a series of steps or tasks in a business process. User 140 may interact with application 120 via electronic device 110 and / or its attached devices. In some embodiments, a workflow is a visual logic module composed of nodes and connection relationships, which may also be referred to as a node graph. The node graph corresponding to a workflow is a diagram that graphically represents each step / task in the workflow. In some embodiments, the node graph may include multiple nodes, and each node may correspond to a step or a task. Any two nodes in the node graph may or may not have an association relationship. Two nodes that have an association relationship may be connected in the node graph using any appropriate relationship, for example, using a predetermined line element, which may be a straight line, a curve, a broken line, etc., which will not be described in detail here. Furthermore, nodes in the node graph are connected in series through input and output parameters. By configuring the input parameters of the start node and the output parameters of the end node, all nodes are connected, similar to calling a function and returning the result. It should be noted that between two connected nodes in the node graph, one node can generate an output operation based on its input parameters, and this output parameter can be used as an input parameter for the other node connected in series.

[0027] In the environment 100 of Figure 1 , if the application 120 is active, the electronic device 110 may present an interface 150 for supporting interface interaction through the application 120. The interface 150 may be a workflow editing interface, which may be used to edit the workflow.

[0028] In some embodiments, the electronic device 110 communicates with the server 130 to enable the provision of services for the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a handheld computer, a portable game terminal, a VR / AR device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for the target user (such as a "wearable" circuit, etc.).

[0029] The server 130 may be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. For example, the server 130 may include a computing system / server such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 may provide background services for the application 120 that supports interface interaction in the electronic device 110.

[0030] A communication connection may be established between the server 130 and the electronic device 110. The communication connection may be established in a wired or wireless manner. The communication connection may include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, etc., and the embodiments of the present disclosure are not limited in this respect. In the embodiments of the present disclosure, the server 130 and the electronic device 110 may implement signaling interaction through the communication connection between the two.

[0031] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of the present disclosure.

[0032] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.

[0033] Example Interaction

[0034] The following describes an example interaction process according to an embodiment of the present disclosure with reference to Figures 2A to 2E. Figures 2A to 2E show example interfaces 200A to 200E according to some embodiments of the present disclosure, which may be provided by the electronic device 110 shown in Figure 1, for example.

[0035] As shown in FIG. 2A , the electronic device 110 may present, for example, an interface 200A (a workflow editing interface), where a workflow 210 may include a group of nodes: a node 211 , a node 212 , and a node 213 .

[0036] Taking Figure 2A as an example, the electronic device 110 can receive a predetermined operation on node 212 in the group of nodes 211, 212, and 213, and determine the first resource identifier associated with node 212. The predetermined operation can be any appropriate operation, such as a click operation, a sliding operation, and the like. In some embodiments, the electronic device 110 can display an access control associated with the target node. The electronic device 110 can receive a predetermined operation on the target node based on the selection of the access control (such as by clicking or double-clicking). Taking Figure 2A as an example, the electronic device 110 can receive a click operation on the control 214 of node 212 and determine the first resource identifier associated with node 212.

[0037] It should be noted that, for a certain node, the electronic device 110 can set one access control for the node, or can set multiple access controls for the node according to the function. The specific settings can be made according to needs and will not be elaborated here.

[0038] The first resource identifier is identity information used to uniquely identify the target resource and can be any suitable form of identifier that uniquely identifies the target resource. In some embodiments, the first resource identifier can be a name or a string, etc. In other embodiments, the first resource identifier can be a Uniform Resource Identifier (URI). In some embodiments, the target resource can be a sub-task corresponding to the target node. In other embodiments, the target resource can also include, but is not limited to: code resources, resources corresponding to custom nodes, resources corresponding to the Application Programming Interface (API), resources corresponding to jobs, resources corresponding to databases, dependency resources, resources corresponding to workflow test cases, resources corresponding to global configurations, resources corresponding to global events, resources corresponding to interfaces, resources of custom types, prompts, etc. APIs are used to bind workflows, and a workflow can be bound to multiple APIs, thereby enabling the platform to provide external representational state transfer (RESTful API) to access workflows. The database can be any suitable type of database, such as a relational dataset (e.g., MySQL), which supports simple relationships between tables, fields, and data. In some embodiments, the resource unit corresponding to the resources manageable by the database is a table. Custom nodes are nodes generated after the input parameters, output parameters, and code logic of the custom node.

[0039] The following describes the first resource identifier.

[0040] In some embodiments, the first resource identifier indicates a team identification and / or a project identification associated with the target resource.

[0041] In some embodiments, the electronic device 110 can determine whether the current user has preset permissions for the target resource based on the team identifier and / or project identifier. The preset permissions can be any appropriate permissions, such as access permissions, modification permissions, management permissions, etc. As an example, the preset permissions can be to allow only users who match the team identifier and / or project identifier to access the target resource. Specifically, the electronic device 110 can determine whether the target team to which the current user belongs and / or the target project for which the current user is responsible matches the team identifier and / or project identifier indicated in the first resource identifier to determine whether the current user has the preset permissions for the target resource.

[0042] As an example, the electronic device 110 may be set to determine that the current user has the preset permission to the target resource when the target team and target project corresponding to the access user match the team identifier and project identifier indicated in the first resource identifier. That is, the electronic device 110 may determine whether the current user has the preset permission to the target resource based on whether the team identifier indicated in the first resource identifier matches the target team corresponding to the current user, and whether the project identifier indicated in the first resource identifier matches the target project corresponding to the current user. The electronic device 110 may determine that the current user has the preset permission to access the target resource in response to determining that the team identifier indicated in the first resource identifier matches the target team corresponding to the current user, and the project identifier indicated in the first resource identifier matches the target project corresponding to the current user. The electronic device 110 may determine that the current user does not have the preset permission to the target resource in response to determining that the team identifier indicated in the first resource identifier does not match the target team corresponding to the current user and / or the project identifier indicated in the first resource identifier does not match the target project corresponding to the current user.

[0043] As another example, the electronic device 110 may set the target team corresponding to the access user to match the team identifier indicated in the first resource identifier to determine whether the current user has the preset permission for the target resource. That is, the electronic device 110 may determine whether the current user has the preset permission for the target resource based on whether the team identifier indicated in the first resource identifier matches the target team corresponding to the current user. The electronic device 110 may determine that the current user has the preset permission for the target resource in response to determining that the team identifier indicated in the first resource identifier matches the target team corresponding to the current user. The electronic device 110 may determine that the current user does not have the preset permission for the target resource in response to determining that the team identifier indicated in the first resource identifier does not match the target team corresponding to the current user.

[0044] As another example, the electronic device 110 may be set to determine that the current user has the preset permission for the target resource when the target project corresponding to the accessing user matches the project identifier indicated in the first resource identifier, that is, the electronic device 110 may determine that the current user has the preset permission for the target resource based on whether the project identifier indicated in the first resource identifier matches the target project corresponding to the current user. The electronic device 110 may determine that the current user has the preset permission for the target resource in response to determining that the project identifier indicated in the first resource identifier matches the target project corresponding to the current user. The electronic device 110 may determine that the current user has the preset permission for the target resource in response to determining that the project identifier indicated in the first resource identifier does not match the target project corresponding to the current user.

[0045] In some embodiments, the first resource identifier may also be constructed based on the following information of the target resource: the resource type of the target resource, the sequence number of the target resource, and the version number of the target resource. The resource type may be any appropriate type, such as a code type, a database type, a sub-workflow type, etc., which will not be described in detail here.

[0046] In some embodiments, the first resource identifier may correspond to a format of “abcde: / / / team / {team_id} / project / {project_id} / {resource} / {resource_id} / {version}”.

[0047] abcde can be a fixed protocol (scheme) used to specify the access method of resources. Team is the string corresponding to the team. team_id represents the team identifier. Project is the string corresponding to the project. project_id represents the project identifier. Resource represents the resource type of the target resource. resource_id represents the serial number of the target resource, which can also be called the identification information of the target resource. Version represents the version number of the target resource, which can correspond to any appropriate format. As an example, the format corresponding to the version number can be major.minor.patch. In some embodiments, if the version number is not set in the first resource identifier, it can be assumed that the version corresponding to the first resource identifier is the current latest version.

[0048] As an example, the first resource identifier can be "abcde: / / / team / 12345 / project / 1234567890 / flow / 12345678911 / 1.2.3". At this time, the team identifier corresponding to the first resource identifier is "12345", the corresponding project identifier is "1234567890", the resource type of the target resource is "workflow", the serial number of the target resource is "12345678911", and the version number of the target resource is "1.2.3".

[0049] As another example, the first resource identifier can be "abcde: / / / team / 12345 / project / 1234567890 / custom_node / 12345678921 / 1.2.3". At this time, the team identifier corresponding to the first resource identifier is "12345", the corresponding project identifier is "1234567890", the resource type of the target resource is "custom_node", the serial number of the target resource is "12345678921", and the version number of the target resource is "1.2.3".

[0050] The relationship between the target resource and the target node in the workflow can be any appropriate association relationship. For example, if a node in the workflow is used to access a piece of code, then the resource associated with this node can be this piece of code, that is, the resource identifier determined based on the predetermined operation on this node is the resource identifier corresponding to this piece of code. For another example, if a node in the workflow is used to store the data generated by the previous node connected to this node in a database, then the resource associated with this node can be a data resource stored in the database, etc., that is, the resource identifier determined based on the predetermined operation on this node is the resource identifier corresponding to the resource stored in this database, such as the resource identifier of the corresponding target table in the database.

[0051] The electronic device 110 may display a resource component associated with the target resource in the editing interface based on the first resource identifier, where the target resource is determined based on the first resource identifier. The resource component may be any appropriate type of component. For example, it may be an editing component corresponding to the resource, an information viewing component within the resource, and the like, which will not be described in detail here.

[0052] Taking FIG2A as an example, electronic device 110 may receive a selection of control 214 corresponding to node 212 in workflow 210 and determine resource identifier 215 associated with node 212, where resource identifier 215 is a resource identifier corresponding to resource 220. Electronic device 110 may display resource components associated with resource 220 in an editing interface. In this case, the resource type corresponding to resource 220 is a sub-workflow, and the resource components associated with resource 220 include component 221, component 222, and so on.

[0053] Taking FIG2B as an example, electronic device 110 may receive a selection of control 232 corresponding to node 231 in workflow 230 and determine resource identifier 233 associated with node 231. Based on resource identifier 233, electronic device 110 may display resource components associated with resource 240 in an editing interface. In this case, the resource type corresponding to resource 240 is a resource corresponding to a database, and the resource components associated with resource 240 include component 241, component 242, and so on.

[0054] Taking FIG2C as an example, electronic device 110 may receive a selection of control 252 corresponding to node 251 in workflow 250 and determine resource identifier 253 associated with node 251. Based on resource identifier 253, electronic device 110 may display resource components associated with resource 260 in the editing interface. In this case, the resource type corresponding to resource 260 is code resource.

[0055] In some embodiments, the electronic device 110 may display the workflow in a first area of ​​the editing interface and display the resource components in a second area of ​​the editing interface. Taking FIG. 2A as an example, the electronic device 110 may display the workflow 210 in area 270 of the interface 200A and display the resource components of the resource 220 in area 271.

[0056] Taking FIG2D as an example, the electronic device 110 may also present multiple elements in the interface 200D. The elements may be any appropriate elements, such as workflow elements, toolbox elements, canvas elements, elements corresponding to selection controls, positioning links, etc. In response to selection of a target element in the editing interface, the electronic device 110 may determine a second resource identifier corresponding to the target element.

[0057] Taking FIG. 2D as an example, interface 200D may present selection controls corresponding to the various sub-workflows in workflow 260, specifically selection controls 261, 262, and 263, wherein selection control 261 is associated with sub-workflow 264, selection control 262 is associated with sub-workflow 265, and selection control 263 is associated with sub-workflow 266. In response to a selection of selection control 262 in interface 200D (i.e., the target element is selection control 262), electronic device 110 may determine a second resource identifier corresponding to selection control 262. This second resource identifier is information representing the unique identity of sub-workflow 265, and may specifically be a name or string that uniquely identifies sub-workflow 265, or may be a URI.

[0058] Taking FIG2E as an example, interface 200E may present multiple positioning links (such as link 290 and link 291) associated with workflow 270. This positioning link may be used to indicate the link of the sub-process where an error or warning occurs. In response to selecting link 290 in interface 200E (i.e., the target element is link 290), electronic device 110 may determine a second resource identifier corresponding to link 290. This link 290 is used to represent the sub-process in workflow 270 that caused the error or warning.

[0059] In some embodiments, the second resource identifier may correspond to a format of “abcde: / / / team / {team_id} / project / {project_id} / {resource} / {resource_id} / {version}?{query}”.

[0060] In some embodiments, abcde can be a fixed scheme used to specify the access method of the resource. Team is a string corresponding to the team. team_id represents the team identifier. Project is a string corresponding to the project. project_id represents the project identifier. Resource represents the resource type of the resource. resource_id represents the serial number of the resource. Version represents the version number of the resource, which can correspond to any appropriate format. As an example, the format corresponding to the version number can be major.minor.patch. In some embodiments, if the version number is not set in the second resource identifier, it can be assumed that the version corresponding to the second resource identifier is the latest version. query is used to represent the target control corresponding to the resource. The target control can be any appropriate control, such as but not limited to at least one of the following: a predetermined field of the form corresponding to the resource, an expression resource corresponding to the predetermined field of the form corresponding to the resource, a predetermined field of the input parameter corresponding to the resource, a predetermined field of the output parameter corresponding to the resource, a code corresponding to the resource, and a description corresponding to the resource.

[0061] As an example, the second resource identifier may be "abcde: / / / team / :teamId / project / :projectId / flow / :flowId?anchor= / node / :nodeId / data / name", and the query is "anchor= / node / :nodeId / data / name", which is used to locate the name field of the form under Node.

[0062] As another example, the second resource identifier can be "abcde: / / / team / :teamId / project / :projectId / flow / :flowId?anchor= / node / :nodeId / data / name&is_expression=true", in which case the query is "anchor= / node / :nodeId / data / name&is_expression=true", which is used to locate the expression resource corresponding to the name field of the form under Node.

[0063] As an example, the second resource identifier may be "abcde: / / / team / :teamId / project / :projectId / flow / :flowId?anchor= / node / :nodeId / definition / inputs / name", where the query is "anchor= / node / :nodeId / definition / inputs / name", which is used to locate the name field of the input parameter (inputs) under the Node.

[0064] As an example, the second resource identifier may be "abcde: / / / team / :teamId / project / :projectId / flow / :flowId?anchor= / node / :nodeId / definition / outputs / name", where the query is "anchor= / node / :nodeId / definition / outputs / name", which is used to locate the name field of the output parameter (outputs) under the Node.

[0065] As an example, the second resource identifier may be "abcde: / / / team / :teamId / project / :projectId / flow / :flowId?anchor= / node / :nodeId / definition / script", and the query is "anchor= / node / :nodeId / definition / outputs / name", which is used to locate the code (script) field under Node.

[0066] As an example, the second resource identifier may be "abcde: / / / team / :teamId / project / :projectId / flow / :flowId?anchor= / node / :nodeId / definition / info / titl e", and the query is "anchor= / node / :nodeId / definition / outputs / name", which is used to locate the description (information, info) field under Node.

[0067] Taking FIG. 2D as an example, after determining the second resource identifier, the electronic device 110 may adjust the display style of the sub-workflow 265 (target control) corresponding to the second resource identifier in the interface 200D.

[0068] In some embodiments, the electronic device 110 may highlight the target control corresponding to the second resource identifier in the editing interface.

[0069] In other embodiments, the electronic device 110 may move the target control corresponding to the second resource identifier to a target position in the editing interface, where the target position may be any appropriate position, such as a center position, an upper right position, etc. The electronic device may move the target control to the target position in the editing interface in any appropriate manner, such as a scrolling manner, a sliding manner, etc., which will not be described in detail herein.

[0070] In other embodiments, the electronic device 110 may highlight the target control corresponding to the second resource identifier in the editing interface, and move the target control corresponding to the second resource identifier to a target position in the editing interface.

[0071] The embodiments of the present disclosure can realize the same-screen display of workflows and resource components associated with target resources, and can centrally manage resources based on resource identifiers. As a result, the embodiments of the present disclosure can realize the same-screen editing of workflows and target resources and the rapid jump between resources and workflows, which can improve the efficiency and flexibility of workflow editing.

[0072] Example Process

[0073] FIG3 shows a flowchart of a process 300 for editing a workflow according to some embodiments of the present disclosure. The process 300 may be implemented at the electronic device 110. The process 300 is described below with reference to FIG1.

[0074] In block 310 , the electronic device 110 displays an editing interface of a workflow, where the workflow includes a set of nodes.

[0075] At block 320 , the electronic device 110 , in response to receiving a preset operation for a target node from a group of nodes, determines a first resource identifier associated with the target node.

[0076] In block 330 , the electronic device 110 displays resource components associated with the target resource in the editing interface based on the first resource identifier, where the target resource is determined based on the first resource identifier.

[0077] In some embodiments, displaying resource components associated with the target resource in the editing interface includes: displaying the workflow in a first area of ​​the editing interface, and displaying the resource components in a second area of ​​the editing interface.

[0078] In some embodiments, process 300 further includes: in response to selection of a target element in the editing interface, determining a second resource identifier corresponding to the target element; and adjusting a display style of a target control corresponding to the second resource identifier in the editing interface.

[0079] In some embodiments, adjusting the display style of the target control corresponding to the second resource identifier in the editing interface includes: highlighting the target control corresponding to the second resource identifier in the editing interface; and / or centering the target control corresponding to the second resource identifier in the editing interface.

[0080] In some embodiments, process 300 further includes: displaying an access control associated with the target node; and receiving a preset operation for the target node based on a selection of the access control.

[0081] In some embodiments, the target resource is a sub-workflow corresponding to the target node.

[0082] In some embodiments, the first resource identifier indicates a team identifier and / or project identifier associated with the target resource, and based on the first resource identifier, displaying the resource component associated with the target resource in the editing interface includes: determining whether the current user has preset permissions for the target resource based on the team identifier and / or project identifier; and displaying the resource component associated with the target resource in the editing interface in response to the current user having preset permissions for the target resource.

[0083] In some embodiments, the first resource identifier is constructed based on the following information of the target resource: a resource type of the target resource; a sequence number of the target resource; and a version number of the target resource.

[0084] Example devices and equipment

[0085] Embodiments of the present disclosure also provide corresponding apparatuses for implementing the above-described methods or processes. FIG4 shows a schematic structural block diagram of an apparatus 400 for editing a workflow according to certain embodiments of the present disclosure. Apparatus 400 may be implemented as or included in electronic device 110 as discussed above. The various modules / components in apparatus 400 may be implemented by hardware, software, firmware, or any combination thereof.

[0086] As shown in Figure 4, the device 400 includes a first display module 410, which is configured to display an editing interface of a workflow, where the workflow includes a group of nodes; a first determination module 420, which is configured to determine a first resource identifier associated with a target node in response to receiving a preset operation on a target node in a group of nodes; and a second display module 430, which is configured to display a resource component associated with the target resource in the editing interface based on the first resource identifier, where the target resource is determined based on the first resource identifier.

[0087] In some embodiments, the second display module 430 is further configured to: display the workflow in the first area of ​​the editing interface, and display the resource component in the second area of ​​the editing interface.

[0088] In some embodiments, the device 400 also includes a second determination module, configured to: determine a second resource identifier corresponding to the target element in response to a selection of the target element in the editing interface; and an adjustment module, configured to: adjust the display style of the target control corresponding to the second resource identifier in the editing interface.

[0089] In some embodiments, the adjustment module is further configured to: highlight the target control corresponding to the second resource identifier in the editing interface; and / or move the target control corresponding to the second resource identifier to a target position in the editing interface.

[0090] In some embodiments, the apparatus 400 further includes a third display module configured to: display access controls associated with the target node; and a receiving module configured to: receive a preset operation for the target node based on a selection of the access controls.

[0091] In some embodiments, the target resource is a sub-workflow corresponding to the target node.

[0092] In some embodiments, the first resource identifier indicates a team identifier and / or project identifier associated with the target resource, and the second display module 430 is further configured to: determine whether the current user has preset permissions for the target resource based on the team identifier and / or project identifier; and display the resource component associated with the target resource in the editing interface in response to the current user having preset permissions for the target resource.

[0093] In some embodiments, the first resource identifier is constructed based on the following information of the target resource: a resource type of the target resource; a sequence number of the target resource; and a version number of the target resource.

[0094] The units included in the device 400 can be implemented in various ways, including software, hardware, firmware or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units in the device 400 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0095] FIG5 shows a block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 500 shown in FIG5 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 500 shown in FIG5 can be used to implement the electronic device 110 shown in FIG1 .

[0096] As shown in FIG5 , electronic device 500 is a general-purpose electronic device. Components of electronic device 500 may include, but are not limited to, one or more processors or processing units 510, memory 520, storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. Processing unit 510 may be a real or virtual processor and is capable of performing various processes according to programs stored in memory 520. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to enhance the parallel processing capabilities of electronic device 500.

[0097] The electronic device 500 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 520 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data (e.g., training data for training) and can be accessed within the electronic device 500.

[0098] The electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5 , a disk drive for reading from or writing to a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading from or writing to a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 520 may include a computer program product 525 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.

[0099] The communication unit 540 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of the electronic device 500 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the electronic device 500 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0100] Input device 550 may be one or more input devices, such as a mouse, keyboard, or trackball. Output device 560 may be one or more output devices, such as a display, a speaker, or a printer. Electronic device 500 may also communicate with one or more external devices (not shown) via communication unit 540 as needed, such as a storage device, a display device, or the like, with one or more devices that allow a user to interact with electronic device 500, or with any device that allows electronic device 500 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0101] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0102] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0103] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0104] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0105] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0106] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.

Claims

1. A method for editing a workflow, comprising: Displaying an editing interface of the workflow, the workflow including a set of nodes; Responsive to receiving a preset operation on a target node in the set of nodes, determining a first resource identifier associated with the target node; And Based on the first resource identifier, displaying resource components associated with the target resource in the editing interface, the target resource being determined based on the first resource identifier.

2. The method according to claim 1, wherein displaying resource components associated with the target resource in the editing interface includes: Displaying the workflow in a first area of the editing interface and displaying the resource components in a second area of the editing interface.

3. The method according to claim 1, further comprising: Responsive to a selection of a target element in the editing interface, determining a second resource identifier corresponding to the target element; And Adjusting a display style of a target control corresponding to the second resource identifier in the editing interface.

4. The method according to claim 3, wherein adjusting the display style of the target control corresponding to the second resource identifier in the editing interface includes: Highlighting the target control corresponding to the second resource identifier in the editing interface; And / or Moving the target control corresponding to the second resource identifier to a target position in the editing interface.

5. The method according to claim 1, further comprising: Displaying an access control associated with the target node; And Based on a selection of the access control, receiving the preset operation on the target node.

6. The method according to claim 1, wherein the target resource is a sub-workflow corresponding to the target node.

7. The method according to claim 1, wherein the first resource identifier indicates a team identifier and / or a project identifier associated with the target resource, and based on the first resource identifier, displaying resource components associated with the target resource in the editing interface includes: Based on the team identifier and / or the project identifier, determining whether the current user has a preset permission for the target resource; And Responsive to the current user having the preset permission for the target resource, displaying the resource components associated with the target resource in the editing interface.

8. The method according to claim 1, wherein the first resource identifier is constructed based on the following information of the target resource: The resource type of the target resource; The serial number of the target resource; and The version number of the target resource.

9. An apparatus for editing a workflow, comprising: A first display module configured to display an editing interface of a workflow, the workflow including a set of nodes; A first determination module configured to, responsive to receiving a preset operation on a target node in the set of nodes, determine a first resource identifier associated with the target node; And A second display module configured to, based on the first resource identifier, display resource components associated with the target resource in the editing interface, the target resource being determined based on the first resource identifier.

10. An electronic device, comprising: at least one processing unit; and at least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having stored thereon a computer program, the computer program, when executed by a processor, implementing the method according to any one of claims 1 to 8.

12. A computer program product, comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Workflow and custom form-based management method, system and storage medium

    CN114064037A

  • Radiotherapy workflow editing method and device, computer equipment and storage medium

    CN114220520A

  • Workflow processing method and device, electronic equipment, storage medium and program product

    CN116452144A

  • Visualized edition method, device and apparatus, and storage medium

    US20200410044A1