Table workflow layout conversion method and device, electronic equipment, computer readable storage medium and computer program product

By converting the layout of nodes with consistent types in the workflow data object, the problem of difficult conversion of user interface expressions is solved, enabling free conversion of workflows under different UI expressions and improving the user experience.

CN120578381BActive Publication Date: 2025-11-04BEIJING FEISHU TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511079655.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-01
Publication Date
2025-11-04
Estimated Expiration
2045-08-01

AI Technical Summary

Technical Problem

In existing technologies, users cannot convert pre-built user interface (UI) expressions into other UI expressions, resulting in a poor user experience.

Method used

By responding to layout transformation operations, nodes in the data object of the first layout are converted into workflow nodes in the workflow data object, and then converted into data objects of the second layout, keeping the node types consistent, thus achieving the conversion between different UI expressions.

Benefits of technology

It enables the free conversion of the same workflow under different UI expressions, reducing configuration costs and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120578381B_ABST
    Figure CN120578381B_ABST
Patent Text Reader

Abstract

The application discloses a table workflow layout conversion method and device, electronic equipment, computer readable storage medium and computer program product, and belongs to the technical field of computers. The method comprises the following steps: in response to a layout conversion operation for a workflow in a table, converting a first node in a first data object corresponding to a first layout mode into a workflow node in a workflow data object; converting the workflow node in the workflow data object into a second node in a second data object corresponding to a second layout mode; and rendering the second data object through the second layout mode to present the workflow. The application can present the same workflow in different workflow interfaces in a database table, reduces the configuration cost, and improves the user experience of using the workflow.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and particularly relates to a table workflow layout conversion method and device, electronic equipment, computer readable storage medium and computer program product. BACKGROUND

[0002] A workflow can be used in a database table to implement an automatic processing flow of data. The workflow is usually built through a user interface (UI) expression. Currently, there are various types of UI expressions, and a user can select a suitable UI expression to build a workflow according to a demand.

[0003] After a workflow is built using a UI expression, if it is desired to present an interface of the workflow using a different UI expression, the workflow needs to be rebuilt using the new UI expression, and it is impossible to convert the built UI expression to another UI expression, which is poor in user experience. SUMMARY

[0004] Embodiments of the present application provide a table workflow layout conversion method and device, electronic equipment, computer readable storage medium and computer program product, which can convert a built UI expression to another UI expression, thereby improving user experience.

[0005] To solve the above technical problem, embodiments of the present application are implemented in the following aspects.

[0006] In a first aspect, the embodiments of the present application provide a table workflow layout conversion method, including: in response to a layout conversion operation on a workflow in a table, converting a first node in a first data object corresponding to a first layout mode into a workflow node in a workflow data object, wherein the layout conversion operation is used to indicate that a layout mode of the workflow is converted from the first layout mode to a second layout mode, the layout mode includes a position of a node in the workflow, a logical relationship between nodes and / or a processing logic of table data, the workflow node includes a trigger node, an operation node and a system behavior node, each of the workflow nodes and the corresponding first node belong to a same node type, and a data structure of the first data object is different from a data structure of the workflow data object; converting the workflow node in the workflow data object into a second node in a second data object corresponding to the second layout mode, wherein each of the workflow nodes and the corresponding second node belong to the same node type, and a data structure of the second data object is different from the data structure of the workflow data object; and rendering the second data object through the second layout mode to present the workflow.

[0007] In a second aspect, an embodiment of the present application provides a table workflow layout conversion device, comprising: a first conversion module configured to convert a first node in a first data object corresponding to a first layout mode into a workflow node in a workflow data object in response to a layout conversion operation on a workflow in a table, wherein the layout conversion operation is configured to indicate a conversion of a layout mode of the workflow from the first layout mode to a second layout mode, the layout mode comprises a position of a node in the workflow, a logical relationship between nodes, and / or a processing logic of table data, the workflow node comprises a trigger node, an operation node, and a system behavior node, each of the workflow node and the corresponding first node belongs to a same node type, and a data structure of the first data object is different from a data structure of the workflow data object; a second conversion module configured to convert the workflow node in the workflow data object into a second node in a second data object corresponding to the second layout mode, wherein each of the workflow node and the corresponding second node belongs to the same node type, and a data structure of the second data object is different from the data structure of the workflow data object; and a rendering module configured to render the second data object through the second layout mode to present the workflow.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, which, when executed, use the processor to perform the table workflow layout conversion method of the first aspect.

[0009] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium for storing computer executable instructions, which, when executed by a processor, implement the table workflow layout conversion method of the first aspect.

[0010] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the table workflow layout conversion method of the first aspect.

[0011] In the embodiment of the present application, by responding to the layout conversion operation of the workflow in the table, the first node in the first data object corresponding to the first layout mode is converted into the workflow node in the workflow data object, wherein the layout conversion operation is used to indicate the conversion of the layout mode of the workflow from the first layout mode to the second layout mode, the layout mode includes the position of the node in the workflow, the logical relationship between the nodes and / or the processing logic of the table data, the workflow node includes the trigger node, the operation node and the system behavior node, each workflow node and the corresponding first node belong to the same node type, the data structure of the first data object is different from the data structure of the workflow data object, then the workflow node in the workflow data object is converted into the second node in the second data object corresponding to the second layout mode, wherein each workflow node and the corresponding second node belong to the same node type, the data structure of the second data object is different from the data structure of the workflow data object, and finally the second data object is rendered by the second layout mode to present the workflow, so that the same workflow can be presented in different workflow interfaces in the database table, so that the same workflow can correspond to multiple layout modes, the configurator can freely convert the configured workflow into other UI expressions according to the configuration requirements, thereby reducing the configuration cost and improving the user experience of using the workflow. BRIEF DESCRIPTION OF DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0013] Figure 1 A layout mode of a workflow provided by an embodiment of the present application is shown;

[0014] Figure 2 Another layout mode of a workflow provided by an embodiment of the present application is shown;

[0015] Figure 3 A flowchart of a table workflow layout conversion method provided by an embodiment of the present application is shown;

[0016] Figure 4 Another layout mode of a workflow provided by an embodiment of the present application is shown;

[0017] Figure 5 A schematic diagram of a data structure corresponding to a workflow data object provided by an embodiment of the present application is shown;

[0018] Figure 6A conversion schematic diagram of a layout mode provided by an embodiment of the present application is shown.

[0019] Figure 7 A conversion interaction schematic diagram of a layout mode provided by an embodiment of the present application is shown.

[0020] Figure 8 A structure schematic diagram of a conversion device of a table workflow layout provided by an embodiment of the present application is shown.

[0021] Figure 9 A hardware structure schematic diagram of an electronic device for executing a conversion method of a table workflow layout provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] In order to enable persons skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative labor should fall within the scope of protection of the present application.

[0023] A workflow is an automated process in a table, which is used to automatically execute table data processing according to data changes or reaching a specific condition in the table. The workflow is usually expressed by a UI expression mode, and a user can build nodes of the workflow in a canvas, and then configure a workflow presented by a UI interface. In the current UI expression mode technology, a configurator cannot freely convert a configured workflow into other UI expressions according to self configuration requirements. Figure 1 As shown in FIG. 1, it is a canvas expression mode. In the canvas expression mode, the process is clear in logic, and can be used to process complex processes, but there is a problem of complex interaction. Figure 2As shown, this is the form-based expression method. In this method, the interaction is simple, and the process configuration is convenient and clear, but it's difficult to configure complex processes. Regarding the text-based expression method, for example, "When any record in the data table is modified, send a message to xxx," the interaction is simple and direct, and a process can be described in one sentence. However, for large and complex processes, the large amount of text leads to poor readability. To improve the user experience, different UI expression methods can be built for the same workflow, allowing arbitrary conversion between UI expression methods. However, if different UI expression methods are used, different underlying data structures are required. When a user switches between different UI expression methods, the current data structure needs to be converted to the corresponding data structure. Therefore, it is necessary to develop conversion logic between the data structure of each UI and other data structures. Let each UI expression method be UI i, and the data structure conversion logic from UI x to UI y be x~y. Then, as shown in Table 1, there are... A type of transformation logic.

[0024] Table 1

[0025]

[0026] Therefore, if there are n ways to express a UI, then it is necessary to implement... The current conversion logic leads to a significant increase in development costs each time a new UI expression is added. To address this issue, this application provides a method for converting table workflow layouts, enabling users to freely convert pre-built UI expressions into other UI expressions, thereby reducing configuration costs and improving user experience. The following description, in conjunction with the accompanying drawings, illustrates the table workflow layout conversion method, apparatus, electronic device, computer-readable storage medium, and computer program product provided in this application.

[0027] Figure 3 This diagram illustrates a flowchart of a method for converting a table workflow layout according to an embodiment of this application. This method can be executed by an electronic device, which can be a terminal or a server. In other words, the method can be executed by software installed on the electronic device or by hardware on the electronic device. Figure 3 As shown, the method may include the following steps:

[0028] S310: In response to a layout transformation operation for a workflow in a table, the first node in the first data object corresponding to the first layout is transformed into a workflow node in the workflow data object.

[0029] The layout conversion operation is used to indicate conversion of a layout mode of the workflow from the first layout mode to a second layout mode. The layout mode includes a position of a node in the workflow, a logical relationship between nodes, and / or processing logic of table data. The workflow node includes a trigger node, an operation node, and a system behavior node. Each of the workflow nodes and the corresponding first node belongs to a same node type. The data structure of the first data object is different from that of the workflow data object.

[0030] The layout mode is a UI expression mode of the workflow. The data structure of the data object corresponding to different layout modes can be different. For example, the first layout mode is a canvas. The data structure of the data object corresponding to the canvas can be as follows:

[0031]

[0032] The canvas data object includes multiple nodes. Each node corresponds to a label or a component. The nodes have a logical relationship, which includes a dependency relationship and an execution order.

[0033] The first node can be all or part of the nodes in the first data object. The first node can be determined based on a conversion rule corresponding to the first layout mode. For example, the first layout mode is a canvas. As shown in Figure 4 the first data object corresponding to the canvas includes six nodes: 1, 2, 3, 4, 5, and 6. The node 6 is a branch node. The branch node includes a child node 6.1. The branch represented by the child node 6.1 further includes a child node 6.11 and a child node 6.12. The first node can include 1, 3, 5, and 6.11. That is, the first node is a node corresponding to an execution step of the workflow.

[0034] Each of the workflow nodes and the corresponding first node belongs to a same node type. That is, the node type remains unchanged during the conversion. For example, if the node type of a node is a branch node, which is used to mark branch logic, the node type of the corresponding workflow node in the converted workflow is also a branch node, which is not used to mark other logic, such as loop logic or sequential logic. Thus, the logical consistency between the nodes is ensured.

[0035] The workflow data object refers to a data structure that defines a layout mode based on a workflow. In an example embodiment, before converting the first node in the first data object corresponding to the first layout mode into a workflow node in the workflow data object, the method further includes defining the workflow data object, wherein the workflow data object includes the following attributes: workflow identification, workflow name, and workflow node set, the workflow node set includes the trigger node, the operation node, and the system behavior node, the trigger node, the operation node, and the system behavior node inherit from a base node, the base node is used to define the base attributes of the workflow node, the base attributes include: node identification, node name, and next node identification, the trigger node is used to listen to events and execute the next node indicated by the trigger node when the condition is met, the operation node is used to implement workflow execution operations, and the system behavior node is used to implement the logical scheduling of the workflow, the system behavior node further includes an extension attribute, and the extension attribute is used to define a sub-node. As shown in Figure 5 the workflow data object is composed of nodes and connections between nodes, wherein the trigger node can include a timing trigger node, a Webhook trigger node, and other trigger nodes, the operation node can include a sending node, a third-party plug-in operation node, and other operation nodes, and the system behavior node can include a branch node, a loop node, and other system behavior nodes. As shown in

[0036]

[0037] It can be understood that in the workflow data object, each node indicates the execution order through the next node identification attribute. The extension attribute of the system behavior node defines a sub-node corresponding to the system behavior node.

[0038] In the process of converting the first node in the first data object corresponding to the first layout mode into a workflow node in the workflow data object, each first node is processed according to its node type. For example, if a first node is a branch node, the branch node and the sub-nodes included in the branch node are converted, and then the next first node is converted.

[0039] S320: converting the workflow node in the workflow data object into a second node in a second data object corresponding to the second layout mode.

[0040] Each of the workflow nodes and the corresponding second nodes belongs to the same node type, and the data structure of the second data object is different from that of the workflow data object.

[0041] S330: rendering the second data object by the second layout mode, presenting the workflow.

[0042] It can be understood that when switching between different layout modes, a conversion relationship between the two needs to be established. In the embodiments of the present application, the switching between different layout modes can be realized by a workflow data object. Each layout mode only needs to implement conversion logic with the workflow data object. In S110, the first node in the first data object corresponding to the first layout mode is converted into a workflow node in the workflow data object. In this step, the workflow node in the workflow data object is converted into a second node in the second data object corresponding to the second layout mode. For example, as shown in Figure 6 when the user switches the UI expression mode, the data object corresponding to the current UI1 is converted into the workflow data object, and then the workflow data object is converted into the data object corresponding to the target UI2, so as to realize the conversion from the first layout mode to the second layout mode. During the conversion process, each workflow node and the corresponding second node have the same node type.

[0043] In the embodiments of the present application, by responding to the layout conversion operation of the workflow in the table, the first node in the first data object corresponding to the first layout mode is converted into a workflow node in the workflow data object, wherein the layout conversion operation is used to indicate that the layout mode of the workflow is converted from the first layout mode to the second layout mode, the layout mode includes the position of the node in the workflow, the logical relationship between the nodes and / or the processing logic of the table data, the workflow node includes a trigger node, an operation node and a system behavior node, each workflow node and the corresponding first node belong to the same node type, the data structure of the first data object is different from the data structure of the workflow data object, then the workflow node in the workflow data object is converted into a second node in the second data object corresponding to the second layout mode, wherein each workflow node and the corresponding second node belong to the same node type, the data structure of the second data object is different from the data structure of the workflow data object, finally the second data object is rendered by the second layout mode, and the workflow is presented. In this way, the same workflow can be presented in different workflow interfaces in the database table, so that the same workflow can correspond to multiple layout modes. The configurator can freely convert the configured workflow into other UI expressions according to the configuration requirements, thereby reducing the configuration cost and improving the user experience of using the workflow.

[0044] In an example embodiment, the converting the first node in the first data object corresponding to the first layout mode into a workflow node in the workflow data object comprises: converting the first node in the first data object into the workflow node in the workflow data object according to a node conversion rule corresponding to the first layout mode.

[0045] In an example embodiment, the converting the workflow node in the workflow data object into a second node in the second data object corresponding to the second layout mode comprises: converting the workflow node in the workflow data object into the second node in the second data object according to a node conversion rule corresponding to the second layout mode.

[0046] With regard to the above example embodiment, it can be understood that the conversion of the data object of each layout mode into the workflow data object is performed according to the conversion rule of the layout mode, that is, the node conversion rule is used to realize the conversion between the data object corresponding to the layout mode and the workflow data object. In this way, if there are n layout modes, n conversion rules are required, that is, each layout mode only needs to realize the conversion with the workflow data object, and in addition, after a new layout mode is added, only the conversion rule between the data object of the layout mode and the workflow data object needs to be configured, which reduces the configuration cost and improves the flexibility of the switching process.

[0047] In an example embodiment, before the converting the first node in the first data object corresponding to the first layout mode into a workflow node in the workflow data object, the method further comprises: constructing a first data converter corresponding to the first layout mode and a second data converter corresponding to the second layout mode, wherein the first data converter is used to realize the conversion between the first data object and the workflow data object according to the node conversion rule corresponding to the first layout mode, and the second data converter is used to realize the conversion between the workflow data object and the second data object according to the node conversion rule corresponding to the second layout mode. For example, as shown in FIG. 1, when the first layout mode, i.e., UI 1, is rendered, the user switches UI 1 to UI 2, and the workflow data processor starts processing the data conversion operation after receiving the command. The data object corresponding to UI 1 being rendered is converted into the workflow data object through the UI 1 data converter, and then the workflow data object is converted into the data object corresponding to UI 2 through the UI 2 data converter. The converted data object corresponding to UI 2 is handed over to the page for rendering. Figure 7

[0048] ​​In an example embodiment, after the converting the first node in the first data object corresponding to the first layout into a workflow node in the workflow data object, the method further comprises: generating a derived node corresponding to the second layout according to a node conversion rule corresponding to the second layout; and adding node information of the derived node into the second data object.

[0049] It can be understood that the nodes included in the workflow data object correspond to an execution logic of the workflow, and the data object corresponding to the layout can further include derived nodes in addition to the first node, which do not affect the execution logic of the workflow. Therefore, when converting the first data object corresponding to the first layout into the workflow data object, only the first node is converted. For example, continuing to refer to the above example, the canvas includes 6 nodes: 1, 2, 3, 4, 5, and 6, and 3 sub-nodes: 6.1, 6.11, and 6.12, wherein the nodes 1, 3, 5, and the sub-node 6.11 are the first nodes, and the nodes 2, 4, and the sub-nodes 6.1 and 6.12 are the derived nodes. In the conversion process, the nodes 1, 3, 5, and the sub-node 6.11 correspond to a workflow node respectively. If the second layout is a canvas, in the conversion process, in addition to converting the workflow node into a second node, a derived node is further generated according to the conversion rule corresponding to the canvas, and node information of the derived node is added into the second data object. In this way, a complete second layout is obtained when rendering, so as to ensure the accuracy of the conversion and the integrity of the nodes. Figure 4

[0050] In an example embodiment, after the converting the first node in the first data object corresponding to the first layout into a workflow node in the workflow data object, the method further comprises: storing the workflow data object corresponding to the workflow.

[0051] It can be understood that when the user switches the layout for the first time, the layout needs to be converted into a workflow data object first, and this process can consume time. In order to improve the conversion rate, the workflow data object after each conversion can be stored, so that when the user switches from the first layout again, the conversion between the workflow data object and the second data object can be directly performed, the conversion rate is improved, and the user experience is improved.

[0052] Figure 8 A structure schematic diagram of a table workflow layout conversion device provided by an embodiment of the present application is shown, and the table workflow layout conversion device 800 includes a first conversion module 810, a second conversion module 820, and a rendering module 830.

[0053] ​In the embodiments of the present application, the first conversion module 810 is configured to convert a first node in a first data object corresponding to a first layout mode into a workflow node in a workflow data object in response to a layout conversion operation for a workflow in a table, wherein the layout conversion operation is used to indicate that the layout mode of the workflow is converted from the first layout mode to a second layout mode, the layout mode includes the position of the node in the workflow, the logical relationship between the nodes and / or the processing logic of the table data, the workflow node includes a trigger node, an operation node and a system behavior node, each of the workflow node and the corresponding first node belongs to the same node type, and the data structure of the first data object is different from that of the workflow data object; the second conversion module 820 is configured to convert the workflow node in the workflow data object into a second node in a second data object corresponding to the second layout mode, wherein each of the workflow node and the corresponding second node belongs to the same node type, and the data structure of the second data object is different from that of the workflow data object; and the rendering module 830 is configured to render the second data object through the second layout mode to present the workflow.

[0054] In an exemplary embodiment, the first conversion module 810 is configured to convert the first node in the first data object into the workflow node in the workflow data object according to a node conversion rule corresponding to the first layout mode.

[0055] In an exemplary embodiment, the second conversion module 820 is configured to convert the workflow node in the workflow data object into the second node in the second data object according to a node conversion rule corresponding to the second layout mode.

[0056] In an exemplary embodiment, the conversion device of the table workflow layout further comprises a first processing module configured to: generate a derived node corresponding to the second layout mode according to a node conversion rule corresponding to the second layout mode; and add node information corresponding to the derived node to the second data object.

[0057] In an example embodiment, the conversion apparatus of the table workflow layout further comprises a second processing module configured to define the workflow data object, wherein the workflow data object comprises the following attributes: a workflow identifier, a workflow name, and a workflow node set, the workflow node set comprising the trigger node, the operation node, and the system behavior node, the trigger node, the operation node, and the system behavior node inheriting from a base node, the base node being configured to define base attributes of the workflow node, the base attributes comprising a node identifier, a node name, and a next node identifier, the trigger node being configured to listen to an event and execute a next node indicated by the trigger node when the event is met, the operation node being configured to implement a workflow execution operation, and the system behavior node being configured to implement a logical scheduling of the workflow, the system behavior node further comprising an extended attribute configured to define a sub-node.

[0058] In an example embodiment, the conversion apparatus of the table workflow layout further comprises a third processing module configured to store the workflow data object corresponding to the workflow.

[0059] The conversion apparatus of the table workflow layout provided by the embodiments of the present application can execute the methods described in the foregoing method embodiments, and achieve the functions and advantages of the methods described in the foregoing method embodiments, which will not be described here again.

[0060] Figure 9 A hardware structure schematic diagram of an electronic device 900 executing the table workflow layout conversion method provided by the embodiments of the present application is shown. Referring to the diagram, at the hardware level, the electronic device comprises a processor 910, and optionally, an internal bus 920, a network interface 930, and a memory. The memory can contain a memory 940, such as a high-speed random access memory (RAM), and can also contain a non-volatile memory 950, such as at least one disk memory. Of course, the electronic device can also comprise other hardware required by tasks.

[0061] The processor 910, the network interface 930 and the memory can be connected with each other through an internal bus 920, which can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0062] The memory is used to store programs. Specifically, the programs can include program codes, which include computer operation instructions and / or computer executable instructions. The memory can include the memory 940 and the non-volatile memory 950, and provide instructions and data for the processor 910.

[0063] The processor 910 reads the corresponding computer program from the non-volatile memory 950 into the memory 940 and then runs, and forms the device for positioning the target user at a logical level. The processor 910 executes the programs stored in the memory, and specifically is used for executing Figures 1-7 The method of the embodiment and achieves the same or corresponding technical effects.

[0064] The above as described in the present application Figures 1-7The method disclosed by the embodiment shown can be applied to a processor or implemented by the processor 910. The processor 910 can be an integrated circuit chip having a processing capability of signals. In the implementation process, each step of the above method can be completed by integrated logic circuits of hardware in the processor 910 or instructions in the form of software. The processor 910 described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. Each method, step and logic block diagram disclosed in the embodiment of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiment of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software modules in the code processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the memory, and the processor 910 reads the information in the memory, and combines the hardware to complete the steps of the above method.

[0065] The electronic device can also perform the methods described in the foregoing method embodiments, and achieve the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be described here.

[0066] Of course, in addition to the software implementation, the electronic device of the present application does not exclude other implementation manners, such as logic devices or a combination of software and hardware, etc. That is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or a logic device.

[0067] The embodiment of the application further provides a computer readable storage medium, which stores one or more programs, and the one or more programs, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform the following operations: in response to a layout conversion operation for a workflow in a table, converting a first node in a first data object corresponding to a first layout mode into a workflow node in a workflow data object, wherein the layout conversion operation is used to indicate that a layout mode of the workflow is converted from the first layout mode to a second layout mode, the layout mode comprises a position of a node in the workflow, a logical relationship between nodes and / or processing logic of table data, the workflow node comprises a trigger node, an operation node and a system behavior node, each of the workflow nodes and the corresponding first node belong to a same node type, and a data structure of the first data object is different from a data structure of the workflow data object; converting the workflow node in the workflow data object into a second node in a second data object corresponding to the second layout mode, wherein each of the workflow nodes and the corresponding second node belong to the same node type, and a data structure of the second data object is different from the data structure of the workflow data object; and rendering the second data object through the second layout mode to present the workflow.

[0068] The computer readable storage medium can also execute the methods described in the foregoing method embodiments, and achieve the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be described herein again.

[0069] The computer readable storage medium comprises a read-only memory (ROM), a random access memory (RAM), a magnetic disc or an optical disc, etc.

[0070] Further, the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, implement the following processes: in response to a layout conversion operation for a workflow in a table, converting a first node in a first data object corresponding to a first layout mode into a workflow node in a workflow data object, wherein the layout conversion operation is used to indicate that the layout mode of the workflow is converted from the first layout mode to a second layout mode, the layout mode comprises a position of a node in the workflow, a logical relationship between nodes and / or processing logic of table data, the workflow node comprises a trigger node, an operation node and a system behavior node, each of the workflow node and the corresponding first node belongs to the same node type, and a data structure of the first data object is different from a data structure of the workflow data object; converting the workflow node in the workflow data object into a second node in a second data object corresponding to the second layout mode, wherein each of the workflow node and the corresponding second node belongs to the same node type, and a data structure of the second data object is different from the data structure of the workflow data object; rendering the second data object through the second layout mode to present the workflow.

[0071] In summary, the above only describes the preferred embodiments of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0072] The system, device, module or unit illustrated in the above embodiments can be specifically implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer. Specifically, the computer may, for example, be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0073] Computer-readable storage media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassette, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable storage media does not include transitory media such as modulated data signals and carriers.

[0074] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0075] Each of the embodiments in the specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the part of the method embodiment.

Claims

1. A method for converting table workflow layouts, characterized in that, The method includes: In response to a layout conversion operation for a workflow in a table, the first node in the first data object corresponding to the first layout is converted into a workflow node in the workflow data object. The layout conversion operation instructs the workflow layout to be converted from the first layout to a second layout. The layout includes the position of nodes in the workflow, the logical relationships between nodes, and / or the processing logic of the table data. The workflow nodes include trigger nodes, operation nodes, and system behavior nodes. Each workflow node belongs to the same node type as its corresponding first node. The data structure of the first data object is different from the data structure of the workflow data object. The workflow data object defines the layout based on the workflow's data structure. The workflow nodes in the workflow data object are converted into second nodes in the second data object corresponding to the second layout method, wherein each workflow node and the corresponding second node belong to the same node type, and the data structure of the second data object is different from the data structure of the workflow data object; The workflow is presented by rendering the second data object using the second layout method.

2. The method according to claim 1, characterized in that, The step of converting the first node in the first data object corresponding to the first layout method into a workflow node in the workflow data object includes: According to the node conversion rules corresponding to the first layout method, the first node in the first data object is converted into a workflow node in the workflow data object.

3. The method according to claim 1, characterized in that, The step of converting the workflow nodes in the workflow data object into second nodes in the second data object corresponding to the second layout includes: According to the node conversion rules corresponding to the second layout method, the workflow nodes in the workflow data object are converted into the second nodes in the second data object.

4. The method according to claim 1, characterized in that, After converting the workflow nodes in the workflow data object into second nodes in the second data object corresponding to the second layout, the method further includes: Generate the derived nodes corresponding to the second layout method according to the node transformation rules corresponding to the second layout method; Add the node information corresponding to the derived node to the second data object.

5. The method according to claim 1, characterized in that, Before converting the first node in the first data object corresponding to the first layout into a workflow node in the workflow data object, the method further includes: Define the workflow data object, wherein the workflow data object includes the following attributes: workflow identifier, workflow name, and workflow node set. The workflow node set includes the trigger node, the operation node, and the system behavior node. The trigger node, operation node, and system behavior node inherit from the base node. The base node is used to define the basic attributes of the workflow node, including: node identifier, node name, and next node identifier. The trigger node is used to listen for events and execute the next node indicated by the trigger node when the event is met. The operation node is used to implement workflow execution operations. The system behavior node is used to implement the logical scheduling of the workflow. The system behavior node also includes extended attributes, which are used to define child nodes.

6. The method according to claim 1, characterized in that, After converting the first node in the first data object corresponding to the first layout into a workflow node in the workflow data object, the method further includes: Store the workflow data object corresponding to the workflow.

7. A table workflow layout conversion device, characterized in that, The device includes: A first conversion module is configured to respond to a layout conversion operation on a workflow in a table by converting a first node in a first data object corresponding to a first layout into a workflow node in a workflow data object. The layout conversion operation instructs the workflow layout to be converted from the first layout to a second layout. The layout includes the position of nodes in the workflow, the logical relationships between nodes, and / or the processing logic of the table data. The workflow nodes include trigger nodes, operation nodes, and system behavior nodes. Each workflow node belongs to the same node type as its corresponding first node. The data structure of the first data object differs from the data structure of the workflow data object. The workflow data object defines the layout based on the workflow's data structure. The second conversion module is used to convert the workflow nodes in the workflow data object into the second nodes in the second data object corresponding to the second layout method, wherein each workflow node and the corresponding second node belong to the same node type, and the data structure of the second data object is different from the data structure of the workflow data object; The rendering module is used to render the second data object using the second layout method, thereby presenting the workflow.

8. An electronic device, characterized in that, include: processor; as well as A memory configured to store computer-executable instructions, which, when executed, use the processor to perform the table workflow layout transformation method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs that, when executed by an electronic device including multiple applications, cause the electronic device to perform the table workflow layout conversion method according to any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions that, when executed by a computer, cause the computer to perform the table workflow layout conversion method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Table generation method and device, electronic equipment and computer readable storage medium

    CN115130448A

  • Processing method and device for workflow in table, electronic equipment and storage medium

    CN119089881A