CN101159605A - Flow control method capable of implementing state memory and recovery - Google Patents

Flow control method capable of implementing state memory and recovery Download PDF

Info

Publication number
CN101159605A
CN101159605A CNA2007101673386A CN200710167338A CN101159605A CN 101159605 A CN101159605 A CN 101159605A CN A2007101673386 A CNA2007101673386 A CN A2007101673386A CN 200710167338 A CN200710167338 A CN 200710167338A CN 101159605 A CN101159605 A CN 101159605A
Authority
CN
China
Prior art keywords
file
state
sequential
flow
upgrade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007101673386A
Other languages
Chinese (zh)
Other versions
CN101159605B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200710167338A priority Critical patent/CN101159605B/en
Publication of CN101159605A publication Critical patent/CN101159605A/en
Application granted granted Critical
Publication of CN101159605B publication Critical patent/CN101159605B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A flow control method is provided for implementing the state memory and recovery, which comprises the steps: (1) a user establishes an equipment upgrade task file while dividing the transaction into a plurality of processing procedures based on the transaction processing type of upgrade flow control, each processing procedure has several time sequences, each time sequence of the processing procedure is added with a mapping relationship between the time sequence and the state; (2) the equipment update operation is performed based on the equipment upgrade task file, and the operational state is solidified in real time during the flow operation process, to allow each time sequence to correspond to the related state; (3) if the flow is exited during the flow operation process, the correspondingly-stored state information can be found out by the time sequence of the exit and the state is recovered. The invention can reduce the workload of failure repair, realize the manual control of the flow operation effect, and can reduce the time of failure repair of automated flow control.

Description

A kind of flow control method of realizing state memorization and recovery
Technical field
The present invention relates to automatic flow control field, relate in particular to a kind of flow control method of realizing state memorization and recovery.
Background technology
The control of current automatic flow generally is to be guaranteed by the flow process Control Software that runs on or several the computers.The method of current flow process control and treatment generally is: according to transaction type, affairs are divided into several treatment steps, each treatment step can be divided into several sequential again, has strict dependence between the sequential and between the step.The method of this flow process control is widely used in industrial automation production and the office automation.
Yet this type of flow control method has some very big defectives:
1) if the variation that running environment takes place in the processing of flow process makes certain sequential can not produce correct result, then can make whole flow process be parked in the original place can't down move;
2) withdrawing from unusually appears in the flow process Control Software, perhaps moves the server outage or the deadlock of this software, then can make whole flow process be parked in the original place equally and can't continue operation.
When two kinds of situations in front or analogue occurring, the recovery of equipment and application state and function is wasted time and energy, and causes easily when carrying out batch processing that all that has been achieved is spoiled.
Simultaneously, existence at present need be to the cycle of operation the long and demand that needs the flow process of artificial monitoring to control, and the control of traditional flow process can only cooperate machine and can not make machine cooperate manpower by manpower, can not make the user satisfied.
Summary of the invention
The invention provides a kind of flow control method of realizing state memorization and recovery, whole flow process is parked in the problem that the original place can't continue to move when going wrong in the automatic flow control to solve.
In order to solve the problems of the technologies described above, the invention provides a kind of flow control method of realizing state memorization and recovery, it is characterized in that, comprise the steps:
(1) user's apparatus for establishing upgrading assignment file, this moment is according to the transaction type of upgrading flow process control, described affairs are divided into several treatment steps, and each treatment step is divided into several sequential, adds the mapping relations of sequential and state in each sequential of described step;
(2) carry out device upgrade according to described device upgrade assignment file, in the process flow operation process, solidify running status in real time, make each sequential all have relevant state corresponding;
(3) if withdraw from flow process in described process flow operation process, then the sequential when withdrawing from finds its corresponding state information of preserving, and returns to the state when withdrawing from.
Further, said method also can have following characteristics: the situation that withdraws from flow process in described process flow operation process comprises that equipment is carrying out manually closing upgrading in the batch plan escalation process, or computer circuit breaking, or software anomaly withdraws from.
Further, said method also can have following characteristics: in the step (1), described user's apparatus for establishing upgrading assignment file comprises the steps:
(a) user's apparatus for establishing file, described device file comprises the facility information that need upgrade;
(b) set up device file compressed package and the staging business logic-control file that needs upgrade according to the facility information of described device file then; Wherein, when setting up described staging business logic-control file, the transaction type according to the control of upgrading flow process is divided into several treatment steps to described affairs, each treatment step is divided into several sequential, adds the mapping relations of sequential and state in each sequential of described step;
(c) generate the device upgrade assignment file by parsing at last to described device file and staging business logic-control file.
Further, said method also can have following characteristics: in the step (a), described facility information comprises equipment Intranet IP, equipment outer net IP, device name and port.
Further, said method also can have following characteristics: in the step (b), described device file compressed package comprises the file that certain software upgrading need be upgraded on the equipment.
Further, said method also can have following characteristics: described device upgrade flow process is: backup, equipment are correlated with and device independent disposes, issues, upgrades, tests; After finishing, each just carries out the next item down.
Further, said method also can have following characteristics: in the step (2), solidify running status in real time in the process flow operation process, be kept in the described device upgrade assignment file.
Further, said method also can have following characteristics: in the step (3), return to the state when withdrawing from after, proceed device upgrade.
Flow control method of the present invention can be realized real-time memory and recovery to flow state.Even if in the flow processing process, be responsible for the processor outage of flow process control, but can make flow process return to state before the outage after starting rapidly by the state information of the flow process of solidifying, thereby reduced the workload of fault restoration, reach the effect of control flow operation artificially, and can reduce the fault modification time of automatic flow control.
Description of drawings
Fig. 1 is IPTV (Web TV) device upgrade grid schematic diagram;
Fig. 2 is the flow control method flow chart that application example of the present invention can be realized state memorization and recovery.
Embodiment
Below in conjunction with the drawings and specific embodiments technical scheme of the present invention is described in detail.
As shown in Figure 1, IPTV device upgrade grid schematic diagram.Whole upgrade process by device upgrade client, upgrade server and need upgrading equipment (updating apparatus-1, updating apparatus-2 ..., updating apparatus-n) constitute.The device upgrade client is controlled the flow process of upgrading, and upgrade server is responsible for the transmission of upgrade file.Undertaken alternately by message between updating client and the updating apparatus, carry out file transfer by FTP (File Transfer Protocol, file transfer protocol (FTP)) between upgrade server and updating apparatus, the updating client.
As shown in Figure 2, application example of the present invention can be realized the flow control method flow process of state memorization and recovery, comprises the steps:
Step 201, user's apparatus for establishing file, device file comprises the facility information that need upgrade; Wherein, every facility information comprises equipment Intranet IP, equipment outer net IP, device name and port etc.;
Step 202 is set up device file compressed package and the staging business logic-control file that needs upgrade according to the facility information of described device file then; Wherein, the File Compress bag has comprised the file that certain software upgrading need be upgraded; When setting up described staging business logic-control file, transaction type according to the control of upgrading flow process, described affairs are divided into several treatment steps, and each treatment step is divided into several sequential, adds the mapping relations of sequential and state in each sequential of described step; The staging business logic-control file is according to updating operation step and the sequential formulated, to updating operation all in the specific software escalation process, (sequential) is described stage by stage, it is the operation flow that certain software is upgraded, in the formulation of flow process, guarantee the corresponding of each sequential and state as far as possible, can both reach the state that to store curing after each sequential finishes when making the upgrading process flow operation;
Step 203 generates the device upgrade assignment file by the parsing to described device file and staging business logic-control file;
Step 204 is carried out device upgrade according to described device upgrade assignment file, and described device upgrade flow process is: backup 204.1, device independent configuration 204.2, equipment relevant configuration 204.3, issue 204.4, upgrading 204.5, test 204.6; After finishing, each just carries out the next item down; In the process flow operation process, solidify running status in real time, be kept in the described device upgrade assignment file, make each sequential all have relevant state corresponding;
Step 205, if manually close upgrading in carrying out the batch plan escalation process, or computer circuit breaking, or software anomaly withdraws from, and then withdraws from flow process;
Batch plan upgrades to because very long and need device upgrade operation under the situation that the professional guards at some escalation processs, closes the upgrading flow process every day when being upgraded to certain percentage or certain hour, continues upgrading in second day again.
Step 206, fetch equipment upgrading assignment file then, the sequential when withdrawing from finds its corresponding state information of preserving, and returns to the state when withdrawing from, and proceeds device upgrade; If occur again withdrawing from unusually, then repeat this step, finish until the last test step;
Step 207 is upgraded successfully.
Solidify owing to preserve when state is a fructufy according to current operation, the state of last action-item success has cured and has stored when fault takes place, so the recovery that makes state very simply and be not easy to produce mistake.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the flow control method that can realize state memorization and recovery is characterized in that, comprises the steps:
(1) user's apparatus for establishing upgrading assignment file, this moment is according to the transaction type of upgrading flow process control, described affairs are divided into several treatment steps, and each treatment step is divided into several sequential, adds the mapping relations of sequential and state in each sequential of described step;
(2) carry out device upgrade according to described device upgrade assignment file, in the process flow operation process, solidify running status in real time, make each sequential all have relevant state corresponding;
(3) if withdraw from flow process in described process flow operation process, then the sequential when withdrawing from finds its corresponding state information of preserving, and returns to the state when withdrawing from.
2. method according to claim 1 is characterized in that the situation that withdraws from flow process in described process flow operation process comprises that equipment is carrying out manually closing upgrading in the batch plan escalation process, or computer circuit breaking, or software anomaly withdraws from.
3. method according to claim 1 is characterized in that, in the step (1), described user's apparatus for establishing upgrading assignment file comprises the steps:
(a) user's apparatus for establishing file, described device file comprises the facility information that need upgrade;
(b) set up device file compressed package and the staging business logic-control file that needs upgrade according to the facility information of described device file then; Wherein, when setting up described staging business logic-control file, the transaction type according to the control of upgrading flow process is divided into several treatment steps to described affairs, each treatment step is divided into several sequential, adds the mapping relations of sequential and state in each sequential of described step;
(c) generate the device upgrade assignment file by parsing at last to described device file and staging business logic-control file.
4. as method as described in the claim 3, it is characterized in that in the step (a), described facility information comprises equipment Intranet IP, equipment outer net IP, device name and port.
5. as method as described in the claim 3, it is characterized in that in the step (b), described device file compressed package comprises the file that certain software upgrading need be upgraded on the equipment.
6. method according to claim 1 is characterized in that described device upgrade flow process is: backup, equipment is relevant disposes, issues, upgrades, tests with device independent; After finishing, each just carries out the next item down.
7. method according to claim 1 is characterized in that, in the step (2), solidifies running status in real time in the process flow operation process, is kept in the described device upgrade assignment file.
8. method according to claim 1 is characterized in that, in the step (3), return to the state when withdrawing from after, proceed device upgrade.
CN200710167338A 2007-10-25 2007-10-25 Flow control method capable of implementing state memory and recovery Expired - Fee Related CN101159605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710167338A CN101159605B (en) 2007-10-25 2007-10-25 Flow control method capable of implementing state memory and recovery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710167338A CN101159605B (en) 2007-10-25 2007-10-25 Flow control method capable of implementing state memory and recovery

Publications (2)

Publication Number Publication Date
CN101159605A true CN101159605A (en) 2008-04-09
CN101159605B CN101159605B (en) 2012-09-05

Family

ID=39307532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710167338A Expired - Fee Related CN101159605B (en) 2007-10-25 2007-10-25 Flow control method capable of implementing state memory and recovery

Country Status (1)

Country Link
CN (1) CN101159605B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326089A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Automated testing method, device and system
CN106547613A (en) * 2016-10-20 2017-03-29 西北工业大学 The scheduling of task handling process and fault recovery method
WO2017185706A1 (en) * 2016-04-28 2017-11-02 华为技术有限公司 System upgrade method and system upgrade apparatus
CN110134412A (en) * 2019-03-25 2019-08-16 北京车和家信息技术有限公司 Oftware updating method, device, vehicle and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4548307B2 (en) * 2005-10-31 2010-09-22 ソニー株式会社 Separation type processing apparatus and software version updating method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326089A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Automated testing method, device and system
CN106326089B (en) * 2015-06-16 2020-03-27 中兴通讯股份有限公司 Automatic testing method, device and system
WO2017185706A1 (en) * 2016-04-28 2017-11-02 华为技术有限公司 System upgrade method and system upgrade apparatus
CN106547613A (en) * 2016-10-20 2017-03-29 西北工业大学 The scheduling of task handling process and fault recovery method
CN106547613B (en) * 2016-10-20 2020-04-03 西北工业大学 Scheduling and fault recovery method for task processing flow
CN110134412A (en) * 2019-03-25 2019-08-16 北京车和家信息技术有限公司 Oftware updating method, device, vehicle and computer readable storage medium
CN110134412B (en) * 2019-03-25 2024-04-12 北京车和家信息技术有限公司 Software updating method, device, vehicle and computer readable storage medium

Also Published As

Publication number Publication date
CN101159605B (en) 2012-09-05

Similar Documents

Publication Publication Date Title
CN105487980B (en) The method and device that repairing applications are operating abnormally
CN102662428B (en) Clock synchronization method for network simulation environment of discrete event
CN113656175B (en) Method and equipment for training model based on distributed system
CN105204880B (en) computer system and setting method of basic input and output system
CN109144701A (en) A kind of task flow management method, device, equipment and system
CN101159605B (en) Flow control method capable of implementing state memory and recovery
CN105843707A (en) Quick recovery method and equipment of database
CN105487924A (en) Batch processing controlling method and device
CN106201690A (en) Application progress control method and device
US20140040441A1 (en) System and method for the configuration of a clustered simulation network
CN104965727A (en) Method and device for restarting server
CN102023882A (en) System and method for computer to automatically identify mobile phone and install mobile phone driver
CN105653401A (en) Method and device for scheduling disaster recovery, operation and maintenance, monitoring and emergency start-stop of application systems
CN108459923A (en) A kind of more equipment operation management methods based on Actor models
CN111400104A (en) Data synchronization method and device, electronic equipment and storage medium
WO2021249920A1 (en) Configuration device, update server and method for updating software of a technical installation
CA3232808A1 (en) Window parameter configuration method and system, computer-readable media
CN110795118A (en) Cloud platform upgrading tool and upgrading method
CN106843969B (en) Method and system for updating software in continuous service
CN105005492B (en) A kind of embedded device and a kind of method for upgrading software
CN115202680A (en) System and method for automatically upgrading local client on line in remote manner
CN108334426A (en) A kind of more SSD/HDD integration tests and tele-control system and its method
CN110764785A (en) Power industry cloud platform tool chain based on open source assembly and cloud platform operation and maintenance method
CN107968724B (en) System and method for gigabit and hundred million double-redundancy Ethernet cards to be spare parts of each other
CN104714856A (en) Software repairing method and terminal equipment

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: 20120905

Termination date: 20161025