CN102609809B - Method for realizing workflow cycle control by looking up table - Google Patents

Method for realizing workflow cycle control by looking up table Download PDF

Info

Publication number
CN102609809B
CN102609809B CN201210015996.4A CN201210015996A CN102609809B CN 102609809 B CN102609809 B CN 102609809B CN 201210015996 A CN201210015996 A CN 201210015996A CN 102609809 B CN102609809 B CN 102609809B
Authority
CN
China
Prior art keywords
circulation
workflow
point
task
workflow task
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
CN201210015996.4A
Other languages
Chinese (zh)
Other versions
CN102609809A (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.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong University
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 Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN201210015996.4A priority Critical patent/CN102609809B/en
Publication of CN102609809A publication Critical patent/CN102609809A/en
Application granted granted Critical
Publication of CN102609809B publication Critical patent/CN102609809B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for realizing workflow cycle control by looking up a table. The method comprises the following steps: establishing a workflow node model, establishing a network connection model for workflow task, establishing cycle and controlling the starting and ending of the cycle control by a workflow management server, so as to set a cycle control condition in the cycle of the workflow node model; and controlling the starting and ending of the cycle control by looking up a cycle information table and a cycle control table in a data storage server, so as to settle the control for the cycle with a relative complex structure. The controllability and maneuverability are excellent. The method is based on network topology, has certain universality, is expanded and applied to other workflow models based on network structure, and has portability.

Description

A kind of method realizing workflow cycle by tabling look-up and control
Technical field
The invention belongs to workflow technology field, relate to the implementation method of cycle control in work flow operation process.
Background technology
According to WFMC (Workfiow Management Coalition, WfMC) definition, workflow is the business process that a class can completely or partially automatically perform, and it can carry out transmitting according to a series of process rule, document, information or task and perform between different executors.But this transmission and implementation might not be unidirectional, may repeatedly carry out transmitting and performing between several executor, this situation be called circulation in workflow field.
Existing document is just classified to circulation pattern according to route feature, and for how controlled circulation in Workflow Management System, existing document is not mentioned.In addition, in the workflow cycle of reality, complicated loop configuration may be comprised, also may have complicated control method.As comprised controlled condition in circulation, when controlled condition is set up, circulation just can be carried out or stop.
Therefore, the present invention proposes a kind of method that workflow cycle controls.Compare with existing method, this circulation controlling means can solve the comparatively complicated circulation of structure, and the cycle control condition arranged in scheme, comprises entry condition and the end condition of circulation, can the startup of controlled circulation and termination.
Summary of the invention
The object of the invention is the shortcoming overcoming prior art, a kind of control method that can solve complex structure, control method complex loops situation is provided, this kind realizes the method for cycle control based on network topology structure by tabling look-up, can be extended in other Work flow model based on web frame, there is portability.And the cycle control condition arranged in invention, comprise entry condition and the end condition of circulation, can the startup of controlled circulation and termination, there is better controllability and operability.
The object of the invention is to be solved by following technical solution:
It is this that realize the method that workflow cycle controls by tabling look-up be realize according to following step in the server and client of internet or LAN (Local Area Network):
(A) workflow nodes model is set up
Workflow nodes is made up of server and computer client, to be connected to the performance element of the some computer client on network as workflow task; To be connected to the workflow management services device of the one or more first servers on network as distribute work stream task; To be connected to one or more second servers on network as data storage server; Wherein at least comprise cyclical information table and cycle control table in data storage server;
(B) network connection model of workflow task is set up
The task of workflow is responsible for performing by computer client, namely stops or be passed to other computer client after a workflow task is finished; The transmission of task is unidirectional, relies on the wired or wireless network between computing machine to connect and realizes; A direct transitive relation can only be had at most between any two workflow tasks, but be passed to multiple workflow task after allowing a workflow task to complete simultaneously; Wherein, direct transitive relation refers to not by the unidirectional delivery relation between two workflow tasks of other task;
Network connection model is made up of the unidirectional delivery relation between workflow task and adjacent task; The network connection model of this workflow task is stored in data storage server;
(C) circulation is created
Circulation is created according to following step:
(1), in the network connection model created in step (B), a subset including unidirectional delivery relation between workflow task and these workflow tasks is selected; , all there is one or more unidirectional delivery relation in any one workflow task from this subset, this workflow task constantly can be transmitted by these transitive relations, and again get back to this workflow task; Be a circulation by the workflow task in this subset and the unidirectional delivery contextual definition between these tasks, and be stored in the cyclical information table in data storage server; Wherein, a transitive relation can only belong at most a circulation;
(2) start-up point set is created
In the subset of step (1), select one or more workflow task as the start-up point of circulation, their set is called that start-up point is gathered; Only have start-up point could start a circulation; Start-up point set is stored in the cyclical information table in data storage server;
(3) entry condition is created
Establishment condition on the start-up point that step (2) creates, this condition is called entry condition; Only have when entry condition is set up, just allow startup one circulation; Entry condition is stored in the cyclical information table in data storage server; On certain start-up point in a circulation, an entry condition can only be defined at most, if do not define entry condition, be then defaulted as and unconditionally start circulation; When after loop start, comprising in circulation of task can repeatedly perform according to transitive relation and transmit, until circulation terminates;
(4) terminating point set is created
In the subset of step (1), select one or more workflow task as the terminating point of circulation, their set is called terminating point set; Only have terminating point could stop a circulation; Terminating point set is stored in the cyclical information table in data storage server;
(5) end condition is created
Establishment condition on the terminating point that step (4) creates, this condition is called end condition; Only have when end condition is set up, just allow termination one circulation; End condition is stored in the cyclical information table in data storage server; On certain terminating point in a circulation, an end condition can only be defined at most, if do not define end condition, then be defaulted as and unconditionally stop circulation;
(6) exit point set and outlet set is created
In the subset of step (1), select one or more workflow task as exit point, their set is called exit point set; In the network connection model of the workflow task set up in step (B), select one or more outlet using the above-mentioned exit point unidirectional delivery relation that is starting point as circulation, their set is called outlet set; Wherein, outlet can not be included in the subset selected by step (1), and exit point can corresponding one or more outlet, but outlet can only a corresponding exit point; Exit point set and outlet set are stored in the cyclical information table in data storage server;
(7) mapping relations of terminating point set and exit point set are created
Mapping relations are set up in the exit point set that the terminating point set created for step (4) and step (6) create; A terminating point can be mapped on one or more exit point; An exit point can be mapped on one or more terminating point; When terminating point stops a circulation time, the outlet of the exit point that workflow task only can map from this terminating point continues to transmit; The mapping relations of terminating point set and exit point set are stored in the cycle control table in data storage server;
(D) workflow management services device is the network connection model building work stream example of the workflow task that step (B) creates, and controls the operation of workflow instance; Wherein, the execution that workflow management services device controls to circulate in workflow instance by looking into cyclical information table in data storage server and cycle control table, the startup comprising circulation controls and the termination of circulation controls; Concrete steps are as follows:
(I) startup circulated controls
Workflow management services device judges whether the workflow task performed is included in the start-up point set that step (3) creates;
If do not comprised, then this circulation does not start;
If comprised, then this workflow task is the start-up point of circulation; In the cyclical information table of inquiry Work stream data storage server, whether this start-up point defines entry condition; Ifndef entry condition, then this circulation is defaulted as unconditional startup; If the entry condition of defining, judge whether entry condition is set up: if entry condition is set up, then this loop start; If entry condition is false, then this circulation does not start;
After loop start, workflow management services device converts the state of circulation to operation by ready; The workflow task comprised in circulation can repeatedly perform according to transitive relation and transmit;
(II) termination circulated controls
When circulation is in running status, workflow management services device judges whether the workflow task performed is included in the terminating point set that step (4) creates;
If do not comprised, then this circulation does not stop;
If comprised, then this workflow task is the terminating point of circulation; In the cyclical information table of inquiry Work stream data storage server, whether this terminating point defines end condition; Ifndef end condition, then this circulation is defaulted as unconditional termination; If define end condition, judge whether end condition is set up: if end condition is set up, then this loop termination; If end condition is false, then this circulation does not stop;
1. loop termination, workflow management services device converts the state of circulation to termination by operation; The exit point that in the cycle control table of inquiry Work stream data storage server, this terminating point is corresponding, workflow task continues to transmit from the outlet of above-mentioned exit point; The state of circulation is converted to by termination and exits by workflow management services device, and circulation terminates;
2. circulate and do not stop, then perform following step (i), until circulation terminates;
I () workflow management services device judges whether the workflow task performed is included in the exit point set that step (6) creates; If do not comprised, then workflow task passes to other workflow task having direct transitive relation in the network connection model of the workflow task that step (B) creates, and forwards step (II) to and continues to perform until circulation terminates; If comprised, then this workflow task is the exit point of circulation; The cycle control table of data query storage server, finds out the outlet of this exit point, and workflow task is delivered to other workflow task by the direct transitive relation of other except above-mentioned outlet, forwards step (II) to and continues to perform until circulation terminates.
The state that in further above-mentioned steps (D), (III) circulates comprise ready, run, stop, exit; Wherein, the original state of circulation is ready; The transformation rule of recurrent state is as follows:
When workflow management services device judges that the entry condition of circulation is set up, after loop start or unconditionally startup, the state of circulation is converted to operation by ready;
When workflow management services device judges that the end condition of circulation is set up, loop termination or unconditionally stop, but the workflow task in circulation does not also pass from the outlet of the corresponding exit point of terminating point, and the state of circulation is converted to termination by operation;
After the workflow task in circulation passes from the outlet of exit point corresponding to the terminating point stopping this circulation, the state of circulation is converted to by termination and exits, and circulation terminates.
In further above-mentioned steps (A), the information in described cyclical information table comprises: circulating path, start-up point, entry condition, terminating point, end condition, exit point, outlet; Information in described cycle control table comprises: have the terminating point of mapping relations, exit point and outlet.
The present invention has following beneficial effect:
Existing document is just classified to circulation pattern according to route feature, and for how controlled circulation in Workflow Management System, existing document is not mentioned.In addition, in the workflow cycle of reality, complicated loop configuration may be comprised, also may have complicated control method.As comprised controlled condition in circulation, when controlled condition is set up, circulation just can be carried out or could stop.
Therefore, a kind of method realizing workflow cycle by tabling look-up and control is proposed.Compare with existing method, this circulation controlling means can solve the comparatively complicated circulation of structure, and the cycle control condition arranged in scheme can the startup of controlled circulation and termination, the judgement of cycle control condition runs and is controlled by workflow management services device completely, does not automatically complete by artificial the interference; The enabling, perform and exit by the realization of workflow management services device by the cyclical information table in Query Database and cycle control table of circulation.
Accompanying drawing explanation
Fig. 1 is the equipment block diagram comprised for realizing an example system of the present invention;
Fig. 2 is example running environment figure of the present invention;
Fig. 3 is workflow process element graph-based;
Fig. 4 workflow cycle graph-based example;
Fig. 5 is the process flow diagram of building work stream circulation;
Fig. 6 is the process flow diagram that the startup of circulation controls;
Fig. 7 is the process flow diagram that the termination of circulation controls.
Embodiment
Below in conjunction with accompanying drawing, specific embodiment of the invention is described further:
Fig. 1 comprises the computing equipments such as such as computing equipment for realizing an example system of the present invention.Computing equipment can be configured to client computer, server.In the most basic configuration, computing equipment generally includes at least one processing unit, system storage, program.Depend on exact configuration and the type of computing equipment, system storage can be volatibility (as RAM), non-volatile (as ROM, flash memory etc.) or the combination of both.System storage generally includes operating system, application program, and can comprise routine data.
Computing equipment can have other function.As computing equipment also can comprise the such as data storage device such as disk, CD.Computer-readable storage medium can comprise storing any method of such as computer-readable instruction, program module or other data messages or volatibility, non-volatile, moveable, immovable medium of technology realization.System storage, removable storage and irremovable storage are all the examples of Computer Storage.Computer-readable storage medium comprises, but be not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical memory, tape cassete, disk storage or any other can be used for storing expectation information and the medium can accessed by computing equipment.Computing equipment also can have the input equipments such as such as keyboard, mouse, pen, voice-input device, touch input device.Also can comprise the output devices such as such as display, loudspeaker, printer.Computing equipment also comprises the communication connection of equipment by network and other computing device communication.Network comprises LAN (Local Area Network) and wide area network.
Fig. 2 is example running environment figure of the present invention, and running method of the present invention needs, according to upper figure, computing equipment is linked network.Running environment comprises server end and client, and the network of connection server end and client.Wherein network can be LAN (Local Area Network) and wide area network.Server is made up of one or more workflow management services device and one or more data storage server, using workflow management services device as first server, be mainly used in distribute work task, using data storage server as second server, be mainly used in storing related data.The following detailed step for realizing the inventive method:
(A) workflow nodes model, is set up
1. configuration effort flow management server, data storage server, client.
Configuration effort flow management server: the computing equipment of selection shown in Fig. 1 is the hardware configuration of workflow management services device, installing operating system software on workflow management services device computing equipment, wherein operating system software can be Windows, linus, Unix, apple OS etc., and the Workflow Management System installing XJTU School of Electrical Engineering's exploitation, and run Workflow Management System environment Java RunTime.
Configuration data storage server: select the computing equipment shown in Fig. 1 to be the hardware configuration of data storage server, at data storage server installing operating system software and database management language.Windows, linus, Unix, all kinds of each version of apple OS is operating system software example, and database management language can be Microsoft SQL Server, VisualFoxPro, Oracle, Microsoft Access, the relevant database management softwares such as MySQL.
Configuration client: select the computing equipment shown in Fig. 1 to be the hardware configuration of client, be at least provided with operating system software on the client, such as Windows, linus, Unix, apple OS etc., browser, such as Internet Explorer, Firefox etc.
2. workflow management services device, data storage server, client are carried out network connection according to Fig. 2, to be connected to some computer client on network as the performance element completing different operating task; To be connected to the workflow management services device of the one or more first servers on network as distribute work task; To be connected to one or more second servers on network as data storage server; Using server and computer client as workflow nodes.Wherein at least comprise cyclical information table and cycle control table in data storage server; Information in described cyclical information table comprises: circulating path, start-up point, entry condition, terminating point, end condition, exit point, outlet; Information in described cycle control table comprises: have the terminating point of mapping relations, exit point and outlet.
(B) network connection model of workflow task, is set up
The network of workflow task connects and refers to that the computer network between client with server is connected.In the network connection model of workflow task, the task of workflow is responsible for performing by computer client, namely stops or be passed to other computer client after a workflow task completes; The transmission of task is unidirectional, relies on the wired or wireless network between computing machine to connect and realizes; Can only have at most a direct transitive relation between any two workflow tasks, wherein, direct transitive relation refers to not by the unidirectional delivery relation between two workflow tasks of other task.But passed to multiple workflow task after allowing a workflow task to complete simultaneously; The network connection model of workflow task is made up of the unidirectional delivery relation between workflow task and task.Conveniently set up the network connection model of workflow task, the form of Graphic Design is adopted to represent the network connection model of workflow task, workflow task is represented below with circle, represent that network connects to be with the arc of arrow, the workflow task that its hollow arrow represents the starting point that network connects defines condition, double-head arrow represents that recirculating network connects, and the arc of starting point band far point represents the outlet of circulation; The graph-based of workflow process as shown in Figure 3;
1) tie up to according to the pass of the workflow nodes graphical representation shown in Fig. 3 and above-mentioned workflow task network connection model workflow management services device being set up workflow task, as shown in Figure 4;
2) network connection model of the workflow nodes of foundation is kept in data storage server.
The network connection relation of above-described workflow process be in xml format or XPDL form be stored in data storage server or with the form of bivariate table and be stored in data storage server co-relation type database.
Below for the work process flow shown in Fig. 4, the step realizing workflow cycle control by tabling look-up is described.
(C) circulation is created
Circulation is created according to following step:
(1), in the network connection model created in step (B), a subset including unidirectional delivery relation between workflow task and these workflow tasks is selected; , all there is one or more unidirectional delivery relation in any one workflow task from this subset, this workflow task constantly can be transmitted by these transitive relations, and again get back to this workflow task; Be a circulation by the workflow task in this subset and the unidirectional delivery contextual definition between these tasks, and be stored in the cyclical information table in database purchase server; Wherein, a transitive relation can only belong at most a circulation;
(2) start-up point set is created
In the subset of step (1), select one or more workflow task as the start-up point of circulation, their set is called that start-up point is gathered; Only have start-up point could start a circulation; Start-up point set is stored in the cyclical information table in database purchase server;
(3) entry condition is created
Establishment condition on the start-up point that step (2) creates, this condition is called entry condition; Only have when entry condition is set up, just allow startup one circulation; Entry condition is stored in the cyclical information table in database purchase server; On certain start-up point in a circulation, an entry condition can only be defined at most, if do not define entry condition, be then defaulted as and unconditionally start circulation; When after loop start, comprising in circulation of task can repeatedly perform according to transitive relation and transmit, until circulation terminates;
(4) terminating point set is created
In the subset of step (1), select one or more workflow task as the terminating point of circulation, their set is called terminating point set; Only have terminating point could stop a circulation; Terminating point set is stored in the cyclical information table in database purchase server;
(5) end condition is created
Establishment condition on the terminating point that step (4) creates, this condition is called end condition; Only have when end condition is set up, just allow termination one circulation; End condition is stored in the cyclical information table in database purchase server; On certain terminating point in a circulation, an end condition can only be defined at most, if do not define end condition, then be defaulted as and unconditionally stop circulation;
(6) exit point set and outlet articulation set is created
In the subset of step (1), select one or more workflow task as exit point, their set is called exit point set; In the network connection model of the workflow task set up in step (B), select one or more outlet using the above-mentioned exit point unidirectional delivery relation that is starting point as circulation, their set is called outlet set; Wherein, outlet can not be included in the subset selected by step (1), and exit point can corresponding one or more outlet, but outlet can only a corresponding exit point; Exit point set and outlet set are stored in the cyclical information table in database purchase server;
(7) the mutual mapping relations of terminating point set and exit point set are created
Mapping relations are set up in the exit point set that the terminating point set created for step (4) and step (6) create; A terminating point can be mapped on one or more exit point; An exit point can be mapped on one or more terminating point; When terminating point stops a circulation time, the outlet of the exit point that workflow task only can map from this terminating point continues to transmit; The mapping relations of terminating point set and exit point set are stored in the cycle control table in database purchase server;
Below for the work process flow shown in Fig. 4, the detailed process that building work stream circulates is described, process flow diagram as shown in Figure 5.
The establishment of circulation L1
Circulating in exemplary plot as shown in Figure 4, selecting the subset set1 of the unidirectional delivery relation between workflow task and these tasks that includes; Wherein set1={T 2, T 3, T 4, T 5, T 6, d 2, d 3, d 4, d 5, d 6; Set1 is defined as circulation " L1 ", the circulating path obtaining this circulation L1 is: T 2→ T 3→ T 4→ T 5→ T 6→ T 2, circulation L1 information is stored in the cyclical information table in database purchase server.
Select the workflow task T in subset set1 2as the start-up point of circulation L1, at start-up point T 2upper establishment entry condition L1s 1; Select the workflow task T in subset set1 3as the terminating point of circulation L1, at terminating point T 3upper establishment end condition L1e 1; Select the workflow task T in subset set1 4as the exit point of circulation L1, select in network connection model with T 4for the unidirectional delivery relation d not belonging to circulation L1 of starting point 8as the outlet of circulation L1; By start-up point T 2, entry condition L1s 1, terminating point T 3, end condition L1e 1, exit point T 4, outlet d 8be stored in the cyclical information table in database purchase server.
For terminating point T 3with exit point T 4set up mapping relations, by terminating point T 3, exit point T 4with outlet d 8be stored in the cycle control table in database purchase server.
The establishment of circulation L2
Circulating in exemplary plot as shown in Figure 4, selecting the subset set2 of the unidirectional delivery relation between workflow task and these tasks that includes; Wherein set2={T 4, T 8, T 9, T 10, T 11, T 12, T 13, T 14, d 8, d 9, d 10, d 11, d 12, d 13, d 14, d 15; Set2 is defined as circulation " L2 ", the circulating path obtaining this circulation L2 is: T 8→ T 9→ T 10→ T 11→ T 12→ T 13→ T 14→ T 4→ T 8, circulation L2 information is stored in the cyclical information table in database purchase server.
Select the workflow task T in subset set2 8as the start-up point of circulation L2, at start-up point T 8upper establishment entry condition L2s 1; Select the workflow task T in subset set2 10, T 13as the terminating point of circulation L2; At terminating point T 10upper establishment end condition L2e 1, at terminating point T 13upper establishment end condition L2e 2; Select the workflow task T in subset set2 10, T 11as the exit point of circulation L2, select in network connection model with T 10, T 11for the unidirectional delivery relation d not belonging to circulation L2 of starting point 19, d 16, d 17as the outlet of circulation L2; By start-up point T 8, entry condition L2s 1, terminating point T 10and T 13, end condition L2e 1and L2e 2, exit point T 10and T 11, outlet d 16, d 17and d 19be stored in the cyclical information table in database purchase server.
For terminating point and exit point set up mapping relations: terminating point T 10be mapped to exit point T 11; Terminating point T 13be mapped to exit point T 10; By terminating point T 10, T 10the exit point T mapped 11and outlet d 16, d 17; Terminating point T 13, T 13the exit point T mapped 10and outlet d 19be stored in the cycle control table in database purchase server.
The cyclical information table obtained, cycle control table are as shown in the table:
(D) workflow management services device is the network connection model building work stream example of the workflow task that step (B) creates, and controls the operation of workflow instance; Wherein, workflow management services device controls the execution circulated in workflow instance by tabling look-up, the termination control that the startup comprising circulation controls and circulates; Concrete steps are as follows:
(I) startup circulated controls
Workflow management services device judges whether the workflow task performed is included in the start-up point set that step (3) creates;
If do not comprised, then this circulation does not start;
If comprised, then this workflow task is the start-up point of circulation; In the cyclical information table of inquiry Work stream data storage server, whether this start-up point defines entry condition; Ifndef entry condition, then this circulation is defaulted as unconditional startup; If the entry condition of defining, judge whether entry condition is set up: if entry condition is set up, then this loop start; If entry condition is false, then this circulation does not start;
After loop start, workflow management services device converts the state of circulation to operation by ready; The workflow task comprised in circulation can repeatedly perform according to transitive relation and transmit;
The state of described circulation comprise ready, run, stop, exit; Wherein, the original state of circulation is ready; The transformation rule of recurrent state is as follows:
When workflow management services device judges that the entry condition of circulation is set up, after loop start or unconditionally startup, the state of circulation is converted to operation by ready;
When workflow management services device judges that the end condition of circulation is set up, loop termination or unconditionally stop, but the workflow task in circulation does not also pass from the outlet of the corresponding exit point of terminating point, and the state of circulation is converted to termination by operation;
After the workflow task in circulation passes from the outlet of exit point corresponding to the terminating point stopping this circulation, the state of circulation is converted to by termination and exits, and circulation terminates.
(II) termination circulated controls
When circulation is in running status, workflow management services device judges whether the workflow task performed is included in the terminating point set that step (4) creates;
If do not comprised, then this circulation does not stop;
If comprised, then this workflow task is the terminating point of circulation; In the cyclical information table of inquiry Work stream data storage server, whether this terminating point defines end condition; Ifndef end condition, then this circulation is defaulted as unconditional termination; If define end condition, judge whether end condition is set up: if end condition is set up, then this loop termination; If end condition is false, then this circulation does not stop;
1. loop termination, workflow management services device converts the state of circulation to termination by operation; The exit point that in the cycle control table of inquiry Work stream data storage server, this terminating point is corresponding, workflow task continues to transmit from the outlet of above-mentioned exit point; The state of circulation is converted to by termination and exits by workflow management services device, and circulation terminates;
2. circulate and do not stop, then perform following step (i), until circulation terminates;
I () workflow management services device judges whether the workflow task performed is included in the exit point set that step (6) creates; If do not comprised, then workflow task passes to other workflow task having direct transitive relation in the network connection model of the workflow task that step (B) creates, and forwards step (II) to and continues to perform until circulation terminates; If comprised, then this workflow task is the exit point of circulation; The cycle control table of data query storage server, finds out the outlet of this exit point, and workflow task is delivered to other workflow task by the direct transitive relation of other except above-mentioned outlet, forwards step (II) to and continues to perform until circulation terminates.
The detailed process flow diagram of above-mentioned steps respectively as shown in Figure 6, Figure 7.Describe in detail with Fig. 4 example below.
The startup of circulation L1 controls
When workflow task is delivered to T 2, workflow management services device judges T 2be included in the set of circulation L1 start-up point, T 2for L1 start-up point; T in the cyclical information table of inquiry Work stream data storage server 2on define entry condition L1s 1, judge L1s 1set up: circulation L1 starts; Workflow management services device converts the state of circulation L1 to operation by ready; Workflow task in circulation passes to T 3and according to path: T 2→ T 3→ T 4→ T 5→ T 6→ T 2repeatedly perform and transmit until the state of circulation L1 is for exiting.If judge L1s 1be false, then circulation L1 does not start, and workflow task is according to T 2→ T 3→ T 4perform.
The termination of circulation L1 controls
When workflow task is delivered to T 3, workflow management services device judges T 3be included in the set of circulation L1 terminating point, T 3for L1 terminating point; T in the cyclical information table of inquiry Work stream data storage server 3on define end condition L1e 1, judge L1e 1set up: circulation L1 stops; Workflow management services device converts the state of circulation L1 to termination by operation; T in the cycle control table of inquiry Work stream data storage server 3corresponding exit point T 4, workflow task is from exit point T 4outlet d 8continue to transmit; The state of circulation is converted to by termination and exits by workflow management services device, and circulation terminates; If judge L1e 1be false, then circulate and do not stop, workflow task is according to path T 3→ T 4→ T 5, T 3→ T 4→ T 7transmit.
The startup of circulation L2 controls
When workflow task is delivered to T 8, workflow management services device judges T 8be included in the set of circulation L2 start-up point, T 8for L2 start-up point; T in the cyclical information table of inquiry Work stream data storage server 8on define entry condition L2s 1, judge L2s 1set up: circulation L2 starts; Workflow management services device converts the state of circulation L2 to operation by ready; Workflow task in circulation passes to T 9and according to path: T 8→ T 9→ T 10→ T 11→ T 12→ T 13→ T 14→ T 4→ T 8repeatedly perform and transmit until the state of circulation L2 is for exiting.If judge L2s 1be false, then circulation L2 does not start, and workflow task is according to T 8→ T 9→ T 10→ T 11→ T 17perform and transmit.
The termination of circulation L2 controls
When workflow task is delivered to T 10, workflow management services device judges T 10be included in the set of circulation L2 terminating point, T 10for L2 terminating point; T in the cyclical information table of inquiry Work stream data storage server 10on define end condition L2e 1, judge L2e 1be false: circulation L2 does not stop; Workflow management services device judges T 10be included in the exit point set of circulation L2, inquiry cycle control table finds T 10outlet be d 19, workflow task forbids d 19transmission, but pass through d 11pass to T 11.
Workflow task is delivered to T 13, workflow management services device judges T 13be included in the set of circulation L2 terminating point, T 13for another terminating point of L2; T in the cyclical information table of inquiry Work stream data storage server 13on define end condition L2e 2, judge L2e 2set up: circulation L2 stops; Workflow management services device converts the state of circulation L2 to termination by operation; T in the cycle control table of inquiry Work stream data storage server 13corresponding exit point T 10, workflow task is from exit point T 10outlet d 19continue to transmit; The state of circulation is converted to by termination and exits by workflow management services device, and circulation terminates.
In an embodiment of the present invention, the network connection model of described workflow task can be in xml format or XPDL form is stored in data storage server or be stored on data storage server relevant database with the form of bivariate table in.

Claims (2)

1. realizing the method that workflow cycle controls by tabling look-up, it is characterized in that, comprise the following steps:
(A) workflow nodes model is set up
Workflow nodes is made up of server and computer client, to be connected to the performance element of the some computer client on network as workflow task; To be connected to the workflow management services device of the one or more first servers on network as distribute work stream task; To be connected to one or more second servers on network as data storage server; Wherein at least include cyclical information table and cycle control table in data storage server;
(B) network connection model of workflow task is set up
The task of workflow is responsible for performing by computer client, namely stops or be passed to other computer client after a workflow task is finished; The transmission of task is unidirectional, relies on the wired or wireless network between computing machine to connect and realizes; A direct transitive relation can only be had at most between any two workflow tasks, but be passed to multiple workflow task after allowing a workflow task to complete simultaneously; Wherein, direct transitive relation refers to not by the unidirectional delivery relation between two workflow tasks of other task;
Network connection model is made up of the unidirectional delivery relation between workflow task and adjacent task; The network connection model of this workflow task is stored in data storage server;
(C) circulation is created
Circulation is created according to following step:
(1), in the network connection model created in step (B), a subset including unidirectional delivery relation between workflow task and these workflow tasks is selected; , all there is one or more unidirectional delivery relation in any one workflow task from this subset, this workflow task constantly can be transmitted by these transitive relations, and again get back to this workflow task; Be a circulation by the workflow task in this subset and the unidirectional delivery contextual definition between these tasks, and be stored in the cyclical information table in data storage server; Wherein, a transitive relation can only belong at most a circulation;
(2) start-up point set is created
In the subset of step (1), select one or more workflow task as the start-up point of circulation, their set is called that start-up point is gathered; Only have start-up point could start a circulation; Start-up point set is stored in the cyclical information table in data storage server;
(3) entry condition is created
Establishment condition on the start-up point that step (2) creates, this condition is called entry condition; Only have when entry condition is set up, just allow startup one circulation; Entry condition is stored in the cyclical information table in data storage server; On certain start-up point in a circulation, an entry condition can only be defined at most, if do not define entry condition, be then defaulted as and unconditionally start circulation; When after loop start, comprising in circulation of task can repeatedly perform according to transitive relation and transmit, until circulation terminates;
(4) terminating point set is created
In the subset of step (1), select one or more workflow task as the terminating point of circulation, their set is called terminating point set; Only have terminating point could stop a circulation; Terminating point set is stored in the cyclical information table in data storage server;
(5) end condition is created
Establishment condition on the terminating point that step (4) creates, this condition is called end condition; Only have when end condition is set up, just allow termination one circulation; End condition is stored in the cyclical information table in data storage server; On certain terminating point in a circulation, an end condition can only be defined at most, if do not define end condition, then be defaulted as and unconditionally stop circulation;
(6) exit point set and outlet set is created
In the subset of step (1), select one or more workflow task as exit point, their set is called exit point set; In the network connection model of the workflow task set up in step (B), select one or more outlet using the above-mentioned exit point unidirectional delivery relation that is starting point as circulation, their set is called outlet set; Wherein, outlet can not be included in the subset selected by step (1), and exit point can corresponding one or more outlet, but outlet can only a corresponding exit point; Exit point set and outlet set are stored in the cyclical information table in data storage server;
(7) mapping relations of terminating point set and exit point set are created
Mapping relations are set up in the exit point set that the terminating point set created for step (4) and step (6) create; A terminating point can be mapped on one or more exit point; An exit point can be mapped on one or more terminating point; When terminating point stops a circulation time, the outlet of the exit point that workflow task only can map from this terminating point continues to transmit; The mapping relations of terminating point set and exit point set are stored in the cycle control table in data storage server;
(D) workflow management services device is the network connection model building work stream example of the workflow task that step (B) creates, and controls the operation of workflow instance; Wherein, the execution that workflow management services device controls to circulate in workflow instance by looking into cyclical information table in data storage server and cycle control table, the startup comprising circulation controls and the termination of circulation controls; Concrete steps are as follows:
(I) startup circulated controls
Workflow management services device judges whether the workflow task performed is included in the start-up point set that step (3) creates;
If do not comprised, then this circulation does not start;
If comprised, then this workflow task is the start-up point of circulation; In the cyclical information table of inquiry Work stream data storage server, whether this start-up point defines entry condition; Ifndef entry condition, then this circulation is defaulted as unconditional startup; If the entry condition of defining, judge whether entry condition is set up: if entry condition is set up, then this loop start; If entry condition is false, then this circulation does not start;
After loop start, workflow management services device converts the state of circulation to operation by ready; The workflow task comprised in circulation can repeatedly perform according to transitive relation and transmit;
(II) termination circulated controls
When circulation is in running status, workflow management services device judges whether the workflow task performed is included in the terminating point set that step (4) creates;
If do not comprised, then this circulation does not stop;
If comprised, then this workflow task is the terminating point of circulation; In the cyclical information table of inquiry Work stream data storage server, whether this terminating point defines end condition; Ifndef end condition, then this circulation is defaulted as unconditional termination; If define end condition, judge whether end condition is set up: if end condition is set up, then this loop termination; If end condition is false, then this circulation does not stop;
1. loop termination, workflow management services device converts the state of circulation to termination by operation; The exit point that in the cycle control table of inquiry Work stream data storage server, this terminating point is corresponding, workflow task continues to transmit from the outlet of above-mentioned exit point; The state of circulation is converted to by termination and exits by workflow management services device, and circulation terminates;
2. circulate and do not stop, then perform following step (i), until circulation terminates;
I () workflow management services device judges whether the workflow task performed is included in the exit point set that step (6) creates; If do not comprised, then workflow task passes to other workflow task having direct transitive relation in the network connection model of the workflow task that step (B) creates, and forwards step (II) to and continues to perform until circulation terminates; If comprised, then this workflow task is the exit point of circulation; The cycle control table of data query storage server, finds out the outlet of this exit point, and workflow task is delivered to other workflow task by the direct transitive relation of other except above-mentioned outlet, forwards step (II) to and continues to perform until circulation terminates.
2. realizing the method that workflow cycle controls according to claim 1 by tabling look-up, it is characterized in that, the state of circulation described in step (D) comprise ready, run, stop, exit; Wherein, the original state of circulation is ready; The transformation rule of recurrent state is as follows:
When workflow management services device judges that the entry condition of circulation is set up, after loop start or unconditionally startup, the state of circulation is converted to operation by ready;
When workflow management services device judges that the end condition of circulation is set up, loop termination or unconditionally stop, but the workflow task in circulation does not also pass from the outlet of the corresponding exit point of terminating point, and the state of circulation is converted to termination by operation;
After the workflow task in circulation passes from the outlet of exit point corresponding to the terminating point stopping this circulation, the state of circulation is converted to by termination and exits, and circulation terminates.
CN201210015996.4A 2012-01-18 2012-01-18 Method for realizing workflow cycle control by looking up table Expired - Fee Related CN102609809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210015996.4A CN102609809B (en) 2012-01-18 2012-01-18 Method for realizing workflow cycle control by looking up table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210015996.4A CN102609809B (en) 2012-01-18 2012-01-18 Method for realizing workflow cycle control by looking up table

Publications (2)

Publication Number Publication Date
CN102609809A CN102609809A (en) 2012-07-25
CN102609809B true CN102609809B (en) 2015-07-01

Family

ID=46527161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210015996.4A Expired - Fee Related CN102609809B (en) 2012-01-18 2012-01-18 Method for realizing workflow cycle control by looking up table

Country Status (1)

Country Link
CN (1) CN102609809B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573824B (en) * 2014-10-10 2020-04-03 腾讯科技(深圳)有限公司 Monitoring method and system for distributed computing system
CN112700204A (en) * 2019-10-23 2021-04-23 广州极飞科技有限公司 Workflow generation method and device in agricultural control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728165A (en) * 2005-07-04 2006-02-01 西安交通大学 Multitask coordinated dispatching method in use for workflow engine
CN101741666A (en) * 2010-02-26 2010-06-16 西安交通大学 Method to realize multi-instances in the workflow by network structure division
CN102043625A (en) * 2010-12-22 2011-05-04 中国农业银行股份有限公司 Workflow operation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728165A (en) * 2005-07-04 2006-02-01 西安交通大学 Multitask coordinated dispatching method in use for workflow engine
CN101741666A (en) * 2010-02-26 2010-06-16 西安交通大学 Method to realize multi-instances in the workflow by network structure division
CN102043625A (en) * 2010-12-22 2011-05-04 中国农业银行股份有限公司 Workflow operation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵文,胡文蕙,张世琨等.工作流元模型的研究与应用.《软件学报》.2003,第14卷(第6期),第1052-1059页. *

Also Published As

Publication number Publication date
CN102609809A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
CN103984818B (en) AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology
US20140075413A1 (en) Workflow-based application generator
US20150012330A1 (en) Work management method
US20140067836A1 (en) Visualizing reporting data using system models
CN103002490B (en) A kind of business simulating test macro and its implementation
Karnouskos et al. The IMC-AESOP architecture for cloud-based industrial cyber-physical systems
CN103093034B (en) Based on the Collaborative Design method of cloud computing
Casati et al. Towards business processes orchestrating the physical enterprise with wireless sensor networks
CN101976199A (en) Object-oriented middleware distributed system development platform
CN105278936A (en) Common software modeling method for building software model based on software meta-model
Bocciarelli et al. A language for enabling model-driven analysis of business processes
CN102203767A (en) Reconfiguring a model
Farwick et al. Towards living landscape models: Automated integration of infrastructure cloud in enterprise architecture management
CN102609809B (en) Method for realizing workflow cycle control by looking up table
Kaur et al. Interoperability among Internet of Things (IoT) components using model-driven architecture approach
Vukojevic-Haupt et al. Bootstrapping complex workflow middleware systems into the cloud
Yildiz et al. Centralized versus decentralized conversation-based orchestrations
CN107819598A (en) A kind of method and device for managing network function node
CN112418796B (en) Sub-process task node activation method and device, electronic equipment and storage medium
Holm et al. CloudFlow-an infrastructure for engineering workflows in the cloud
Peng et al. Business process assignment and execution in mobile environments
Alhaj et al. Traceability links in model transformations between software and performance models
Pradhan et al. Towards a product line of heterogeneous distributed applications
Janciak et al. A reference model for data mining web services
Schindelmann et al. A Subscription Service for Automated Communication and Fair Cost Distribution in Collaborative Blockchainbased Business Processes.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150701

Termination date: 20180118