CN107220811B - Method and device for activating nodes in process - Google Patents

Method and device for activating nodes in process Download PDF

Info

Publication number
CN107220811B
CN107220811B CN201710395468.9A CN201710395468A CN107220811B CN 107220811 B CN107220811 B CN 107220811B CN 201710395468 A CN201710395468 A CN 201710395468A CN 107220811 B CN107220811 B CN 107220811B
Authority
CN
China
Prior art keywords
process node
connecting line
state
node
line set
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.)
Expired - Fee Related
Application number
CN201710395468.9A
Other languages
Chinese (zh)
Other versions
CN107220811A (en
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.)
Hangzhou Dimai Information Technology Co ltd
Original Assignee
Hangzhou Dimai Information 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 Hangzhou Dimai Information Technology Co ltd filed Critical Hangzhou Dimai Information Technology Co ltd
Priority to CN201710395468.9A priority Critical patent/CN107220811B/en
Publication of CN107220811A publication Critical patent/CN107220811A/en
Application granted granted Critical
Publication of CN107220811B publication Critical patent/CN107220811B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for activating nodes in a process, wherein the method comprises the following steps: the current process node respectively activates the logic processing modes corresponding to the connecting lines in the outlet set; judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line; if the connecting line judges that the connecting line meets the activation condition, the state of the connecting line is changed into an activation state, and an activation notice is sent to a process node corresponding to the end point of the connecting line; and after the process node corresponding to the end point of the connecting line receives the activation notification, determining whether the process node is activated according to the current state of the incoming line set. The method abandons the traditional way of designing the flow facing the flow nodes, adopts the design taking the connecting line as the center, and can greatly simplify the complexity of the design and the realization of the flow.

Description

Method and device for activating nodes in process
Technical Field
The invention relates to the field of computer application, in particular to a method and a device for activating nodes in a process.
Background
The process is composed of a series of process nodes, the process nodes are the objects operated by a process processor, and whether to activate one or more subsequent links is determined according to different operations and running data of the process processor. At present, a common method for modeling a flow is centered on a flow node, and a condition for determining whether a next flow node is activated is also based on a logical relationship between nodes. However, in this implementation, the relationship between the process nodes is complex, which results in complex conditions for activating subsequent process nodes and is prone to errors.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method and an apparatus for activating nodes in a process, so as to solve the above problem.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for activating nodes in a process, which is applied to a process model, where the process model includes a plurality of process nodes and a plurality of connection lines, each process node corresponds to one incoming line set and one outgoing line set, the incoming line set corresponding to each process node is formed by a connection line using the process node as an endpoint, the outgoing line set corresponding to each process node is formed by a connection line using the process node as a starting point, and each connection line includes a starting point, an endpoint, and a corresponding logic processing method, where the method includes: the current process node respectively activates the logic processing modes corresponding to the connecting lines in the outlet set; judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line; if the connecting line judges that the connecting line meets the activation condition, the state of the connecting line is changed into an activation state, and an activation notice is sent to a process node corresponding to the end point of the connecting line; and after the process node corresponding to the end point of the connecting line receives the activation notification, determining whether the process node is activated according to the current state of the incoming line set.
In a second aspect, an embodiment of the present invention provides a device for activating nodes in a process, which is applied to a process model, where the process model includes a plurality of process nodes and a plurality of connection lines, each process node corresponds to one incoming line set and one outgoing line set, the incoming line set corresponding to each process node is formed by a connection line using the process node as an endpoint, the outgoing line set corresponding to each process node is formed by a connection line using the process node as a starting point, and each connection line includes a starting point, an endpoint, and a corresponding logic processing method, and the device includes: the activation module is used for respectively activating the logic processing modes corresponding to the connecting lines in the outlet set of the current process node; the judging module is used for judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line; the first processing module is used for changing the state of the connecting line into an activated state and sending an activation notice to a process node corresponding to the end point of the connecting line if the connecting line judges that the connecting line meets the activation condition; and the second processing module is used for determining whether the process node corresponding to the terminal point of the connecting line is activated or not according to the current state of the incoming line set after receiving the activation notification.
Compared with the prior art, the method and the device for activating the nodes in the process, provided by the embodiment of the invention, respectively activate the logic processing modes corresponding to the connecting lines in the outlet set of the current process node; judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line; if the connecting line judges that the connecting line meets the activation condition, the state of the connecting line is changed into an activation state, and an activation notice is sent to a process node corresponding to the end point of the connecting line; after receiving the activation notification, the process node corresponding to the terminal point of the connection line determines whether the connection line is activated according to the current state of the incoming line set.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a user terminal according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a process model according to an embodiment of the present invention.
Fig. 3 is a flowchart of a method for activating nodes in a process according to a first embodiment of the present invention.
Fig. 4 is a schematic diagram of an incoming line set and an outgoing line set of a flow node according to a first embodiment of the present invention.
Fig. 5 is a first flowchart of a method for node activation in a process according to a first embodiment of the present invention.
Fig. 6 is a second flowchart of a method for node activation in the process according to the first embodiment of the present invention.
Fig. 7 is a block diagram of an apparatus for node activation in a process according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "third", etc. are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows a block diagram of a user terminal 100 applicable to an embodiment of the present invention. As shown in fig. 1, the user terminal 100 includes a memory 102, a memory controller 104, one or more processors 106 (only one shown), a peripheral interface 108, a radio frequency module 110, an audio module 112, a touch screen 114, and the like. These components communicate with each other via one or more communication buses/signal lines 116.
The memory 102 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for node activation in the process according to the embodiment of the present invention, and the processor 106 executes various functional applications and data processing, such as the method for node activation in the process according to the embodiment of the present invention, by executing the software programs and modules stored in the memory 102.
The memory 102 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. Access to the memory 102 by the processor 106, and possibly other components, may be under the control of the memory controller 104.
The peripherals interface 108 couples various input/output devices to the processor 106 as well as to the memory 102. In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 110 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices.
Audio module 112 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry.
The touch screen 114 provides both an output and an input interface between the user terminal 100 and a user. In particular, the touch screen 114 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof.
It is to be understood that the structure shown in fig. 1 is merely illustrative, and that the user terminal 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 2, fig. 2 shows a schematic diagram of a process model. The process model includes 10 process nodes, which are { a, B,.. and H }, and applicants found that in the process model, if the process nodes are the processing objects, the relationships between all the process nodes must be recorded, for example, for a, the relationship between a and B, C, D is recorded, and for H, the relationship between H and E, F, I is recorded.
Further, the relationships between the various process nodes may be complex:
(1) there is a permutation and combination relationship of "and" or "between different process nodes. For example, if the H node is to be activated, the relationship "E node execution complete or (F node execution complete and I node execution complete)" needs to be recorded. Likewise, the "start condition for activation B, C, D" is recorded for the A node.
(2) Each flow node needs to record information of the preorder flow node and the subsequent flow node, namely, the direction relationship.
(3) The process model may be a structure of a net and not simply a tree. The subsequent node, e.g. the C node, may be the G node, i.e. corresponding to the scenario where the jump takes place.
Further, considering that the flow node also records data of the flow node itself, such as a handler, form data, processing time limit, processing logic, etc. of the flow node, the flow data structure designed for the flow node is definitely complex, and is a great challenge to design, algorithm, and maintenance.
The method for activating nodes in the process provided by the embodiment of the present invention may be executed in the user terminal 100 shown in fig. 1. Respectively activating logic processing modes corresponding to all connecting lines in an outlet set of the method through a current process node; judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line; if the connecting line judges that the connecting line meets the activation condition, the state of the connecting line is changed into an activation state, and an activation notice is sent to a process node corresponding to the end point of the connecting line; after receiving the activation notification, the process node corresponding to the terminal point of the connection line determines whether the connection line is activated according to the current state of the incoming line set.
The following describes the method for activating the node in the process in detail. The method for activating the nodes in the process is applied to a process model, the process model comprises a plurality of process nodes and a plurality of connecting lines, each process node corresponds to one incoming line set and one outgoing line set, the incoming line set corresponding to each process node is formed by connecting lines taking the process nodes as end points, the outgoing line set corresponding to each process node is formed by connecting lines taking the process nodes as starting points, and each connecting line comprises a starting point, an end point and a corresponding logic processing method. Each connecting line encapsulates the starting point of the connecting line, the end point of the connecting line and the corresponding logic processing method, the own logic processing mode is completed by the own internal operation and is not exposed outwards, so that the service logic is clearer, each connecting line only processes the own service logic, and the relation with other 'connection' is not considered, so that better encapsulation is realized. The method is very convenient for adding, modifying and deleting services such as skipping, rollback and the like in any process node, and only needs to establish a new connection and modify and delete the corresponding connection.
Fig. 3 is a flowchart illustrating a method for activating a node in a process according to a first embodiment of the present invention, referring to fig. 3, where the method for activating a node in a process is executed in the user terminal, and the method includes:
in step S210, the current process node activates the logic processing mode corresponding to each connection line in the outgoing line set.
Referring to fig. 4, if the current flow node is N, the outgoing line set of the current flow node N is { the connection line ND, the connection line NE.., and the connection line NF }, each connection line corresponds to a logic processing mode, and at this time, the outgoing line set is activated as a logic processing mode corresponding to each connection line in the { the connection line ND, the connection line NE.., and the connection line NF }.
There are various embodiments in which the current process node respectively activates the logic processing modes corresponding to the connection lines in the outgoing line set, for example, the current process node may simultaneously activate the logic processing modes corresponding to the connection lines in the outgoing line set; or the current flow node sequentially activates the logic processing mode corresponding to each connecting line in the outlet set.
As an implementation manner, if the outgoing line set corresponding to the current flow node is empty, the flow node is ended.
Step S220, each of the connection lines determines whether each of the connection lines satisfies an activation condition according to a corresponding logic processing manner.
Step S230, if the connection line determines that the connection line meets the activation condition, the connection line is changed to an activation state, and an activation notification is sent to a process node corresponding to the end point of the connection line.
Continuing with the description of fig. 4, whether each connection line satisfies the activation condition is sequentially determined according to the logic processing manner corresponding to each connection line in the outlet set { connection line ND, connection line NE., connection line NF }, and if the connection line ND satisfies the activation condition, the state of the flow node D corresponding to the end point of the connection line ND is changed to the activation state at this time, and an activation notification is sent to the flow node D corresponding to the end point of the connection line ND. It is understood that, at this time, the flow node D only receives the notification that the connecting line ND is activated, and is not equal to whether the flow node D is activated or not at this time, and further determination is needed.
Step S240, after the process node corresponding to the end point of the connection line receives the activation notification, determining whether the process node is activated according to the current state of the incoming line set.
Continuing with the description of FIG. 4, flow node D receives the notification that connection ND is activated, and is activated because flow node D has only one connection ND in its incoming line set.
Further, when the process node corresponding to the endpoint of the connection line corresponds to more than one connection line in the incoming line set, as an embodiment, please refer to fig. 5, where determining whether the connection line is activated according to the current state of the incoming line set includes:
step S250, determining the current state of the incoming line set according to the states of the connection lines in the incoming line set and the logical operation relationship between the connection lines.
As an embodiment, referring to fig. 6, step S250 may include:
and step S260, grouping each connecting line in the incoming line set.
The individual connection lines in the incoming line set may be grouped, where the grouping may be an or group and an and group. A group may also comprise a group, which is a recursive relationship.
The condition that "or" group status is defined as "active" is: the state of the group is active as long as there is one line (or group) in the group corresponding to the state being "active".
The condition that the and group status is defined as "active" is: the state of a group is active if and only if the connection state corresponding to all wires (or groups) within the group is "active".
For example, assume that the incoming line set of node 1 includes { L1, L2, L3, L4, L5, L6, L7, L8}, where the conditions to activate node 1 are: [ L1& & L2) | L3] & [ (L4& & L5& & L6) | | L7] & & L8, where & & represents an "and" relationship and | | | represents an "or" relationship.
According to the activation condition, the connection lines of the incoming line set can be grouped into 3 groups, which are respectively:
Go1:[(L1&&L2)||L3]
Go2:[(L4&&L5&&L6)||L7]
Go3:L8
it can be found that, at this time, the logical operation relationship between the three components Go1, Go2, Go3 is an and relationship, that is, the conditions that the incoming line set is an and group, and the state of the and group is defined as "active" are: as long as one line (or group) in the group corresponds to the state of "active", the group is active;
furthermore, inside the 3 packets, the sub-packets can be further divided into sub-packets. For example, Go1 may be further divided into Ga1 and Ga 2:
Ga1:(L1&&L2)
Ga2:L3
wherein, the logical operation relationship between Ga1 and Ga2 is an or relationship, the Go1 group is an or group, and the condition that the or group state is defined as "activated" is as follows: as long as one line (or group) in a group corresponds to a status of "active", that group is active.
Similarly, Go2 can be further divided into Ga3 and Ga 4:
Ga3:(L4&&L5&&L6)
Ga4:L7
wherein, the logical operation relationship between Ga3 and Ga4 is an OR relationship.
By analogy, Ga1, Ga3 may be divided again. And finally, the states of all the connecting lines contained in all the groups and the logic relation among all the connecting lines are obtained:
1) ga 1: the and group, including L1 and L2, when the L1 and L2 states are simultaneously "active", the Ga1 state is set to "active";
2) ga 3: the and group comprises L4, L5 and L6, and when the states of L4, L5 and L6 are simultaneously activated, the Ga3 state is set to be activated;
3) go 1: or group, comprising groups Ga1 and Ga2, as long as either of Ga1 and Ga2 states is "active", Go1 state is "active";
4) go 2: or group, comprising groups Ga3 and Ga4, as long as either of Ga3 and Ga4 states is "active" and Go2 state is "active".
5) The condition that the incoming line set is activated finally changes to the condition that Go1, Go2 and Go3 must be activated at the same time, and at the same time, the condition determines whether the flow node corresponding to the incoming line set is activated or not.
Step S270, calculating the state of each group according to the state of each connection line included in each group and the logical relationship between the connection lines.
After the states of all the connecting lines contained in each group and the logical relations among all the connecting lines are obtained, whether the activation conditions of the group where the connecting lines are located are met or not is calculated when the flow node receives the activation notice of the connecting lines, and if the activation conditions of the group are met, whether the activation conditions of the incoming line set of the flow node are met or not is further judged.
Step S280, determining the current state of the incoming line set according to the state of each group.
If the incoming line set is divided into an OR group, if the corresponding state of one line (or group) in the OR group is activated, the current state of the incoming line set is activated;
if an incoming line set is divided into and groups, the current state of the incoming line set is active if and only if the connection state corresponding to all lines (or groups) in the and group is active.
Step S260, if the current state of the incoming line set is the activated state, activating a process node corresponding to the end point of the connection line.
It can be understood that, by using the method of group recursion, the relationship of arbitrary permutation and combination between each connection line in the incoming line set corresponding to the flow node can be solved well, and the recursion is a mature algorithm, and there is no difficulty in implementation, for example, it can be implemented easily by using a Composition mode in an object-oriented design mode.
As an embodiment, the method further comprises: and abstracting each service node into the process nodes according to different service scenes, and abstracting the front and back execution sequence among the service nodes into the connecting lines.
For example, in an oa (office automation) office system, each approval node may be abstracted as a process node, and the front and back sequence of each approval node may be abstracted as a connection line between each process node. Similarly, other application scenarios may also be abstracted as the process node model, and whether each node in the process is activated is determined by using the method for activating the node in the process. In this way, the range of use of the method for node activation in the process can be further increased.
According to the method for activating the nodes in the process, the logic processing modes corresponding to the connecting lines in the outlet set of the node are respectively activated through the current process node; judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line; if the connecting line judges that the connecting line meets the activation condition, the state of the connecting line is changed into an activation state, and an activation notice is sent to a process node corresponding to the end point of the connecting line; after receiving the activation notification, the process node corresponding to the terminal point of the connection line determines whether the connection line is activated according to the current state of the incoming line set.
Fig. 7 is a functional block diagram of an apparatus 300 for node activation in a process according to a second embodiment of the present invention. The apparatus 300 for activating nodes in the process includes an activation module 310, a determination module 320, a first processing module 330, and a second processing module 340.
An activating module 310, configured to activate, by a current process node, a logic processing manner corresponding to each connection line in the outgoing line set of the current process node;
a determining module 320, configured to determine whether each connection line meets an activation condition according to a corresponding logic processing manner of the connection line;
the first processing module 330 is configured to change the state of the connection line into an activated state if the connection line determines that the connection line meets the activation condition, and send an activation notification to a process node corresponding to the end point of the connection line;
the second processing module 340 is configured to determine whether the process node corresponding to the end point of the connection line is activated according to the current state of the incoming line set of the process node after receiving the activation notification.
As an embodiment, the second processing module 340 is further configured to determine a current state of the incoming line set according to a state of each connection line in the incoming line set and a logical operation relationship between the connection lines; and if the current state of the incoming line set is an activated state, activating the process node corresponding to the terminal point of the connecting line.
In an embodiment, the second processing module 340 is further configured to group each connection line in the incoming line set; calculating the state of each group according to the state of each connecting line contained in each group and the logic relation among the connecting lines; and determining the current state of the incoming line set according to the state of each group.
As an embodiment, the apparatus further includes a third processing module 350, configured to end the process node if the outgoing line set corresponding to the current process node is empty.
As an implementation manner, the apparatus further includes an abstraction module 360, configured to abstract each service node into the process node according to different service scenarios, and abstract a front-back execution sequence between each service node into the connection line.
The above modules may be implemented by software codes, and in this case, the modules may be stored in the memory 102 of the user terminal. The above modules may also be implemented by hardware, such as an integrated circuit chip.
The implementation principle and the generated technical effect of the apparatus for activating nodes in the process provided by the embodiment of the present invention are the same as those of the foregoing method embodiment, and for brief description, no mention is made in the apparatus embodiment, and reference may be made to the corresponding contents in the foregoing method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and third, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (2)

1. A method for activating nodes in a process is characterized in that the method is applied to a process model, the process model comprises a plurality of process nodes and a plurality of connecting lines, each process node corresponds to one incoming line set and one outgoing line set, the incoming line set corresponding to each process node is formed by connecting lines taking the process node as a terminal, the outgoing line set corresponding to each process node is formed by connecting lines taking the process node as a starting point, each connecting line comprises a starting point, a terminal and a corresponding logic processing method, and the method is embodied in the form of a software product; the method comprises the following steps:
the current process node respectively activates the logic processing modes corresponding to the connecting lines in the outlet set;
judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line;
if the connecting line judges that the connecting line meets the activation condition, the state of the connecting line is changed into an activation state, and an activation notice is sent to a process node corresponding to the end point of the connecting line;
after the process node corresponding to the terminal of the connecting line receives the activation notification, determining whether the process node is activated according to the current state of the incoming line set of the process node;
the determining whether it is activated according to the current state of its incoming line set includes:
determining the current state of the incoming line set according to the state of each connecting line in the incoming line set and the logical operation relationship among the connecting lines;
if the current state of the incoming line set is an activated state, activating a process node corresponding to the end point of the connecting line;
the determining the current state of the incoming line set according to the states of the connecting lines in the incoming line set and the logical operation relationship among the connecting lines comprises:
grouping the connecting lines in the incoming line set;
calculating the state of each group according to the state of each connecting line contained in each group and the logic relation among the connecting lines;
determining the current state of the incoming line set according to the state of each group;
the method further comprises the following steps:
if the outgoing line set corresponding to the current process node is empty, the process node is ended;
the method further comprises the following steps:
and abstracting each service node into the process nodes according to different service scenes, and abstracting the front and back execution sequence among the service nodes into the connecting lines.
2. A device for activating nodes in a process is characterized in that the device is applied to a process model, the process model comprises a plurality of process nodes and a plurality of connecting lines, each process node corresponds to one incoming line set and one outgoing line set, the incoming line set corresponding to each process node is formed by connecting lines taking the process node as a terminal, the outgoing line set corresponding to each process node is formed by connecting lines taking the process node as a starting point, each connecting line comprises a starting point, a terminal and a corresponding logic processing method, and the device is embodied in the form of a software product; the device comprises:
the activation module is used for respectively activating the logic processing modes corresponding to the connecting lines in the outlet set of the current process node;
the judging module is used for judging whether each connecting line meets the activation condition or not according to the corresponding logic processing mode of each connecting line;
the first processing module is used for changing the state of the connecting line into an activated state and sending an activation notice to a process node corresponding to the end point of the connecting line if the connecting line judges that the connecting line meets the activation condition;
the second processing module is used for determining whether the process node corresponding to the terminal point of the connecting line is activated or not according to the current state of the incoming line set of the process node after receiving the activation notification;
the second processing module is further configured to determine a current state of the incoming line set according to states of the connection lines in the incoming line set and a logical operation relationship between the connection lines; if the current state of the incoming line set is an activated state, activating a process node corresponding to the end point of the connecting line;
the second processing module is further configured to group the connection lines in the incoming line set; calculating the state of each group according to the state of each connecting line contained in each group and the logic relation among the connecting lines; determining the current state of the incoming line set according to the state of each group;
the device also comprises a third processing module, which is used for ending the process node if the outgoing line set corresponding to the current process node is empty;
the device also comprises an abstraction module which is used for abstracting each service node into the process node according to different service scenes and abstracting the front and back execution sequence among each service node into the connecting line.
CN201710395468.9A 2017-05-27 2017-05-27 Method and device for activating nodes in process Expired - Fee Related CN107220811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710395468.9A CN107220811B (en) 2017-05-27 2017-05-27 Method and device for activating nodes in process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710395468.9A CN107220811B (en) 2017-05-27 2017-05-27 Method and device for activating nodes in process

Publications (2)

Publication Number Publication Date
CN107220811A CN107220811A (en) 2017-09-29
CN107220811B true CN107220811B (en) 2021-02-12

Family

ID=59946985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710395468.9A Expired - Fee Related CN107220811B (en) 2017-05-27 2017-05-27 Method and device for activating nodes in process

Country Status (1)

Country Link
CN (1) CN107220811B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108335217B (en) * 2018-01-25 2020-11-13 中国平安财产保险股份有限公司 Method, device, equipment and computer storage medium for simulating claims settlement of vehicle insurance
CN109104306A (en) * 2018-07-26 2018-12-28 东软集团股份有限公司 Process analytic method, device, computer readable storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530740A (en) * 2013-10-25 2014-01-22 金蝶软件(中国)有限公司 Method and device for carrying out node control on task flow
CN106155718A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Flow engine implementation method and flow engine system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9258253B2 (en) * 2013-05-14 2016-02-09 Dell Products L.P. System and method for flexible switching fabric
CN104021460B (en) * 2014-06-27 2018-07-10 北京太格时代自动化系统设备有限公司 A kind of operation procedure management system and work flow processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530740A (en) * 2013-10-25 2014-01-22 金蝶软件(中国)有限公司 Method and device for carrying out node control on task flow
CN106155718A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Flow engine implementation method and flow engine system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"轻量级工作流管理系统生成平台的设计与实现";周静;《中国优秀硕士学位论文全文数据库 信息科技辑》;20090715(第07期);第2.1、3.3.4节 *

Also Published As

Publication number Publication date
CN107220811A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
WO2021008414A1 (en) Alarm method for internet of things device, and related apparatus
TW201905737A (en) Multi-blockchain network data processing
US9977702B2 (en) Event processing networks
CN110750341B (en) Task scheduling method, device, system, terminal equipment and storage medium
CN111327519A (en) Method, device, equipment and storage medium for sending multi-channel message content
CN107104824B (en) Network topology determination method and device
CN111355816B (en) Server selection method, device, equipment and distributed service system
CN107302493B (en) Message processing method, message processing device and intelligent terminal
CN107220811B (en) Method and device for activating nodes in process
CN107729063A (en) Call method, device and the terminal of SDK
CN113703996B (en) Access control method, equipment and medium based on user and YANG model grouping
CN114422422B (en) Data transmission method, device and system based on node information
CN107247594B (en) Logic system, implementation method thereof, computing device and computer-readable storage medium
CN113176931B (en) Task stream processing method and device, storage medium and electronic equipment
WO2018227942A1 (en) Method and system for executing task based on memory optimization
CN114897532A (en) Operation log processing method, system, device, equipment and storage medium
CN109213589A (en) A kind of method and device of Message Processing
CN109067864A (en) Notification message method for pushing, device and electronic equipment
CN111884932B (en) Link determining method, device, equipment and computer readable storage medium
CN110008035B (en) Data interface extension method, data processing method, device and equipment
CN109857472A (en) Towards the exchange method and device for having screen equipment
CN115134240B (en) Intelligent scene optimization method and device, storage medium and electrical equipment
CN111786965B (en) RPC message processing method and device, electronic equipment and readable storage medium
CN107995103A (en) Voice conversation method, voice conversation device and electronic equipment
CN114786141B (en) Message filtering method and device in Bluetooth wireless mesh network

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210212