Summary of the invention
For the existing deficiency of prior art, technical matters to be solved by this invention is to provide a kind of flow nodes backing method for intelligent grid scheduling.
For realizing above-mentioned goal of the invention, the present invention adopts following technical scheme:
A flow nodes backing method for intelligent grid scheduling, comprises the steps:
Node rollback processing relevant information is set and stores the relevant position of database into;
Flow process promoter selects the circulation treatment scheme having arranged in database, and submits data to;
The node rollback processing authority of inquiring about and obtain present node information and present node in database, determines whether to need rollback;
If do not needed or can not rollback, enter next node, repeat above-mentioned steps;
If need rollback, by current node state, XM rollback flow process.
Wherein more preferably, described node rollback processing relevant information comprises: nodal information, flow process running flows to the authority information with corresponding flow process participant.
Wherein more preferably, the step of described XM rollback flow process further comprises:
1) from rollback start node, start, to setting up execution route, to search rollback destination node;
2) current flow process rollback destination node running status is set and is set to obstruction, the corresponding business datum of buffer memory;
3) obtain the next node of rollback destination node, judge the running status of this node, by the concrete state XM rollback flow process of this node;
Wherein more preferably, in described step 3), if this node state, for blocking node,, by this node branch cleaning situation, is carried out the original instance data of removing this node operation, put this node state for not carrying out.
Wherein more preferably, described by this node branch cleaning situation, the step of carrying out the original instance data of removing this node operation further comprises:
If this node is in certain branch's scale removal process, the cleaning of Ze Gai branch finishes, and continues the cleaning of next branch, so circulation, until all branches of this node clean out, flow process rollback finishes, temporary business datum;
If this node is not in branch's scale removal process, flow process rollback finishes, temporary business datum.
Wherein more preferably, in described step 3), if node state, for having moved node, is carried out the original instance data of removing this node operation, putting current state is off-duty, and temporary business datum, further carries out flow processing by the type of destination node.
Wherein more preferably, by the step of the type execution flow processing of destination node, further comprise:
If node type, for dispersing gateway, performs step respectively 3 to each branch); If this node type is not to disperse gateway, directly perform step 3);
Wherein more preferably, in described step 3), if node state is for not carrying out, shows that this node is in Yi Ge branch, and do not carry out, finish branch's scale removal process.
Flow nodes backing method provided by the present invention, by realize operation node rollback in dispatching of power netwoks flow process, dynamically specified node retracted position cascading delete have completed node, can solve the practical difficulty that in actual electric network business, circulation is controlled about node, meet well the flow process rollback demand in actual electric network business.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
In grid dispatching management system (abbreviation system), in order to improve the collaborative work ability of organization internal, improve whole office efficiency, workflow has become the important component part in administration of power networks personnel routine work.In existing grid dispatching management system, every routine work comprises overhaul of the equipments, interruption maintenance etc. a few days ago, has all applied each method in workflow technology.
The invention provides a kind of flow nodes backing method for intelligent grid scheduling, comprise the steps: configuration node rollback flow process: arrange from node rollback processing relevant information and store the relevant position of database into; XM rollback flow process: flow process promoter selects the circulation treatment scheme having arranged in database, and submits data to; The node rollback processing authority of inquiring about and obtain present node information and present node in database, determines whether to need rollback; If do not needed or can not rollback, enter next node, and return to above-mentioned steps; If need rollback, by current node state, XM rollback flow process.Below flow nodes backing method provided by the present invention is launched to describe in detail.
First, introduce configuration node rollback flow process, arrange from node rollback processing relevant information and store the step of the relevant position of database into.
In Regulation flow process, when local dispatching center and provincial dispatching center carry out work exchange, or inner each department in dispatching center is when exchange, and utilizes workflow technology can significantly improve the work efficiency that relates to multidisciplinary task.For example, overhaul of the equipments application is carried out at local regulation and control center, only need set up a specific maintenance flow process and just can carry out work and carry out.Fig. 1 is in grid dispatching management flow process, the part schematic diagram of overhaul of the equipments flow process.Overhaul of the equipments flow process is applied for by superior unit of local unit of subordinate, then by superior unit, carries out application approval.
Because existing workflow technology is when the actual treatment dispatching of power netwoks operation flow, often can not meet some specific business demands.While applying workflow technology in these specific transactions flow processs of electrical network, user need to repaint existing work process flow figure, generates corresponding flow definition model.By local unit of subordinate start flow, superior unit applies for, by Workflow Management System, carries out flow process automatic flow, carries out predetermined workflow.
Rollback node often in flow process somewhere participant find the corresponding business datum of current workflow and do not meet standard, as in overhaul of the equipments flow process, overhaul of the equipments canonical parameter and physical device are not inconsistent, or the business datum that needs interim modification to circulate.Flow process rollback operation often needs to have certain authority, and in general, the participant with certain trial authority just has the right this flow process to take rollback operation, to realize the control to whole workflow.These authorities just need to be configured in flow definition model, when Workflow Management System finds that corresponding participant has rollback authority, just provide flow process Backward Function.
In the present invention, when node rollback flow process is configured in grid dispatching management system, each flow process has been built to corresponding flow instance model (Definition Model), in flow definition model, configure the structural information of whole flow process running and node rollback processing relevant information (for example, nodal information, flow process running flow to and corresponding flow process participant's authority information etc.) and stored the relevant position of database into.System can derive corresponding flow instance model according to flow definition model.And for the running example of each flow process, system has all been set up corresponding flow instance model, has stored the runtime data of each running example in instance model, comprises running status and the business datum of example node.In system, can obtain according to flow definition model and flow instance model the full detail of each running example.In flow instance model, each flow nodes in flow instance has been defined to three kinds of state: BLOCK, FINISH, NULL.It is FINISH that node moves node state when complete, and node state when blocked state is BLOCK, and off-duty node state is NULL.
Workflow technology is in the practical application of electrical network business, and its core is the modeling to administration of power networks workflow.Specifically comprise according to the definition of workflow and make administration of power networks Work flow model, utilize flow definition assembly or element to describe actual electric network manage workflow, explain the real-world operation of whole administration of power networks business.By the corresponding business of Regulation (as overhaul of the equipments, prediction scheme rehearsal etc.) flow process is carried out to modeling, can clear, intactly explain the business procedure of actual electric network management operation; After modeling completes, by the corresponding administration of power networks Work flow model of parsing of Workflow system platform, realize the automated operation of actual electric network management service.Be below in administration of power networks, the concrete form of an overhaul of the equipments procedural model defined file:
Secondly, introduce the concrete steps of XM rollback flow process.
When grid dispatching management system starts to process the flow process in actual electric network dispatching services, flow process promoter selects the flow instance model having arranged in database, and submits data to system; The node rollback processing authority of present node information and present node is inquired about and obtained to system in database, determines whether to need rollback.Fig. 2 shows the part of nodes of overhaul of the equipments flow processing operation in Fig. 1, during administration of power networks maintenance process flow operation, to each Service Period stepwise disposal in administration of power networks.Wherein task application, applying unit's audit, specific responsibility are accepted the current flow process of communication division, section office's 2 these nodes of countersign and are all passed by; Communication mode specific responsibility countersign, section chief's audit, section office's 1 countersign, 2 sections chief of section office examine, section office's 3 these nodes of countersign are current in blocked state, carry out task processing; Section office's 1 section chief audit, section office's 3 section chiefs' audits, section chief ratify that these nodes are current also not to be gone to.In actual flow process running, the running of each node can produce business datum, all need to business datum, be stored by Workflow Management System.When requirements of process rollback operation, not all forerunner's business datum all needs to modify.Therefore,, when flow process rollback, Workflow Management System need to be ended internodal business datum to rollback by rollback start node and keep in.Like this, while again circulating, can provide the data snapshot of each node after flow process rollback, can significantly improve the efficiency of flow process secondary circulation.
If do not needed or can not rollback, enter next node, and return to above-mentioned steps and continue to carry out next flow nodes.When there is flow process rollback operation, first according to flow definition model inquiry present node, whether there is rollback authority.In practical business demand, not all node can carry out rollback operation, therefore, when each node operation, according to flow definition model, judges whether it has rollback authority, has realized the control of authority of node rollback operation.
If need rollback, by current node state, XM rollback flow process.When flow nodes rollback operation, need to be according to the position of actual traffic data and process flow operation situation Dynamic Selection flow process rollback, the position of rollback different in different flow instances.Therefore, during flow nodes rollback operation, make grid dispatching management system according to actual needs the present node of operational scheme be return back to any forerunner's node, realize the choice of dynamical of node retracted position.When there is flow process rollback operation, by rollback start node, specify flow process rollback destination node, now, flow engine is according to flow definition model, from rollback destination node, start to setting up execution route (PATH), and in this path, mainly carry out the removing of flow instance node service data and the interim storage of business datum.In carry out in rollback path, from rollback destination node, by the running status value of this node, be obstruction (BLOCK), then search downwards successively, carry out the operation of example knot removal, and corresponding business datum is stored, the snapshot of data content is provided when facilitating flow process to re-execute.
As shown in Figure 3, the concrete steps of flow nodes backing method provided by the present invention are as follows:
1. from rollback start node, start, to setting up execution route, to search rollback destination node.
2. current flow process rollback destination node running status is set and is set to obstruction (BLOCK), temporary corresponding business datum in buffer memory.
3. obtain the next node of rollback destination node, judge the running status of this node, by the concrete state XM rollback flow process of this node.
If 4. present node state is BLOCK, show that node is to block node., according to this node branch cleaning situation, carry out the original instance data of removing this node operation, put this node state for not carrying out.Specific as follows: if this node is in certain branch's scale removal process, the cleaning of Ze Gai branch finishes, continue the cleaning of next branch, so circulation, until all branches clean out, flow process rollback finishes, temporary business datum continues to carry out flow process; If present node is not in branch's scale removal process, flow process rollback finishes, and temporary business datum continues to carry out flow process.
If 5. node state is FINISH, show that node is to have moved node, carry out the original instance data of removing this node operation, putting current state is off-duty, temporary business datum, further carries out flow processing by the type of destination node.Specific as follows: if node type is for dispersing gateway, 3. each branch to be performed step respectively; If this node type is not to disperse gateway, directly execution step 3..
If 6. node state is NULL, show that this node is in Yi Ge branch, and do not carry out, finish branch's scale removal process.
This flow nodes backing method is the rollback operation of arbitrary node in realization flow well; such as in the dispatching of power netwoks core processes such as scheduling grid switching operation flow process, relay protection customization flow process, equipment deficiency closed loop management flow process; in flow chart, data are examined the obstructed out-of-date running status that needs human intervention flow process; when flow process is assigned to certain operation node; can utilize method provided by the present invention to carry out flow process control, meet well the flow process rollback demand in actual electric network business.Several embodiment below by grid dispatching management system describe respectively:
Embodiment mono-: adjacent node serial rollback operation in overhaul of the equipments flow process
As shown in Figure 4, in overhaul of the equipments flow process, executable operations, these two node flow processs of terminates operation are passed by, and filing node is in blocked state, and end node is not yet carried out.Flow performing, is filled in wrong needs and is revised if filing people finds terminates operation Nodes list content during node to filing, only need carry out flow process rollback operation, specifies filing node to terminates operation node, carries out adjacent node serial rollback.Concrete steps are as follows:
1. flow process starts, to setting up execution route, to search terminates operation node from rollback filing node.
2. current flow process terminates operation node running status is set and is set to obstruction (BLOCK), temporary corresponding business datum in buffer memory.
3. obtain the next node of rollback destination node and file node, the running status of judgement filing node, by the concrete state XM rollback flow process of filing node.
4. current filing node state is for blocking node, and current filing node is in branch's scale removal process, and flow process rollback finishes, and temporary business datum continues to carry out flow process.
Embodiment bis-: serial cross-node rollback operation in overhaul of the equipments flow process
The present embodiment and embodiment mono-are basic identical, and in overhaul of the equipments flow process as shown in Figure 5, executable operations, these two node flow processs of terminates operation are passed by, and filing node is in blocked state, and end node is not yet carried out.In final archiving process, if filing people finds executable operations Nodes list content, fill in wrong needs and revise, specify filing node to executable operations node, only need need to carry out serial cross-node rollback operation.Concrete steps are as follows:
1. flow process, from filing node, is searched executable operations node, from filing node, starts to set up execution route to executable operations node.
2. current flow performing running node running status is set and is set to obstruction (BLOCK), temporary corresponding business datum in buffer memory.
3. the next node that obtains rollback destination node is terminates operation node, and the running status of judgement terminates operation node, by the concrete state XM rollback flow process of terminates operation node.
If 4. terminates operation node state, for having moved node, is carried out the original instance data of removing the operation of terminates operation node, putting current terminates operation node state is off-duty, temporary business datum.This node type is not to disperse gateway, directly obtains the next node of terminates operation node and files node, the running status of judgement filing node.Current filing node state is for blocking node, and current filing node is in branch's scale removal process, and flow process rollback finishes, and temporary business datum continues to carry out flow process.
Embodiment tri-: in countersign, repair branch node in flow process and return back to trunk nodal operation
In the countersign flow process shown in Fig. 6, wherein task application, applying unit's audit, specific responsibility are accepted the current flow process of communication division, section office's 2 these nodes of countersign and are all passed by; Communication mode specific responsibility countersign, section chief's audit, section office's 1 countersign, 2 sections chief of section office examine, section office's 3 these nodes of countersign are current in blocked state, carry out task processing; Section office's 1 section chief audit, section office's 3 section chiefs' audits, section chief ratify that these nodes are current also not to be gone to.When if the section chief of section office 3 examines, the business datum of filling in during the application of discovery task is incorrect, as repair apparatus specification is made a report on mistake, need to again make a report on, and don't flow process is restarted in hope, need that this flow process is return back to task application node place and carry out business datum modification, carry out branch node and return back to trunk node.Concrete steps are as follows:
1. flow process, from the section chief of section office 3 examines node, is searched task application node, examines node start to set up execution route to task application node from the section chief of section office 3.
2. current flow tasks application node running status is set and is set to obstruction (BLOCK), temporary corresponding business datum in buffer memory.
3. the next node that obtains task application node is applying unit's audit node, and the running status of judgement applying unit audit node, by the concrete state XM rollback flow process of applying unit's audit node.
If 4. applying unit's audit node state is for having moved node, carried out the original instance data of removing applying unit's audit node operation, putting current applying unit audit node state is off-duty, temporary business datum.This node type is not to disperse gateway, and the next node that directly obtains applying unit audit node is specialized in and accepted communication division's node, the running status that communication division's node is accepted in judgement specific responsibility.
5. current specific responsibility is accepted communication division's node state for move node, carries out the original instance data of removing this node operation, and putting current specific responsibility, to accept communication division's node state be off-duty, keeps in business datum.Specific responsibility is accepted communication division's node type for dispersing gateway, 3. each branch is performed step respectively.So circulation is until all branches all clean out, and flow process rollback finishes, and temporary business datum continues to carry out flow process.
Embodiment tetra-: in accident prediction flow process, branch node return back to another branch node
As shown in Figure 7, in accident prediction flow process, establishment accident prediction exercise question, planning department work out sub-prediction scheme, regulation and control center and work out sub-prediction scheme, system operation place and work out sub-prediction scheme, power plant and work out sub-prediction scheme, concentrated discussion establishment prediction scheme, the prediction scheme that forms, director and examine the current flow process of these nodes and all pass by; It is current in blocked state that planning department's countersign, protection part are conutersigned, system place conutersigns these nodes, carries out task processing; Center leader audit, finish that several nodes are current also not to be gone to.When prediction scheme has been formed on the countersign of each sections, system place finds that this prediction scheme does not meet the standard of these sections, as the prediction scheme treatment mechanism response time and do not meet chamber, somewhere standard, need prediction scheme flow process to return back to corresponding establishment prediction scheme node, carry out branch node and return back to another branch node.Concrete steps are as follows:
1. flow process starts from system countersign node, and sub-prediction scheme node is worked out in seeking system operation place, starts to work out sub-prediction scheme node to system operation place set up execution route from system countersign node.
2. operation place of current flow system is set and works out sub-prediction scheme node running status and be set to obstruction (BLOCK), temporary corresponding business datum in buffer memory.
3. obtaining the next node that system operation place works out sub-prediction scheme node is concentrated discussion establishment prediction scheme node, and the running status of judgement concentrated discussion establishment prediction scheme node is worked out the concrete state XM rollback flow process of prediction scheme node by concentrated discussion.
If 4. concentrated discussion establishment prediction scheme node state is for having moved node, carried out the original instance data of removing the operation of concentrated discussion establishment prediction scheme node, putting current concentrated discussion establishment prediction scheme node state is off-duty, temporary business datum.This concentrated discussion establishment prediction scheme node type is not to disperse gateway, and the next node that directly obtains concentrated discussion establishment prediction scheme node forms prediction scheme node, and judgement forms the running status of prediction scheme node.So operation is until examine node to director.
5. director examines node for dispersing gateway, and this node state, for move node, is carried out and known that director examines node operation original instance data, and putting current director, to examine node state be off-duty, keeps in business datum.This node, for dispersing gateway node, is processed all branches of this node, carries out branch's cleaning operation.
6. planning department conutersigns the first branch node of examining node for director, and node state is BLOCK.Know this node data, temporary business datum, this branch's cleaning finishes, and carries out next branch's cleaning operation.Resolve respectively protection part countersign system place countersign branch cleaning operation, until all branches all clean out, flow process rollback finishes, and temporary business datum continues to carry out flow process.
Embodiment five: in accident prediction flow process, trunk node return back to branch node
In the accident prediction flow process shown in Fig. 8, establishment accident prediction exercise question, planning department work out sub-prediction scheme, regulation and control center and work out sub-prediction scheme, system operation place and work out sub-prediction scheme, power plant and work out the current flow process of sub-prediction scheme, these nodes of concentrated discussion establishment prediction scheme and all pass by; Form prediction scheme node current in blocked state, carry out task processing; Director examines planning department countersign, protection part countersign, the countersign of system place, center leader's audit, finish that several nodes are current also not to be gone to.If when running to formation prediction scheme node, find that power plant works out sub-prediction scheme node data and goes wrong, need manually flow process is return back to this node, carry out trunk node and return back to branch node.Concrete steps are as follows:
1. flow process, from forming prediction scheme node, is searched power plant and is worked out sub-prediction scheme node, starts to work out sub-prediction scheme node to power plant set up execution route from formation prediction scheme node.
2. current power plant is set and works out sub-prediction scheme node running status and be set to obstruction (BLOCK), temporary corresponding business datum in buffer memory.
3. obtaining the next node that power plant works out sub-prediction scheme node is concentrated discussion establishment prediction scheme node, and the running status of judgement concentrated discussion establishment prediction scheme node is worked out the concrete state XM rollback flow process of prediction scheme node by concentrated discussion.
If 4. concentrated discussion establishment prediction scheme node state is for having moved node, carried out the original instance data of removing the operation of concentrated discussion establishment prediction scheme node, putting current concentrated discussion establishment prediction scheme node state is off-duty, temporary business datum.This concentrated discussion establishment prediction scheme node type is not to disperse gateway, and the next node that directly obtains terminates operation node forms prediction scheme node, and judgement forms the running status of prediction scheme node.So circulation is until all branches all clean out, and flow process rollback finishes, and temporary business datum continues to carry out flow process.
In sum, the present invention by realizing operation node rollback in dispatching of power netwoks flow process, dynamically specified node retracted position cascading delete have completed node, can solve the practical difficulty that in actual electric network business, circulation is controlled about node, meet well the flow process rollback demand in actual electric network business.
Above the flow nodes backing method for intelligent grid scheduling provided by the present invention is had been described in detail.For one of ordinary skill in the art, any apparent change of under the prerequisite that does not deviate from connotation of the present invention, it being done, all will form infringement of patent right of the present invention, will bear corresponding legal liabilities.