CN116503005A - Method, device, system and storage medium for dynamically modifying flow - Google Patents

Method, device, system and storage medium for dynamically modifying flow Download PDF

Info

Publication number
CN116503005A
CN116503005A CN202210057177.XA CN202210057177A CN116503005A CN 116503005 A CN116503005 A CN 116503005A CN 202210057177 A CN202210057177 A CN 202210057177A CN 116503005 A CN116503005 A CN 116503005A
Authority
CN
China
Prior art keywords
flow
processing node
target
definition
node
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
CN202210057177.XA
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.)
Chinabank Payments Beijing Technology Co Ltd
Original Assignee
Chinabank Payments Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chinabank Payments Beijing Technology Co Ltd filed Critical Chinabank Payments Beijing Technology Co Ltd
Priority to CN202210057177.XA priority Critical patent/CN116503005A/en
Publication of CN116503005A publication Critical patent/CN116503005A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The present disclosure provides a flow dynamic modification method, the method including, in a case where a first flow instance is executed according to an initially defined flow, suspending execution of the first flow instance in response to a flow modification request generated by a first processing node, wherein the initially defined flow includes the first processing node and a second processing node, the second processing node being a downstream node of the first processing node, the flow modification request including attribute information of a target temporary processing node; and generating a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow, wherein the target definition flow comprises a target temporary processing node and a second processing node, and the second processing node is a downstream node of the target temporary processing node. The disclosure also provides a device, a system and a storage medium for dynamically modifying the flow.

Description

Method, device, system and storage medium for dynamically modifying flow
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, and a storage medium for dynamically modifying a flow.
Background
Workflow refers to the automation of part or all of a business process in a computer application environment. In workflow services, the flow instance needs to be executed according to a predefined flow.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: the existing modification method of the flow definition can increase the complexity of the flow definition, thereby increasing the maintenance difficulty of the flow definition file.
Disclosure of Invention
In view of this, the present disclosure provides a method, an apparatus, a system, and a storage medium for dynamically modifying a flow.
One aspect of the present disclosure provides a method for dynamically modifying a flow, including:
in the case of executing a first process instance according to an initially defined flow, suspending execution of the first process instance in response to a flow modification request generated by a first processing node, wherein the initially defined flow includes the first processing node and a second processing node, the second processing node being a downstream node of the first processing node, the flow modification request including attribute information of a target temporary processing node;
and generating a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow, wherein the target definition flow comprises the target temporary processing node and the second processing node, and the second processing node is a downstream node of the target temporary processing node.
According to an embodiment of the present disclosure, the generating a target definition flow according to the attribute information and the initial definition flow includes:
determining the target temporary processing node in a plurality of temporary nodes according to the attribute information;
and adding the target temporary processing node into the initial definition flow to generate the target definition flow.
According to an embodiment of the present disclosure, the method further comprises:
acquiring target data associated with the first flow instance in the first processing node;
and writing the target data into the target temporary processing node so that the target temporary processing node executes the first flow instance according to the target data.
According to an embodiment of the disclosure, the adding the target temporary processing node to the initial defined flow, generating the target defined flow includes:
the second processing node is associated to the target temporary processing node in order to determine the second processing node as a downstream node of the target temporary processing node.
According to an embodiment of the present disclosure, the method further comprises:
and deleting the target temporary processing node after the execution of the first flow instance is completed, so that a second flow instance is executed according to the initial flow definition.
According to an embodiment of the present disclosure, the method further comprises:
acquiring a storage request aiming at the target flow definition file, wherein the storage request comprises storage path information;
and responding to the storage request, and storing the target flow definition file according to the storage path information.
According to an embodiment of the present disclosure, the initially defined flow includes a flow that includes loop semantics.
Another aspect of the present disclosure provides a process dynamic modification apparatus, including:
a first obtaining module, configured to, in a case where a first process instance is executed according to an initially defined process, suspend execution of the first process instance in response to a process modification request generated by a first processing node, where the initially defined process includes the first processing node and a second processing node, the second processing node being a downstream node of the first processing node, and the process modification request includes attribute information of a target temporary processing node;
the generating module is configured to generate a target definition flow according to the attribute information and the initial definition flow, so that a target temporary processing node corresponding to the attribute information executes the first process instance according to the target definition flow, where the target definition flow includes the target temporary processing node and the second processing node, and the second processing node is a node downstream of the target temporary processing node.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of embodiments of the present disclosure.
Another aspect of the present disclosure provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described in embodiments of the present disclosure.
According to an embodiment of the present disclosure, in a case where the first flow instance is executed according to an initial defined flow and the initial defined flow needs to be temporarily modified, a modification request with attribute information of a target temporary processing node is generated by the first processing node, and execution of the first flow instance is suspended in response to the modification request. And then generating a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow. Because the target definition flow is generated according to the attribute information and the initial definition flow, the complexity of the initial definition flow is not increased, and the maintainability of the initial flow definition file is increased.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
fig. 1 schematically illustrates an exemplary system architecture to which a flow dynamic modification method may be applied according to an embodiment of the present disclosure.
Fig. 2 schematically illustrates a flow chart of a flow dynamic modification method according to an embodiment of the present disclosure.
Fig. 3 schematically illustrates a schematic diagram of an initial definition flow according to an embodiment of the present disclosure.
Fig. 4 schematically illustrates a schematic diagram of modification of an initial definition flow according to an embodiment of the disclosure.
Fig. 5 schematically illustrates a schematic diagram of a target definition flow according to an embodiment of the disclosure.
Fig. 6 schematically illustrates a flow chart of a flow dynamic modification method according to an embodiment of the disclosure.
Fig. 7 schematically illustrates a block diagram of a flow dynamic modification apparatus 700 according to an embodiment of the disclosure.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement the above-described method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the context of an automated process, process instances are typically executed according to a predefined process. However, during execution of the flow instance, there often occurs a need for temporary modification of the flow definition.
For example, in the existing business approval process, when a manager approves nodes, special reasons may need to be introduced into other nodes (such as a president approval node) for approval, and at this time, the current flow needs to be modified by using a dynamic modification flow definition function, namely: after the manager approves the nodes, a president approval node is temporarily added.
And then, if the approval result is not passed, submitting a new approval request through the submitting application node, and returning to the manager approval node again. At this time, if the president approval node is not deleted, the president approval task will always exist, and each time the loop of the flow instance is executed, the error in the flow is caused.
In order to solve such a problem, the related art is generally implemented by adding an exclusive gateway or the like.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: at present, when a temporary modification is needed to the flow definition in the execution process of the flow instance, the temporary modification is generally avoided by adding a gateway with an auxiliary function (such as an exclusive gateway) and other modes, but the complexity of the flow definition is increased by the method, so that the maintenance difficulty of the flow definition file is increased.
The embodiment of the disclosure provides a method, a device, a system and a storage medium for dynamically modifying a flow. The flow dynamic modification method comprises the steps of responding to a flow modification request generated by a first processing node under the condition that a first flow instance is executed according to an initial definition flow, and suspending execution of the first flow instance, wherein the initial definition flow comprises the first processing node and a second processing node, the second processing node is a downstream node of the first processing node, and the flow modification request comprises attribute information of a target temporary processing node; and generating a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow, wherein the target definition flow comprises a target temporary processing node and a second processing node, and the second processing node is a downstream node of the target temporary processing node.
Fig. 1 schematically illustrates an exemplary system architecture to which a flow dynamic modification method may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and/or wireless communication links, and the like.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 101, 102, 103, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients and/or social platform software, to name a few.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the method for dynamically modifying a flow provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the flow dynamic modification apparatus provided in the embodiments of the present disclosure may be generally disposed in the server 105. The flow dynamic modification method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the flow dynamic modification apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Alternatively, the flow dynamic modification method provided by the embodiment of the present disclosure may be performed by the terminal device 101, 102, or 103, or may be performed by another terminal device different from the terminal device 101, 102, or 103. Accordingly, the flow dynamic modification apparatus provided by the embodiments of the present disclosure may also be provided in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103.
For example, the flow modification request may be acquired by any one of the terminal devices 101, 102, or 103 (for example, but not limited to, the terminal device 101), and then the terminal device 101 may locally execute the flow dynamic modification method provided by the embodiment of the present disclosure, or send the pending flow modification request to another terminal device, server, or server cluster, and execute the flow dynamic modification method provided by the embodiment of the present disclosure by another terminal device, server, or server cluster that receives the pending flow modification request.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically illustrates a flow chart of a flow dynamic modification method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S202.
In operation S201, in the case where the first flow instance is executed according to the initially defined flow, execution of the first flow instance is suspended in response to a flow modification request generated by the first processing node, wherein the initially defined flow includes the first processing node and a second processing node, which is a downstream node of the first processing node, and the flow modification request includes attribute information of the target temporary processing node.
According to embodiments of the present disclosure, the initially defined flow may refer to a predefined business flow, which may include, for example, an audit flow, an approval flow, a business transaction flow, and the like. The first processing node and the second processing node may refer to, for example, a node of a certain processing link of the initially defined flow, where the second processing node is a downstream node of the first processing node, that is, the first processing node may flow to the second processing node after the processing of the first processing node is completed.
According to an embodiment of the disclosure, the first processing node may for example further comprise an electronic device, which may comprise a terminal device, which may comprise a smart phone, a tablet, a portable or desktop computer, etc. The flow modification request may be generated, for example, by a user corresponding to the first processing node by a trigger operation, which may include clicking or sliding, etc.
According to embodiments of the present disclosure, a target temporary processing node may refer to, for example, a node that needs to be temporarily added in an initial definition flow. The attribute information may include, for example, information of the electronic device corresponding to the target temporary processing node, information of the processor, or the like.
According to embodiments of the present disclosure, the initially defined flow may include, for example, a flow containing loop semantics, a flow containing other semantics, or the like.
Fig. 3 schematically illustrates a schematic diagram of an initial definition flow according to an embodiment of the present disclosure.
As shown in fig. 3, the initial definition flow includes a start node 301, a submit application node 302, an approve node 303, a gateway node 304, and an end node 305.
According to an embodiment of the present disclosure, the first processing node may refer to the approval node 303, and the second processing node may refer to the gateway node 304, where the gateway node 304 is a downstream node of the approval node 303.
According to an embodiment of the present disclosure, the submitting application node 302 submits an approval request, and the request flows to the approving node 303 to approve, and if the approval passes, the process is ended. If the approval is not passed, the data such as the approval material is returned to the filing application node 302 to be resubmitted.
Fig. 4 schematically illustrates a schematic diagram of modification of an initial definition flow according to an embodiment of the disclosure.
As shown in fig. 4, the initial definition flow includes a start node 401, a submit application node 402, an approval node 403, a gateway node 404, and an end node 405.
According to an embodiment of the present disclosure, upon acquisition of a flow modification request generated by the approval node 403, execution of the current flow instance is suspended. Where X characterizes the current flow instance as not being able to flow from the approval node 403 to the gateway node 404.
In operation S202, a target definition flow is generated according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow, where the target definition flow includes a target temporary processing node and a second processing node, and the second processing node is a node downstream of the target temporary processing node.
According to an embodiment of the present disclosure, the target definition flow may be modified based on the initial definition flow, for example, according to attribute information.
For example, the attribute information may be "a process", which represents an electronic device corresponding to the target temporary processing node as an electronic device of a; the target definition flow obtained based on the modification of the attribute information may be that after the first processing node completes processing the service data, the service data is transmitted to the electronic device of a, and is processed by the a; and after the processing A is completed, the business flow is transferred to a second processing node.
According to the embodiment of the disclosure, by generating the target definition flow according to the attribute information in the first flow instance, the temporary flow can be added only in the flow instance, and modification to the initial definition flow is avoided. When the flow flows through the initial definition flow again, a new flow instance is generated, and the new flow instance can continue to advance according to the initial definition flow and is not influenced by the target definition flow. Therefore, the complexity of the initial flow definition file is not increased by the technical means, and the maintainability of the initial flow definition file is effectively improved.
Fig. 5 schematically illustrates a schematic diagram of a target definition flow according to an embodiment of the disclosure.
As shown in fig. 5, the initial definition flow includes a start node 501, a submit application node 502, an approval node 503, a target temporary processing node 504, a gateway node 505, and an end node 506.
According to an embodiment of the present disclosure, the second processing node may refer to the gateway node 505, in which case the gateway node 505 is a downstream node of the target temporary processing node 504.
According to an embodiment of the present disclosure, after a flow modification request generated by a first processing node is acquired, execution of the first flow instance at the first processing node is suspended, preventing the first flow instance from continuing to execute at a node downstream of the first processing node. After the target definition flow is generated, execution of the first flow instance continues at target temporary processing node 504.
According to an embodiment of the present disclosure, in a case where the first flow instance is executed according to an initial defined flow and the initial defined flow needs to be temporarily modified, a modification request with attribute information of a target temporary processing node is generated by the first processing node, and execution of the first flow instance is suspended in response to the modification request. And then generating a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow. Because the target definition flow is generated according to the attribute information and the initial definition flow, the complexity of the initial definition flow is not increased, and the maintainability of the initial flow definition file is increased.
According to an embodiment of the present disclosure, generating a target definition flow from attribute information and an initial definition flow includes:
and determining a target temporary processing node in the temporary nodes according to the attribute information. And adding the target temporary processing node into the initial definition flow to generate a target definition flow.
According to embodiments of the present disclosure, the temporary nodes may include a plurality of temporary nodes, each of which corresponds to different attribute information, for example. The target temporary processing node may be determined from among the plurality of temporary nodes based on the attribute information in the flow modification request.
According to an embodiment of the present disclosure, the flow dynamic modification method further includes:
target data associated with a first process instance in a first processing node is obtained. The target data is written to the target temporary processing node such that the target temporary processing node executes the first flow instance in accordance with the target data.
According to embodiments of the present disclosure, target data associated with a first flow instance in a first processing node needs to be copied into a target temporary processing node before continuing to execute the first flow instance.
According to embodiments of the present disclosure, the target data may include, for example, business data of a business corresponding to the first flow instance, and the like. For example, in the case where the first flow instance is an approval flow, the target data may include, for example, data such as an approval ticket.
According to an embodiment of the present disclosure, adding a target temporary processing node to an initial definition flow, generating the target definition flow includes:
the second processing node is associated with the target temporary processing node to determine the second processing node as a downstream node of the target temporary processing node.
According to embodiments of the present disclosure, the second processing node may comprise one or more, for example, a downstream node of a certain first processing node may comprise a plurality of second processing nodes according to a processing priority order.
According to an embodiment of the present disclosure, the second processing node is associated to the target temporary processing node such that the second processing node becomes a downstream node of the target temporary processing node. So that the first flow instance continues to execute at the target temporary processing node.
According to an embodiment of the present disclosure, the flow dynamic modification method further includes:
after the execution of the first process instance is completed, the target temporary processing node is deleted so that the second process instance is executed according to the initial process definition.
According to an embodiment of the present disclosure, after detecting that the execution of the first flow instance is completed, the target temporary node is deleted to restore the initial flow definition. So that subsequent flow instances execute according to the initial flow definition.
According to the embodiment of the disclosure, by deleting the target temporary node after the execution of the first flow instance is completed, the flow definition of a certain flow instance can be temporarily and dynamically modified in the flow definition with the cyclic semantics, so that the original cyclic semantics cannot be modified.
According to an embodiment of the present disclosure, the flow dynamic modification method further includes:
a storage request for a target flow definition file is obtained, wherein the storage request includes storage path information. And responding to the storage request, and storing the target flow definition file according to the storage path information.
According to the embodiment of the disclosure, after the target definition flow is generated, the target definition flow can be stored separately according to the use requirement of a user so as to be used continuously later. By the method, different use requirements of users can be met.
Fig. 6 schematically illustrates a flow chart of a flow dynamic modification method according to an embodiment of the disclosure.
As shown in fig. 6, the flow dynamic modification method includes operations S601 to S604.
In operation S601, a flow modification request generated by a first processing node is acquired.
In operation S602, execution of the current flow instance is suspended in response to the flow modification request.
In operation S603, a target temporary processing node is determined according to the attribute information of the flow modification request, and the target temporary processing node is added to the initial definition flow, generating a target definition flow.
In operation S604, at the target temporary processing node, the flow instance is executed according to the target definition flow.
Taking the current flow instance as an approval flow, the first processing node as a first user approval node, and the target temporary processing node as a second user approval node as an example.
Under the condition that the first user approves the node to acquire a new approval task and the first user cannot make a decision, the first user can generate a flow modification request at the first processing node so as to transfer the current approval task flow to the second user approving node. At this time, determining a second user approval node according to the attribute information provided by the first user, adding the second user approval node to the current approval process, copying the data associated with the approval task to the second user approval node, and approving the approval task by the second user.
After the current approval task is completed, the target temporary processing node may be deleted to resume the initial approval process.
Fig. 7 schematically illustrates a block diagram of a flow dynamic modification apparatus 700 according to an embodiment of the disclosure.
As shown in fig. 7, the flow dynamic modification apparatus 700 includes a first acquisition module 701 and a generation module 702.
A first obtaining module 701, configured to, in a case where the first flow instance is executed according to an initially defined flow, suspend execution of the first flow instance in response to a flow modification request generated by a first processing node, where the initially defined flow includes the first processing node and a second processing node, the second processing node is a downstream node of the first processing node, and the flow modification request includes attribute information of a target temporary processing node;
the generating module 702 is configured to generate a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow, where the target definition flow includes a target temporary processing node and a second processing node, and the second processing node is a node downstream of the target temporary processing node.
According to an embodiment of the present disclosure, in a case where the first flow instance is executed according to an initial defined flow and the initial defined flow needs to be temporarily modified, a modification request with attribute information of a target temporary processing node is generated by the first processing node, and execution of the first flow instance is suspended in response to the modification request. And then generating a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow. Because the target definition flow is generated according to the attribute information and the initial definition flow, the complexity of the initial definition flow is not increased, and the maintainability of the initial flow definition file is increased.
According to an embodiment of the present disclosure, the generation module 702 includes a determination unit and an addition unit.
And the determining unit is used for determining a target temporary processing node in the plurality of temporary nodes according to the attribute information.
And the adding unit is used for adding the target temporary processing node into the initial definition flow and generating a target definition flow.
According to an embodiment of the present disclosure, the generating module 702 further includes an obtaining unit and a writing unit.
And the acquisition unit is used for acquiring the target data associated with the first flow instance in the first processing node.
And the writing unit is used for writing the target data into the target temporary processing node so that the target temporary processing node executes the first flow instance according to the target data.
According to an embodiment of the present disclosure, the adding unit comprises an association subunit.
An association subunit for associating the second processing node to the target temporary processing node so as to determine the second processing node as a downstream node of the target temporary processing node.
According to an embodiment of the present disclosure, the flow dynamic modification apparatus 700 further includes:
and the deleting module is used for deleting the target temporary processing node after the execution of the first flow instance is completed, so that the second flow instance is executed according to the initial flow definition.
According to an embodiment of the present disclosure, the flow dynamic modification apparatus 700 further includes:
and the second acquisition module is used for acquiring a storage request aiming at the target flow definition file, wherein the storage request comprises storage path information.
And the corresponding unit is used for responding to the storage request and storing the target flow definition file according to the storage path information.
It should be noted that, the embodiments of the apparatus portion of the present disclosure are the same as or similar to the embodiments of the method portion of the present disclosure, and are not described herein.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any of the first acquisition module and the generation module may be combined in one module/unit/sub-unit or any of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the first acquisition module and the generation module may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable way of integrating or packaging the circuits, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the first acquisition module and the generation module may be at least partially implemented as a computer program module, which when executed may perform the respective functions.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement the above-described method according to an embodiment of the present disclosure. The electronic device shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 8, an electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the disclosure.
In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or the RAM 803. Note that the program may be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 800 may also include an input/output (I/O) interface 805, the input/output (I/O) interface 805 also being connected to the bus 804. The system 800 may also include one or more of the following components connected to the I/O interface 805: an input portion 806 including a keyboard, mouse, etc.; an output portion 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk or the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to the I/O interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as needed so that a computer program read out therefrom is mounted into the storage section 808 as needed.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 802 and/or RAM 803 and/or one or more memories other than ROM 802 and RAM 803 described above.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A method for dynamically modifying a flow, comprising:
in the case of executing a first process instance according to an initially defined flow, suspending execution of the first process instance in response to a flow modification request generated by a first processing node, wherein the initially defined flow includes the first processing node and a second processing node, the second processing node being a downstream node of the first processing node, the flow modification request including attribute information of a target temporary processing node;
and generating a target definition flow according to the attribute information and the initial definition flow, so that the target temporary processing node corresponding to the attribute information executes the first flow instance according to the target definition flow, wherein the target definition flow comprises the target temporary processing node and the second processing node, and the second processing node is a downstream node of the target temporary processing node.
2. The method of claim 1, wherein the generating a target definition flow from the attribute information and the initial definition flow comprises:
determining the target temporary processing node in a plurality of temporary nodes according to the attribute information;
and adding the target temporary processing node into the initial definition flow to generate the target definition flow.
3. The method of claim 2, further comprising:
acquiring target data associated with the first flow instance in the first processing node;
and writing the target data into the target temporary processing node so that the target temporary processing node executes the first flow instance according to the target data.
4. The method of claim 2, wherein the adding the target temporary processing node to the initial definition flow, generating the target definition flow comprises:
the second processing node is associated to the target temporary processing node in order to determine the second processing node as a downstream node of the target temporary processing node.
5. The method of claim 1, further comprising:
and deleting the target temporary processing node after the execution of the first flow instance is completed, so that a second flow instance is executed according to the initial flow definition.
6. The method of claim 1, further comprising:
acquiring a storage request aiming at the target flow definition file, wherein the storage request comprises storage path information;
and responding to the storage request, and storing the target flow definition file according to the storage path information.
7. The method of claim 1, wherein the initially defined flow comprises a flow that includes loop semantics.
8. A flow dynamic modification apparatus comprising:
a first obtaining module, configured to, in a case where a first process instance is executed according to an initially defined process, suspend execution of the first process instance in response to a process modification request generated by a first processing node, where the initially defined process includes the first processing node and a second processing node, the second processing node being a downstream node of the first processing node, and the process modification request includes attribute information of a target temporary processing node;
the generating module is configured to generate a target definition flow according to the attribute information and the initial definition flow, so that a target temporary processing node corresponding to the attribute information executes the first process instance according to the target definition flow, where the target definition flow includes the target temporary processing node and the second processing node, and the second processing node is a node downstream of the target temporary processing node.
9. A computer system, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 7.
10. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 7.
CN202210057177.XA 2022-01-18 2022-01-18 Method, device, system and storage medium for dynamically modifying flow Pending CN116503005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210057177.XA CN116503005A (en) 2022-01-18 2022-01-18 Method, device, system and storage medium for dynamically modifying flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210057177.XA CN116503005A (en) 2022-01-18 2022-01-18 Method, device, system and storage medium for dynamically modifying flow

Publications (1)

Publication Number Publication Date
CN116503005A true CN116503005A (en) 2023-07-28

Family

ID=87318889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210057177.XA Pending CN116503005A (en) 2022-01-18 2022-01-18 Method, device, system and storage medium for dynamically modifying flow

Country Status (1)

Country Link
CN (1) CN116503005A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117078212A (en) * 2023-10-07 2023-11-17 腾讯科技(深圳)有限公司 Business process processing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117078212A (en) * 2023-10-07 2023-11-17 腾讯科技(深圳)有限公司 Business process processing method and device, electronic equipment and storage medium
CN117078212B (en) * 2023-10-07 2024-01-26 腾讯科技(深圳)有限公司 Business process processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9178746B2 (en) Browser-based fetch of external libraries
US10122598B2 (en) Subscription watch lists for event handling
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN111598575B (en) Business process control method, business process control device, electronic equipment and readable storage medium
CN111950249B (en) Message generation method and device, electronic equipment and storage medium
US20130007377A1 (en) Message oriented middleware with integrated rules engine
CN116503005A (en) Method, device, system and storage medium for dynamically modifying flow
CN107657155B (en) Method and device for authenticating user operation authority
CN116701053B (en) Method, device, equipment and medium for restoring data backup of production environment database
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
US20120331486A1 (en) Selective link aggregation in a virtualized environment
US9378123B2 (en) Testing of transaction tracking software
CN112506781B (en) Test monitoring method, device, electronic equipment, storage medium and program product
CN111859403B (en) Dependency vulnerability determination method and device, electronic equipment and storage medium
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN112182400B (en) Message processing method, message processing device, electronic equipment and storage medium
CN111580882B (en) Application program starting method, device, computer system and medium
CN113132400A (en) Business processing method, device, computer system and storage medium
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN113176907A (en) Interface data calling method and device, computer system and readable storage medium
CN115333871B (en) Firewall operation and maintenance method and device, electronic equipment and readable storage medium
CN114268558B (en) Method, device, equipment and medium for generating monitoring graph
CN115484149B (en) Network switching method, network switching device, electronic equipment and storage medium
CN111914065B (en) Short message content verification method, device, computer system and computer readable medium
CN112749042B (en) Application running method and device

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