Detailed description of the invention
Below in conjunction with better embodiment therein, the present invention program is described in detail.
In the scheme of the embodiment of the present invention, it is to define each flow tasks node in other words by presetting,
Set the definition data of each flow tasks node respectively, and generate workflow diagram based on each flow tasks node,
Visioning procedure example on the basis of the workflow diagram generated.Owing to workflow diagram contains multiple flow process
The definition data of task node, i.e. workflow diagram actually contain the flow process of multiple flow tasks node
The set of definition data, therefore, in following illustrating, illustrates flow tasks by flow definition data
The definition data of node, with workflow flow definition data illustrate workflow diagram or flow instance or
The definition data of flow instance workflow diagram.
Fig. 1 showing, the workflow engine architecture method based on interactive dynamic flow diagram of the present invention is implemented
The schematic flow sheet of example.
As it is shown in figure 1, the method in the present embodiment includes step:
Step S101: receive flow instance and process instruction;
Step S102: process instruction according to above-mentioned flow instance and obtain from workflow database real with above-mentioned flow process
Work process flow definition data, the first kind flow service data that example is corresponding, and appoint according to default each flow process
Business node and the corresponding relation of flow definition data, define data, the described first kind by described work process flow
Flow service data is converted to flow instance workflow diagram and shows;
Step S103: receive business operating instructions;
Step S104: with based on described business operating instructions process after flow service data to described workflow
First kind flow service data in data base is updated.
According to the scheme in the present embodiment, it is when receiving flow instance and processing instruction, from Work stream data
Storehouse obtains work process flow definition data, the first kind flow service data corresponding with this flow instance, and will
This work process flow definition data, first kind flow service data are converted to flow instance workflow diagram and carry out
Display, consequently facilitating check this flow instance workflow diagram and corresponding first kind traffic flow number in time
According to, but also with the flow service data after processing based on business operating instructions to the in workflow database
One class flow service data is updated.It is to say, flow tasks node is mutual with flow definition data
Corresponding, when flow for displaying example workflow diagram, it is simultaneously achieved the first kind flow process of this flow instance
The display of business datum, and can be by the flow tasks of corresponding steps in this flow instance workflow diagram
Node performs the operation to each process step, it is not necessary to reopen corresponding forms pages for each step,
It is performed without repeatedly page jump, directly just can realize on the flow instance workflow diagram of display the
Checking and relevant treatment to flow service data of one class flow service data, it is achieved that for workflow
The interactive process of figure, convenient and swift, improve the treatment effeciency of workflow.
Wherein, above-mentioned first kind flow service data, refer to when flow for displaying example workflow diagram, need
The flow service data that user to be simultaneously displayed to checks, generally, first kind flow service data can
The information relevant with state to refer to the most processed grade of each process step.Certainly, based on being actually needed, it is possible to
To be arranged to other kinds of information.
Due to the corresponding relation of the flow tasks node in above-mentioned workflow diagram with corresponding flow definition data,
Therefore, in the present invention program, need to preset flow tasks node and each flow tasks node is corresponding
Flow definition data.
When concrete setting process task node and corresponding flow definition data, the tool of each flow tasks node
The body form of expression can be set according to being actually needed, such as can be based on shape, size, pattern etc.
Difference makes a distinction, it is also possible to is to use identical shape, pattern, such as square frame etc., and uses in square frame
Different word contents is distinguish between, it is also possible to by different numberings or other information as this flow tasks
The uniqueness labelling of node, concrete implementation mode can by use various possible in the way of carry out, as long as can
Each flow tasks node is distinguish between, the most exhaustive at this.
After the flow definition data setting each flow tasks node and each flow tasks node, can be by each
The flow definition data of flow tasks node and correspondence are stored.Owing to each flow tasks node is with corresponding
Flow definition data are relations one to one, therefore, when setting up workflow, and can be directly to flow process
Task node is edited, and generates workflow diagram.
Accordingly, in a concrete example of the present invention program, it is also possible to include step:
Step S1001: receive workflow diagram edit instruction, determine phase according to this workflow diagram edit instruction
Annexation before and after each flow tasks node answered and each flow tasks node, saves according to each flow tasks
Before and after point, each flow tasks node, annexation generates workflow diagram.After generating workflow diagram,
A concrete flow instance can be created based on this workflow diagram, generate above-mentioned flow instance workflow
Figure.
Here workflow diagram edit instruction, can be to include that the various possible editors such as dragging, connection refer to
Order.Wherein in a concrete example, the above-mentioned flow tasks node set can be arranged in a certain way
Row or placement select for user.When needing to set up new workflow diagram, can be required by dragging
The flow tasks node wanted, and the mode of annexation generates before and after setting up between each flow tasks node,
Correspondingly, above-mentioned workflow diagram edit instruction can be to drag instruction, link order etc..
The workflow diagram of above-mentioned generation, can preserve and issue, in order to can be based on this workflow
Figure creates relevant concrete flow instance.Accordingly, after above-mentioned steps S100, it is also possible to include step:
S1002: receive workflow diagram and issue instruction, identifies each flow tasks joint in described workflow diagram
Annexation before and after point, each flow tasks node, and fixed with flow process according to default each flow tasks node
Before and after the justice corresponding relation of data, each flow tasks node, annexation generates work process flow definition data,
This work process flow definition data are stored in described workflow database.
Thus, the workflow diagram of generation, can issue, and after issuing, be based on presetting
Each flow tasks node and the corresponding relation of flow definition data, each flow tasks node between before and after connect
Connect relation, generate work process flow definition data and be stored in workflow database, it is simple to the storage of information and
Read.And when storing, any possible data form can be used to store, such as XML lattice
Formula etc..Concrete storage mode can be set according to being actually needed.
After the workflow diagram of establishment is issued and is stored, it is possible to create based on this workflow diagram
Build concrete flow instance.When visioning procedure example, based on selected workflow diagram (same work
Streaming system may create multiple different workflow diagrams), corresponding flow instance workflow can be generated
Figure, after flow instance has created, the follow-up processing procedure for this flow instance is based on selected
The flow definition logic of fixed workflow diagram is carried out.
Owing in workflow database, workflow diagram is to store with the form of work process flow definition data,
Therefore, when visioning procedure example, the flow instance workflow diagram created also is first with flow instance
Work process flow definition data are stored in workflow database.If being accomplished by this stream when visioning procedure example
Journey example workflow diagram shows, or in the flow process that this flow instance workflow diagram is correlated with
During operation, then need to read corresponding work process flow definition data from workflow database, and be converted
Show for concrete flow instance workflow diagram.
Accordingly, the situation that this flow instance workflow diagram is shown it is accomplished by when visioning procedure example
Under, above-mentioned flow instance processes instruction and may refer to arrange the instruction automatically generated, at concrete pin based on system
In the case of opening during flow process example operation, this flow instance processes instruction and may refer to based on one
The instruction that fixed option sends.
On the other hand, above-mentioned receive flow instance process instruction time, it is also possible to obtain second from data base
Class flow service data, and when showing above-mentioned flow instance workflow diagram by this Equations of The Second Kind traffic flow number
According to showing.Correspondingly, when receiving business operating instructions, it is also possible to refer to based on this business operation
Equations of The Second Kind flow service data in data base is updated by the flow service data after order processes.
Wherein, this Equations of The Second Kind flow service data, may refer to when flow for displaying example workflow diagram without
Need display, after the edit instruction receiving flow tasks node, be shown to the traffic flow number that user checks again
According to.Generally, this Equations of The Second Kind flow service data can be with flow instance or the shape of each process step
The business datum that state is unrelated, such as, process people's information, process time and other associated traffic data etc..
Certainly, based on being actually needed, it is also possible to be arranged to other kinds of information.
Wherein, the above-mentioned data base in order to store Equations of The Second Kind flow service data, due to different Considerations
Difference, can do different settings.
In application scenes, it may not be necessary to the storage position of various different types of data is made a distinction,
It is to say, the work process flow definition data of the related procedure definition data of workflow diagram, flow instance,
First kind flow service data, Equations of The Second Kind flow service data can be stored in same data base, now,
Above-mentioned data base refers to above-mentioned workflow database.
In other application scenarios, based on data type, the significance level of different types of data or source
Deng Consideration, it may be necessary to separately deposited by Equations of The Second Kind flow service data, now, above-mentioned data base is
Refer to be different from the data base of above-mentioned workflow database, such as, can be to store Equations of The Second Kind traffic flow number specially
According to Service Database.
It is described in detail as a example by a concrete processing procedure below.
When carrying out concrete process, as it has been described above, flow tasks node and each flow process need to first be preset
The flow definition data that task node is corresponding.Each flow tasks size of node, shape, pattern, literal table
The mode of reaching can determine based on being actually needed, as long as can make a distinction variant flow tasks node i.e.
Can.After setting each flow tasks node and flow definition data corresponding to each flow tasks node, will
The flow definition data correspondence storage of each flow tasks node and its correspondence.It is to say, each flow tasks
Node is corresponding with respective flow definition data respectively.
After setting the flow definition data of each flow tasks node and correspondence thereof, set up workflow follow-up
During journey figure, flow tasks node can be directly based upon and carry out, and without redefining flow definition data etc.
Deng.Certainly, based on the needs in actual application, it is also possible to set up new flow tasks node with corresponding
Flow definition data, or the flow definition data of existing flow tasks node and correspondence thereof are carried out
Amendment etc., not repeats in detail at this.
When workflow set up by needs, the above-mentioned flow tasks node set can be in some way
Arrangement or place, such as in the way of icon, in the way of list etc., concrete arrangement modes of emplacement is not
Limit, selects for user.It is yet to be built that user can select to need to apply to it by modes such as dragging, choose
The vertical flow tasks node in workflow diagram.As a example by dragging, for user level, can pass through
The mode dragged sends workflow diagram edit instruction, the most specifically can select with named flow tasks node
Select instruction, so that required flow tasks node is dragged to work process flow editing interface.To side of the present invention
For case, after receiving the selection instruction of flow tasks node, selected flow tasks node is shown dynamic
In the editing pictures of state interactive mode flow process animation, process for user.
After have selected required flow tasks node, can be by dragging between each flow tasks node
Before and after order, or set up connecting line between each flow tasks node, determine that each flow tasks saves with this
Annexation before and after between point, to form a complete workflow diagram.
Before and after each flow tasks node selects between flow tasks node complete, each, annexation has determined
After one-tenth, define a complete workflow diagram, and this workflow diagram can be issued.
User by clicking on the issue button of workflow diagram editing interface, control, options or can pass through it
His mode, sends workflow diagram and issues instruction.
The present invention program, after receiving workflow diagram issue instruction, identifies each stream in workflow diagram
Annexation before and after between journey task node and each flow tasks node, and according to default each flow process
Annexation before and after between task node and the corresponding relation of flow definition data, each flow tasks node,
Generate work process flow definition data, and this work process flow definition data are stored in workflow database
In, in order to concrete flow instance can be created based on this workflow diagram during follow-up work.
When creating concrete flow instance, based on selected workflow diagram, flow instance can be sent
Create instruction, in this flow instance creates instruction, the mark of the workflow diagram created can be included
Which workflow diagram visioning procedure example is information, to be shown to be based on.Refer to receiving flow instance establishment
After order, generate corresponding flow instance workflow diagram.When need not at visioning procedure example just to this
In the case of flow instance workflow diagram shows, the work relevant to this flow instance workflow diagram
Stream flow definition data only exist in workflow database.It is accomplished by this flow process real when visioning procedure example
In the case of example workflow diagram shows, or when carrying out concrete flow operations, need from work
Flow database reads out the work process flow definition data corresponding with this flow instance, and by this workflow stream
Cheng Dingyi data are converted to concrete flow instance workflow diagram and show.
As a example by opening this workflow diagram time during concrete flow operations, receiving at flow instance
During reason instruction, now, it can be specifically that a flow instance workflow diagram is beaten that this flow instance processes instruction
Open instruction, process instruction according to this flow instance and obtain the work corresponding with this flow instance from workflow database
Make stream flow definition data, first kind flow service data, according to default each flow tasks node and flow process
The corresponding relation of definition data, defines data, described first kind flow service data by described work process flow
Be converted to flow instance workflow diagram show.It is to say, based on default each flow tasks node
With the corresponding relation of flow definition data, the work process flow of flow instance can be defined in data relevant
Flow definition data parsing, it is converted into corresponding flow tasks node, owing to each flow process being appointed when issuing
Annexation between business node resolves to corresponding data content and defines one of data as work process flow
Point, therefore, based on the parsing to work process flow definition data, can easily acknowledge that each flow tasks
Annexation before and after between node.
Above-mentioned open flow instance workflow diagram time, real for passing through the flow process of some processing procedure
Example, this flow instance has had relevant flow service data.Therefore, except obtaining above-mentioned first kind flow process
Business datum, facilitates user to understand up-to-date flow processing progress.On the other hand, it is also possible to obtain from data base
Take above-mentioned Equations of The Second Kind flow service data, be actually needed based on concrete, different settings can be done.
After flow instance workflow diagram is shown, can be based on this flow instance workflow diagram
Carry out the workflow processing operation being correlated with.In these workflow processing operate, it is mainly based upon flow tasks
Node is carried out.As a example by wherein certain flow tasks node, can send for this flow tasks node
Edit instruction, after receiving this edit instruction, at not yet corresponding to this flow tasks node Equations of The Second Kind stream
In the case of journey business datum shows, can obtain and above-mentioned flow instance workflow diagram from data base
Corresponding Equations of The Second Kind flow service data, is shown this Equations of The Second Kind flow service data.Based on Equations of The Second Kind
Flow service data, can be so that user understands the concrete service data information of certain process step, such as
Concrete processes people, process time or other relevant information.
Wherein, this edit instruction, can be set as detecting that user recognizes when clicking on this flow tasks node
For receiving this edit instruction, in order to just can check in time when user clicks this flow tasks node
And process.Can also be set to detecting that user clicks this flow tasks node and have selected
During corresponding option, just it is considered to have received edit instruction, to avoid user to click flow tasks joint by mistake
Relevant treatment to be carried out during point, causes the waste processing resource.The concrete process side receiving edit instruction
Formula, can be set based on being actually needed, and not repeats in detail at this.
Flow instance workflow diagram based on display, user can be in this flow instance workflow diagram
Process step corresponding to each flow tasks node carry out business operation, the present invention program receives the business of correspondence
Operational order, and with based on this business operating instructions process after flow service data to workflow database
Equations of The Second Kind flow service data in first kind flow service data, data base is updated.Wherein, here
Based on business operating instructions process after flow service data, may refer to after particular procedure with stream
The status data that journey task node is relevant, particular procedure here can be such as sign for, send, rollback,
Fetch, the traffic flow relevant with the state of currently pending flow tasks node place process step such as calcellation
Data, such flow service data, as described above set-up mode, may be used for Work stream data
The first kind flow service data in storehouse is updated.On the other hand, here based on business operating instructions process
After flow service data, it is also possible to be to include other kinds of business datum, the most each flow tasks node
Process people's name of place process step, process time and other any possible information etc., such stream
Journey business datum, as described above set-up mode, may be used for the Equations of The Second Kind flow process industry in data base
Business data are updated.Certainly, need to do different settings based on reality application.
Above-mentioned flow service data is updated after, based on update after flow service data, permissible
Each flow tasks node in flow instance workflow diagram is marked in a particular manner, such as different
The FB(flow block) of color, different colours flow tasks node in Word message or directly appoint in flow process
Certain ad-hoc location labelling " processed " etc. of business node, enables to that open-and-shut to know this flow process real
Which process step in example workflow diagram is the most processed, it is simple to being smoothed out of workflow processing.
In the case, it is also possible to by current or next step need the flow tasks joint that the process step that carries out is corresponding
Point highlights, to remind relevant treatment people to process this process step.Additionally, also may be used
With the process time according to flow instance workflow diagram, the history node path of playing flow, it is simple to whole
The process progress of individual workflow diagram, history process checking of path.
According to the workflow engine architecture method based on interactive dynamic flow diagram of the invention described above, based on stream
Corresponding relation between journey task node and flow definition data, can be directly based upon flow tasks node and carry out
The operation of work process flow correlation step, it is achieved be directly based upon the flow operations of dynamically interactive type flow chart, nothing
Need to carry out the operation that form page is facial, whole operating process directly can be carried out at flow chart, short and sweet,
And treatment effeciency is high.
According to the workflow engine architecture method based on interactive dynamic flow diagram of the invention described above, the present invention
Also provide for a kind of workflow engine architecture system based on interactive dynamic flow diagram.Fig. 2 shows this
The structural representation of bright system embodiment.
As in figure 2 it is shown, the system in the present embodiment includes:
Traffic flow module 201, is used for receiving flow instance and processes instruction, obtain and stream from workflow database
Work process flow definition data, the first kind flow service data that journey example is corresponding, according to default each flow process
The corresponding relation of task node and flow definition data, by described work process flow definition data, described first
Class flow service data is converted to flow instance workflow diagram and shows, and receives business operating instructions,
With based on this business operating instructions process after flow service data to the first kind in described workflow database
Flow service data is updated.
Wherein in a concrete example, as in figure 2 it is shown, should workflow based on interactive dynamic flow diagram
Exchange architecture system can also include flow definition module 202, on this basis, it is also possible to include flow process
Engine modules 203.
Wherein, this flow definition module 202, it is used for receiving definition of work flow figure edit instruction, according to this work
Make before and after flow definition figure edit instruction determines corresponding each flow tasks node and each flow tasks node
Annexation, and according to annexation before and after each flow tasks node, each flow tasks node, generate work
Make flow chart, and when receiving workflow diagram and issuing instruction, described workflow diagram is issued;
This flow engine module 203, for receiving the above-mentioned workflow diagram that flow definition module 202 is issued,
Identify annexation before and after each flow tasks node in described workflow diagram, each flow tasks node,
And according to default each flow tasks node and the corresponding relation of flow definition data, each flow tasks node
Front and back annexation generates work process flow definition data, is stored in described by this work process flow definition data
In workflow database.
In a concrete example, above-mentioned flow engine module 203, it is also possible to be used for receiving traffic flow module
The 201 above-mentioned flow instances sent process instruction, and process instruction from Work stream data according to above-mentioned flow instance
Storehouse obtains work process flow definition data, the first kind flow service data corresponding with described flow instance, also
With based on described business operating instructions process after flow service data to first in described workflow database
Class flow service data is updated.
Accordingly, as in figure 2 it is shown, in this concrete example, above-mentioned flow engine module 203 specifically can be wrapped
Include:
Flow process analytics engine 2031, for receiving the described workflow diagram that described flow definition module is issued,
Identify annexation before and after each flow tasks node in described workflow diagram, each flow tasks node,
And according to default each flow tasks node and the corresponding relation of flow definition data, each flow tasks node
Front and back annexation generates work process flow definition data;
Flow data engine 2032, the work process flow obtained after being resolved by flow process analytics engine 2031 is fixed
Justice data are stored in workflow database, and the flow instance process receiving traffic flow module 201 transmission refers to
Order, processes instruction according to this flow instance and obtains the work corresponding with described flow instance from workflow database
Stream flow definition data, first kind flow service data, define data, first kind stream by this work process flow
Journey business datum returns to traffic flow module 201, and the traffic flow sent with flow operations engine 2033
First kind flow service data corresponding in workflow database is updated by data;
Flow operations engine 2033, for receive traffic flow module 201 send based on described business operation
Flow service data after instruction process, and this flow service data is sent out 2032 to described flow data engine
Send.
In practical work process, it is also possible to relate to the amendment of the flow definition data to flow process task node.
At this point it is possible to send instruction by flow definition module 202, this instruction sends through flow process analytics engine 2031
To flow data engine 2032, flow data engine 2032 obtain relevant flow process from workflow database fixed
Justice data, corresponding with flow definition data according to default flow tasks node by flow process analytics engine 2031
Relation, is to return to flow definition module 202 after concrete flow tasks node by this flow definition data parsing
Show, it is simple to this flow tasks node is modified.Or can also be by flow process analytics engine 2031
Directly flow definition data are returned to flow definition module 202, by flow definition module 202 according to default
Flow definition data are converted to flow tasks joint by flow tasks node and the corresponding relation of flow definition data
Show after Dian, it is simple to the flow definition data of this flow tasks node or correspondence are modified.Base
In actual needs, different settings can be done.
Wherein in a concrete example, above-mentioned traffic flow module 201, refer to receiving flow instance process
When making, it is also possible to obtain Equations of The Second Kind flow service data from data base, and by this Equations of The Second Kind flow service data
Show when showing above-mentioned flow instance workflow diagram, it is also possible to refer to receiving above-mentioned business operation
When making, also with based on this business operating instructions process after flow service data to second in above-mentioned data base
Class flow service data is updated
As in figure 2 it is shown, in this concrete example, above-mentioned traffic flow module 201 specifically can include:
Animation interactive unit 2011, is used for receiving flow instance and processes instruction, this flow instance is processed instruction
Send to flow data interface unit 2012, business datum interface unit 2014, appoint according to default each flow process
Business node and the corresponding relation of flow definition data, the workflow stream that flow data interface unit 2012 is obtained
Cheng Dingyi data, first kind flow service data are converted to flow instance workflow diagram and show, by industry
The Equations of The Second Kind flow service data that business data interface unit obtains shows, and receives business operating instructions,
Flow service data after processing based on this business operating instructions is to flow operations interface unit 2013, business
Data interface unit 2014 sends;
Flow data interface unit 2012, for processing instruction from workflow database according to described flow instance
Obtain work process flow definition data, the first kind flow service data corresponding with described flow instance, and will
Work process flow definition data, first kind flow service data that this described flow instance is corresponding return to described
Animation interactive unit 2011;
Flow operations interface unit 2013, for based on the traffic flow after the process of described business operating instructions
First kind flow service data in described workflow database is updated by data;
Business datum interface unit 2014, for according to described flow instance process instruction from data base obtain with
The Equations of The Second Kind flow service data that described flow instance is corresponding, and this Equations of The Second Kind flow service data is returned to
Described animation interactive unit 2011.
Similar with the invention described above method, in order to store the data base of Equations of The Second Kind flow service data, permissible
Refer to above-mentioned workflow database, it is also possible to refer to independent Service Database.Exemplary shown in Fig. 2
In explanation, being to illustrate as a example by workflow database, Service Database, this explanation is not in order to right
The present invention program constitutes restriction.
The specific implementation of each module in present system, unit etc., can be with the invention described above method
In identical, not repeat in detail at this.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed,
But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area
Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and
Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended
Claim is as the criterion.