CN103530740A - Method and device for carrying out node control on task flow - Google Patents

Method and device for carrying out node control on task flow Download PDF

Info

Publication number
CN103530740A
CN103530740A CN201310512496.6A CN201310512496A CN103530740A CN 103530740 A CN103530740 A CN 103530740A CN 201310512496 A CN201310512496 A CN 201310512496A CN 103530740 A CN103530740 A CN 103530740A
Authority
CN
China
Prior art keywords
node
task
downstream site
superior
pattern
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.)
Granted
Application number
CN201310512496.6A
Other languages
Chinese (zh)
Other versions
CN103530740B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201310512496.6A priority Critical patent/CN103530740B/en
Publication of CN103530740A publication Critical patent/CN103530740A/en
Application granted granted Critical
Publication of CN103530740B publication Critical patent/CN103530740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for carrying out node control on a task flow. The method comprises the following steps: after one node successfully completes a task, an inflow mode of a subordinate node corresponding to the node is read; the inflow mode of the subordinate node is judged, wherein the inflow mode comprises a serial mode and a parallel mode; if the inflow mode of the subordinate node is the serial mode, a task of the subordinate node is executed; if the inflow mode of the subordinate node is the parallel mode, the task of the subordinate node is executed when a task of each superior node of the subordinate node is completed. Through the adoption of the method, and by judging that the inflow mode of the subordinate node of the node is the serial mode or the parallel mode, whether the task of the subordinate node of the node is executed is determined, so that processing of a user on parallel branch flows is simplified, and the operation is simple.

Description

A kind of method and device that flow of task is carried out to node control
Technical field
The present invention relates to computer process process field, specially refer to a kind of method and device that flow of task is carried out to node control.
Background technology
During corporate process application, there is the business scenario of the different personnel's collaborative process of a kind of multi-layer affairs, when prosomite, whether process, depend on whether its preposition a plurality of links finish dealing with, after its preposition a plurality of links are finished dealing with, just can process current link.The flow process of for example leaving office, HR examines before leaving office, need Human Resources Specialist to check vacation, financial attache checks wage and borrows money, capital assets assistant director checks capital assets, these items itself are not carried out dependence successively, but HR specialist is handled after leaving office needs these items all to finish dealing with and can be handled leaving office.
The solution of this parallel flow process of existing solution is processed by variable mode conventionally in procedural model.Variable mode, while referring to design cycle, whether parallel by coded system control flow branches such as definitim flow variable, scripts.But this mode has following defect: by variable mode, the editing technique content of variable-definition and condition script is high, and general user is difficult to definition, and complicated operation, easily makes mistakes.
Summary of the invention
Fundamental purpose of the present invention, for a kind of method and device that flow of task is carried out to node control is provided, is intended to simplify the processing of user to parallel branch flow process, simple to operate.
The invention provides a kind of method of flow of task being carried out to node control, the method comprises:
After a node is finished the work successfully, read the inflow pattern of the downstream site that this node is corresponding;
Judge the inflow pattern of described downstream site, described inflow pattern comprises serial mode and parallel schema;
If the inflow pattern of described downstream site is serial mode, carry out the task of described downstream site;
If the inflow pattern of described downstream site is parallel schema,, when the task of each superior node of described downstream site is all complete, carry out the task of described downstream site.
Preferably, when the task of described each superior node at described downstream site is all complete, the step of carrying out the task of described downstream site comprises:
Read the superior node list of described downstream site;
When the task of each node in the superior node list of reading is all complete, carry out the task of described downstream site.
Preferably, before the step of the inflow pattern of the described downstream site of described judgement, the method also comprises:
Read the superior node list of described downstream site.
Preferably, after the step of the inflow pattern of the described downstream site of described judgement, the method comprises:
If the inflow pattern of described downstream site is serial mode, cancels in the superior node list of reading and do not complete the task of the node of execution, and carry out the task of described downstream site;
If the inflow pattern of described downstream site is parallel schema, when the task of each node in the superior node list of reading is all complete, carry out the task of described downstream site.
Preferably, the method also comprises:
At a node, finish the work after failure, return to the superior node of unsuccessfully reminding to this node;
Read the outflow pattern of the superior node of this node;
Judge the outflow pattern of the superior node of this node, described outflow pattern comprises replacement pattern and retained-mode;
If the outflow pattern of the superior node of this node is replacement pattern, abandon the task of abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the first pending downstream site list according to the result re-executing, and notify the node in the first pending downstream site list to carry out redistributing of task;
If the outflow pattern of the superior node of this node is retained-mode, the task of retaining abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the second pending downstream site list according to the result re-executing, and notify the node in the second pending downstream site list to carry out redistributing of task.
The present invention also provides a kind of device that flow of task is carried out to node control, and this device comprises:
The first read module, after a node is finished the work successfully, reads the inflow pattern of the downstream site that this node is corresponding;
The first judge module, for judging the inflow pattern of described downstream site, described inflow pattern comprises serial mode and parallel schema;
The first execution module, is serial mode for the inflow pattern at described downstream site, carries out the task of described downstream site;
The second execution module, is parallel schema for the inflow pattern at described downstream site,, when the task of each superior node of described downstream site is all complete, carries out the task of described downstream site.
Preferably, described the second execution module comprises the first performance element and the first reading unit;
This first reading unit, for reading the superior node list of described downstream site;
This first performance element, when all complete for the task of each node of the superior node list reading, carries out the task of described downstream site.
Preferably, this first read module is also for before judging the inflow pattern of described downstream site at the first judge module, the superior node list of reading described downstream site.
Preferably, when described the first execution module is also serial mode for the inflow pattern at described downstream site, cancels in the superior node list of reading and do not complete the task of the node of execution, and carry out the task of described downstream site;
Described the second execution module, is also parallel schema for the inflow pattern at described downstream site, when the task of each node in the superior node list of reading is all complete, carries out the task of described downstream site.
Preferably, this device also comprises:
Prompting module, for finishing the work after failure at a node, returns to the superior node of unsuccessfully reminding to this node;
The second read module, for reading the outflow pattern of the superior node of this node;
The second judge module, for judging the outflow pattern of the superior node of this node, described outflow pattern comprises replacement pattern and retained-mode;
The 3rd execution module, while being replacement pattern for the outflow pattern at the superior node of this node, abandon the task of abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the first pending downstream site list according to the result re-executing, and notify the node in the first pending downstream site list to carry out redistributing of task;
The 4th execution module, while being retained-mode for the outflow pattern at the superior node of this node, the task of retaining abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the second pending downstream site list according to the result re-executing, and notify the node in the second pending downstream site list to carry out redistributing of task.
Method and the device that flow of task is carried out to node control of the present invention, after a node is finished the work successfully, read the inflow pattern of the downstream site that this node is corresponding, and by judging that the inflow pattern of the downstream site of this node is serial mode or parallel schema, to determine whether to carry out the task of the downstream site of this node, simplify the processing of user to parallel branch flow process, simple to operate.
Accompanying drawing explanation
Fig. 1 is method the first embodiment schematic flow sheet that flow of task is carried out to node control of the present invention;
Fig. 2 is the idiographic flow schematic diagram of step S40 in Fig. 1;
Fig. 3 is method the second embodiment schematic flow sheet that flow of task is carried out to node control of the present invention;
Fig. 4 is method the 3rd embodiment schematic flow sheet that flow of task is carried out to node control of the present invention;
Fig. 5 is method the 4th embodiment schematic flow sheet that flow of task is carried out to node control of the present invention;
Fig. 6 is the first example structure schematic diagram that flow of task is carried out to the device of node control of the present invention;
Fig. 7 is the concrete structure schematic diagram of the second execution module in Fig. 6;
Fig. 8 is the second example structure schematic diagram that flow of task is carried out to the device of node control of the present invention.
The object of the invention realization, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is the first embodiment schematic flow sheet that flow of task is carried out to the method for node control of the present invention, and the method comprises:
S10, after a node is finished the work successfully, read the inflow pattern of the downstream site that this node is corresponding.
After this node is finished the work successfully, the downstream site of this node just may be activated.Can set in advance superior node and the downstream site of this node, and corresponding superior node and the downstream site of each superior node, and corresponding superior node and the downstream site of each downstream site.
At this step S10, after a node is finished the work successfully, read the inflow pattern of the downstream site that this node is corresponding, to determine whether to activate downstream site that this node is corresponding to carry out corresponding task.
S20, judge the inflow pattern of this downstream site, this inflow pattern comprises serial mode and parallel schema.
In this step S20, judge the inflow pattern of this downstream site, to determine whether to carry out the task of this downstream site.This inflow pattern comprises serial mode and parallel schema, when node (any one node, as present node, the superior node of present node, when the inflow pattern downstream site of present node) is serial mode, illustrate as long as a superior node of this node is finished the work successfully, can start this node and carry out corresponding task, and no matter the task performance of other superior nodes of this node, if the inflow pattern of node A is serial mode, this node A comprises superior node A1, superior node A2 and superior node A3, as superior node A1, after any one in superior node A2 and superior node A3 finished the work successfully, this node A is activated, can carry out corresponding task, when node (any one node, as the downstream site of the superior node of present node, present node, present node) inflow pattern while being parallel schema, after explanation only has all superior nodes of this node to finish the work successfully, just can start this node and carry out corresponding task, if the inflow pattern of Node B is parallel schema, this Node B comprises superior node B1, superior node B2 and superior node B3, after superior node B1, superior node B2 and superior node B3 finish the work successfully, this Node B just can be activated, and carries out corresponding task.
If the inflow pattern of this downstream site of S30 is serial mode, carry out the task of this downstream site.
In this step S30, directly carry out the task of this downstream site, and do not need other superior nodes of waiting for this downstream site all to finish the work successfully.
If the inflow pattern of this downstream site of S40 is parallel schema,, when the task of each superior node of this downstream site is all complete, carry out the task of this downstream site.
In this step S40, when the task of each superior node of this downstream site is all complete, just carry out the task of this downstream site, as when this downstream site has 5 superior nodes, when the task of receiving these 5 superior nodes is all complete, just can activate this downstream site, to carry out corresponding task.
With reference to Fig. 2, Fig. 2 is the idiographic flow schematic diagram of step S40 in Fig. 1, and this step S40 comprises:
S41, the superior node list of reading this downstream site.
In this step S41, read the superior node list of this downstream site.The superior node of this downstream site can be pre-configured according to actual needs.
When the task of S42, each node in the superior node list of reading is all complete, carry out the task of this downstream site.
In this step S42, whether the task of judging each node in this superior node list of reading is all complete, and when the task of each node in the superior node list of reading is all complete, (as: task of having received each node in this superior node list all complete feedback message) carries out the task of this downstream site.
With reference to Fig. 3, Fig. 3 is the second embodiment schematic flow sheet that flow of task is carried out to the method for node control of the present invention.
Based on above-mentioned the first embodiment that flow of task is carried out to the method for node control, before step S20, the method is further comprising the steps of:
S50, the superior node list of reading this downstream site.
In this step S50, read the superior node list of this downstream site.The superior node of this downstream site can be pre-configured according to actual needs.
With reference to Fig. 4, Fig. 4 is the 3rd embodiment schematic flow sheet that flow of task is carried out to the method for node control of the present invention.
Based on above-mentioned the second embodiment that flow of task is carried out to the method for node control, after step S20, the method comprises:
If the inflow pattern of this downstream site of S60 is serial mode, cancels in the superior node list of reading and do not complete the task of the node of execution, and carry out the task of this downstream site.
In this step S60, when the inflow pattern of this downstream site is serial mode,, after any one superior node of this downstream site is finished the work successfully, just can starts this node and carry out corresponding task.In order to reduce the task of the superior node of the unnecessary execution of carrying out this node, in this step S60, cancel the task of not completing the node of execution in the superior node list of this node, if the part of nodes executed in the superior node list of this node is finished the work, execution result can be retained.For example, when the inflow pattern of this downstream site is serial mode, judge whether each superior node in the superior node list of this downstream site reading finishes the work successfully in step S50, as the superior node list of this superior node comprises node C1, node C2, node C3 and node C4, after finishing the work successfully because of node C1, and because the inflow pattern of this downstream site is serial mode, can carry out the task of this downstream site; For node C2, node C3 and node C4, if equal not complete task, to this node C2, node C3 and node C4 transmission task, cancel instruction, so that task corresponding to node C2, node C3 and node C4 lost efficacy, do not need to carry out, if node C2 executed is finished the work, execution result is retained, in like manner, if node C3 and node C4 also executed finish the work, also execution result is retained.If the inflow pattern of this downstream site of S70 is parallel schema, when the task of each node in the superior node list of reading is all complete, carry out the task of this downstream site.
In this step S70, when the inflow pattern of this downstream site is parallel schema, when the task of each node in the superior node list of reading is all complete, just carry out the task of this downstream site, as when this downstream site has 5 superior nodes, when the task of receiving these 5 superior nodes is all complete, just can activate this downstream site, to carry out corresponding task.
With reference to Fig. 5, Fig. 5 is the 4th embodiment schematic flow sheet that flow of task is carried out to the method for node control of the present invention.
Based on above-mentioned the first embodiment that flow of task is carried out to the method for node control, the method also comprises:
S80, at a node, finish the work after failure, return to the superior node of unsuccessfully reminding to this node.
When a node, finish the work after failure, return to the superior node of unsuccessfully reminding to this node, so that the superior node of this node re-executes corresponding task.As this node, executing the task as examining an amount of money is the reimbursed expense of 1000 yuan, approver in this node feels this reimbursed sum unreasonable (as excessive in reimbursed sum), examine and do not pass through, at this node, finish the work unsuccessfully, return to unsuccessfully reminder message to the superior node of this node, so that this superior node redefines, examine the amount of money.
S90, read the outflow pattern of the superior node of this node.
The outflow pattern of the superior node of this node can set in advance according to actual needs.
S100, judge the outflow pattern of the superior node of this node, this outflow pattern comprises replacement pattern and retained-mode.
In this step S100, judge the outflow pattern of the superior node of this node, with the superior node of determining this node when re-executing, the processing mode to the abortive downstream site distributing before the superior node of this node.
If the outflow pattern of the superior node of this node of S110 is replacement pattern, abandon the task of abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the first pending downstream site list according to the result re-executing, and notify the node in the first pending downstream site list to carry out redistributing of task.
In this step S110, when the outflow pattern of the superior node of this node is replacement pattern, explanation can not need the task of abortive node in the downstream site distributing before the superior node of this node to continue to carry out; And re-execute the task of the superior node of this node, and according to new execution result, determine the downstream site list that need to execute the task, the node in the downstream site list redefining is carried out corresponding task.
If the outflow pattern of the superior node of this node of S120 is retained-mode, the task of retaining abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the second pending downstream site list according to the result re-executing, and notify the node in the second pending downstream site list to carry out redistributing of task.
In this step S120, when the outflow pattern of the superior node of this node is retained-mode, explanation can need the task of abortive node in the downstream site distributing before the superior node of this node to retain, and carries out continuing; And re-execute the task of the superior node of this node, and according to new execution result, determine the downstream site list that need to execute the task, the node in the downstream site list redefining is carried out corresponding task.
With reference to Fig. 6, Fig. 6 is the first example structure schematic diagram that flow of task is carried out to the device of node control of the present invention, and this device comprises:
The first read module 10, after a node is finished the work successfully, reads the inflow pattern of the downstream site that this node is corresponding;
The first judge module 20, for judging the inflow pattern of this downstream site, this inflow pattern comprises serial mode and parallel schema;
The first execution module 30, is serial mode for the inflow pattern at this downstream site, carries out the task of this downstream site;
The second execution module 40, is parallel schema for the inflow pattern at this downstream site,, when the task of each superior node of this downstream site is all complete, carries out the task of this downstream site.
After this node is finished the work successfully, the downstream site of this node just may be activated.Can set in advance superior node and the downstream site of this node, and corresponding superior node and the downstream site of each superior node, and corresponding superior node and the downstream site of each downstream site.
This first read module 10, for after finishing the work successfully when a node, reads the inflow pattern of the downstream site that this node is corresponding, to determine whether to activate downstream site that this node is corresponding to carry out corresponding task.
This first judge module 20 is for judging the inflow pattern of this downstream site, to determine whether to carry out the task of this downstream site.This inflow pattern comprises serial mode and parallel schema, when node (any one node, as present node, the superior node of present node, when the inflow pattern downstream site of present node) is serial mode, illustrate as long as a superior node of this node is finished the work successfully, can start this node and carry out corresponding task, and no matter the task performance of other superior nodes of this node, if the inflow pattern of node A is serial mode, this node A comprises superior node A1, superior node A2 and superior node A3, as superior node A1, after any one in superior node A2 and superior node A3 finished the work successfully, this node A is activated, can carry out corresponding task, when node (any one node, as the downstream site of the superior node of present node, present node, present node) inflow pattern while being parallel schema, after explanation only has all superior nodes of this node to finish the work successfully, just can start this node and carry out corresponding task, if the inflow pattern of Node B is parallel schema, this Node B comprises superior node B1, superior node B2 and superior node B3, after superior node B1, superior node B2 and superior node B3 finish the work successfully, this Node B just can be activated, and carries out corresponding task.
This first execution module 30, when the inflow pattern that judgment result is that downstream site of the first judge module 20 is serial mode, is directly carried out the task of this downstream site, and is not needed other superior nodes of waiting for this downstream site all to finish the work successfully.
When this second execution module 40 is parallel schema for the inflow pattern that judgment result is that downstream site at the first judge module 20, when the task of each superior node of this downstream site is all complete, just carry out the task of this downstream site, as when this downstream site has 5 superior nodes, when the task of receiving these 5 superior nodes is all complete, just can activate this downstream site, to carry out corresponding task.
Further, as shown in Figure 7, this second execution module 40 comprises the first performance element 41 and the first reading unit 42 to the concrete structure of this second execution module 40;
This first reading unit 42, for reading the superior node list of this downstream site;
This first performance element 41, when all complete for the task of each node of the superior node list reading, carries out the task of this downstream site.
This first reading unit 42 reads the superior node list of this downstream site.The superior node of this downstream site can be pre-configured according to actual needs.
This first performance element 41 judges that whether the task of each node in this superior node list of reading is all complete, and when the task of each node in the superior node list of reading is all complete, (as: task of having received each node in this superior node list all complete feedback message) carries out the task of this downstream site.
Further, this first read module is also for before judging the inflow pattern of this downstream site at the first judge module, the superior node list of reading this downstream site.
Further, when this first execution module 30 is also serial mode for the inflow pattern at this downstream site, cancels in the superior node list of reading and do not complete the task of the node of execution, and carry out the task of this downstream site;
This second execution module 40, is also parallel schema for the inflow pattern at this downstream site, when the task of each node in the superior node list of reading is all complete, carries out the task of this downstream site.
When the inflow pattern of this downstream site is serial mode, after any one superior node of this downstream site is finished the work successfully, this first execution module 30 just can start this node and carry out corresponding task, in order to reduce the task of the superior node of the unnecessary execution of carrying out this node, in the superior node list of these first execution module, 30 these nodes of cancellation, do not complete the task of the node of execution, if the part of nodes executed in the superior node list of this node is finished the work, execution result can be retained.For example, when the inflow pattern of this downstream site is serial mode, judge whether each superior node in the superior node list of this downstream site that the first read module reads finishes the work successfully, as the superior node list of this superior node comprises node C1, node C2, node C3 and node C4, after finishing the work successfully because of node C1, and because the inflow pattern of this downstream site is serial mode, can carry out the task of this downstream site; For node C2, node C3 and node C4, if equal not complete task, to this node C2, node C3 and node C4 transmission task, cancel instruction, so that task corresponding to node C2, node C3 and node C4 lost efficacy, do not need to carry out, if node C2 executed is finished the work, execution result is retained, in like manner, if node C3 and node C4 also executed finish the work, also execution result is retained.
When the inflow pattern of this downstream site is parallel schema, when the task of each node in the superior node list of reading is all complete, this the second execution module 40 is just carried out the task of this downstream site, as when this downstream site has 5 superior nodes, when the task of receiving these 5 superior nodes is all complete, just can activate this downstream site, to carry out corresponding task.
With reference to Fig. 8, Fig. 8 is the second example structure schematic diagram that flow of task is carried out to the device of node control of the present invention.
Based on above-mentioned the first embodiment that flow of task is carried out to the device of node control, this device also comprises:
Prompting module 50, for finishing the work after failure at a node, returns to the superior node of unsuccessfully reminding to this node;
The second read module 60, for reading the outflow pattern of the superior node of this node;
The second judge module 70, for judging the outflow pattern of the superior node of this node, this outflow pattern comprises replacement pattern and retained-mode;
The 3rd execution module 80, while being replacement pattern for the outflow pattern at the superior node of this node, abandon the task of abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the first pending downstream site list according to the result re-executing, and notify the node in the first pending downstream site list to carry out redistributing of task;
The 4th execution module 90, while being retained-mode for the outflow pattern at the superior node of this node, the task of retaining abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the second pending downstream site list according to the result re-executing, and notify the node in the second pending downstream site list to carry out redistributing of task.
When a node, finish the work after failure, this prompting module 50 is returned to the superior node of unsuccessfully reminding to this node, so that the superior node of this node re-executes corresponding task.As this node, executing the task as examining an amount of money is the reimbursed expense of 1000 yuan, approver in this node feels this reimbursed sum unreasonable (as excessive in reimbursed sum), examine and do not pass through, at this node, finish the work unsuccessfully, return to unsuccessfully reminder message to the superior node of this node, so that this superior node redefines, examine the amount of money.
The outflow pattern of the superior node of this node can set in advance according to actual needs.
The outflow pattern of the superior node of this second judge module 70 these nodes of judgement, with the superior node of determining this node when re-executing, the processing mode to the abortive downstream site distributing before the superior node of this node.
When the outflow pattern of the superior node of this node is replacement pattern, explanation can not need the task of abortive node in the downstream site distributing before the superior node of this node to continue to carry out; The 3rd execution module 80 abandons the task of abortive node in the downstream site distributing before the superior node of this node and re-executes the task of the superior node of this node, and according to new execution result, determine the downstream site list that need to execute the task, the node in the downstream site list redefining is carried out corresponding task.
When the outflow pattern of the superior node of this node is retained-mode, explanation can need the task of abortive node in the downstream site distributing before the superior node of this node to retain, and carries out continuing; The 4th execution module 90 re-executes the task of the superior node of this node, and determines according to new execution result the downstream site list that need to execute the task, and the node in the downstream site list redefining is carried out corresponding task.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. flow of task is carried out to a method for node control, it is characterized in that, the method comprises:
After a node is finished the work successfully, read the inflow pattern of the downstream site that this node is corresponding;
Judge the inflow pattern of described downstream site, described inflow pattern comprises serial mode and parallel schema;
If the inflow pattern of described downstream site is serial mode, carry out the task of described downstream site;
If the inflow pattern of described downstream site is parallel schema,, when the task of each superior node of described downstream site is all complete, carry out the task of described downstream site.
2. method according to claim 1, is characterized in that, when the task of described each superior node at described downstream site is all complete, the step of carrying out the task of described downstream site comprises:
Read the superior node list of described downstream site;
When the task of each node in the superior node list of reading is all complete, carry out the task of described downstream site.
3. method according to claim 1, is characterized in that, before the step of the inflow pattern of the described downstream site of described judgement, the method also comprises:
Read the superior node list of described downstream site.
4. method according to claim 3, is characterized in that, after the step of the inflow pattern of the described downstream site of described judgement, the method comprises:
If the inflow pattern of described downstream site is serial mode, cancels in the superior node list of reading and do not complete the task of the node of execution, and carry out the task of described downstream site;
If the inflow pattern of described downstream site is parallel schema, when the task of each node in the superior node list of reading is all complete, carry out the task of described downstream site.
5. method according to claim 1, is characterized in that, the method also comprises:
At a node, finish the work after failure, return to the superior node of unsuccessfully reminding to this node;
Read the outflow pattern of the superior node of this node;
Judge the outflow pattern of the superior node of this node, described outflow pattern comprises replacement pattern and retained-mode;
If the outflow pattern of the superior node of this node is replacement pattern, abandon the task of abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the first pending downstream site list according to the result re-executing, and notify the node in the first pending downstream site list to carry out redistributing of task;
If the outflow pattern of the superior node of this node is retained-mode, the task of retaining abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the second pending downstream site list according to the result re-executing, and notify the node in the second pending downstream site list to carry out redistributing of task.
6. flow of task is carried out to a device for node control, it is characterized in that, this device comprises:
The first read module, after a node is finished the work successfully, reads the inflow pattern of the downstream site that this node is corresponding;
The first judge module, for judging the inflow pattern of described downstream site, described inflow pattern comprises serial mode and parallel schema;
The first execution module, is serial mode for the inflow pattern at described downstream site, carries out the task of described downstream site;
The second execution module, is parallel schema for the inflow pattern at described downstream site,, when the task of each superior node of described downstream site is all complete, carries out the task of described downstream site.
7. device according to claim 6, is characterized in that, described the second execution module comprises the first performance element and the first reading unit;
This first reading unit, for reading the superior node list of described downstream site;
This first performance element, when all complete for the task of each node of the superior node list reading, carries out the task of described downstream site.
8. device according to claim 6, is characterized in that, this first read module is also for before judging the inflow pattern of described downstream site at the first judge module, the superior node list of reading described downstream site.
9. device according to claim 8, it is characterized in that, when described the first execution module is also serial mode for the inflow pattern at described downstream site, cancels in the superior node list of reading and do not complete the task of the node of execution, and carry out the task of described downstream site;
Described the second execution module, is also parallel schema for the inflow pattern at described downstream site, when the task of each node in the superior node list of reading is all complete, carries out the task of described downstream site.
10. device according to claim 6, is characterized in that, this device also comprises:
Prompting module, for finishing the work after failure at a node, returns to the superior node of unsuccessfully reminding to this node;
The second read module, for reading the outflow pattern of the superior node of this node;
The second judge module, for judging the outflow pattern of the superior node of this node, described outflow pattern comprises replacement pattern and retained-mode;
The 3rd execution module, while being replacement pattern for the outflow pattern at the superior node of this node, abandon the task of abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the first pending downstream site list according to the result re-executing, and notify the node in the first pending downstream site list to carry out redistributing of task;
The 4th execution module, while being retained-mode for the outflow pattern at the superior node of this node, the task of retaining abortive node in the downstream site distributing before the superior node of this node, and re-execute the task of the superior node of this node, and determine the second pending downstream site list according to the result re-executing, and notify the node in the second pending downstream site list to carry out redistributing of task.
CN201310512496.6A 2013-10-25 2013-10-25 A kind of pair of flow of task carries out the method and device of node control Active CN103530740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310512496.6A CN103530740B (en) 2013-10-25 2013-10-25 A kind of pair of flow of task carries out the method and device of node control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310512496.6A CN103530740B (en) 2013-10-25 2013-10-25 A kind of pair of flow of task carries out the method and device of node control

Publications (2)

Publication Number Publication Date
CN103530740A true CN103530740A (en) 2014-01-22
CN103530740B CN103530740B (en) 2019-01-01

Family

ID=49932730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310512496.6A Active CN103530740B (en) 2013-10-25 2013-10-25 A kind of pair of flow of task carries out the method and device of node control

Country Status (1)

Country Link
CN (1) CN103530740B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461502A (en) * 2014-11-03 2015-03-25 广州汇讯营销咨询有限公司 Task management method and system based on Hadoop
CN107220811A (en) * 2017-05-27 2017-09-29 杭州迪脉信息科技有限公司 The method and device of flow interior joint activation
CN107316121A (en) * 2016-08-31 2017-11-03 天河大成建筑云科技(天津)有限公司 One kind is based on the workflow examination and approval method of BIM (BIM)
CN108804206A (en) * 2017-04-26 2018-11-13 武汉斗鱼网络科技有限公司 The processing method and system of synchronous task
CN109104306A (en) * 2018-07-26 2018-12-28 东软集团股份有限公司 Process analytic method, device, computer readable storage medium and electronic equipment
CN110599005A (en) * 2019-08-23 2019-12-20 东软集团股份有限公司 Process analysis method and device, computer readable storage medium and electronic equipment
CN111382983A (en) * 2018-12-27 2020-07-07 中国电信股份有限公司 Workflow control method, workflow node and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009069876A (en) * 2007-09-10 2009-04-02 Furukawa Information Technology Kk Workflow system, workflow control method and program
CN101794417A (en) * 2010-03-05 2010-08-04 南京邮电大学 Work flow dispatching and business flow modeling method based on sequence number
CN102279888A (en) * 2011-08-24 2011-12-14 北京新媒传信科技有限公司 Method and system for scheduling tasks
CN102467410A (en) * 2010-11-12 2012-05-23 金蝶软件(中国)有限公司 Control method and device for universal flow scheduling engine, and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009069876A (en) * 2007-09-10 2009-04-02 Furukawa Information Technology Kk Workflow system, workflow control method and program
CN101794417A (en) * 2010-03-05 2010-08-04 南京邮电大学 Work flow dispatching and business flow modeling method based on sequence number
CN102467410A (en) * 2010-11-12 2012-05-23 金蝶软件(中国)有限公司 Control method and device for universal flow scheduling engine, and terminal
CN102279888A (en) * 2011-08-24 2011-12-14 北京新媒传信科技有限公司 Method and system for scheduling tasks

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461502A (en) * 2014-11-03 2015-03-25 广州汇讯营销咨询有限公司 Task management method and system based on Hadoop
CN107316121A (en) * 2016-08-31 2017-11-03 天河大成建筑云科技(天津)有限公司 One kind is based on the workflow examination and approval method of BIM (BIM)
CN108804206A (en) * 2017-04-26 2018-11-13 武汉斗鱼网络科技有限公司 The processing method and system of synchronous task
CN107220811A (en) * 2017-05-27 2017-09-29 杭州迪脉信息科技有限公司 The method and device of flow interior joint activation
CN107220811B (en) * 2017-05-27 2021-02-12 杭州迪脉信息科技有限公司 Method and device for activating nodes in process
CN109104306A (en) * 2018-07-26 2018-12-28 东软集团股份有限公司 Process analytic method, device, computer readable storage medium and electronic equipment
CN111382983A (en) * 2018-12-27 2020-07-07 中国电信股份有限公司 Workflow control method, workflow node and system
CN110599005A (en) * 2019-08-23 2019-12-20 东软集团股份有限公司 Process analysis method and device, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN103530740B (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN103530740A (en) Method and device for carrying out node control on task flow
Bentahar et al. Symbolic model checking composite web services using operational and control behaviors
US8661441B2 (en) Transaction load reduction for process completion
CN103995691B (en) Service state consistency maintenance method based on transactions
CN104216912A (en) Method and device for achieving non-intrusive service form workflow
CN109684057A (en) Task processing method, device and storage medium
CN103065221A (en) Multidisciplinary collaborative optimization flow modeling and scheduling method and system based on business process execution language (BPEL)
CN103593734A (en) Electronic countersigning method and device
CN105867907A (en) JSS multi-layer Web development framework design method removing service coupling
CN104461901A (en) Method and system for automatically generating test case
CN106776074A (en) A kind of web plug-in units call method and system based on http
CN108038141A (en) Ensure the method for data consistency under micro services framework HTTP interactive modes
Rukoz et al. Faceta*: Checkpointing for transactional composite web service execution based on petri-nets
CN102331925A (en) Fast software development platform
WO2016099535A1 (en) Specifying models of an architectural type
CN102082737B (en) Method for replacing Web services based on service priority
CN104992271A (en) Different-process-instance coordinated operation system and different-process-instance coordinated operation implementation method
CN110019207A (en) Data processing method and device and script display methods and device
Popovic et al. Formal verification of distributed transaction management in a SOA based control system
CN102141946B (en) Method and system for recovering online transaction data in graph database
CN112163840A (en) Workflow definition method, cross-region management method and device of example
Lam The basis and core knowledge of business process management
CN103617044A (en) Control method for secondary development program execution
Hong et al. Research on workflow process structure verification
KR102225449B1 (en) System and method for writing interaction specifiation and for verificating safety of collaborating cyber-physical systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant