[go: up one dir, main page]

CN114493287A - Process activity node iteration method, device and computer equipment - Google Patents

Process activity node iteration method, device and computer equipment Download PDF

Info

Publication number
CN114493287A
CN114493287A CN202210102529.9A CN202210102529A CN114493287A CN 114493287 A CN114493287 A CN 114493287A CN 202210102529 A CN202210102529 A CN 202210102529A CN 114493287 A CN114493287 A CN 114493287A
Authority
CN
China
Prior art keywords
node
active
active node
area
target
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
CN202210102529.9A
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.)
Beijing Rope Is Systems Technology LLC
Original Assignee
Beijing Rope Is Systems Technology LLC
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 Beijing Rope Is Systems Technology LLC filed Critical Beijing Rope Is Systems Technology LLC
Priority to CN202210102529.9A priority Critical patent/CN114493287A/en
Publication of CN114493287A publication Critical patent/CN114493287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a flow activity node iteration method, a flow activity node iteration device and computer equipment, relates to the technical field of flow control, and is used for improving the iteration efficiency of a flow. The method mainly comprises the following steps: acquiring the positions corresponding to an active node and a logic node in a target service process respectively; dividing the active nodes into a plurality of active node areas according to the positions of the logic nodes; determining a currently executed active node area according to the position of a currently executed active node in a target business process; when the current execution active node generates feedback data, acquiring a target active node corresponding to the feedback data; setting all active nodes in an active node area corresponding to the target active node as an execution state; and the target activity node determines the data content according to the feedback data and transmits the data content to a downstream activity node of the target activity node according to the flow sequence of the target business flow to continue executing.

Description

流程活动节点迭代方法、装置、计算机设备Process activity node iteration method, device and computer equipment

技术领域technical field

本申请涉及流程控制技术领域,尤其涉及一种流程活动节点迭代方法、装置、计算机设备及存储介质。The present application relates to the technical field of process control, and in particular, to a process activity node iteration method, apparatus, computer device and storage medium.

背景技术Background technique

随着业务复杂度的增高,客户端差异化、个性化要求的不断增强,所涉及的流程控制节点和流程控制复杂度也在不断提高。传统的技术流程,流程下的活动分为并行和串行,串行即有先后关系,上游活动节点结束后下游活动节点开始。实际的流程执行过程中,需要进行迭代,上游活动节点未结束时,下游活动节点先开展工作,下游活动节点及时对上游活动节点进行反馈,上游活动节点根据反馈进行迭代,下游活动节点根据迭代结果重新开展工作,如此循环,直至最终结果满足需求。With the increase of business complexity and the continuous enhancement of client differentiation and personalized requirements, the involved process control nodes and process control complexity are also increasing. In the traditional technical process, the activities under the process are divided into parallel and serial, and the serial has a sequential relationship. After the upstream active node ends, the downstream active node starts. In the actual process execution process, iteration is required. When the upstream activity node is not over, the downstream activity node starts work first, and the downstream activity node provides feedback to the upstream activity node in time. The upstream activity node iterates according to the feedback, and the downstream activity node according to the iteration result. Re-start the work, and so on, until the end result meets the needs.

但是,在实际的流程执行过程中,上游活动节点定版再给下游,下游活动节点算出来不行就重启整个流程,效率太低,周期太长。However, in the actual process execution process, the upstream active node is finalized and then sent to the downstream, and the downstream active node restarts the entire process if the downstream active node calculates that it is not good, the efficiency is too low, and the cycle is too long.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种流程活动节点迭代方法、装置、计算机设备及存储介质,用于提高流程的迭代效率。Embodiments of the present application provide an iterative method, apparatus, computer device, and storage medium for process activity nodes, which are used to improve the iterative efficiency of the process.

本发明实施例提供一种流程活动节点迭代方法,所述方法包括:An embodiment of the present invention provides an iterative method for process activity nodes, and the method includes:

获取目标业务流程中活动节点和逻辑节点分别对应的位置;Obtain the corresponding positions of the active node and the logical node in the target business process;

根据所述逻辑节点的位置,将所述活动节点划分为多个活动节点区域,每个活动节点区域对应有位置标识信息,且每个所述活动节点区域内至少包括一个活动节点;According to the position of the logical node, the active node is divided into a plurality of active node areas, each active node area corresponds to location identification information, and each active node area includes at least one active node;

根据所述目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域;其中,除所述当前执行的活动节点区域内的活动节点之后的节点为等待状态;According to the position of the current execution active node in the target business process, determine the currently executed active node area; wherein, the node after the active node in the currently executed active node area is in a waiting state;

在所述当前执行活动节点产生反馈数据时,获取所述反馈数据所对应的目标活动节点;所述目标活动节点是所述当前执行活动节点的上游活动节点;When the current execution activity node generates feedback data, obtain the target activity node corresponding to the feedback data; the target activity node is the upstream activity node of the current execution activity node;

将所述目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态;Setting all active nodes in the active node area corresponding to the target active node to the execution state;

所述目标活动节点根据所述反馈数据确定数据内容,并根据所述目标业务流程的流程顺序将所述数据内容传输至所述目标活动节点的下游活动节点继续执行。The target activity node determines data content according to the feedback data, and transmits the data content to the downstream activity node of the target activity node according to the flow sequence of the target business process to continue execution.

本发明实施例提供一种流程活动节点迭代装置,所述装置包括:An embodiment of the present invention provides a process activity node iteration device, the device comprising:

获取模块,用于获取目标业务流程中活动节点和逻辑节点分别对应的位置;an obtaining module, used to obtain the corresponding positions of the active node and the logical node in the target business process;

划分模块,用于根据所述逻辑节点的位置,将所述活动节点划分为多个活动节点区域,每个活动节点区域对应有位置标识信息,且每个所述活动节点区域内至少包括一个活动节点;A division module, configured to divide the active node into a plurality of active node areas according to the position of the logical node, each active node area corresponds to location identification information, and each active node area includes at least one active node area node;

确定模块,用于根据所述目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域;其中,除所述当前执行的活动节点区域内的活动节点之后的节点均为等待状态;A determination module, configured to determine the currently executed active node area according to the position of the currently executed active node in the target business process; wherein, the nodes after the active node in the currently executed active node area are all waiting states;

所述获取模块,还用于在所述当前执行活动节点产生反馈数据时,获取所述反馈数据所对应的目标活动节点;所述目标活动节点是所述当前执行活动节点的上游活动节点;The acquisition module is further configured to acquire a target activity node corresponding to the feedback data when the current execution activity node generates feedback data; the target activity node is an upstream activity node of the current execution activity node;

设置模块,用于将所述目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态;a setting module for setting all active nodes in the active node area corresponding to the target active node to the execution state;

迭代模块,用于所述目标活动节点根据所述反馈数据确定数据内容,并根据所述目标业务流程的流程顺序将所述数据内容传输至所述目标活动节点的下游活动节点继续执行。一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述流程活动节点迭代方法。The iterative module is used for the target activity node to determine data content according to the feedback data, and to transmit the data content to the downstream activity node of the target activity node according to the flow sequence of the target business process for continuous execution. A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the above-mentioned method for iterating on an active node of a process when the processor executes the computer program.

一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述流程活动节点迭代方法。A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the above process activity node iteration method.

本申请提供一种流程活动节点迭代方法、装置、计算机设备及存储介质,首先获取目标业务流程中活动节点和逻辑节点分别对应的位置,然后根据逻辑节点的位置,将活动节点划分为多个活动节点区域,根据目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域,在当前执行活动节点产生反馈数据时,获取反馈数据所对应的目标活动节点,将目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态;目标活动节点根据反馈数据确定数据内容,并根据目标业务流程的流程顺序将数据内容传输至目标活动节点的下游活动节点继续执行。相对于现有下游活动节点存在反馈数据时,需要重新启动流程方式,本申请根据流程的执行过程,在当前执行活动节点产生反馈数据至目标活动节点时,将目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态,从而通过本申请在确定出现反馈数据时,无需重启整个流程,仅需要将对应的活动节点区域重新设置为执行状态即可,进而本申请满足了并行迭代流程中活动节点的执行需求,提高了流程的迭代效率。The present application provides an iterative method, device, computer equipment and storage medium for process activity nodes. First, the corresponding positions of the activity nodes and logical nodes in the target business process are obtained, and then the activity nodes are divided into multiple activities according to the positions of the logical nodes. Node area, according to the position of the current execution activity node in the target business process, determine the currently executed activity node area, when the current execution activity node generates feedback data, obtain the target activity node corresponding to the feedback data, and assign the activity corresponding to the target activity node. All active nodes in the node area are set to the execution state; the target active node determines the data content according to the feedback data, and transmits the data content to the downstream active node of the target active node according to the process sequence of the target business process to continue execution. When there is feedback data relative to the existing downstream active node, the process mode needs to be restarted. According to the execution process of the process, when the current executing active node generates feedback data to the target active node, the active node area corresponding to the target active node is stored. All the active nodes of the node are set to the execution state, so that the application does not need to restart the entire process when it is determined that feedback data occurs, and only needs to reset the corresponding active node area to the execution state. The execution requirements of active nodes improve the iterative efficiency of the process.

附图说明Description of drawings

图1为本申请提供的一种流程活动节点迭代方法流程图;1 is a flowchart of a process activity node iteration method provided by the application;

图1a为本申请提供的一种目标业务流程示意图;1a is a schematic diagram of a target business process provided by the application;

图2为本申请提供的另一种流程活动节点迭代方法流程图;2 is a flowchart of another process activity node iteration method provided by the present application;

图2a为本申请提供的一种目标业务流程示意图;2a is a schematic diagram of a target business process provided by the application;

图3为本申请提供的又一种流程活动节点迭代方法流程图;3 is a flowchart of another process activity node iteration method provided by the present application;

图4为本申请提供的流程活动节点迭代装置的结构示意图;4 is a schematic structural diagram of a process activity node iteration device provided by the present application;

图5为本申请提供的计算机设备的一种示意图。FIG. 5 is a schematic diagram of a computer device provided by the present application.

具体实施方式Detailed ways

为了更好的理解上述技术方案,下面通过附图以及具体实施例对本申请实施例的技术方案做详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请实施例技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本申请实施例以及实施例中的技术特征可以相互组合。In order to better understand the above technical solutions, the technical solutions of the embodiments of the present application will be described in detail below with reference to the accompanying drawings and specific embodiments. The detailed description is not intended to limit the technical solutions of the present application, and the embodiments of the present application and the technical features in the embodiments may be combined with each other without conflict.

请参阅图1,本发明实施例提供的一种流程活动节点迭代方法,该方法具体包括步骤S101-步骤S105:Referring to FIG. 1 , an iterative method for process activity nodes provided by an embodiment of the present invention specifically includes steps S101 to S105:

步骤S101,获取目标业务流程中活动节点和逻辑节点分别对应的位置。In step S101, the respective positions corresponding to the active node and the logical node in the target business process are acquired.

其中,活动节点为需要进行执行动作的节点,活动节点需要人的参与。本实施例中的活动节点是否执行不由上游活动节点决定,而是由活动节点所对应的活动节点区域来确定。逻辑节点包括AND、OR、判断节点,逻辑节点不需要人的参与,是否执行由上游节点驱动;逻辑节点完成后会驱动下游节点。Among them, the active node is a node that needs to perform an action, and the active node requires the participation of people. Whether the active node is executed in this embodiment is not determined by the upstream active node, but determined by the active node area corresponding to the active node. Logical nodes include AND, OR, and judgment nodes. Logical nodes do not require human participation, and whether to execute is driven by upstream nodes; after the logical nodes are completed, they will drive downstream nodes.

在本实施例中,每个节点会对应有节点类型,通过该节点类型可以确定业务流程中各节点所属的类型,若节点类型为活动节点,则说明对应的节点为活动节点;若节点类型为逻辑节点,则说明对应的节点为逻辑节点。In this embodiment, each node will correspond to a node type, and the type of each node in the business process can be determined by the node type. If the node type is an active node, it means that the corresponding node is an active node; if the node type is logical node, it means that the corresponding node is a logical node.

步骤S102,根据逻辑节点的位置,将活动节点划分为多个活动节点区域。Step S102: Divide the active node into a plurality of active node areas according to the position of the logical node.

其中,每个活动节点区域对应有位置标识信息,且每个所述活动节点区域内至少包括一个活动节点。位置标识信息用于标识活动节点区域所对应的排列顺序,该位置标识信息具体可以通过1-N进行表示。Wherein, each active node area corresponds to location identification information, and each active node area includes at least one active node. The location identification information is used to identify the arrangement order corresponding to the active node area, and the location identification information may be specifically represented by 1-N.

在本申请提供的一个可选实施例中,所述根据所述逻辑节点的位置,将所述活动节点划分为多个活动节点区域,包括:In an optional embodiment provided by the present application, according to the location of the logical node, the active node is divided into multiple active node areas, including:

S1021,将第1个逻辑节点之前的所有活动节点确定为第1活动节点区域内的节点,所述第一活动节点区域的位置标识信息为1;S1021, determining all active nodes before the first logical node as nodes in the first active node area, and the location identification information of the first active node area is 1;

S1022,将第N个逻辑节点至第N+1个逻辑节点之间的所有活动节点确定为第N+1活动节点区域;所述第N活动节点区域的位置标识信息为N;所述N大于等于1;S1022: Determine all active nodes between the Nth logical node to the N+1th logical node as the N+1th active node area; the location identification information of the Nth active node area is N; the N is greater than is equal to 1;

S1023,将最后1个逻辑节点之后的所有活动节点确定为第M活动节点区域内的节点,所述第M活动节点区域的位置标识信息为M,所述M大于所述N+1。S1023: Determine all active nodes after the last logical node as nodes in the Mth active node area, where the location identification information of the Mth active node area is M, where M is greater than the N+1.

例如,目标业务流程中包括3个逻辑节点,则将第1个逻辑节点之前的所有活动节点确定为第1活动节点区域内的节点,该第一活动节点区域的位置标识信息为1,将第1个逻辑节点和第2个逻辑节点之间的所有活动节点确定为第2活动节点区域,该第二活动节点区域的位置标识信息为2,将第3个逻辑节点之后的所有活动节点确定为第3活动节点区域,该第3活动节点区域的位置标识信息为3。For example, if the target business process includes 3 logical nodes, all active nodes before the first logical node are determined as nodes in the first active node area, the location identification information of the first active node area is 1, and the first active node area is set to 1. All active nodes between the first logical node and the second logical node are determined as the second active node area, the location identification information of the second active node area is 2, and all active nodes after the third logical node are determined as The third active node area, the location identification information of the third active node area is 3.

步骤S103,根据目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域。Step S103, according to the position of the currently executing active node in the target business process, determine the area of the currently executing active node.

其中,当前执行的活动节点区域内的所有活动节点均为执行状态,除所述当前执行的活动节点区域内的活动节点之后的节点均为等待状态。等待状态:包括但不限于未激活、未发布、未下发执行状态:执行状态包括但不限于未接受、已发布、已下发、进行中,本实施例对此不做具体限定。Wherein, all the active nodes in the currently executing active node area are in the executing state, and the nodes after the active nodes in the currently executing active node area are all in the waiting state. Waiting status: including but not limited to inactive, unpublished, and unissued Execution status: Execution status includes but not limited to unaccepted, published, issued, and in progress, which is not specifically limited in this embodiment.

需要说明的是,本实施例中的目标业务流程中的节点都对应有先后执行顺序,因此根据当前执行活动节点的位置,可以确定当前执行的活动节点区域。其中当前执行活动节点可以为活动节点,也可以为逻辑节点,若当前执行活动节点为活动节点,则根据当前执行活动节点的位置,确定对应的当前执行的活动节点区域。例如,目标业务流程中第1活动节点区域内包括3个活动节点,若当前执行活动节点为第1个活动节点,则确定当前执行的为第1活动节点区域。It should be noted that the nodes in the target business process in this embodiment have corresponding execution sequences, so the currently executing active node area can be determined according to the position of the currently executing active node. The currently executing active node may be an active node or a logical node. If the current executing active node is an active node, the corresponding currently executing active node area is determined according to the position of the currently executing active node. For example, the first active node area in the target business process includes three active nodes, and if the currently executing active node is the first active node, it is determined that the current executing active node area is the first active node area.

步骤S104,在当前执行活动节点产生反馈数据时,获取反馈数据所对应的目标活动节点;所述目标活动节点是当前执行活动节点的上游活动节点。Step S104 , when the current executing active node generates feedback data, obtain the target active node corresponding to the feedback data; the target active node is the upstream active node of the current executing active node.

如图1a所示的目标业务流程,当前执行活动节点为活动节点6,若活动节点6产生反馈数据,则根据该目标业务流程的流程转向配置,确定活动节点6对应的目标活动节点(活动节点2),该目标活动节点即活动节点需要进行反馈数据的活动节点。The target business process shown in Figure 1a, the currently executing active node is the active node 6, if the active node 6 generates feedback data, then according to the process steering configuration of the target business process, the target active node (active node) corresponding to the active node 6 is determined. 2), the target active node is the active node that the active node needs to feed back data.

步骤S105,将目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态。Step S105, setting all active nodes in the active node area corresponding to the target active node to the execution state.

如图1a所示,由于当前执行活动节点为活动节点6,也就是说逻辑节点1至逻辑节点2之间的活动节点(活动节点5和活动节点6)为执行状态,而逻辑节点1之前的活动节点为执行完成状态,因此本实施例在获取到需要反馈的目标活动节点之后,需要将该目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态,即将逻辑节点之前的活动节点设置为执行状态,使得活动节点2基于接收到的活动节点6的反馈数据重新制定数据内容。As shown in Figure 1a, since the current execution active node is active node 6, that is to say, the active nodes (active node 5 and active node 6) between logical node 1 and logical node 2 are in the execution state, while the previous active node of logical node 1 is in the execution state. The active node is in the execution completed state. Therefore, after obtaining the target active node that needs to be fed back in this embodiment, all active nodes in the active node area corresponding to the target active node need to be set to the execution state, that is, the active node before the logical node. Set to the execution state, so that the active node 2 reformulates the data content based on the received feedback data of the active node 6 .

需要说明的是,本实施例中反馈数据以及数据内容是根据实际的业务流程确定的,即对于不同的业务流程,对应的活动节点可能产生不同的反馈数据,然后目标活动节点基于反馈数据重新确定相应的数据内容,该数据内容可以为目标活动节点对应的管理人员重新修改的内容,也可以不对之前的内容进行修改。It should be noted that, in this embodiment, the feedback data and data content are determined according to the actual business process, that is, for different business processes, corresponding active nodes may generate different feedback data, and then the target active node is re-determined based on the feedback data. Corresponding data content, the data content may be the content re-modified by the administrator corresponding to the target active node, or the previous content may not be modified.

步骤S106,目标活动节点根据反馈数据确定数据内容,并根据目标业务流程的流程顺序将数据内容传输至目标活动节点的下游活动节点继续执行。Step S106, the target activity node determines the data content according to the feedback data, and transmits the data content to the downstream activity node of the target activity node according to the flow sequence of the target business process to continue execution.

在本实施例中,在目标活动节点获取到反馈数据后,将当前执行活动节点更新为目标活动节点,然后基于目标活动节点是否对之前的数据进行修改,选择不同的流程顺序进行执行。如图1a所示,若活动节点2确定的数据内容跟之前设置的数据内容不同,则在活动节点2之后执行的流程顺序为:活动节点3和/或活动节点4->活动节点5->活动节点6,若重新执行的活动节点6没有反馈数据,则再顺序执行活动节点7;若活动节点2确定的数据内容跟之前设置的数据内容相同,则活动节点2直接向活动节点6发送确认数据,告知活动节点6之前的数据内容不做修改,不再进行迭代。In this embodiment, after the target activity node obtains the feedback data, the current execution activity node is updated to the target activity node, and then different process sequences are selected for execution based on whether the target activity node modifies the previous data. As shown in Figure 1a, if the data content determined by active node 2 is different from the previously set data content, the sequence of processes executed after active node 2 is: active node 3 and/or active node 4 -> active node 5 -> Active node 6, if the re-executed active node 6 has no feedback data, then execute active node 7 in sequence; if the data content determined by active node 2 is the same as the previously set data content, active node 2 directly sends confirmation to active node 6 data, and inform the active node 6 that the previous data content will not be modified and will not be iterated.

需要说明的是,若当前执行活动节点产生反馈数据,且反馈数据所对应的目标活动节点与当前执行活动节点不在一个活动节点区域,则将目标活动节点所在区域的活动节点都设置为执行状态;若反馈数据所对应的目标活动节点与当前执行活动节点在一个活动节点区域,即目标活动节点同样也是执行状态,此时无需进行活动节点的状态设置。It should be noted that if the current execution activity node generates feedback data, and the target activity node corresponding to the feedback data and the current execution activity node are not in the same activity node area, the activity nodes in the area where the target activity node is located are set to the execution state; If the target active node corresponding to the feedback data and the current executing active node are in the same active node area, that is, the target active node is also in the executing state, and the state setting of the active node is not required at this time.

例如,设计一个坦克上的作战部(目标活动节点),该作战部要求威力达到X;按流程总体先设计,会给出一个技术要求,重量不超过Y,尺寸不超过Z;机关枪部按这个要求设计,发现这个尺寸无法达到威力要求,所以给总体反馈,要求尺寸加大重量加大;作战部接到反馈后发现确实如此,重新设计尺寸和重量(这个过程中很可能需要减少其他部分的尺寸和重量)。For example, to design a combat department (target activity node) on a tank, the combat department requires the power to reach X; according to the overall design of the process, a technical requirement will be given, the weight does not exceed Y, the size does not exceed Z; the machine gun department press this Requested the design and found that the size could not meet the power requirements, so gave the overall feedback, requiring the size to be increased and the weight to be increased; after receiving the feedback, the War Department found that it was indeed the case, and redesigned the size and weight (it is likely to reduce the size of other parts in this process. size and weight).

本申请实施例提供一种流程活动节点迭代方法,首先获取目标业务流程中活动节点和逻辑节点分别对应的位置,然后根据逻辑节点的位置,将活动节点划分为多个活动节点区域,根据目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域,在当前执行活动节点产生反馈数据时,获取反馈数据所对应的目标活动节点,将目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态;目标活动节点根据反馈数据确定数据内容,并根据目标业务流程的流程顺序将数据内容传输至目标活动节点的下游活动节点继续执行。相对于现有下游活动节点存在反馈数据时,需要重新启动流程方式,本申请根据流程的执行过程,在当前执行活动节点产生反馈数据至目标活动节点时,将目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态,从而通过本申请在确定出现反馈数据时,无需重启整个流程,仅需要将对应的活动节点区域重新设置为执行状态即可,进而本申请满足了并行迭代流程中活动节点的执行需求,提高了流程的迭代效率。An embodiment of the present application provides an iterative method for process activity nodes. First, the corresponding positions of the activity nodes and the logical nodes in the target business process are obtained, and then according to the positions of the logical nodes, the activity nodes are divided into multiple activity node areas. The position of the current execution activity node in the process, determine the current execution activity node area, when the current execution activity node generates feedback data, obtain the target activity node corresponding to the feedback data, and convert all activities in the activity node area corresponding to the target activity node The node is set to the execution state; the target activity node determines the data content according to the feedback data, and transmits the data content to the downstream activity node of the target activity node according to the flow sequence of the target business process to continue execution. When there is feedback data relative to the existing downstream active node, the process mode needs to be restarted. According to the execution process of the process, when the current executing active node generates feedback data to the target active node, the active node area corresponding to the target active node is stored. All the active nodes of the node are set to the execution state, so that the application does not need to restart the entire process when it is determined that feedback data occurs, and only needs to reset the corresponding active node area to the execution state. The execution requirements of active nodes improve the iterative efficiency of the process.

请参阅图2,本发明实施例提供的一种流程活动节点迭代方法,在步骤S103之后,该方法还可以包括:Referring to FIG. 2, an iterative method for process activity nodes provided by an embodiment of the present invention, after step S103, the method may further include:

步骤S104,在当前执行活动节点没有反馈数据时,根据当前执行的活动节点区域内活动节点的执行状态及末尾逻辑节点的内容信息,以及当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域。Step S104, when the current execution activity node has no feedback data, according to the execution state of the activity node in the current execution activity node area and the content information of the end logical node, and the position identification information of the currently executed activity node area, determine the next activity. Node area.

在本申请提供的一个可选实施例中,所述根据所述当前执行的活动节点区域内活动节点的执行状态及末尾逻辑节点的逻辑信息,以及所述当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域,包括:In an optional embodiment provided by this application, the execution state of the active node in the currently executing active node area and the logic information of the last logical node, and the location identification information of the currently executing active node area , to determine the next active node area, including:

1041、若逻辑信息为与关系,则在确定当前执行的活动节点区域内所有活动节点执行完成后,根据当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域。1041. If the logical information is an AND relationship, after determining that the execution of all active nodes in the currently executing active node area is completed, determine the next active node area according to the location identification information of the currently executing active node area.

如图2a所示的目标业务流程示意图,若图中的逻辑节点为AND,当前执行的活动节点区域的位置标识信息为1,则在确定当前执行的活动节点区域内活动节点1-活动节点4均执行完成后,则确定下一个活动节点区域的位置标识信息为2。As shown in the schematic diagram of the target business process shown in Figure 2a, if the logical node in the figure is AND, and the location identification information of the currently executed active node area is 1, then the active node 1-active node 4 in the currently executed active node area is determined. After all executions are completed, it is determined that the location identification information of the next active node area is 2.

1042、若逻辑信息为或关系,则在确定当前执行的活动节点区域内多个并行的活动节点中任一节点执行完成后,根据当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域。1042. If the logical information is an OR relationship, after determining that any node in the multiple parallel active nodes in the active node area currently executing is completed, determine the next active node according to the location identification information of the active node area currently executing. area.

如图2a所示的目标业务流程示意图,若图中的逻辑节点为OR,当前执行的活动节点区域的位置标识信息为1,则将在确定当前执行的活动节点区域内活动节点1、活动节点2、和活动节点3执行完成后,或活动节点1、活动节点2、和活动节点4执行完成后,则确定下一个活动节点区域的位置标识信息为2。As shown in the schematic diagram of the target business process as shown in Figure 2a, if the logical node in the figure is OR, and the location identification information of the currently executed active node area is 1, then the active node 1 and the active node in the currently executed active node area will be determined. 2. After the execution of the active node 3 is completed, or after the execution of the active node 1, the active node 2, and the active node 4 is completed, the location identification information of the next active node area is determined to be 2.

1043、若逻辑信息为预置判断内容,则在确定当前执行的活动节点区域内的活动节点满足预置判断内容后,根据当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域。1043. If the logic information is the preset judgment content, after determining that the active nodes in the currently executing active node area satisfy the preset judgment content, determine the next active node area according to the location identification information of the currently executing active node area.

如图2a所示的目标业务流程示意图,若逻辑节点对应的判断内容为活动节点3和活动节点4得到的结果相同,则在确定当前执行的活动节点区域内活动节点1-活动节点4均执行完成后,且活动节点3和活动节点4得到的结果相同时,确定下一个活动节点区域的标识信息为2。As shown in the schematic diagram of the target business process as shown in Figure 2a, if the judgment content corresponding to the logical node is that the results obtained by the active node 3 and the active node 4 are the same, then the active node 1 to the active node 4 are all executed in the area of the active node that is currently executed. After completion, and when the results obtained by the active node 3 and the active node 4 are the same, it is determined that the identification information of the next active node area is 2.

步骤S105,将下一个活动节点区域内的活动节点设置为执行状态。Step S105, setting the active node in the next active node area to the execution state.

本申请提供一种流程活动节点迭代方法,首先获取目标业务流程中活动节点和逻辑节点分别对应的位置,然后根据逻辑节点的位置,将活动节点划分为多个活动节点区域,每个活动节点区域对应有位置标识信息,且每个活动节点区域内至少包括一个活动节点,根据目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域,在当前执行活动节点没有反馈数据时,根据当前执行的活动节点区域内活动节点的执行状态及末尾逻辑节点的内容信息,以及当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域;将下一个活动节点区域内的活动节点设置为执行状态。相对于现有整体流程启动和分步流程驱动方式,本申请根据流程的执行过程,进行有针对性行的将活动节点区域内的活动节点设置为执行状态,从而通过本申请既可以满足有针对性的执行流程中的活动节点,又可以满足并行迭代流程中活动节点的执行需求。The present application provides an iterative method for process activity nodes. First, the corresponding positions of the activity nodes and the logic nodes in the target business process are obtained, and then the activity nodes are divided into a plurality of activity node areas according to the positions of the logic nodes. Each activity node area There is corresponding location identification information, and each active node area includes at least one active node. According to the position of the currently executing active node in the target business process, the currently executing active node area is determined. When the current executing active node has no feedback data, according to The execution status of the active node in the currently executed active node area and the content information of the last logical node, as well as the location identification information of the currently executed active node area, determine the next active node area; set the active node in the next active node area is the execution state. Compared with the existing overall process startup and step-by-step process driving methods, the present application sets the active nodes in the active node area to the execution state in a targeted manner according to the execution process of the process. It can also meet the execution requirements of the active nodes in the parallel iterative process.

请参阅图3,本发明实施例提供的另一种流程活动节点迭代方法,该方法具体包括步骤S301-步骤S306:Referring to FIG. 3, another method for iterative process activity nodes provided by an embodiment of the present invention specifically includes steps S301-S306:

步骤S301,确定目标业务流程是否对应有父节点。Step S301, determining whether the target business process corresponds to a parent node.

其中,目标业务流程的父节点为目标业务流程的上层节点,具体的本实施例可以通过节点层级标识可确定是否存在父节点,如目标业务流程对应的节点层级标识对应有1,则说明该目标业务流程对应有父节点,对应的父节点为1。例如,目标业务流程包括活动节点11、活动节点12和活动节点13,该目标业务流程对应的父节点为活动节点1。The parent node of the target business process is the upper-level node of the target business process. Specifically, in this embodiment, whether there is a parent node can be determined through the node level identifier. If the node level identifier corresponding to the target business process corresponds to 1, it means that the target The business process corresponds to a parent node, and the corresponding parent node is 1. For example, the target business process includes an active node 11 , an active node 12 and an active node 13 , and the parent node corresponding to the target business process is an active node 1 .

步骤S302,若否,则获取目标业务流程中活动节点和逻辑节点分别对应的位置。Step S302, if not, obtain the positions corresponding to the active node and the logical node respectively in the target business process.

在本实施例中,若目标业务流程没有对应的父节点,则直接获取目标业务流程是否对应有父节点。In this embodiment, if the target business process has no corresponding parent node, it is directly obtained whether the target business process has a corresponding parent node.

步骤S302B,若是,则获取父节点的状态信息,确定状态信息是否为执行状态。Step S302B, if yes, obtain the state information of the parent node, and determine whether the state information is the execution state.

其中,步骤S302和步骤S302B为并列的步骤,若目标业务流程有对应的父节点,则获取父节点的状态信息,该状态信息用于表示父节点所处的状态,具体包括执行状态、等待状态和编辑状态。Among them, step S302 and step S302B are parallel steps. If the target business process has a corresponding parent node, the state information of the parent node is obtained, and the state information is used to indicate the state of the parent node, including the execution state and the waiting state. and edit status.

本实施例在获取到父节点的状态信息后,确定该状态信息是否为执行状态,如果为执行状态,则跳转到步骤S302继续执行。In this embodiment, after acquiring the state information of the parent node, it is determined whether the state information is in the execution state, and if it is in the execution state, then jumps to step S302 to continue the execution.

步骤S302,若是,则获取目标业务流程中活动节点和逻辑节点分别对应的位置。Step S302, if yes, obtain the positions corresponding to the active node and the logical node respectively in the target business process.

进一步的,若父节点的状态信息为等待状态,则保持目标业务流程中所有的节点的等待状态。若父节点的状态信息为编辑状态,则确定无法驱动所述目标业务流程。Further, if the state information of the parent node is the waiting state, the waiting state of all nodes in the target business process is maintained. If the state information of the parent node is in the editing state, it is determined that the target business process cannot be driven.

步骤S303,根据逻辑节点的位置,将活动节点划分为多个活动节点区域。Step S303: Divide the active node into a plurality of active node areas according to the position of the logical node.

其中,每个活动节点区域对应有位置标识信息,且每个所述活动节点区域内至少包括一个活动节点。Wherein, each active node area corresponds to location identification information, and each active node area includes at least one active node.

步骤S304,根据目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域。Step S304 , according to the position of the currently executing active node in the target business process, determine the area of the currently executing active node.

其中,除所述当前执行的活动节点区域内的活动节点之外的节点均为等待状态。The nodes other than the active nodes in the currently executing active node area are all in a waiting state.

进一步的,由于会存在对当前执行的活动节点区域内插入新的活动节点,或是对当前执行的活动节点区域内某一个活动节点进行重启,因此本实施例在根据所述目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域之后,所述方法还包括:确定所述当前执行的活动节点区域内的活动节点是否均设置为执行状态;若否,则将所述当前执行的活动节点区域内没有设置执行状态的活动节点,设置为执行状态。Further, since there will be a new active node inserted into the currently executed active node area, or a certain active node in the currently executed active node area will be restarted, this embodiment is based on the target business process. After the position of the execution active node is determined, and the currently executed active node area is determined, the method further includes: determining whether the active nodes in the currently executed active node area are all set to the execution state; The active node that does not have an execution state set in the active node area of is set to the execution state.

步骤S305,在当前执行活动节点没有反馈数据时,根据当前执行的活动节点区域内活动节点的执行状态及末尾逻辑节点的内容信息,以及当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域。Step S305, when the current execution activity node does not have feedback data, according to the execution state of the activity node in the current execution activity node area and the content information of the end logical node, and the position identification information of the currently executed activity node area, determine the next activity. Node area.

步骤S306,将下一个活动节点区域内的活动节点设置为执行状态。Step S306, setting the active node in the next active node area to the execution state.

需要说明的是,本实施例中的步骤S302-步骤S306与图2中相应步骤的描述内容相同,本实施例在此不再赘述。It should be noted that, steps S302 to S306 in this embodiment are the same as the descriptions of the corresponding steps in FIG. 2 , and are not described again in this embodiment.

本申请提供一种流程活动节点迭代方法,本申请根据目标业务流程是否存在对应的父节点,以及父节点的状态信息和目标业务流程的执行过程,进行有针对性行的将活动节点区域内的活动节点设置为执行状态,从而通过本申请既可以满足有针对性的执行流程中的活动节点,又可以满足并行迭代流程中活动节点的执行需求。The present application provides an iterative method for process activity nodes. According to whether there is a corresponding parent node in the target business process, as well as the status information of the parent node and the execution process of the target business process, the present application performs a targeted line of operations in the area of the active node. The active node is set to the execution state, so that the present application can satisfy both the active node in the targeted execution process and the execution requirements of the active node in the parallel iterative process.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

在一实施例中,提供一种流程活动节点迭代装置,该流程活动节点迭代装置与上述实施例中流程活动节点迭代方法一一对应。如图4所示,所述流程活动节点迭代装置各功能模块详细说明如下:In one embodiment, an apparatus for iterating process activity nodes is provided, and the apparatus for iterating process activity nodes corresponds one-to-one with the method for iterating process activity nodes in the foregoing embodiment. As shown in Figure 4, the detailed description of each functional module of the process activity node iteration device is as follows:

获取模块41,用于获取目标业务流程中活动节点和逻辑节点分别对应的位置;The obtaining module 41 is used to obtain the positions corresponding to the active nodes and the logical nodes respectively in the target business process;

划分模块42,用于根据所述逻辑节点的位置,将所述活动节点划分为多个活动节点区域,每个活动节点区域对应有位置标识信息,且每个所述活动节点区域内至少包括一个活动节点;The division module 42 is configured to divide the active node into a plurality of active node areas according to the position of the logical node, each active node area corresponds to location identification information, and each active node area includes at least one active node area. active node;

确定模块43,用于根据所述目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域;其中,除所述当前执行的活动节点区域内的活动节点之后的节点均为等待状态;The determination module 43 is used to determine the currently executed active node area according to the position of the currently executed active node in the target business process; wherein, the nodes after the active node in the currently executed active node area are all waiting states ;

所述获取模块41,还用于在所述当前执行活动节点产生反馈数据时,获取所述反馈数据所对应的目标活动节点;所述目标活动节点是所述当前执行活动节点的上游活动节点;The acquiring module 41 is further configured to acquire the target active node corresponding to the feedback data when the current execution active node generates feedback data; the target active node is the upstream active node of the current execution active node;

设置模块44,用于将所述目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态;A setting module 44 is used to set all active nodes in the active node area corresponding to the target active node to the execution state;

迭代模块45,用于所述目标活动节点根据所述反馈数据确定数据内容,并根据所述目标业务流程的流程顺序将所述数据内容传输至所述目标活动节点的下游活动节点继续执行。The iterative module 45 is used for the target activity node to determine data content according to the feedback data, and to transmit the data content to the downstream activity node of the target activity node according to the flow sequence of the target business process for continued execution.

在一个可选实施例中,确定模块43,还用于在所述当前执行活动节点没有反馈数据时,根据所述当前执行的活动节点区域内活动节点的执行状态及末尾逻辑节点的内容信息,以及所述当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域;In an optional embodiment, the determining module 43 is further configured to, when the currently executing active node has no feedback data, according to the execution state of the active node in the currently executing active node area and the content information of the last logical node, And the position identification information of the active node area of the described current execution, determine the next active node area;

设置模块44,还用于将所述下一个活动节点区域内的活动节点设置为执行状态。The setting module 44 is further configured to set the active node in the next active node area to the execution state.

在一个可选实施例中,所述确定模块43,还用于确定所述目标业务流程是否对应有父节点;In an optional embodiment, the determining module 43 is further configured to determine whether the target business process corresponds to a parent node;

获取模块41,具体用于若所述目标业务流程没有父节点,则获取目标业务流程中活动节点和逻辑节点分别对应的位置。The obtaining module 41 is specifically configured to obtain the corresponding positions of the active node and the logical node in the target business process if the target business process has no parent node.

在一个可选实施例中,获取模块41,具体用于:In an optional embodiment, the obtaining module 41 is specifically used for:

若所述目标业务流程对应有父节点,则获取所述父节点的状态信息;If the target business process corresponds to a parent node, obtain the status information of the parent node;

若所述父节点的状态信息为执行状态,获取目标业务流程中活动节点和逻辑节点分别对应的位置;If the state information of the parent node is the execution state, obtain the respective positions of the active node and the logical node in the target business process;

若所述父节点的状态信息为等待状态,则保持所述目标业务流程中所有的节点的等待状态。If the state information of the parent node is a waiting state, the waiting state of all nodes in the target business process is maintained.

在一个可选实施例中,划分模块42,具体用于:In an optional embodiment, the dividing module 42 is specifically used for:

将第1个逻辑节点之前的所有活动节点确定为第1活动节点区域内的节点,所述第一活动节点区域的位置标识信息为1;All active nodes before the first logical node are determined as nodes in the first active node area, and the location identification information of the first active node area is 1;

将第N个逻辑节点至第N+1个逻辑节点之间的所有活动节点确定为第N+1活动节点区域;所述第N活动节点区域的位置标识信息为N;所述N大于等于1;Determine all active nodes between the Nth logical node to the N+1th logical node as the N+1th active node area; the location identification information of the Nth active node area is N; the N is greater than or equal to 1 ;

将最后1个逻辑节点之后的所有活动节点确定为第M活动节点区域内的节点,所述第M活动节点区域的位置标识信息为M,所述M大于所述N+1。All active nodes after the last logical node are determined as nodes in the Mth active node area, the location identification information of the Mth active node area is M, and the M is greater than the N+1.

在一个可选实施例中,所述确定模块43,具体用于:In an optional embodiment, the determining module 43 is specifically configured to:

若所述逻辑信息为与关系,则在确定所述当前执行的活动节点区域内所有活动节点执行完成后,根据所述当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域;If the logical information is an AND relationship, after determining that the execution of all active nodes in the currently executing active node area is completed, the next active node area is determined according to the location identification information of the currently executing active node area;

若所述逻辑信息为或关系,则在确定所述当前执行的活动节点区域内多个并行的活动节点中任一节点执行完成后,根据所述当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域;If the logical information is an OR relationship, after it is determined that any one of the multiple parallel active nodes in the currently executing active node area is executed, determine, according to the location identification information of the currently executing active node area, next active node area;

若所述逻辑信息为预置判断内容,则在确定所述当前执行的活动节点区域内的活动节点满足所述预置判断内容后,根据所述当前执行的活动节点区域的位置标识信息,确定下一个活动节点区域。If the logical information is the preset judgment content, after determining that the active nodes in the currently executing active node area satisfy the preset judgment content, determine according to the location identification information of the currently executing active node area The next active node area.

在一个可选实施例中,所述确定模块43,具体用于确定所述当前执行的活动节点区域内的活动节点是否均设置为执行状态;若否,则将所述当前执行的活动节点区域内没有设置执行状态的活动节点,设置为执行状态。In an optional embodiment, the determining module 43 is specifically configured to determine whether the active nodes in the currently executing active node area are all set to the execution state; if not, set the currently executing active node area An active node that does not have an execution state set within it is set to the execution state.

关于流程活动节点迭代装置的具体限定可以参见上文中对于流程活动节点迭代方法的限定,在此不再赘述。上述设备中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the apparatus for iterating the process activity node, reference may be made to the above definition of the method for iterating the process activity node, which will not be repeated here. Each module in the above device can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种流程活动节点迭代方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 5 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program when executed by a processor implements a process activity node iteration method.

在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor implements the following steps when executing the computer program:

获取目标业务流程中活动节点和逻辑节点分别对应的位置;Obtain the corresponding positions of the active node and the logical node in the target business process;

根据所述逻辑节点的位置,将所述活动节点划分为多个活动节点区域,每个活动节点区域对应有位置标识信息,且每个所述活动节点区域内至少包括一个活动节点;According to the position of the logical node, the active node is divided into a plurality of active node areas, each active node area corresponds to location identification information, and each active node area includes at least one active node;

根据所述目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域;其中,除所述当前执行的活动节点区域内的活动节点之后的节点为等待状态;According to the position of the current execution active node in the target business process, determine the currently executed active node area; wherein, the node after the active node in the currently executed active node area is in a waiting state;

在所述当前执行活动节点产生反馈数据时,获取所述反馈数据所对应的目标活动节点;所述目标活动节点是所述当前执行活动节点的上游活动节点;When the current execution activity node generates feedback data, obtain the target activity node corresponding to the feedback data; the target activity node is the upstream activity node of the current execution activity node;

将所述目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态;Setting all active nodes in the active node area corresponding to the target active node to the execution state;

所述目标活动节点根据所述反馈数据确定数据内容,并根据所述目标业务流程的流程顺序将所述数据内容传输至所述目标活动节点的下游活动节点继续执行。The target activity node determines data content according to the feedback data, and transmits the data content to the downstream activity node of the target activity node according to the flow sequence of the target business process to continue execution.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

获取目标业务流程中活动节点和逻辑节点分别对应的位置;Obtain the corresponding positions of the active node and the logical node in the target business process;

根据所述逻辑节点的位置,将所述活动节点划分为多个活动节点区域,每个活动节点区域对应有位置标识信息,且每个所述活动节点区域内至少包括一个活动节点;According to the position of the logical node, the active node is divided into a plurality of active node areas, each active node area corresponds to location identification information, and each active node area includes at least one active node;

根据所述目标业务流程中当前执行活动节点的位置,确定当前执行的活动节点区域;其中,除所述当前执行的活动节点区域内的活动节点之后的节点为等待状态;According to the position of the current execution active node in the target business process, determine the currently executed active node area; wherein, the node after the active node in the currently executed active node area is in a waiting state;

在所述当前执行活动节点产生反馈数据时,获取所述反馈数据所对应的目标活动节点;所述目标活动节点是所述当前执行活动节点的上游活动节点;When the current execution activity node generates feedback data, obtain the target activity node corresponding to the feedback data; the target activity node is the upstream activity node of the current execution activity node;

将所述目标活动节点对应的活动节点区域内的所有活动节点设置为执行状态;Setting all active nodes in the active node area corresponding to the target active node to the execution state;

所述目标活动节点根据所述反馈数据确定数据内容,并根据所述目标业务流程的流程顺序将所述数据内容传输至所述目标活动节点的下游活动节点继续执行。The target activity node determines data content according to the feedback data, and transmits the data content to the downstream activity node of the target activity node according to the flow sequence of the target business process to continue execution.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.

以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the present invention. within the scope of protection.

Claims (10)

1. A method for process activity node iteration, the method comprising:
acquiring the positions corresponding to an active node and a logic node in a target service process respectively;
dividing the active node into a plurality of active node areas according to the position of the logic node, wherein each active node area corresponds to position identification information and at least one active node is included in each active node area;
determining the currently executed active node area according to the position of the currently executed active node in the target business process; wherein, the nodes except the active nodes in the currently executed active node area are in a waiting state;
when the current execution active node generates feedback data, acquiring a target active node corresponding to the feedback data; the target active node is an upstream active node of the currently executing active node;
setting all active nodes in an active node area corresponding to the target active node as an execution state;
and the target activity node determines data content according to the feedback data and transmits the data content to a downstream activity node of the target activity node to continue execution according to the flow sequence of the target business flow.
2. The method of claim 1, further comprising:
when the currently executed active node has no feedback data, determining a next active node area according to the execution state of the active node in the currently executed active node area, the content information of the tail logic node and the position identification information of the currently executed active node area;
and setting the active nodes in the next active node area to be in an execution state.
3. The method of claim 1, wherein before obtaining the respective corresponding locations of the active node and the logical node in the target business process, the method further comprises:
determining whether the target business process corresponds to a father node;
the acquiring the positions corresponding to the active node and the logical node in the target service process respectively includes:
and if the target business process has no father node, acquiring the positions corresponding to the active node and the logic node in the target business process respectively.
4. The method of claim 3, further comprising:
if the target business process corresponds to a father node, acquiring the state information of the father node;
if the state information of the father node is an execution state, acquiring the positions corresponding to the active node and the logic node in the target business process respectively;
and if the state information of the father node is in a waiting state, keeping the waiting states of all the nodes in the target business process.
5. The method according to any of claims 1-4, wherein said dividing said active nodes into a plurality of active node zones according to the location of said logical node comprises:
determining all active nodes before the 1 st logical node as nodes in the 1 st active node area, wherein the position identification information of the first active node area is 1;
determining all active nodes between the Nth logical node and the (N + 1) th logical node as an (N + 1) th active node area; the position identification information of the Nth active node area is N; the N is more than or equal to 1;
and determining all active nodes after the last 1 logical node as nodes in an Mth active node area, wherein the position identification information of the Mth active node area is M, and M is greater than the N + 1.
6. The method according to claim 5, wherein the determining a next active node area according to the execution status of the active node in the currently executed active node area and the logic information of the end logic node, and the location identification information of the currently executed active node area comprises:
if the logic information is in an and relationship, after the execution of all the active nodes in the currently executed active node area is determined to be finished, determining the next active node area according to the position identification information of the currently executed active node area;
if the logic information is an OR relationship, determining a next active node area according to the position identification information of the currently executed active node area after determining that the execution of any node in a plurality of parallel active nodes in the currently executed active node area is finished;
if the logic information is preset judgment content, determining the next active node area according to the position identification information of the currently executed active node area after determining that the active nodes in the currently executed active node area meet the preset judgment content.
7. The method of claim 6, wherein after determining the currently executing active node area according to the location of the currently executing active node in the target business process, the method further comprises:
determining whether active nodes in the currently executed active node area are all set to be in an execution state;
if not, setting the active node which is not set with the execution state in the currently executed active node area as the execution state.
8. An apparatus for process activity node iteration, the apparatus comprising:
the acquisition module is used for acquiring the positions corresponding to the active node and the logic node in the target business process respectively;
the dividing module is used for dividing the active node into a plurality of active node areas according to the position of the logic node, each active node area corresponds to position identification information, and each active node area at least comprises one active node;
a determining module, configured to determine a currently executed active node area according to a position of a currently executed active node in the target business process; wherein, the nodes except the active nodes in the currently executed active node area are all in a waiting state;
the obtaining module is further configured to obtain a target active node corresponding to feedback data when the currently executing active node generates the feedback data; the target active node is an upstream active node of the currently executing active node;
a setting module, configured to set all active nodes in an active node area corresponding to the target active node to an execution state;
and the iteration module is used for determining the data content by the target activity node according to the feedback data and transmitting the data content to a downstream activity node of the target activity node to continue execution according to the flow sequence of the target business flow.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the process activity node iteration method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, implements the process activity node iteration method according to any one of claims 1 to 7.
CN202210102529.9A 2022-01-27 2022-01-27 Process activity node iteration method, device and computer equipment Pending CN114493287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210102529.9A CN114493287A (en) 2022-01-27 2022-01-27 Process activity node iteration method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210102529.9A CN114493287A (en) 2022-01-27 2022-01-27 Process activity node iteration method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN114493287A true CN114493287A (en) 2022-05-13

Family

ID=81476731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210102529.9A Pending CN114493287A (en) 2022-01-27 2022-01-27 Process activity node iteration method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN114493287A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370146B1 (en) * 1998-06-29 2002-04-09 Lucent Technologies Inc. Method and apparatus for non-disruptive addition of a new node to an inter-nodal network
CN1713192A (en) * 2004-06-25 2005-12-28 国际商业机器公司 Method and device for processing logic mode establishment and carrying out
US20100306733A1 (en) * 2009-06-01 2010-12-02 Bordelon Adam L Automatically Creating Parallel Iterative Program Code in a Data Flow Program
CN103530395A (en) * 2013-10-22 2014-01-22 金蝶软件(中国)有限公司 Data tracing method and device
US20150074150A1 (en) * 2013-09-11 2015-03-12 International Business Machines Corporation Data management via active and inactive table space containers
CN105808625A (en) * 2014-12-31 2016-07-27 航天信息软件技术有限公司 Document data processing method and device
CN109582380A (en) * 2017-09-26 2019-04-05 北京国双科技有限公司 A kind of Node Processing Method and device, storage medium, processor
CN109684051A (en) * 2018-12-17 2019-04-26 杭州玳数科技有限公司 A kind of method and system of the hybrid asynchronous submission of big data task
CN112181397A (en) * 2020-09-30 2021-01-05 平安科技(深圳)有限公司 Flow visualization monitoring method and device, computer equipment and storage medium
CN113051094A (en) * 2021-03-22 2021-06-29 中国工商银行股份有限公司 Supervision data submission testing method and device
CN114489855A (en) * 2022-01-27 2022-05-13 北京索为系统技术股份有限公司 Process node control method and device and computer equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370146B1 (en) * 1998-06-29 2002-04-09 Lucent Technologies Inc. Method and apparatus for non-disruptive addition of a new node to an inter-nodal network
CN1713192A (en) * 2004-06-25 2005-12-28 国际商业机器公司 Method and device for processing logic mode establishment and carrying out
US20100306733A1 (en) * 2009-06-01 2010-12-02 Bordelon Adam L Automatically Creating Parallel Iterative Program Code in a Data Flow Program
US20150074150A1 (en) * 2013-09-11 2015-03-12 International Business Machines Corporation Data management via active and inactive table space containers
CN103530395A (en) * 2013-10-22 2014-01-22 金蝶软件(中国)有限公司 Data tracing method and device
CN105808625A (en) * 2014-12-31 2016-07-27 航天信息软件技术有限公司 Document data processing method and device
CN109582380A (en) * 2017-09-26 2019-04-05 北京国双科技有限公司 A kind of Node Processing Method and device, storage medium, processor
CN109684051A (en) * 2018-12-17 2019-04-26 杭州玳数科技有限公司 A kind of method and system of the hybrid asynchronous submission of big data task
CN112181397A (en) * 2020-09-30 2021-01-05 平安科技(深圳)有限公司 Flow visualization monitoring method and device, computer equipment and storage medium
CN113051094A (en) * 2021-03-22 2021-06-29 中国工商银行股份有限公司 Supervision data submission testing method and device
CN114489855A (en) * 2022-01-27 2022-05-13 北京索为系统技术股份有限公司 Process node control method and device and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
惠怀海;梁工谦;马健诚;: "迭代创新模式与流程研究", 软科学, vol. 22, no. 01, 15 January 2008 (2008-01-15), pages 117 - 121 *

Similar Documents

Publication Publication Date Title
CN110569251B (en) Data processing method, related equipment and computer readable storage medium
CN110750267A (en) Service information updating method and device, computer equipment and storage medium
CN111628886B (en) Method, device and computer equipment for building blockchain network in private cloud environment
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
CN109525410A (en) The method, apparatus and distributed memory system of distributed memory system updating and management
CN111107120B (en) Redis cluster construction method and system
CN112470119A (en) Service upgrading method and device in distributed system and distributed system
CN110968647A (en) Data storage method, apparatus, computer equipment and storage medium
CN109739435B (en) File storage and updating method and device
CN112650812A (en) Data fragment storage method and device, computer equipment and storage medium
CN110933022A (en) Block processing method and device, computer equipment and storage medium
CN110231915B (en) Data management method, system, device, computer equipment and storage medium
CN112764897B (en) Task request processing method, device and system and computer readable storage medium
JP2017517087A (en) Database cluster data management method, node, and system
CN110969354A (en) Linear flow configuration method and device, computer equipment and storage medium
CN111459676A (en) Node resource management method, device and storage medium
CN113810216A (en) Cluster fault switching method and device and electronic equipment
CN111311254A (en) A blockchain-based business processing method, device and system
CN114880179B (en) Server virtualization pressure testing method, device, equipment and storage medium
CN110933192A (en) Local area network IP address allocation method, device, system, and computer equipment
CN114493287A (en) Process activity node iteration method, device and computer equipment
CN114328434B (en) Data processing system, method, device and storage medium
CN114489855B (en) Flow node control method and device and computer equipment
CN114866612A (en) Method and device for unloading power microservices
WO2020168505A1 (en) Method and apparatus for scheduling software tasks among multiple processors

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