CN115048163A - Workflow processing method and device - Google Patents

Workflow processing method and device Download PDF

Info

Publication number
CN115048163A
CN115048163A CN202110257565.8A CN202110257565A CN115048163A CN 115048163 A CN115048163 A CN 115048163A CN 202110257565 A CN202110257565 A CN 202110257565A CN 115048163 A CN115048163 A CN 115048163A
Authority
CN
China
Prior art keywords
node
working node
working
workflow
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110257565.8A
Other languages
Chinese (zh)
Inventor
张华蕊
温艳琪
朱凤瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Innovation Co
Original Assignee
Alibaba Singapore Holdings Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Singapore Holdings Pte Ltd filed Critical Alibaba Singapore Holdings Pte Ltd
Priority to CN202110257565.8A priority Critical patent/CN115048163A/en
Publication of CN115048163A publication Critical patent/CN115048163A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method and a device for processing a workflow. A designated first worker node of the plurality of worker nodes is obtained. And calling a detection rule from a preset rule base. And detecting a second working node cascaded with the first working node in the workflow based on the detection rule. And prompting the second working node and a cascade path related to the first working node and the second working node on the control interface. Under the condition that a plurality of working nodes in the workflow are divided into a plurality of levels and the cascade relation among the working nodes of different levels is complex, a user can easily locate a second working node cascaded with a first working node.

Description

Workflow processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a workflow.
Background
Workflow is a technique that combines multiple work tasks in a cascading relationship to accomplish a specific purpose. A DAG (Directed Acyclic Graph) is usually used to represent a workflow, and a cascade relationship between work nodes (one work node represents one work task) in the workflow, an operation state of the work nodes, and the like may be represented in a DAG visualization manner.
However, as applications develop at a rapid pace, the logic of the applications tends to become increasingly complex, so that the number of work nodes in a workflow increases at a rapid pace, and the cascade relationship between the work nodes becomes increasingly complex.
Disclosure of Invention
The application discloses a method and a device for processing a workflow.
In a first aspect, the present application shows a method for processing a workflow, which is applied to an electronic device, where a screen of the electronic device displays a control interface, a workflow is displayed on the control interface in a mesh structure, and the workflow includes a plurality of working nodes in a cascade relationship; the method comprises the following steps:
acquiring a first designated working node in a plurality of working nodes;
calling a detection rule from a preset rule base;
detecting a second working node cascaded with the first working node in the workflow based on the detection rule;
prompting the second working node and a cascade path involving the first working node and the second working node on the control interface.
In an optional implementation manner, the invoking of one detection rule in the preset rule base includes:
under the condition that a triggering operation of a first preset control displayed on the control interface is received, a detection rule for detecting an upstream working node of the first working node cascade is called in the preset rule base;
alternatively, the first and second electrodes may be,
and under the condition that the triggering operation of a second preset control displayed on the control interface is received, calling a detection rule for detecting the downstream working node of the first working node cascade in the preset rule base.
In an optional implementation manner, the number of detection rules in the preset rule base for detecting the upstream working node of the first working node cascade is at least two;
the invoking, from the preset rule base, a detection rule for detecting an upstream working node of the first working node cascade includes:
acquiring the running state of the first working node;
and calling a detection rule for detecting the upstream working node of the first working node cascade from at least two detection rules according to the running state.
In an optional implementation manner, the detecting, in the workflow, a second working node cascaded with the first working node based on the detection rule includes:
under the condition that a triggering operation of a first preset control displayed on the control interface is received, detecting an upstream working node causing the first working node to be abnormal in the workflow based on a detection rule for detecting the upstream working node of the first working node cascade, and taking the upstream working node as the second working node.
In an optional implementation manner, the running state of the first working node is a non-running success state;
the detecting, in the workflow, an upstream work node causing an abnormality of the first work node based on a detection rule for detecting an upstream work node of the first work node cascade includes:
detecting a previous working node in a non-operation success state in the previous working nodes of the first working node cascade in the workflow;
and detecting a next-previous-stage working node in a non-operation successful state in the next-previous-stage working node of the previous-stage working node in the non-operation successful state in the workflow, and so on until a root working node in the non-operation successful state is detected in the root working node in the workflow, and then taking the detected working node in the non-operation successful state as an upstream working node for triggering the first working node to be in the non-operation successful state.
In an optional implementation manner, the running state of the first working node is a completion time timeout state;
the detecting, in the workflow, an upstream work node causing an abnormality of the first work node based on a detection rule for detecting an upstream work node of the first work node cascade includes:
determining whether a completion time timeout state of the first working node is triggered by an upstream working node of the first working node;
under the condition of being caused by an upstream working node of the first working node, detecting a previous working node in an overtime state at the completion time in the previous working node cascaded by the first working node in the workflow;
determining whether the completion time overtime state of the previous-stage working node in the completion time overtime state is caused by another previous-stage working node of the previous-stage working node in the completion time overtime state;
and under the condition that the completion time overtime state of the previous working node in the completion time overtime state is caused by a next previous working node of the previous working node in the completion time overtime state, detecting the next previous working node in the completion time overtime state in the next previous working node of the previous working node in the completion time overtime state, and so on until detecting the root working node in the completion time overtime state in the root working nodes in the workflow, and then taking the detected working node in the completion time overtime state as an upstream working node for causing the first working node to be in the completion time overtime state.
In an optional implementation manner, the detecting, in the workflow, an upstream work node causing an exception to the first work node based on a detection rule for detecting an upstream work node of the first work node cascade includes:
counting a number of worker nodes upstream of a first worker node in the workflow;
determining the range of the to-be-detected levels of the working nodes according to the quantity;
in the workflow, determining candidate working nodes which are positioned at the upstream of the first working node and are in the range of the hierarchy to be detected;
and detecting an upstream working node causing the abnormality of the first working node in the candidate working nodes.
In an optional implementation manner, after the prompting the second working node and the prompting the cascade path involving the first working node and the second working node on the manipulation interface, the method further includes:
determining a root source working node causing the first working node to be abnormal in the second working node;
and prompting the root source work node on the control interface.
In an optional implementation manner, the detecting, in the workflow, a second working node cascaded with the first working node based on the detection rule includes:
under the condition that a triggering operation of a second preset control displayed on the control interface is received, detecting a downstream work node with abnormality caused by the first work node in the workflow based on a detection rule for detecting the downstream work node of the first work node cascade, and taking the downstream work node as the second work node.
In an optional implementation manner, the detecting, in the workflow, a downstream working node causing an exception by the first working node based on a detection rule for detecting a downstream working node of the first working node cascade includes:
detecting a next-stage working node of the first working node cascade in the workflow;
and detecting the next-level working node of the next-level working node cascade of the first working node cascade in the working flow, and so on until the bottom-level working node of the cascade is detected in the working flow, and then taking the detected working node as a downstream working node which is caused by the abnormality of the first working node.
In an optional implementation manner, the detecting, in the workflow, a downstream working node causing an exception by the first working node based on a detection rule for detecting a downstream working node of the first working node cascade includes:
counting a number of worker nodes downstream of a first worker node in the workflow;
determining the range of the to-be-detected levels of the working nodes according to the quantity;
in the workflow, determining candidate working nodes which are positioned at the downstream of the first working node and in the hierarchy range to be detected;
and detecting a downstream working node causing an exception by the first working node in the candidate working nodes.
In an optional implementation manner, the determining, according to the number, a hierarchy range to be detected of the working node includes:
and searching the detection level range corresponding to the quantity in the corresponding relation between the quantity of the working nodes and the detection level range of the working nodes, and taking the detection level range as the to-be-detected level range.
In an optional implementation manner, after the prompting the second working node and the prompting a cascade path involving the first working node and the second working node on the control interface, the method further includes:
and under the condition that the triggering operation of a third preset control displayed on the control interface is received, the second working node and the cascade path are cancelled and prompted on the control interface.
In an optional implementation manner, the prompting the second working node and the prompting the cascade path involving the first working node and the second working node on the control interface includes:
constructing a circumscribed rectangle frame of the second working nodes in the workflow displayed on the control interface, and changing the display form of the connecting line between the second working nodes and the display form of the connecting line between the first working node and the second working node; the display form of the connecting line at least comprises display color and display size;
alternatively, the first and second electrodes may be,
setting a display state of the second working node to be different from display states of other working nodes except the second working node in the workflow displayed on the control interface, wherein the display states at least comprise display sizes, display colors and display levels, and changing display forms of connecting lines among the second working nodes and display forms of connecting lines among the first working nodes and the second working nodes;
alternatively, the first and second electrodes may be,
in the workflow displayed on the control interface, controlling the second working nodes to be displayed in a flashing manner, and changing the display forms of connecting lines among the second working nodes and the display forms of the connecting lines between the first working nodes and the second working nodes;
alternatively, the first and second electrodes may be,
generating a temporary workflow comprising the second working node and the cascade path, and displaying the temporary workflow on the control interface.
In an optional implementation manner, the number of the second working nodes is multiple;
the prompting the second working node and prompting a cascade path involving the first working node and the second working node on the control interface includes:
displaying options of a plurality of aggregation dimensions on the manipulation interface;
acquiring attribute information of each second working node in the plurality of second working nodes on one aggregation dimension under the condition that a selection operation for one aggregation dimension in the plurality of aggregation dimension options is received;
classifying the second working nodes at least according to the attribute information to obtain at least two working node sets;
for each working node set, generating virtual aggregation nodes of the working node set according to the attribute information of the working node set and the number of the included working nodes;
acquiring a cascade path among all virtual aggregation nodes;
and respectively displaying each virtual aggregation node and the cascade path between each virtual aggregation node on the control interface.
In an optional implementation manner, the displaying, on the control interface, each virtual aggregation node and a cascade path between each virtual aggregation node respectively includes:
generating a temporary workflow comprising each virtual aggregation node and a cascade path between each virtual aggregation node;
displaying the temporary workflow on the manipulation interface.
In an optional implementation manner, the classifying the plurality of second working nodes according to at least the attribute information to obtain at least two working node sets includes:
displaying a hierarchical classification option on the manipulation interface;
determining a hierarchy to which each of the plurality of second working nodes belongs in the workflow, in case of receiving a triggering operation on the hierarchy classification option;
and aiming at the second working nodes belonging to each level, classifying the second working nodes belonging to the level according to the attribute information of the second working nodes belonging to the level to obtain at least two working node sets.
In an optional implementation manner, after the displaying, on the control interface, each virtual aggregation node and the cascade path between each virtual aggregation node respectively, the method further includes:
under the condition that a triggering operation for one displayed virtual aggregation node is received, determining a working node set corresponding to the virtual aggregation node;
and displaying a second working node included in the working node set corresponding to the virtual aggregation node on the control interface.
In an optional implementation manner, after displaying, on the control interface, a second working node included in the working node set corresponding to the one virtual aggregation node, the method further includes:
and under the condition that the triggering operation of a second working node included in the working node set corresponding to the virtual aggregation node is received, skipping and displaying the workflow on the control interface, prompting the second working node on the control interface and prompting a cascade path involving the first working node and the second working node.
In an optional implementation manner, after displaying, on the control interface, a second working node included in the working node set corresponding to the one virtual aggregation node, the method further includes:
under the condition that a trigger operation on one second working node included in a working node set corresponding to the virtual aggregation node is received, displaying detail information of at least the one second working node on the control interface, wherein the detail information includes: attribute information, context information, a running log, an operation log, and computer program code of the one second worker node.
In an optional implementation, the method further comprises:
receiving an adding request for adding a new detection rule in the preset rule base;
and adding the new detection rule in the preset rule base according to the adding request.
In a second aspect, the present application shows a device for processing a workflow, which is applied to an electronic device, where a control interface is displayed on a screen of the electronic device, a workflow is displayed on the control interface in a mesh structure, and the workflow includes a plurality of work nodes in a cascade relationship; the device comprises:
the acquisition module is used for acquiring a first designated working node in the plurality of working nodes;
the calling module is used for calling a detection rule from a preset rule base;
a detection module, configured to detect, in the workflow, a second working node that is cascaded with the first working node based on the detection rule;
the first prompting module is used for prompting the second working node and prompting a cascade path related to the first working node and the second working node on the control interface.
In an optional implementation manner, the invoking module includes:
the first calling unit is used for calling a detection rule for detecting an upstream working node of the first working node cascade in the preset rule base under the condition that a triggering operation of a first preset control displayed on the control interface is received;
alternatively, the first and second electrodes may be,
and the second calling unit is used for calling a detection rule for detecting the downstream working node of the first working node cascade in the preset rule base under the condition of receiving a triggering operation of a second preset control displayed on the control interface.
In an optional implementation manner, the number of detection rules in the preset rule base for detecting the upstream working node of the first working node cascade is at least two;
the first calling unit includes:
the acquisition subunit is used for acquiring the running state of the first working node;
and the calling subunit is used for calling a detection rule for detecting the upstream working node of the first working node cascade from at least two detection rules according to the running state.
In an optional implementation manner, the detection module includes:
the first detection unit is configured to, when a trigger operation for a first preset control displayed on the control interface is received, detect, in the workflow, an upstream work node that causes an abnormality in the first work node based on a detection rule for detecting an upstream work node in cascade connection with the first work node, and use the upstream work node as the second work node.
In an optional implementation manner, the running state of the first working node is a non-running success state;
the first detection unit includes:
a first detecting subunit, configured to detect, in a previous-stage working node of the first working node cascade in the workflow, a previous-stage working node in a non-operation success state;
a second detecting subunit, configured to detect, in a next-previous-stage working node of a previous-stage working node in a non-operation successful state in the workflow, a next-previous-stage working node in a non-operation successful state, and so on, until a root working node in a non-operation successful state is detected in a root working node in the workflow;
and the first determining subunit is used for taking the detected working node in the non-operation success state as an upstream working node for causing the first working node to be in the non-operation success state.
In an optional implementation manner, the running state of the first working node is a completion time timeout state;
the first detection unit includes:
a second determining subunit, configured to determine whether a completion time timeout state of the first working node is caused by an upstream working node of the first working node;
a third detecting subunit, configured to detect, in a previous-stage working node cascaded to the first working node in the workflow, a previous-stage working node in an overtime state at a completion time, if the detection is caused by an upstream working node of the first working node;
a third determining subunit, configured to determine whether the completion time timeout state of the previous-stage working node in the completion time timeout state is caused by another previous-stage working node of the previous-stage working node in the completion time timeout state;
a fourth detecting subunit, configured to, in a case where a completion time timeout state of a previous-stage working node that is in the completion time timeout state is caused by a further previous-stage working node of the previous-stage working node that is in the completion time timeout state, detect, in the further previous-stage working node of the previous-stage working node that is in the completion time timeout state, the further previous-stage working node that is in the completion time timeout state, and so on until a root working node that is in the completion time timeout state is detected in a root working node in the workflow;
and the fourth determining subunit is configured to use the detected working node in the completion time timeout state as an upstream working node that causes the first working node to be in the completion time timeout state.
In an optional implementation manner, the first detection unit includes:
a first counting subunit, configured to count, in the workflow, the number of working nodes located upstream of the first working node;
the fifth determining subunit is configured to determine, according to the number, a to-be-detected hierarchy range of the working nodes;
a sixth determining subunit, configured to determine, in the workflow, a candidate working node located upstream of the first working node and within the to-be-detected hierarchical range;
and the fifth detection subunit is used for detecting an upstream working node causing the abnormality of the first working node in the candidate working nodes.
In an optional implementation, the apparatus further comprises:
the determining module is used for determining a root source working node which causes the first working node to be abnormal in the second working node;
and the second prompting module is used for prompting the root source working node on the control interface.
In an optional implementation manner, the detection module includes:
and the second detection unit is used for detecting a downstream working node caused by the abnormality of the first working node in the workflow based on a detection rule for detecting the downstream working node cascaded by the first working node under the condition that the triggering operation of a second preset control displayed on the control interface is received, and taking the downstream working node as the second working node.
In an optional implementation manner, the second detection unit includes:
a sixth detecting subunit, configured to detect, in the workflow, a next-stage working node of the first working node cascade;
a seventh detecting subunit, configured to detect, in the workflow, a next-stage working node of the next-stage working node cascade of the first working node cascade, and so on until a working node at a bottom layer of the cascade is detected in the workflow;
and the seventh determining subunit is used for taking the detected working node as a downstream working node caused by the abnormality of the first working node.
In an optional implementation manner, the second detection unit includes:
a second counting subunit, configured to count, in the workflow, the number of working nodes located downstream of the first working node;
the eighth determining subunit is configured to determine, according to the number, a to-be-detected hierarchy range of the working node;
a ninth determining subunit, configured to determine, in the workflow, a candidate work node located downstream of the first work node and within the hierarchy to be detected;
and the eighth detection subunit is used for detecting a downstream working node which is caused by the abnormality of the first working node in the candidate working nodes.
In an optional implementation manner, the fifth determining subunit/the eighth determining subunit is specifically configured to: and searching the detection level range corresponding to the number in the corresponding relation between the number of the working nodes and the detection level range of the working nodes, and taking the detection level range as the to-be-detected level range.
In an optional implementation, the apparatus further comprises:
and the display canceling module is used for canceling and prompting the second working node and the cascade path on the control interface under the condition of receiving the triggering operation of a third preset control displayed on the control interface.
In an optional implementation manner, the first prompting module includes:
the construction unit is used for constructing a circumscribed rectangular frame of the second working nodes in the workflow displayed on the control interface, and the first changing unit is used for changing the display forms of connecting lines among the second working nodes and the display forms of the connecting lines between the first working nodes and the second working nodes; the display form of the connecting line at least comprises display color and display size;
alternatively, the first and second electrodes may be,
the setting unit is used for setting the display state of the second working node in the workflow displayed on the control interface to be different from the display states of other working nodes except the second working node in the workflow, wherein the display states at least comprise display sizes, display colors and display levels, and the second changing unit is used for changing the display forms of the connecting lines among the second working nodes and the display forms of the connecting lines between the first working node and the second working nodes;
alternatively, the first and second electrodes may be,
the control unit is used for controlling the second working nodes to be displayed in a flashing manner in the workflow displayed on the control interface, and the third changing unit is used for changing the display forms of the connecting lines among the second working nodes and the display forms of the connecting lines between the first working nodes and the second working nodes;
alternatively, the first and second electrodes may be,
the first generating unit is configured to generate a temporary workflow including the second work node and the cascade path, and display the temporary workflow on the control interface.
In an optional implementation manner, the number of the second working nodes is multiple;
the first prompt module includes:
the first display unit is used for displaying options of a plurality of aggregation dimensions on the control interface;
a first obtaining unit, configured to, in a case where a selection operation for an option of one aggregation dimension of the options of the multiple aggregation dimensions is received, obtain attribute information of each second worker node of the multiple second worker nodes on the one aggregation dimension;
the classification unit is used for classifying the second working nodes at least according to the attribute information to obtain at least two working node sets;
a second generating unit, configured to generate, for each working node set, a virtual aggregation node of the working node set according to the attribute information of the working node set and the number of included working nodes;
a second obtaining unit, configured to obtain a cascade path between each virtual aggregation node;
and the second display unit is used for respectively displaying each virtual aggregation node and the cascade path among the virtual aggregation nodes on the control interface.
In an alternative implementation, the second display unit includes:
a generating subunit, configured to generate a temporary workflow including each virtual aggregation node and a cascade path between each virtual aggregation node;
and the first display subunit is used for displaying the temporary workflow on the control interface.
In an optional implementation manner, the classification unit includes:
the second display subunit is used for displaying hierarchical classification options on the control interface;
a tenth determining subunit, configured to, in a case where a triggering operation for the hierarchical classification option is received, determine a hierarchy to which each second working node in the plurality of second working nodes belongs in the workflow;
and the classification subunit is used for classifying the second working nodes belonging to the hierarchy according to the attribute information of the second working nodes belonging to the hierarchy to obtain at least two working node sets.
In an optional implementation manner, the first prompting module further includes:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a working node set corresponding to one displayed virtual aggregation node under the condition that the triggering operation of the virtual aggregation node is received;
and the third display unit is used for displaying a second working node included in the working node set corresponding to the virtual aggregation node on the control interface.
In an optional implementation manner, the first prompting module further includes:
a fourth display unit, configured to, when a trigger operation on a second working node included in the working node set corresponding to the virtual aggregation node is received, skip to display the workflow on the control interface, prompt the second working node on the control interface, and prompt a cascade path involving the first working node and the second working node.
In an optional implementation manner, the first prompting module further includes:
a fifth display unit, configured to, when a trigger operation on one second working node included in the working node set corresponding to the virtual aggregation node is received, display, on the control interface, details of at least the one second working node, where the details include: attribute information, context information, a running log, an operation log, and computer program code of the one second worker node.
In an optional implementation, the apparatus further comprises:
the receiving module is used for receiving an adding request for adding a new detection rule in the preset rule base;
and the adding module is used for adding the new detection rule in the preset rule base according to the adding request.
In a third aspect, the present application shows an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of processing a workflow according to the first aspect.
In a fourth aspect, the present application illustrates a non-transitory computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the method of processing a workflow of the first aspect.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of processing a workflow according to the first aspect.
Compared with the prior art, the embodiment of the application has the following advantages:
in the present application, a designated first worker node of a plurality of worker nodes is obtained. And calling a detection rule from a preset rule base. And detecting a second working node cascaded with the first working node in the workflow based on the detection rule. And prompting the second working node and prompting a cascade path involving the first working node and the second working node on the control interface. Under the conditions that a plurality of working nodes are arranged in a workflow, the working nodes are divided into a plurality of levels, and the cascade relation among the working nodes of different levels is complex, a user can easily locate a second working node cascaded with a first working node.
For example, in one example, the application may enable a user to easily locate a second work node associated with an abnormal state of a first work node in a workflow displayed in a mesh structure, and then process the second work node associated with the abnormal state of the first work node. The process of detecting the second working node related to the abnormal state of the first working node is automatically executed by the electronic equipment and can be performed without manual participation, so that the labor cost can be reduced, the physiological characteristics of people can be avoided, and the detection efficiency and the detection accuracy can be improved.
Drawings
Fig. 1 is a flowchart illustrating a method for processing a workflow according to an exemplary embodiment of the present application.
Fig. 2 is a block diagram illustrating a structure of a workflow processing apparatus according to an exemplary embodiment of the present application.
Fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flow diagram of a method for processing a workflow according to the present application is shown, where the method is applied to an electronic device, a control interface is displayed on a screen of the electronic device, a workflow is displayed on the control interface in a mesh structure, and the workflow includes a plurality of work nodes in a cascade relationship. The method can comprise the following steps:
in step S101, a designated first work node of the plurality of work nodes is acquired.
The workflow of the mesh structure comprises a plurality of working nodes, the working nodes are divided according to a hierarchy, the execution sequence of the working nodes at an upper level is before the execution sequence of the working nodes at a lower level, and a part of the working nodes at the upper level and the adjacent working nodes at the lower level have a cascade relation, that is, after the part of the working nodes at the upper level is successfully executed, the part of the working nodes cascaded with the adjacent lower level can be executed.
Sometimes, a user may focus on a particular work node in a workflow, for example, the user may need to look at work nodes of the particular work node cascade, including work nodes upstream of the particular work node cascade and/or work nodes downstream of the particular work node cascade, to determine which work nodes the particular work node has a cascading relationship with in the workflow.
However, sometimes, there are many working nodes in the workflow, for example, there are thousands of working nodes in the workflow, and the working nodes are divided into a large number of levels, the cascade relationship between the working nodes of different levels may be complicated, if the user manually detects the working node of the specific working node cascade in the workflow, a large labor cost may be consumed, and due to the physiological characteristics of the person, the detection efficiency and the detection accuracy may be low.
Therefore, in order to reduce labor cost and improve detection efficiency and detection accuracy, in the present application, a user may designate the specific work node to the electronic device, and the electronic device receives the specific work node designated by the user and uses it as a first work node, and then executes step S102.
For example, when a certain working node in a workflow is in an abnormal state, it may be that a higher-level working node in the workflow, to which the working node is cascaded, is in the abnormal state. And the working node in the abnormal state may cause a lower working node of the working node cascade in the workflow to be in the abnormal state.
Wherein the abnormal state includes: failure to run, not running, in DQC (Data Quality Check) detection, in freeze, latency triggered, waiting for resource triggered, waiting for manual triggered, and running interrupt, etc.
In the process that the work nodes in the workflow displayed in the mesh structure are sequentially executed according to the execution sequence, if at least one work node is in an abnormal state, the electronic device may display the workflow in the mesh structure on a screen, and mark the work node in the abnormal state in the workflow, so that a user can view the work node in the abnormal state. Wherein the user may focus on the work node in the abnormal state.
In an example, a user may need to determine an upstream working node causing the working node to be abnormal in a workflow, and in a general case, the upstream working node is often in an abnormal state due to the fact that the upstream working node is in the abnormal state.
In another example, a user may need to determine a downstream work node in a workflow, where the downstream work node may cause an abnormality by the work node, and normally, the work node being in an abnormal state may cause a downstream work node of the work node cascade to be in an abnormal state, so that after determining the downstream work node that may cause an abnormality by the work node, the user may timely understand an influence that may be caused by the abnormal state by the work node, and then timely perform corresponding processing on at least the downstream work node, so as to reduce the influence to a smaller degree and avoid causing a larger loss.
In summary, the user needs to know the work node in the workflow that is related to the abnormal state of the work node.
However, sometimes, there are many working nodes in the workflow, for example, there are thousands of working nodes in the workflow, and the working nodes are divided into a large number of levels, the cascade relationship between the working nodes in different levels may be complex, if a user manually detects a working node related to an abnormal state of the working node in the workflow, a large labor cost may be consumed, and due to human physiological characteristics, detection efficiency and detection accuracy may be low.
Therefore, in order to reduce labor cost and improve detection efficiency and detection accuracy, in the present application, after a user sees a marked work node in an abnormal state in a workflow, if the user needs to process a work node related to the abnormal state of one of the work nodes in the abnormal state, the user may submit a request that the user needs to process the work node related to the abnormal state of the work node in the abnormal state to an electronic device, the electronic device may determine, according to the request, that the user needs to process the work node related to the abnormal state of the work node in the abnormal state, determine the work node as a first work node in the abnormal state in the workflow displayed in a mesh structure, and then execute step S102.
In one embodiment of the present application, the second working node associated with the abnormal state of the first working node includes: the upstream working node causing the first working node to be abnormal, the downstream working node possibly causing the abnormality by the first working node and the like.
In step S102, a detection rule is called from a preset rule base.
In the application, a preset rule base may be set in the electronic device in advance, the preset rule base may include a plurality of detection rules, and the electronic device may detect, in a workflow, other work nodes that are cascaded with one work node using the detection rules.
In different needs or scenarios, the electronic device may detect other work nodes cascaded with one work node in the workflow using different detection rules.
For example, the detection rules in the preset rule base include: a detection rule for detecting an upstream working node of a working node cascade and a detection rule for detecting a downstream working node of a working node cascade.
The detection rule for detecting an upstream working node of one working node cascade may also be multiple, and is used in different scenarios, and specifically, reference may be made to the following embodiments, which are not described in detail herein.
According to actual requirements, the detection rules in the preset rule base may also be updated later, for example, a new detection rule is added to the preset rule base, specifically, a user may input an addition request for adding the new detection rule to the preset rule base in the electronic device, and the electronic device receives the addition request for adding the new detection rule to the preset rule base; and then, adding a new detection rule in the preset rule base according to the adding request so that when the work node is detected in the workflow later, the new detection rule can be selected to detect the work node in the workflow in a proper scene so as to improve the detection efficiency, the detection accuracy and the like.
In an application scenario of the application, when a user draws a DAG graph corresponding to a workflow including a plurality of cascaded work nodes on an electronic device, the electronic device may instruct the user to draw the DAG graph based on a detection rule in a preset rule base, so that an error of the DAG graph may be avoided as much as possible, for example, an error of a cascade relationship between the work nodes in the DAG graph may be avoided, and an efficiency of drawing the DAG graph by the user may be improved as much as possible.
In step S103, a second work node cascaded with the first work node is detected in the workflow based on the detection rule.
How to detect the second working node cascaded with the first working node in the workflow based on the detection rule can be referred to the embodiments shown later, and will not be described in detail here.
In step S104, the second work node and the cascade path involving the first work node and the second work node are prompted on the control interface.
In the application, the second work node and the cascade path related to the first work node and the second work node may be directly prompted on the workflow displayed on the control interface, or a new page may be generated on the control interface, and the second work node and the cascade path related to the first work node and the second work node may be prompted on the new page.
In the present application, a designated first worker node of a plurality of worker nodes is obtained. And calling a detection rule from a preset rule base. And detecting a second working node cascaded with the first working node in the workflow based on the detection rule. And prompting the second working node and prompting a cascade path related to the first working node and the second working node on the control interface. Under the conditions that a plurality of working nodes are arranged in a workflow, the working nodes are divided into a plurality of levels, and the cascade relation among the working nodes of different levels is complex, a user can easily locate a second working node cascaded with a first working node.
For example, in one example, the application may enable a user to easily locate a second work node associated with an abnormal state of a first work node in a workflow displayed in a mesh structure, and then process the second work node associated with the abnormal state of the first work node. The process of detecting the second working node related to the abnormal state of the first working node is automatically executed by the electronic equipment and can be performed without manual participation, so that the labor cost can be reduced, the physiological characteristics of people can be avoided, and the detection efficiency and the detection accuracy can be improved.
Detecting a second work node in the workflow in cascade with the first work node includes detecting a second work node in the workflow in cascade upstream of the first work node and detecting a second work node in the workflow in cascade downstream of the first work node, etc.
Therefore, the preset rule base at least comprises a detection rule for detecting an upstream working node of the first working node cascade and a detection rule for detecting a downstream working node of the first working node cascade.
The control interface comprises a first preset control and a second preset control, a user triggers the first preset control to control the electronic device to detect an upstream work node of the first work node cascade in the workflow, and a user triggers the second preset control to control the electronic device to detect a downstream work node of the first work node cascade in the workflow.
Therefore, when a detection rule is called from the preset rule base in step S102, in an embodiment of the present application, a detection rule for detecting an upstream working node of the first working node cascade is called from the preset rule base when a trigger operation for the first preset control displayed on the control interface is received.
In this way, when a second working node cascaded with the first working node is detected in the workflow based on the detection rule, under the condition that the trigger operation of a first preset control displayed on the control interface is received, an upstream working node causing the abnormality of the first working node is detected in the workflow based on the detection rule for detecting the upstream working node cascaded with the first working node, and the upstream working node is used as the second working node.
In the application, at least two detection rules for detecting the upstream working node of the first working node cascade in the preset rule base may be used, and different detection rules for detecting the upstream working node of the first working node cascade may be used in different scenarios.
For example, when a detection rule for detecting an upstream working node of the first working node cascade is called from a preset rule base, the operating state of the first working node may be obtained. And then, according to the running state of the first working node, calling a detection rule for detecting an upstream working node of the first working node cascade from the at least two detection rules.
The operation state of the first working node includes a non-operation success state and a completion time overtime state, and therefore, when the operation state of the first working node is the non-operation success state, the detection rule related to the non-operation success state can be called in the preset rule base, or when the operation state of the first working node is the completion time overtime state, the detection rule related to the completion time overtime state can be called in the preset rule base.
When the operating state of the first working node is a non-operation success state, and an upstream working node causing an abnormality of the first working node is detected in a workflow based on a detection rule for detecting the upstream working node of the first working node cascade, the method may be implemented by the following steps:
11) and detecting the upper-level working node in the non-operation success state in the upper-level working node cascaded by the first working node in the workflow.
The hierarchy to which the upper-level working node of the first working node cascade belongs is different from the hierarchy to which the first working node belongs, the hierarchy to which the upper-level working node of the first working node cascade belongs is earlier than the hierarchy to which the first working node belongs, the hierarchy to which the upper-level working node of the first working node cascade belongs is adjacent to the hierarchy to which the first working node belongs, the upper-level working nodes of the first working node cascade may be multiple, some upper-level working nodes of the cascade are in a non-operation success state, some upper-level working nodes may not be in a non-operation success state, and the upper-level working node in the non-operation success state needs to be detected in the upper-level working node of the first working node cascade.
12) And detecting the next-previous-stage working node in the non-operation successful state in the next-previous-stage working node of the previous-stage working node in the non-operation successful state in the workflow, and so on until the root working node in the non-operation successful state is detected in the root working node in the workflow, and then taking the detected working node in the non-operation successful state as an upstream working node for triggering the first working node to be in the non-operation successful state.
For example, assuming that the first working node is a node a, the hierarchy to which the first working node a belongs is the nth layer, and the hierarchy to which the upper-stage working node of the cascade of the first working node a belongs is the N-1 st layer, a working node B in a non-operation success state is detected among the working nodes of the cascade of the first working node a belonging to the N-1 st layer. Assuming that the hierarchy to which the upper-stage working node of the upper-stage working node B cascade of the first working node a cascade belongs is N-2, the working node C in the non-operation success state can be detected among the working nodes of the working node B cascade belonging to the N-2 th layer. And the like until the root working node M in the non-operation success state is detected in the root working nodes in the workflow. The detected working nodes B, c.
When the operation state of the first working node is the completion time timeout state, and an upstream working node causing the first working node to be abnormal is detected in the workflow based on a detection rule for detecting the upstream working node of the first working node cascade, the method may be implemented by the following steps:
21) and determining whether the overtime state of the completion time of the first working node is caused by an upstream working node of the first working node.
The reason why the working node is in the completion time overtime state usually includes two aspects, on one hand, the reason is caused by that the upstream working node of the working node cascade is in the completion time overtime state, for example, under a normal condition, the upstream working node of the working node cascade can be operated after being operated, and on the other hand, the reason is caused by the working node itself.
In the case caused by the worker node itself, it is often the case that the worker node is involved in a larger amount of data that needs to be processed than expected and/or the worker node can use less system resources than expected.
Therefore, if the data volume of the data which needs to be processed and is related to the working node is larger than the expected data volume, and/or the system resources which can be used by the working node are less than the expected system resources, it indicates that the working node is caused by the working node itself when being in the completion time overtime state, otherwise, the working node is caused by the completion time overtime state of the upstream working node of the working node cascade.
The predicted system resources and the predicted data amount may be determined according to actual situations, and the present application is not limited thereto.
22) And under the condition of being caused by an upstream working node of the first working node, detecting the previous working node in the overtime state at the completion time in the previous working node cascaded by the first working node in the workflow.
The hierarchy of the upper-level working node of the first working node cascade is different from the hierarchy of the first working node, the hierarchy of the upper-level working node of the first working node cascade is earlier than the hierarchy of the first working node and is adjacent to the hierarchy of the first working node, the upper-level working nodes of the first working node cascade may be multiple, some of the upper-level working nodes of the cascade may be in the completion time overtime state, some of the upper-level working nodes may not be in the completion time overtime state, and the upper-level working node in the completion time overtime state needs to be detected in the upper-level working node of the first working node cascade.
23) And determining whether the completion time overtime state of the previous-stage working node in the completion time overtime state is caused by the next previous-stage working node of the previous-stage working node in the completion time overtime state.
24) And under the condition that the completion time overtime state of the previous working node in the completion time overtime state is caused by a next previous working node of the previous working node in the completion time overtime state, detecting the next previous working node in the completion time overtime state in the next previous working node of the previous working node in the completion time overtime state, and so on until a root working node in the completion time overtime state is detected in the root working node in the workflow, and then taking the detected working node in the completion time overtime state as an upstream working node for causing the first working node to be in the completion time overtime state.
For example, assuming that the first working node is a node a, the hierarchy to which the first working node a belongs is an nth layer, and the hierarchy to which the previous working node of the first working node a cascade belongs is an N-1 st layer, a working node B in a completion time timeout state is detected among the working nodes of the first working node a cascade belonging to the N-1 st layer. Assuming that the hierarchy to which the upper-level working node of the upper-level working node B cascade of the first working node a cascade belongs is N-2, the working node C in the time-out state at the completion time can be detected among the working nodes of the working node B cascade belonging to the N-2 th layer. And the like until the root working node M in the overtime state of the completion moment is detected in the root working nodes in the workflow. And then taking the detected working nodes B, C.
In addition, when the second working node and the cascade path related to the first working node and the second working node are prompted on the control interface in step S104, the reason that the state of the first working node is the timeout state at the completion time and the reason that the state of each second working node is the timeout state at the completion time can also be displayed, so that the user can check the reasons and solve the problem of timeout at the completion time as early as possible.
In the present application, sometimes, there are many working nodes in a workflow, for example, there are thousands of working nodes in the workflow, and the working nodes are further divided into a large number of levels, and the cascade relationship between the working nodes of different levels is complicated. The upstream work nodes causing the first work node exception may be many, and the upstream work nodes causing the first work node exception are distributed at multiple levels upstream, so that if all the upstream work nodes causing the first work node exception are detected in the workflow, more system resources of the electronic equipment and longer time are consumed.
Since a long time is consumed, the user may wait for a long time before seeing the prompted second work node, which may reduce the user experience.
Therefore, in order to avoid the above situation, in another embodiment of the present application, detecting an upstream work node causing an abnormality of a first work node in a workflow based on a detection rule for detecting the upstream work node of a cascade of the first work node includes:
31) the number of worker nodes upstream of the first worker node is counted in the workflow.
32) And determining the range of the hierarchy to be detected of the working nodes according to the number.
The hierarchy range to be detected may be used to indicate that a second working node of at most several hierarchies upstream of the first working node is detected.
For example, if the number is greater than 10000, the range of the hierarchy to be detected of the upstream working node may be 3 layers, that is, a second working node of at most 3 layers upstream of the first working node may be detected.
For another example, if the number is less than or equal to 10000, the range of the hierarchy to be detected of the upstream working node may be 6 layers, that is, the second working node of at most 6 levels upstream of the first working node may be detected.
In the present application, a correspondence relationship between the number of the work nodes and the detection hierarchy range of the work nodes may be set in advance, and in the correspondence relationship, a larger number corresponds to a smaller detection hierarchy range. A smaller number corresponds to a larger detection hierarchy.
In this way, in this step, the detection hierarchy range corresponding to the number of the working nodes can be searched in the correspondence relationship between the number of the working nodes and the detection hierarchy range of the working nodes, and the detection hierarchy range can be used as the detection hierarchy range to be detected.
33) And in the workflow, determining candidate working nodes which are positioned at the upstream of the first working node and are in the range of the hierarchy to be detected.
34) And detecting an upstream working node causing the abnormality of the first working node in the candidate working nodes.
By the method and the device, the hierarchy range to be detected of the upstream working nodes can be determined according to the quantity, so that when the upstream working nodes causing the first working node abnormity are detected in the workflow, all the upstream working nodes causing the first working node abnormity are prevented from being detected, the detection range can be properly reduced, and system resources of electronic equipment and time consumed by detection can be saved.
Due to the fact that the time consumed by detection is reduced, the user can see a part of the second working nodes of the prompt by waiting for less time, and therefore user experience can be improved.
Further, in the case that the upstream working nodes detected in the hierarchy range to be detected are not all the upstream working nodes causing the abnormality of the first working node, if the user needs to continuously check other upstream working nodes causing the first working node to be abnormal, the user can manually trigger the electronic device to continuously detect other working nodes causing the first working node to be abnormal in the workflow (excluding the upstream working nodes causing the first working node to be abnormal and detected in the candidate working nodes), and trigger the electronic device to prompt other working nodes causing the first working node to be abnormal, and prompting the cascade paths between the first working node and all the detected upstream working nodes, so that the user can see all the upstream working nodes causing the abnormality of the first working node and the cascade paths between the first working node and all the detected upstream working nodes.
Further, after the second working node is prompted on the control interface and the cascade path involving the first working node and the second working node is prompted, the electronic device may further determine the root working node causing the first working node to be abnormal in the second working node, and then prompt the root working node on the control interface to prompt the user of the root working node causing the first working node to be abnormal, so that the user may determine the root cause causing the first working node to be abnormal more easily, and the user may solve the abnormality.
When a detection rule is called from the preset rule base in step S102, in an embodiment of the present application, a detection rule for detecting a downstream working node of the first working node cascade is called from the preset rule base when a trigger operation for a second preset control displayed on the control interface is received.
In this way, when a second working node cascaded with the first working node is detected in the workflow based on the detection rule, under the condition that a trigger operation of a second preset control displayed on the control interface is received, a downstream working node caused by the abnormality of the first working node is detected in the workflow based on the detection rule for detecting the downstream working node cascaded with the first working node, and the downstream working node is used as the second working node.
Based on a detection rule for detecting a downstream work node of the first work node cascade, when a downstream work node caused by an abnormality by the first work node is detected in a workflow, the following process is performed, including:
41) and detecting the next-stage working node of the first working node cascade in the workflow.
The hierarchy to which the next-stage working node of the first working node cascade belongs is different from the hierarchy to which the first working node belongs, the hierarchy to which the next-stage working node of the first working node cascade belongs is earlier than the hierarchy to which the first working node belongs, the hierarchy to which the next-stage working node of the first working node cascade belongs is adjacent to the hierarchy to which the first working node belongs, the number of the next-stage working nodes of the first working node cascade may be multiple, and the first working node in an abnormal state may affect all the next-stage working nodes of the first working node cascade, so that the next-stage working node of the first working node cascade can be detected in a workflow.
42) And detecting the next working node of the next working node cascade of the first working node cascade in the workflow, and so on until the bottom working node of the cascade is detected in the workflow, and then taking the detected working node as the downstream working node which is caused by the abnormality of the first working node.
For example, if the first working node is a node a, the level to which the first working node a belongs is the nth layer, and the level to which the next working node of the first working node a cascade belongs is the N +1 th layer, the working node belonging to the N +1 th layer and the first working node a cascade is a working node H. Assuming that the hierarchy to which the next-stage working node of the next-stage working node H cascade of the first working node a cascade belongs is N +2 layers, the working node J may be detected from the working nodes of the first working node H cascade belonging to the N +2 th layer. And so on until a working node Q of the cascade (the first working node A indirectly cascades) is detected in the bottom working nodes in the workflow. And then, the detected working nodes H, J.
In the present application, sometimes, there are many working nodes in a workflow, for example, there are thousands of working nodes in the workflow, and the working nodes are further divided into a large number of levels, and the cascade relationship between the working nodes of different levels is complicated. There may be many downstream worker nodes that raise an exception by the first worker node, and the downstream worker nodes that raise an exception by the first worker node are spread across multiple levels downstream, such that if all downstream worker nodes that raise an exception by the first worker node are detected in the workflow, more system resources and longer time are consumed by the electronic device.
Since a long time is consumed, the user may wait for a long time before seeing the prompted second work node, which may reduce the user experience.
Therefore, in order to avoid the above situation, in another embodiment of the present application, when detecting a downstream work node causing an abnormality by a first work node in a workflow based on a detection rule for detecting the downstream work node of the first work node cascade, the following process may be implemented, including:
51) the number of work nodes downstream from the first work node is counted in the workflow.
52) And determining the range of the hierarchy to be detected of the working nodes according to the number.
The hierarchy range to be detected may be used to indicate that a second working node of at most several levels downstream of the first working node is detected.
For example, if the number is greater than 10000, the range of the hierarchy to be detected of the downstream working node may be 3 layers, that is, a second working node downstream of the first working node may be detected by at most 3 layers.
For another example, assuming that the number is less than or equal to 10000, the range of the hierarchy to be detected of the downstream working node may be 6 layers, that is, a second working node of at most 6 levels downstream of the first working node may be detected.
In the present application, a correspondence relationship between the number of the work nodes and the detection hierarchy range of the work nodes may be set in advance, and in the correspondence relationship, a larger number corresponds to a smaller detection hierarchy range. A smaller number corresponds to a larger detection hierarchy.
In this way, in this step, the detection hierarchy range corresponding to the number of the working nodes can be searched in the correspondence relationship between the number of the working nodes and the detection hierarchy range of the working nodes, and the detection hierarchy range is used as the hierarchy range to be detected.
53) And in the workflow, determining candidate working nodes which are positioned at the downstream of the first working node and are in the range of the hierarchy to be detected.
54) And detecting the downstream working node caused by the abnormality of the first working node in the candidate working nodes.
By the method and the device, the hierarchy range to be detected of the downstream working nodes can be determined according to the quantity, so that when the downstream working nodes caused by the abnormality of the first working node are detected in the workflow, all the downstream working nodes caused by the abnormality of the first working node are prevented from being detected, the detection range can be properly reduced, and system resources of electronic equipment and time consumed by detection can be saved.
Due to the fact that the time consumed by detection is reduced, the user can see a part of the second working nodes of the prompt by waiting for less time, and therefore user experience can be improved.
Further, in the case that the downstream working nodes detected in the hierarchy range to be detected are not all the downstream working nodes for which the abnormality is caused by the first working node, if the user needs to continuously check other downstream working nodes caused by the first working node, the user can manually trigger the electronic device to continuously detect other downstream working nodes caused by the first working node in the workflow (excluding the downstream working nodes caused by the first working node and detected in the candidate working nodes), and triggers the electronic device to prompt other downstream working nodes which are caused to be abnormal by the first working node, and prompting the cascade path between the first working node and all the detected downstream working nodes, so that the user can see all downstream working nodes for which the first working node causes an exception and the cascade path between the first working node and all downstream working nodes detected.
Further, after the user views the second work node and the cascade path involving the first work node and the second work node, the user may no longer need to view the second work node and the cascade path involving the first work node and the second work node, that is, the electronic device does not need to continue to prompt the second work node and the cascade path involving the first work node and the second work node on the manipulation interface.
In this case. The user may control the electronic device to cancel the prompt for the second work node and the cascade path involving the first work node and the second work node.
Specifically, the electronic device may display a third preset control on the control interface, and the user may trigger the third preset control to control the electronic device to cancel prompting the second work node and a cascade path involving the first work node and the second work node.
Therefore, under the condition that the triggering operation of the third preset control displayed on the control interface is received, the electronic equipment cancels the prompt of the second working node and the cascade path involving the first working node and the second working node on the control interface.
In this application, when the second working node is prompted on the manipulation interface in step S104 and a cascade path involving the first working node and the second working node is prompted, at least the following embodiments may be implemented.
In an embodiment of the application, a circumscribed rectangular frame of the second working node may be constructed in the workflow displayed on the control interface, so that the user may easily locate the second working node in the workflow displayed in the mesh structure according to the circumscribed rectangular frame. And changing the display form of the connecting line between the second working nodes and the display form of the connecting line between the first working node and the second working node. The display form of the connecting line at least comprises a display color and a display size, so that a user can easily determine the cascade path involving the first working node and the second working node according to the display form of the connecting line.
In another embodiment of the present application, in the workflow displayed on the manipulation interface, the display state of the second work node may be set to be different from the display states of other work nodes in the workflow except the second work node, where the display states at least include a display size, a display color, and a display hierarchy, and by the difference in display styles, a user may easily locate the second work node in the workflow displayed in a mesh structure. And changing the display form of the connecting line between the second working nodes and the display form of the connecting line between the first working node and the second working node, so that a user can easily determine the cascade path related to the first working node and the second working node according to the display form of the connecting line.
For the display hierarchy, the second working node may be displayed in a protruding manner, or displayed in a three-dimensional manner.
In another embodiment of the present application, the second work node may be controlled to flash in the workflow displayed on the control interface, wherein the other work nodes except the second work node are continuously displayed, and the second work node is flash displayed, so that the second work node may be easily located in the workflow displayed in the mesh structure by the user through the display manner of the flash display. And changing the display form of the connecting line between the second working nodes and the display form of the connecting line between the first working node and the second working node, so that a user can easily determine the cascade path related to the first working node and the second working node according to the display form of the connecting line.
In yet another embodiment of the present application, a temporary workflow including a first work node, a second work node, and a cascade path involving the first work node and the second work node may be generated, and the temporary workflow is displayed on a control interface, where only the first work node, the second work node, and the cascade path involving the first work node and the second work node are included in the temporary workflow, so that a user is not interfered by other work nodes in the workflow, and the user may easily locate the second work node, a cascade relationship between the first work node and the second work node, and the like.
It should be noted that, in the present application, the cascade relationship between the first working node and the second working node includes: the direct cascade relationship between the first working node and the second working node of the adjacent hierarchy, the indirect cascade relationship between the first working node and the second working node of the non-adjacent hierarchy, and the like may also be included.
In one embodiment of the present application, the number of the second working nodes cascaded with the first working node is plural. And a second worker node in cascade with the first worker node is spread over multiple levels in the workflow.
Thus, when the second working nodes are prompted, in one mode, the second working nodes can be displayed on the screen of the electronic device in a tiled mode, but since the second working nodes are multiple and the size of the screen of the electronic device is often limited, all the second working nodes cannot be displayed on the screen of the electronic device at the same time, only part of the second working nodes can be displayed at a time, and if a user needs to check other second working nodes, the screen needs to be dragged, so that the electronic device displays other second working nodes on the screen, but the operation difficulty is greater for the user. In addition, in the above manner, more work nodes need to be rendered on the screen at one time, and the more work nodes are rendered on the screen at one time, which may occupy more system resources of the electronic device.
Therefore, in order to avoid the above problem, in another embodiment of the present application, when prompting the second work node and prompting a cascade path involving the first work node and the second work node on the manipulation interface, the following processes may be implemented, including:
61) and displaying options of a plurality of aggregation dimensions on the control interface.
Options for aggregating dimensions include: the dimension of the person responsible for the work node, the dimension of the project/workspace to which the work node belongs, and the dimension of the priority of the work node, etc. Of course, the dimension of the running state of the working node may also be included, and the running state includes: non-running, waiting for time triggering, waiting for resource triggering, waiting for manual triggering, running success, running failure, running, and the like.
The user may select an option to aggregate dimensions on the manipulation interface so that the electronic device may aggregate the second work nodes according to the aggregate dimensions.
62) And acquiring attribute information of each second working node in the plurality of second working nodes on one aggregation dimension under the condition of receiving a selection operation of one option of the plurality of options of the aggregation dimension.
63) And classifying the plurality of second working nodes at least according to the attribute information to obtain at least two working node sets.
In an embodiment, for any obtained attribute information, the second working nodes corresponding to the attribute information may be combined into one working node set in a plurality of second working nodes, and the same is true for each obtained other attribute information.
Or, in another embodiment, there are a plurality of second working nodes cascaded with the first working node, and the second working nodes cascaded with the first working node are distributed over a plurality of levels in the workflow, so that, in order to make it easier for a user to distinguish the second working nodes belonging to different levels, a hierarchical classification option may be displayed on the control interface, and the user may input a trigger operation of the hierarchical classification option to control the electronic device to perform hierarchical classification on the second working nodes.
For example, upon receiving a triggering operation that bisects the hierarchical classification option, the electronic device may determine a hierarchy to which each of the plurality of second work nodes belongs in the workflow.
Then, for a second working node belonging to any one hierarchy, the second working nodes belonging to the hierarchy may be classified according to attribute information of the second working node belonging to the hierarchy to obtain at least two working node sets, for example, for any one obtained attribute information, if a working node corresponding to the attribute information exists in the second working node belonging to the hierarchy, the second working nodes corresponding to the attribute information may be combined into one working node set in the second working node belonging to the hierarchy, and the same is true for each obtained other attribute information.
The same is true for the second working nodes belonging to each of the other hierarchical levels.
64) And for each working node set, generating virtual aggregation nodes of the working node set according to the attribute information of the working node set and the number of the included working nodes.
In this step, for any one working node set, a virtual aggregation node of the working node set may be generated according to the attribute information of the working node set and the number of working nodes included in the working node set, and the above operations are performed for each of the other working node sets, so as to obtain a virtual aggregation node of each working node set.
65) And acquiring the cascade path among the virtual aggregation nodes.
66) And respectively displaying each virtual aggregation node and the cascade path between each virtual aggregation node on the control interface.
Specifically, in this step, a connection line for representing the cascade relationship between the virtual aggregation node and the second working node of the next upper stage, a connection line for representing the cascade relationship between the virtual aggregation node and the second working node of the next lower stage, and the like may be drawn on the control interface.
The virtual aggregation nodes are generated according to the attribute information of the working node set and the number of the working nodes included in the working node set, so that a user can see the attribute information and the number after seeing the virtual aggregation nodes, and the attribute information of the working node set corresponding to the virtual aggregation nodes and the number of the working nodes in the working node set can be determined according to the attribute information and the number.
When the virtual aggregation nodes and the cascade paths between the virtual aggregation nodes are respectively displayed on the control interface, a temporary workflow including the virtual aggregation nodes and the cascade paths between the virtual aggregation nodes may be generated, and the temporary workflow is displayed on the control interface. The temporary workflow only includes each virtual aggregation node and the cascade path between each virtual aggregation node, so that a user is not interfered by other working nodes in the workflow, and the user can easily locate the cascade relationship between the virtual aggregation nodes and the cascade path between the virtual aggregation nodes.
Further, after each virtual aggregation node and the cascade path between each virtual aggregation node are respectively displayed on the control interface, a user can see the virtual aggregation node but cannot see each second working node included in the virtual aggregation node, if the user needs to see each second working node included in one virtual aggregation node, the user can input a trigger operation on the displayed one virtual aggregation node on the electronic device, and the trigger operation includes a click operation or a long-press operation and the like.
When the electronic device receives a trigger operation on the displayed one virtual aggregation node, it may determine a working node set corresponding to the one virtual aggregation node, and then display second working nodes included in the working node set corresponding to the one virtual aggregation node, for example, the second working nodes included in the working node set corresponding to the one virtual aggregation node may be displayed in a list form, so that a user may view each second working node included in the one virtual aggregation node.
Further, after a second working node included in the working node set corresponding to one virtual aggregation node is displayed on the control interface, if a user needs to pay attention to a certain second working node included in the working node set corresponding to the one virtual aggregation node, the user may input a trigger operation on the displayed second working node included in the working node set corresponding to the one virtual aggregation node on the electronic device, where the trigger operation includes a click operation or a long-time press operation.
When the electronic device receives a trigger operation on the second working node included in the working node set corresponding to the virtual aggregation node, the workflow can be displayed in a skipping mode on the control interface, the second working node can be prompted on the control interface, a cascade path involving the first working node and the second working node can be prompted, and therefore a user can conveniently know the position of the second working node in the workflow and the like.
The specific prompting manner for prompting the second working node and prompting the cascade path involving the first working node and the second working node on the control interface may refer to the manner described in the foregoing embodiment, which is not described in detail herein.
Or, in a case that the electronic device receives a trigger operation on the one second working node included in the working node set corresponding to the one virtual aggregation node, at least detail information of the one second working node may be displayed on the control interface, where the detail information includes: attribute information, context information, a log of operations, and computer program code of a second worker node for viewing by a user.
In the application, a work flow displayed in a mesh structure may include a card of each work node, and the card of the work node may include a status identifier of the work node and a name of the work node, for identifying the status of the work node.
The states of the working nodes include: failed run, not run, DQC detect, freeze, wait time trigger, wait resource trigger, wait manual trigger, run, and so on.
The state identities of the different states of the working node are different.
The card of the work node may further include a type of the work node (e.g., a computer program language on which the computer program code of the work node is based), a node sequence, and information indicating whether the work node spans an item.
In one embodiment of the present application, there are a plurality of downstream work nodes detected as having an abnormality caused by the first work node. And downstream worker nodes that are caused to be anomalous by the first worker node are spread out over multiple levels downstream.
Thus, when the second working node is prompted, in one mode, the downstream working nodes can be displayed on the screen of the electronic device in a tiled mode, but since the downstream working nodes are multiple and the size of the screen of the electronic device is often limited, all the downstream working nodes cannot be displayed on the screen of the electronic device at the same time, only part of the downstream working nodes can be displayed at a time, and if a user needs to check other downstream working nodes, the screen needs to be dragged to enable the electronic device to display other downstream nodes on the screen, but the operation difficulty is high for the user. In addition, in the medical science, all the work nodes need to be rendered at one time, and the system resources of the electronic equipment are occupied by the rendering of all the work nodes at one time.
Therefore, in order to avoid the above problem, in another embodiment of the present application, when the second working node is prompted, the following process may be performed, including:
in another embodiment, there are a plurality of downstream work nodes causing an exception by the first work node, and the downstream work nodes causing an exception by the first work node are distributed over a plurality of levels downstream, so that, in order to make it easier for a user to distinguish second work nodes belonging to different levels, a level to which each of the plurality of second work nodes belongs in the workflow may be determined.
Then, for the second working nodes belonging to any one hierarchy, the second working nodes belonging to the hierarchy may be grouped to obtain at least two groups of working node sets. The same is true for the second working nodes belonging to each of the other hierarchical levels.
And for each working node set, generating a virtual combined node of the working node set according to the number of the working nodes included in the working node set.
For example, for any one working node set, a virtual combination node of the working node set may be generated according to the number of working nodes included in the working node set, and for each of the other working node sets, the above operations are also performed, so as to obtain a virtual combination node of each working node set respectively.
The virtual composite nodes of the respective working node sets may then be displayed separately.
Because the virtual combination nodes are generated according to the number of the working nodes included in the working node set, after the user sees the virtual combination nodes, the user can see the number, and thus the number of the working node sets corresponding to the virtual combination nodes can be determined according to the number.
Further, a connection line for representing the cascade relationship between the virtual combination node and the second working node of the adjacent upper stage may be drawn, and a connection line for representing the cascade relationship between the virtual combination node and the second working node of the adjacent lower stage may be drawn.
In an embodiment of the present application, in a case that the number of the working nodes included in the virtual combined node is large, if a user needs to view the working nodes included in the virtual combined node, in order to simultaneously display more working nodes included in the virtual combined node on a screen of the electronic device as much as possible, so as to show more working nodes included in the virtual combined node on a screen with a limited size more comprehensively, content on cards of the working nodes included in the virtual combined node may be simplified, for example, only status identifiers on the cards of the working nodes are retained, and a size of the status identifiers may be reduced, status identifiers of the working nodes included in the virtual combined node may be sorted, for example, sorted according to a node sequence, and the like.
In an alternative embodiment, circles may be used as the status markers, and circles of different colors may correspond to different status markers. The default size of the circle may be determined in advance according to actual situations, and will not be described in detail here.
When a user needs to view the detailed information of a certain working node, the user can stop the cursor on the card of the working node, and then the electronic equipment can display the detailed information of the working node for the user to view.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 2, a block diagram of a workflow processing apparatus according to an embodiment of the present application is shown, and is applied to an electronic device, where a control interface is displayed on a screen of the electronic device, a workflow is displayed on the control interface in a mesh structure, and the workflow includes multiple work nodes in a cascade relationship; the method specifically comprises the following modules:
an obtaining module 11, configured to obtain a first designated work node in the plurality of work nodes;
the calling module 12 is configured to call a detection rule from a preset rule base;
a detection module 13, configured to detect, in the workflow, a second working node cascaded with the first working node based on the detection rule;
a first prompting module 14, configured to prompt the second working node and a cascade path related to the first working node and the second working node on the control interface.
In an optional implementation manner, the invoking module includes:
the first calling unit is used for calling a detection rule for detecting an upstream working node of the first working node cascade in the preset rule base under the condition that a triggering operation of a first preset control displayed on the control interface is received;
alternatively, the first and second electrodes may be,
and the second calling unit is used for calling a detection rule for detecting the downstream working node of the first working node cascade in the preset rule base under the condition of receiving a triggering operation of a second preset control displayed on the control interface.
In an optional implementation manner, the number of detection rules in the preset rule base for detecting the upstream working node of the first working node cascade is at least two;
the first retrieval unit includes:
the acquisition subunit is used for acquiring the running state of the first working node;
and the calling subunit is used for calling a detection rule for detecting the upstream working node of the first working node cascade from at least two detection rules according to the running state.
In an optional implementation manner, the detection module includes:
the first detection unit is configured to, when a trigger operation for a first preset control displayed on the control interface is received, detect, in the workflow, an upstream work node that causes an abnormality in the first work node based on a detection rule for detecting an upstream work node in cascade connection with the first work node, and use the upstream work node as the second work node.
In an optional implementation manner, the running state of the first working node is a non-running success state;
the first detection unit includes:
a first detecting subunit, configured to detect, in a previous-stage working node of the first working node cascade in the workflow, a previous-stage working node in a non-operation success state;
a second detecting subunit, configured to detect, in a next-higher-level working node of a higher-level working node in a non-operation successful state in the workflow, a next-higher-level working node in a non-operation successful state, and so on until a root working node in a non-operation successful state is detected in a root working node in the workflow;
and the first determining subunit is used for taking the detected working node in the non-operation success state as an upstream working node for triggering the first working node to be in the non-operation success state.
In an optional implementation manner, the running state of the first working node is a completion time timeout state;
the first detection unit includes:
a second determining subunit, configured to determine whether a completion time timeout state of the first working node is caused by an upstream working node of the first working node;
a third detecting subunit, configured to detect, in a higher-level working node of the cascade of the first working nodes in the workflow, a higher-level working node in an overtime state at a completion time when the first working node is triggered by an upstream working node of the first working node;
a third determining subunit, configured to determine whether the completion time timeout state of the previous-stage working node in the completion time timeout state is caused by another previous-stage working node of the previous-stage working node in the completion time timeout state;
a fourth detecting subunit, configured to, in a case where a completion time timeout state of a previous-stage working node that is in the completion time timeout state is caused by a further previous-stage working node of the previous-stage working node that is in the completion time timeout state, detect, in the further previous-stage working node of the previous-stage working node that is in the completion time timeout state, the further previous-stage working node that is in the completion time timeout state, and so on until a root working node that is in the completion time timeout state is detected in a root working node in the workflow;
and the fourth determining subunit is configured to use the detected working node that is in the completion time overtime state as an upstream working node that causes the first working node to be in the completion time overtime state.
In an optional implementation manner, the first detection unit includes:
a first counting subunit, configured to count, in the workflow, the number of working nodes located upstream of the first working node;
the fifth determining subunit is configured to determine, according to the number, a to-be-detected hierarchy range of the working nodes;
a sixth determining subunit, configured to determine, in the workflow, a candidate working node located upstream of the first working node and within the to-be-detected hierarchical range;
and the fifth detection subunit is used for detecting the upstream working node causing the abnormality of the first working node in the candidate working nodes.
In an optional implementation, the apparatus further comprises:
a determining module, configured to determine, in the second working node, a root working node that causes the abnormality of the first working node;
and the second prompting module is used for prompting the root source working node on the control interface.
In an optional implementation manner, the detection module includes:
and the second detection unit is used for detecting a downstream working node caused by the abnormality of the first working node in the workflow based on a detection rule for detecting the downstream working node cascaded by the first working node under the condition that the triggering operation of a second preset control displayed on the control interface is received, and taking the downstream working node as the second working node.
In an optional implementation manner, the second detection unit includes:
a sixth detecting subunit, configured to detect, in the workflow, a next-stage working node of the first working node cascade;
a seventh detecting subunit, configured to detect, in the workflow, a next-stage working node of the next-stage working node cascade of the first working node cascade, and so on until a working node at a bottom layer of the cascade is detected in the workflow;
and the seventh determining subunit is configured to use the detected working node as a downstream working node for which an exception is caused by the first working node.
In an optional implementation manner, the second detection unit includes:
a second counting subunit, configured to count, in the workflow, the number of working nodes located downstream of the first working node;
the eighth determining subunit is configured to determine, according to the number, a to-be-detected hierarchy range of the working node;
a ninth determining subunit, configured to determine, in the workflow, a candidate work node located downstream of the first work node and within the hierarchy to be detected;
and the eighth detection subunit is used for detecting a downstream working node which is caused by the abnormality of the first working node in the candidate working nodes.
In an optional implementation manner, the fifth determining subunit/the eighth determining subunit is specifically configured to: and searching the detection level range corresponding to the quantity in the corresponding relation between the quantity of the working nodes and the detection level range of the working nodes, and taking the detection level range as the to-be-detected level range.
In an optional implementation manner, the apparatus further includes:
and the display canceling module is used for canceling and prompting the second working node and the cascade path on the control interface under the condition of receiving the triggering operation of a third preset control displayed on the control interface.
In an optional implementation manner, the first prompting module includes:
the construction unit is used for constructing a circumscribed rectangular frame of the second working nodes in the workflow displayed on the control interface, and the first changing unit is used for changing the display forms of connecting lines among the second working nodes and the display forms of the connecting lines between the first working nodes and the second working nodes; the display form of the connecting line at least comprises display color and display size;
alternatively, the first and second electrodes may be,
the setting unit is used for setting the display state of the second working node in the workflow displayed on the control interface to be different from the display states of other working nodes except the second working node in the workflow, wherein the display states at least comprise display sizes, display colors and display levels, and the second changing unit is used for changing the display forms of the connecting lines among the second working nodes and the display forms of the connecting lines between the first working node and the second working nodes;
alternatively, the first and second electrodes may be,
the control unit is used for controlling the second working nodes to be displayed in a flashing mode in the workflow displayed on the control interface, and the third changing unit is used for changing the display forms of the connecting lines among the second working nodes and the display forms of the connecting lines between the first working nodes and the second working nodes;
alternatively, the first and second electrodes may be,
the first generating unit is configured to generate a temporary workflow including the second work node and the cascade path, and display the temporary workflow on the control interface.
In an optional implementation manner, the number of the second working nodes is multiple;
the first prompt module comprises:
the first display unit is used for displaying options of a plurality of aggregation dimensions on the control interface;
a first obtaining unit, configured to, when a selection operation for an option of one of the options of the multiple aggregation dimensions is received, obtain attribute information of each of the multiple second worker nodes in the one aggregation dimension;
the classification unit is used for classifying the second working nodes at least according to the attribute information to obtain at least two working node sets;
a second generating unit, configured to generate, for each working node set, a virtual aggregation node of the working node set according to the attribute information of the working node set and the number of included working nodes;
a second obtaining unit, configured to obtain a cascade path between each virtual aggregation node;
and the second display unit is used for respectively displaying each virtual aggregation node and the cascade path between each virtual aggregation node on the control interface.
In an alternative implementation, the second display unit includes:
a generating subunit, configured to generate a temporary workflow including each virtual aggregation node and a cascade path between each virtual aggregation node;
and the first display subunit is used for displaying the temporary workflow on the control interface.
In an optional implementation manner, the classification unit includes:
the second display subunit is used for displaying hierarchical classification options on the control interface;
a tenth determining subunit, configured to, in a case where a triggering operation for the hierarchical classification option is received, determine a hierarchy to which each second working node in the plurality of second working nodes belongs in the workflow;
and the classification subunit is used for classifying the second working nodes belonging to each hierarchy according to the attribute information of the second working nodes belonging to the hierarchy to obtain at least two working node sets.
In an optional implementation manner, the first prompting module further includes:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a working node set corresponding to one displayed virtual aggregation node under the condition that the triggering operation of the virtual aggregation node is received;
and the third display unit is used for displaying a second working node included in the working node set corresponding to the virtual aggregation node on the control interface.
In an optional implementation manner, the first prompting module further includes:
and a fourth display unit, configured to, when a trigger operation on a second working node included in the working node set corresponding to the virtual aggregation node is received, skip to display the workflow on the control interface, prompt the second working node on the control interface, and prompt a cascade path involving the first working node and the second working node.
In an optional implementation manner, the first prompting module further includes:
a fifth display unit, configured to, when a trigger operation on one second working node included in the working node set corresponding to the virtual aggregation node is received, display details of at least the one second working node on the control interface, where the details include: attribute information, context information, a running log, an operation log, and computer program code of the one second worker node.
In an optional implementation, the apparatus further comprises:
the receiving module is used for receiving an adding request for adding a new detection rule in the preset rule base;
and the adding module is used for adding the new detection rule in the preset rule base according to the adding request.
In the present application, a designated first worker node of a plurality of worker nodes is obtained. And calling a detection rule from a preset rule base. A second worker node in cascade with the first worker node is detected in the workflow based on the detection rule. And prompting the second working node and prompting a cascade path involving the first working node and the second working node on the control interface. Under the condition that 'a plurality of working nodes are arranged in a workflow, the working nodes are divided into a plurality of levels, and the cascade relation among the working nodes of different levels is complex', a user can easily locate a second working node cascaded with a first working node.
For example, in one example, the application may enable a user to easily locate a second work node associated with an abnormal state of a first work node in a workflow displayed in a mesh structure, and then process the second work node associated with the abnormal state of the first work node. The process of detecting the second working node related to the abnormal state of the first working node is automatically executed by the electronic equipment and can be performed without manual participation, so that the labor cost can be reduced, the physiological characteristics of people can be avoided, and the detection efficiency and the detection accuracy can be improved.
The embodiments of the present application also provide a non-volatile readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a device, the one or more modules may cause the device to execute instructions (instructions) of method steps in the embodiments of the present application.
Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the application, the electronic device comprises a server, a gateway, a sub-device and the like, wherein the sub-device is a device such as an internet of things device.
Embodiments of the present disclosure may be implemented as an apparatus, which may include electronic devices such as servers (clusters), terminal devices such as IoT devices, and the like, using any suitable hardware, firmware, software, or any combination thereof, for a desired configuration.
Fig. 3 schematically illustrates an example apparatus 1300 that can be used to implement various embodiments described herein.
For one embodiment, fig. 3 illustrates an example apparatus 1300 having one or more processors 1302, a control module (chipset) 1304 coupled to at least one of the processor(s) 1302, memory 1306 coupled to the control module 1304, non-volatile memory (NVM)/storage 1308 coupled to the control module 1304, one or more input/output devices 1310 coupled to the control module 1304, and a network interface 1312 coupled to the control module 1306.
Processor 1302 may include one or more single-core or multi-core processors, and processor 1302 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1300 can be a server device such as a gateway described in the embodiments of the present application.
In some embodiments, the apparatus 1300 may include one or more computer-readable media (e.g., the memory 1306 or the NVM/storage 1308) having instructions 1314 and one or more processors 1302, which, in conjunction with the one or more computer-readable media, are configured to execute the instructions 1314 to implement modules to perform the actions described in this disclosure.
For one embodiment, control module 1304 may include any suitable interface controllers to provide any suitable interface to at least one of the processor(s) 1302 and/or any suitable device or component in communication with control module 1304.
The control module 1304 may include a memory controller module to provide an interface to the memory 1306. The memory controller module may be a hardware module, a software module, and/or a firmware module.
Memory 1306 may be used, for example, to load and store data and/or instructions 1314 for device 1300. For one embodiment, memory 1306 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1306 may comprise a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, control module 1304 may include one or more input/output controllers to provide an interface to NVM/storage 1308 and input/output device(s) 1310.
For example, NVM/storage 1308 may be used to store data and/or instructions 1314. NVM/storage 1308 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
The NVM/storage 1308 may include storage resources that are physically part of the device on which the apparatus 1300 is installed, or it may be accessible by the device and may not be necessary as part of the device. For example, NVM/storage 1308 may be accessible over a network via input/output device(s) 1310.
Input/output device(s) 1310 may provide an interface for apparatus 1300 to communicate with any other suitable device, input/output device(s) 1310 may include a communications component, a pinyin component, a sensor component, and so forth. The network interface 1312 may provide an interface for the device 1300 to communicate over one or more networks, and the device 1300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as access to a communication standard-based wireless network, e.g., WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 1302 may be packaged together with logic for one or more controllers (e.g., memory controller modules) of the control module 1304. For one embodiment, at least one of the processor(s) 1302 may be packaged together with logic for one or more controllers of the control module 1304 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with logic for one or more controller(s) of the control module 1304. For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with logic of one or more controllers of control module 1304 to form a system on a chip (SoC).
In various embodiments, apparatus 1300 may be, but is not limited to being: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.) among other terminal devices. In various embodiments, apparatus 1300 may have more or fewer components and/or different architectures. For example, in some embodiments, device 1300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
An embodiment of the present application provides an electronic device, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform a method of processing a workflow as described in one or more of the present applications.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and the device for processing the workflow provided by the present application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (30)

1. The method for processing the workflow is applied to electronic equipment, wherein a control interface is displayed on a screen of the electronic equipment, the workflow is displayed on the control interface in a mesh structure, and the workflow comprises a plurality of working nodes in a cascade relation; the method comprises the following steps:
acquiring a first designated working node in a plurality of working nodes;
calling a detection rule from a preset rule base;
detecting a second working node cascaded with the first working node in the workflow based on the detection rule;
prompting the second working node and a cascade path involving the first working node and the second working node on the control interface.
2. The method of claim 1, wherein invoking a detection rule in a predetermined rule base comprises:
under the condition that a triggering operation of a first preset control displayed on the control interface is received, a detection rule for detecting an upstream working node of the first working node cascade is called in the preset rule base;
alternatively, the first and second electrodes may be,
and under the condition that the triggering operation of a second preset control displayed on the control interface is received, calling a detection rule for detecting the downstream working node of the first working node cascade from the preset rule base.
3. The method according to claim 2, wherein there are at least two detection rules in the preset rule base for detecting the upstream working node of the first working node cascade;
the invoking of the detection rule for detecting the upstream working node of the first working node cascade in the preset rule base includes:
acquiring the running state of the first working node;
and calling a detection rule for detecting the upstream working node of the first working node cascade from at least two detection rules according to the running state.
4. The method of claim 2, wherein the detecting a second work node in the workflow in cascade with the first work node based on the detection rule comprises:
under the condition that a trigger operation of a first preset control displayed on the control interface is received, detecting an upstream working node causing the first working node to be abnormal in the workflow based on a detection rule for detecting the upstream working node of the first working node cascade, and taking the upstream working node as the second working node.
5. The method of claim 4, wherein the operational status of the first worker node is a non-operational success status;
the detecting, based on a detection rule for detecting an upstream working node of the first working node cascade, an upstream working node causing an exception to the first working node in the workflow includes:
detecting a previous working node in a non-operation success state in the previous working nodes of the first working node cascade in the workflow;
and detecting a next-previous-stage working node in the non-operation successful state in the next-previous-stage working node of the previous-stage working node in the non-operation successful state in the workflow, and so on until detecting a root working node in the non-operation successful state in the root working node in the workflow, and then taking the detected working node in the non-operation successful state as an upstream working node for triggering the first working node to be in the non-operation successful state.
6. The method of claim 4, wherein the operational state of the first working node is a completion time timeout state;
the detecting, based on a detection rule for detecting an upstream working node of the first working node cascade, an upstream working node causing an exception to the first working node in the workflow includes:
determining whether a completion time timeout state of the first working node is triggered by an upstream working node of the first working node;
under the condition of being caused by an upstream working node of the first working node, detecting a previous working node in an overtime state at the completion time in the previous working node cascaded by the first working node in the workflow;
determining whether the completion time overtime state of the previous-stage working node in the completion time overtime state is caused by another previous-stage working node of the previous-stage working node in the completion time overtime state;
and under the condition that the completion time overtime state of the previous working node in the completion time overtime state is caused by a next previous working node of the previous working node in the completion time overtime state, detecting the next previous working node in the completion time overtime state in the next previous working node of the previous working node in the completion time overtime state, and so on until detecting the root working node in the completion time overtime state in the root working nodes in the workflow, and then taking the detected working node in the completion time overtime state as an upstream working node for causing the first working node to be in the completion time overtime state.
7. The method according to claim 4, wherein the detecting an upstream working node causing an exception to the first working node in the workflow based on a detection rule for detecting an upstream working node of the cascade of first working nodes comprises:
counting a number of worker nodes upstream of a first worker node in the workflow;
determining the range of the to-be-detected levels of the working nodes according to the quantity;
in the workflow, determining candidate working nodes which are positioned at the upstream of the first working node and are in the range of the hierarchy to be detected;
and detecting an upstream working node causing the abnormality of the first working node in the candidate working nodes.
8. The method of claim 4, wherein after prompting the second work node and prompting a cascading path involving the first work node and the second work node on the maneuver interface, further comprising:
determining a root source working node causing the first working node to be abnormal in the second working node;
and prompting the root source work node on the control interface.
9. The method of claim 2, wherein the detecting a second work node in the workflow in cascade with the first work node based on the detection rule comprises:
under the condition that a triggering operation of a second preset control displayed on the control interface is received, detecting a downstream work node with abnormality caused by the first work node in the workflow based on a detection rule for detecting the downstream work node of the first work node cascade, and taking the downstream work node as the second work node.
10. The method of claim 9, wherein detecting a downstream worker node in the workflow that is caused by the first worker node based on a detection rule for detecting a downstream worker node of the cascade of first worker nodes comprises:
detecting a next-stage working node of the first working node cascade in the workflow;
and detecting the next-level working node of the next-level working node cascade of the first working node cascade in the working flow, and so on until the bottom-level working node of the cascade is detected in the working flow, and then taking the detected working node as a downstream working node which is caused by the abnormality of the first working node.
11. The method of claim 9, wherein detecting a downstream worker node in the workflow that is caused by the first worker node based on a detection rule for detecting a downstream worker node of the cascade of first worker nodes comprises:
counting a number of worker nodes downstream of a first worker node in the workflow;
determining the range of the to-be-detected levels of the working nodes according to the quantity;
in the workflow, determining candidate working nodes which are positioned at the downstream of the first working node and in the range of the hierarchy to be detected;
and detecting a downstream working node causing an exception by the first working node in the candidate working nodes.
12. The method according to claim 7 or 11, wherein said determining the hierarchy range to be detected of the working nodes according to the number comprises:
and searching the detection level range corresponding to the quantity in the corresponding relation between the quantity of the working nodes and the detection level range of the working nodes, and taking the detection level range as the to-be-detected level range.
13. The method of any of claims 1-11, wherein after prompting the second work node on the maneuver interface and prompting a cascade path involving the first work node and the second work node, further comprising:
and under the condition that the triggering operation of a third preset control displayed on the control interface is received, the prompt of the second working node and the cascade path is cancelled on the control interface.
14. The method of claim 1, wherein prompting the second work node and prompting a cascading path involving the first work node and the second work node on the manipulation interface comprises:
constructing a circumscribed rectangle frame of the second working nodes in the workflow displayed on the control interface, and changing the display form of the connecting line between the second working nodes and the display form of the connecting line between the first working node and the second working node; the display form of the connecting line at least comprises display color and display size;
alternatively, the first and second electrodes may be,
setting a display state of the second working node to be different from display states of other working nodes except the second working node in the workflow displayed on the control interface, wherein the display states at least comprise display sizes, display colors and display levels, and changing display forms of connecting lines among the second working nodes and display forms of connecting lines among the first working nodes and the second working nodes;
alternatively, the first and second electrodes may be,
in the workflow displayed on the control interface, controlling the second working nodes to be displayed in a flashing manner, and changing the display forms of the connecting lines between the second working nodes and the connecting lines between the first working nodes and the second working nodes;
alternatively, the first and second electrodes may be,
generating a temporary workflow comprising the second working node and the cascade path, and displaying the temporary workflow on the control interface.
15. The method of claim 1, wherein the second working node is plural;
the prompting the second working node and prompting a cascade path involving the first working node and the second working node on the control interface includes:
displaying options of a plurality of aggregation dimensions on the manipulation interface;
acquiring attribute information of each second working node in the plurality of second working nodes on one aggregation dimension under the condition that a selection operation aiming at the option of one aggregation dimension in the options of the plurality of aggregation dimensions is received;
classifying the plurality of second working nodes at least according to the attribute information to obtain at least two working node sets;
for each working node set, generating virtual aggregation nodes of the working node set according to the attribute information of the working node set and the number of the included working nodes;
acquiring a cascade path among all the virtual aggregation nodes;
and respectively displaying each virtual aggregation node and the cascade path between each virtual aggregation node on the control interface.
16. The method of claim 15, wherein the displaying each virtual aggregation node and the cascade path between each virtual aggregation node on the control interface respectively comprises:
generating a temporary workflow comprising each virtual aggregation node and a cascade path between each virtual aggregation node;
displaying the temporary workflow on the manipulation interface.
17. The method of claim 15, wherein classifying the plurality of second working nodes according to at least the attribute information to obtain at least two working node sets comprises:
displaying a hierarchical classification option on the manipulation interface;
determining a hierarchy to which each of the plurality of second working nodes belongs in the workflow, in case of receiving a triggering operation on the hierarchy classification option;
and aiming at the second working nodes belonging to each hierarchy, classifying the second working nodes belonging to the hierarchy according to the attribute information of the second working nodes belonging to the hierarchy to obtain at least two working node sets.
18. The method of claim 15, wherein after displaying each virtual aggregation node and the cascade path between each virtual aggregation node on the control interface, respectively, further comprising:
under the condition that trigger operation on one displayed virtual aggregation node is received, determining a working node set corresponding to the virtual aggregation node;
and displaying a second working node included in the working node set corresponding to the virtual aggregation node on the control interface.
19. The method according to claim 18, wherein after displaying a second working node included in the working node set corresponding to the one virtual aggregation node on the manipulation interface, the method further comprises:
and under the condition that a trigger operation of a second working node included in a working node set corresponding to the virtual aggregation node is received, skipping and displaying the workflow on the control interface, prompting the second working node on the control interface and prompting a cascade path related to the first working node and the second working node.
20. The method according to claim 18, wherein after displaying a second working node included in the working node set corresponding to the one virtual aggregation node on the manipulation interface, the method further comprises:
under the condition that a trigger operation on one second working node included in a working node set corresponding to the virtual aggregation node is received, displaying detail information of at least the one second working node on the control interface, wherein the detail information includes: attribute information, context information, a running log, an operation log, and computer program code of the one second worker node.
21. The method of claim 1, further comprising:
receiving an adding request for adding a new detection rule in the preset rule base;
and adding the new detection rule in the preset rule base according to the adding request.
22. The device for processing the workflow is applied to an electronic device, wherein a control interface is displayed on a screen of the electronic device, the workflow is displayed on the control interface in a mesh structure, and the workflow comprises a plurality of working nodes in a cascade relation; the device comprises:
the acquisition module is used for acquiring a first designated working node in the plurality of working nodes;
the calling module is used for calling a detection rule from a preset rule base;
a detection module, configured to detect, in the workflow, a second working node that is cascaded with the first working node based on the detection rule;
the first prompting module is used for prompting the second working node and prompting a cascade path related to the first working node and the second working node on the control interface.
23. The apparatus of claim 22, wherein the invoking module comprises:
the first calling unit is used for calling a detection rule for detecting an upstream working node of the first working node cascade in the preset rule base under the condition that a triggering operation of a first preset control displayed on the control interface is received;
alternatively, the first and second electrodes may be,
and the second calling unit is used for calling a detection rule for detecting a downstream working node of the first working node cascade in the preset rule base under the condition of receiving a trigger operation on a second preset control displayed on the control interface.
24. The apparatus of claim 23, wherein the detection module comprises:
the first detection unit is used for detecting an upstream work node causing the first work node to be abnormal in the workflow based on a detection rule for detecting the upstream work node of the first work node cascade under the condition that the triggering operation of a first preset control displayed on the control interface is received, and taking the upstream work node as the second work node.
25. The apparatus of claim 24, wherein the operational status of the first working node is a non-operational success status;
the first detection unit includes:
a first detecting subunit, configured to detect, in a previous-stage working node of the first working node cascade in the workflow, a previous-stage working node in a non-operation success state;
a second detecting subunit, configured to detect, in a next-previous-stage working node of a previous-stage working node in a non-operation successful state in the workflow, a next-previous-stage working node in a non-operation successful state, and so on, until a root working node in a non-operation successful state is detected in a root working node in the workflow;
and the first determining subunit is used for taking the detected working node in the non-operation success state as an upstream working node for causing the first working node to be in the non-operation success state.
26. The apparatus according to claim 24, wherein the operational status of the first working node is a completion time timeout status;
the first detection unit includes:
a second determining subunit, configured to determine whether a completion time timeout state of the first working node is caused by an upstream working node of the first working node;
a third detecting subunit, configured to detect, in a previous-stage working node cascaded to the first working node in the workflow, a previous-stage working node in an overtime state at a completion time, if the detection is caused by an upstream working node of the first working node;
a third determining subunit, configured to determine whether the completion time timeout state of the previous-stage working node in the completion time timeout state is caused by another previous-stage working node of the previous-stage working node in the completion time timeout state;
a fourth detecting subunit, configured to, when a completion time timeout state of a previous-stage working node in the completion time timeout state is caused by a next previous-stage working node of the previous-stage working node in the completion time timeout state, detect, in the next previous-stage working node of the previous-stage working node in the completion time timeout state, a next previous-stage working node in the completion time timeout state, and so on until a root working node in the completion time timeout state is detected in a root working node in the workflow;
and the fourth determining subunit is configured to use the detected working node in the completion time timeout state as an upstream working node that causes the first working node to be in the completion time timeout state.
27. The apparatus of claim 22, wherein the detection module comprises:
and the second detection unit is used for detecting a downstream working node caused by the abnormality of the first working node in the workflow based on a detection rule for detecting the downstream working node cascaded by the first working node under the condition that the triggering operation of a second preset control displayed on the control interface is received, and taking the downstream working node as the second working node.
28. The apparatus of claim 21, wherein the second working node is a plurality;
the first prompt module comprises:
the first display unit is used for displaying options of a plurality of aggregation dimensions on the control interface;
a first obtaining unit, configured to, when a selection operation for an option of one of the options of the multiple aggregation dimensions is received, obtain attribute information of each of the multiple second worker nodes in the one aggregation dimension;
the classification unit is used for classifying the second working nodes at least according to the attribute information to obtain at least two working node sets;
a second generating unit, configured to generate, for each working node set, a virtual aggregation node of the working node set according to the attribute information of the working node set and the number of included working nodes;
a second obtaining unit, configured to obtain a cascade path between each virtual aggregation node;
and the second display unit is used for respectively displaying each virtual aggregation node and the cascade path between each virtual aggregation node on the control interface.
29. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of processing a workflow of any one of claims 1-21.
30. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the method of processing a workflow of any one of claims 1-21.
CN202110257565.8A 2021-03-09 2021-03-09 Workflow processing method and device Pending CN115048163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110257565.8A CN115048163A (en) 2021-03-09 2021-03-09 Workflow processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110257565.8A CN115048163A (en) 2021-03-09 2021-03-09 Workflow processing method and device

Publications (1)

Publication Number Publication Date
CN115048163A true CN115048163A (en) 2022-09-13

Family

ID=83156160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110257565.8A Pending CN115048163A (en) 2021-03-09 2021-03-09 Workflow processing method and device

Country Status (1)

Country Link
CN (1) CN115048163A (en)

Similar Documents

Publication Publication Date Title
US10692030B2 (en) Process visualization platform
US9280451B2 (en) Testing device
CN110377520B (en) Transaction scenario testing method and device, electronic equipment and readable storage medium
US20170337560A1 (en) System for providing and employing recommended resolution paths
WO2013185092A1 (en) System and method for automatic test level generation
US11169910B2 (en) Probabilistic software testing via dynamic graphs
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN112286782B (en) Control shielding detection method, software detection method, device and medium
CN111309743A (en) Report pushing method and device
US20240152439A1 (en) Detection Method and Electronic Device
CN108733536B (en) Monitoring management system and method
EP3504637B1 (en) Dynamically render large dataset in client application
CN108845924B (en) Control response area display control method, electronic device, and storage medium
CN113190427A (en) Caton monitoring method and device, electronic equipment and storage medium
CN110879701B (en) Workflow visual configuration method, server, system and medium
CN114816389B (en) Management system building method, device, equipment and medium based on meta-model
US8719704B2 (en) Seamless integration of additional functionality into enterprise software without customization or apparent alteration of same
CN109460234B (en) Application slimming method and device, terminal and storage medium
CN110955548A (en) Data processing method and device
CN115048163A (en) Workflow processing method and device
US8667478B1 (en) Backward-compatibility using a plugin architecture
US9497253B2 (en) Authorization review system
CN108197029A (en) A kind of method and apparatus for obtaining progress information
CN109684525B (en) Document display method and device, storage medium and test equipment
CN104731633A (en) Method and system for rolling back in Linux system after failure of uninstalling of multi-partition storage equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240308

Address after: 51 Belarusian Pasha Road, Singapore, Lai Zan Da Building 1 # 03-06, Postal Code 189554

Applicant after: Alibaba Innovation Co.

Country or region after: Singapore

Address before: Room 01, 45th Floor, AXA Building, 8 Shanton Road, Singapore

Applicant before: Alibaba Singapore Holdings Ltd.

Country or region before: Singapore

TA01 Transfer of patent application right