CN107678889A - The restoration methods and device of workflow task state, storage medium, computing device - Google Patents

The restoration methods and device of workflow task state, storage medium, computing device Download PDF

Info

Publication number
CN107678889A
CN107678889A CN201710944114.5A CN201710944114A CN107678889A CN 107678889 A CN107678889 A CN 107678889A CN 201710944114 A CN201710944114 A CN 201710944114A CN 107678889 A CN107678889 A CN 107678889A
Authority
CN
China
Prior art keywords
snapshot
event
state
flow
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.)
Granted
Application number
CN201710944114.5A
Other languages
Chinese (zh)
Other versions
CN107678889B (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.)
Shanghai Data Trading Center Ltd
Original Assignee
Shanghai Data Trading Center Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Data Trading Center Ltd filed Critical Shanghai Data Trading Center Ltd
Priority to CN201710944114.5A priority Critical patent/CN107678889B/en
Publication of CN107678889A publication Critical patent/CN107678889A/en
Application granted granted Critical
Publication of CN107678889B publication Critical patent/CN107678889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The restoration methods and device, storage medium, computing device of a kind of workflow task state, the restoration methods include:Flow of event is created during the circulation of workflow task state, the flow of event includes multiple events and at least one snapshot, and each snapshot includes set of the flow of event at least part information at single time point;When the workflow task state occurs abnormal, the event in the flow of event is recalled according to newest available snapshot.It by technical scheme provided by the invention, can efficiently recover abnormal workflow task state, to avoid recalling whole event stream again, improve event and recover efficiency.

Description

The restoration methods and device of workflow task state, storage medium, computing device
Technical field
The present invention relates to the data field of circulation, restoration methods and device more particularly to a kind of workflow task state, Storage medium, computing device.
Background technology
In the data field of circulation, the data system for the distribution of commodities and workflow task state are closely related, due to data assets Particularity (for example, data assets are to confidentiality requirement height), thus the recovery of the workflow task state in the data process of circulation Mechanism is difficult to realize using third party's component.In general, in the data process of circulation, the circulation of workflow task state is often right Answer complete flow of event circulation process.Usual very huge, the state-event change complexity of event number in flow of event, and thing Part may include directed cyclic graph, further increase the complexity of flow of event circulation.
Once exception occurs for working service stream task status, existing scheme can use the reset mode of simple event stream, But need to recall whole event stream again, it is low that working service stream task status recovers efficiency;Conventional state machine can also be used Reset mode, but conventional state machine can not recover the event of directed cyclic graph, under extreme case, it may be necessary to by returning again The whole event stream that traces back can just resume work Business Stream task status, and it is also very low to recover efficiency.Existing reset mode can all reduce Data circulation efficiency.
The content of the invention
Present invention solves the technical problem that it is stream task status of how efficiently resuming work, to avoid recalling whole thing again Part stream, improve data circulation efficiency.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of restoration methods of workflow task state, it is described Restoration methods include:Flow of event is created during the circulation of workflow task state, the flow of event is comprising multiple events and extremely A few snapshot, each snapshot include set of the flow of event at least part information at single time point;When the work When stream task status occurs abnormal, the event in the flow of event is recalled according to newest available snapshot.
Optionally, described the step of creating flow of event during the circulation of workflow task state, includes:In the work During flowing task status circulation, the event of generation is recorded successively, and the event is advance for the workflow task state Definition of Division.
Optionally, the snapshot is also comprising following one or more:Creation time point and snapshot state.
Optionally, the snapshot state includes:It can use and unavailable.
Optionally, it is described when the workflow task state occurs abnormal, according to newest available snapshot to the thing The step of event in part stream is recalled includes:When the workflow task state occurs abnormal, according to described abnormal Reason updates the snapshot state of each snapshot, when the snapshot with it is described abnormal the reason for associate when, by the snapshot state more Newly to be unavailable, the snapshot state for otherwise keeping the snapshot is available;It is available snapshot to search newest snapshot state, and The initiation event of backtracking is determined in the flow of event according to impinging upon soon of finding;Backtracking is proceeded by from the initiation event.
Optionally, the initiation event is to be found in the flow of event before the snapshot found and apart from described The nearest event of snapshot.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of recovery device of workflow task state, including: Creation module, suitable for creating flow of event during the circulation of workflow task state, the flow of event is comprising multiple events and extremely A few snapshot, each snapshot include set of the flow of event at least part information at single time point;Backtracking module, fit In when the workflow task state occurs abnormal, according to newest available snapshot enter the event in the flow of event Row backtracking.
Optionally, the creation module includes:Record sub module, suitable in workflow task state circulation process In, the event of generation is recorded successively, and the event is for the advance Definition of Division of workflow task state.
Optionally, the snapshot also includes following one or more:Creation time point and snapshot state.
Optionally, the snapshot state includes available and unavailable.
Optionally, the backtracking module includes:State update submodule, suitable for when the workflow task state occur it is different Chang Shi, the snapshot state of each snapshot is updated according to the reason for described abnormal, when the snapshot with it is described abnormal the reason for associate When, the snapshot state is updated to unavailable, the snapshot state for otherwise keeping the snapshot is available;Submodule is searched, is fitted Be available snapshot in searching newest snapshot state, and the starting for determining to recall in the flow of event according to impinging upon soon of finding Event;Submodule is recalled, suitable for proceeding by backtracking from the initiation event.
Optionally, the initiation event is to be found in the flow of event before the snapshot found and apart from described The nearest event of snapshot.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of storage medium, computer instruction is stored thereon with, The step of above-mentioned restoration methods being performed during the computer instruction operation.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of computing device, including memory and processor, institute The computer instruction that is stored with and can run on the processor on memory is stated, the processor runs the computer instruction The step of Shi Zhihang above-mentioned restoration methods.
Compared with prior art, the technical scheme of the embodiment of the present invention has the advantages that:
The embodiment of the present invention creates flow of event during the circulation of workflow task state, and the flow of event can include more Individual event, the event are to obtain the intermediate links of workflow task state according to advance Definition of Division;The flow of event At least one snapshot can also be included, each snapshot can include at least part information of the flow of event at single time point Set, it follows that snapshot completes each event and event information of circulation before being recorded in the time point for creating snapshot. When the workflow task state occurs abnormal, the event information recorded by searching newest available snapshot can recover phase The event answered.Technical solution of the present invention can be recalled from newest available snapshot incision event, so as to avoid again Recall whole event stream, reduce the complexity of event recovery process, efficiently recover anomalous event so as to realize, improve event and recover Efficiency.
Further, when the workflow task state occurs abnormal, the fast of each snapshot is updated according to the reason for exception According to state, to determine whether snapshot can be used for recovery event, when the snapshot with it is described abnormal the reason for associate when, it is described The event information that snapshot may cause the snapshot to record extremely due to state-event is invalid, thus can be by the snapshot state more Newly to be unavailable.If the snapshot with it is described abnormal the reason for onrelevant, then the snapshot state of the snapshot can be kept It is available.It is determined that after snapshot state, it can determine to need the initiation event that recall by searching newest available snapshot, and from The initiation event starts recovery event.The event information that the initiation event for needing to recall can be recorded by snapshot determines.This Inventive technique scheme be not in because snapshot with it is described abnormal the reason for associate cause the situation of recovering whole event stream again, Event can be improved and recover efficiency.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the restoration methods of workflow task state of the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of embodiment of step S102 shown in Fig. 1;
Fig. 3 is a kind of structural representation of the recovery device of workflow task state of the embodiment of the present invention.
Embodiment
It will be appreciated by those skilled in the art that as background technology is sayed, when workflow task state occurs abnormal, according to list The reset mode of pure flow of event needs to recall whole event stream again, may also be because of nothing according to the reset mode of conventional state machine Method recovers the event of directed cyclic graph and causes to recall whole event stream again, and it is low that event recovers efficiency.
The embodiment of the present invention creates flow of event during the circulation of workflow task state, and the flow of event can include more Individual event, the event are to obtain the intermediate links of workflow task state according to advance Definition of Division;The flow of event At least one snapshot can also be included, each snapshot can include at least part information of the flow of event at single time point Set, it follows that snapshot completes each event and event information of circulation before being recorded in the time point for creating snapshot. When the workflow task state occurs abnormal, the event information recorded by searching newest available snapshot can recover phase The event answered.Technical solution of the present invention can be recalled from newest available snapshot incision event, on the one hand because snapshot records Event information can recover the state-event of directed cyclic graph, on the other hand can avoid recalling whole event stream again, drop The complexity of low event recovery process, efficiently recover anomalous event so as to realize, improve event and recover efficiency.
It is understandable to enable above-mentioned purpose, feature and the beneficial effect of the present invention to become apparent, below in conjunction with the accompanying drawings to this The specific embodiment of invention is described in detail.
Fig. 1 is a kind of schematic flow sheet of the restoration methods of workflow task state of the embodiment of the present invention.The work Flow the change of task status and circulation process often correspond to the implementation procedure of a task.In the workflow task state stream Flow of event is created during turning, the flow of event can include multiple events and at least one snapshot, and the event is to work The intermediate links of task status are flowed according to advance Definition of Division;Each snapshot can include the flow of event at single time point At least part information set, namely in some individual event point, some or all of information in flow of event.Work as institute Workflow task state is stated when occurring abnormal during circulation, the event information that can be recorded by newest available snapshot is extensive The event of the advance Definition of Division of workflow task state is directed to again, so as to stream task status of resuming work.
Further, the restoration methods of the workflow task state shown in Fig. 1 may comprise steps of:
Step S101:Flow of event is created during the circulation of workflow task state, the flow of event includes multiple events With at least one snapshot, each snapshot includes set of the flow of event at least part information at single time point;
Step S102:When the workflow task state occurs abnormal, according to newest available snapshot to the event Event in stream is recalled.
Specifically, before the circulation of workflow task state, the circulation to the workflow task state in advance can be used The multiple events of Definition of Division, a specific circulation caused by during workflow task state circulation described in each representations of events Link.In step S101, flow of event is created during the circulation of workflow task state, the flow of event can include more Individual event, by the circulation of each event, complete flow of event can be formed.
The flow of event can also include a snapshot or multiple snapshots.Snapshot is circulated in the workflow task state During complete create.It can predefine snapshot quantity to be created before creating snapshot and be the workflow task shape Which of state circulation process or which event create snapshot.In general, if one or more events complete stage sex work After can create snapshot.The establishment process of snapshot depends on event (namely intermediate links) state of flow of event, is in flow of event Circulation during complete.
Generally, can be had by snapshot being created during the circulation of the workflow task state or flow of event by two kinds Mode.One kind is to create snapshot according to preset trigger condition, namely during the circulation of workflow task state, if met pre- If trigger condition, then automatic triggering creates snapshot;Another kind is manual creation snapshot, namely flowed through in workflow task state Cheng Zhong, triggering creates snapshot manually as needed.In actual applications, to meet different application business demand, some specific , it is necessary to increase snapshot temporarily to record event information in scene, now snapshot can be created by the way of manual creation snapshot. For example, occurring accident during the circulation of workflow task state, the accident is not belonging to advance Definition of Division Event when, can be the accident manual creation snapshot to record the actual information of accident, flexible adaptation is actual Business demand.
As a not limiting example, if preset trigger condition includes completing billable events, completes regularly to go out on line Tool invoice event, completion bill collect event, then during task stream mode circulation, will be arrived respectively in circulation Invoice event is regularly provided in the billable events, the line, the bill collects automatic triggering establishment snapshot after event.If Invoice event will be regularly provided on line and is changed under line provide invoice event immediately because business needs, then in such case Under, it is possible to it is to provide invoice event immediately under line to trigger establishment snapshot manually.
Further, the purpose for creating snapshot is all or part of thing in order to record the flow of event at single time point The information aggregate of part.Specifically, described information set can include following one or more:Event generation time, type, version This, the cycle-index of state machine and each state, business datum etc., the business datum refers to associated with the event attached Addend evidence.The circulation of some events may associate one or more business datums, thus in event flows through journey, often need To handle or store simultaneously and the business datum of event correlation.For example, can be with automatic flow to button after the completion of amount of money calculating event Bothersome part.In another example can be with automatic flow to providing invoice event after the completion of billable events.Those skilled in the art can basis It is actually needed change and dissolves more embodiments, will not be described here.
It is noted that the state machine of some individual event and the circulation of each state can be included due to the snapshot Number, thus the snapshot can handle the workflow task state circulation process of directed cyclic graph, without recovering whole again Flow of event, event can be improved and recover efficiency.
Further, the snapshot is also comprising following one or more:Creation time point and snapshot state.Creation time Point refers to create snapshot or generates the time of snapshot, for recording the creation time of snapshot.It follows that newly create (namely wound It is newest to build time point) snapshot can get the snapshot before the flow of event that includes of each snapshot single time point letter Breath set.Can be that snapshot sets snapshot state when creating snapshot.Because the snapshot newly created can be included in flow of event The full detail for the event completed that circulates, thus the snapshot state of the snapshot of newest establishment can be arranged to available.When described When workflow task state occurs abnormal, newest available snapshot backtracking event can be based on.Under certain condition, snapshot state It can update, such as after new snapshot is created, the snapshot state of " old " snapshot before new snapshot can be arranged to not It can use.
Further, the snapshot can also include the event identifier of all Definition of Division in advance (for example, the snapshot can To include the event identifier for the completion that circulated before creating the snapshot, the order that each event identifier is completed according to event sorts).It is logical The content of inquiry snapshot is crossed, the event identifier of event completed at present can be obtained, and then can be according to pre-defined Event deduces the event identifier of the follow-up event also to be continued executing with.In addition, the snapshot can also include predefined snapshot Quantity and recent snapshot numbering, can be obtained by the quantity of predefined snapshot and current to search any snapshot The position of snapshot.
Further, in step s 102, can be according to newest available when the workflow task state occurs abnormal Snapshot carry out snapshot state backtracking, and then the event in the flow of event is recalled.The backtracking of carry out event can use Existing state machine mode is recovered.
As a not limiting example, it can specifically include following step with reference to step S102 in figure 1 and Fig. 2, Fig. 1 in the lump Suddenly:
Step S1021:When the workflow task state occurs abnormal, updated according to the reason for described abnormal each fast According to snapshot state, when the snapshot with it is described abnormal the reason for associate when, the snapshot state is updated to it is unavailable, otherwise The snapshot state for keeping the snapshot is available;
Step S1022:It is available snapshot to search newest snapshot state, and impinges upon the flow of event soon according to what is found The middle initiation event for determining backtracking;
Step S1023:Backtracking is proceeded by from the initiation event.
Specifically, in step S1021, first according to the reason for described abnormal according to the time by new and old order more The snapshot state of new each snapshot.If snapshot with it is described abnormal the reason for do not associate, keep snapshot state, namely described The snapshot state of snapshot is still available.If the snapshot with it is described abnormal the reason for associate when, according to the reason for described abnormal, It is determined that the number for the snapshot being associated, and successively renewal with it is described abnormal the reason for the snapshot that associates, i.e., by snapshot state more Newly to be unavailable, when snapshot state is unavailable, when recovering the workflow task state, ignore the snapshot.For example, thing Part stream pre-defines event A, event B, event C and event D, and the default creation time point for creating snapshot is respectively event A After the completion of create to create after the completion of snapshot a, event B to create after the completion of snapshot b, event C and create after the completion of snapshot c and event D Snapshot d.Assuming that in event flows through journey, flow of event goes to event A and completed, and can now create snapshot a, while can incite somebody to action Snapshot a snapshot state is arranged to available;Similar mode can create snapshot b, and snapshot b snapshot state is arranged to can With now snapshot b includes event A and event B information aggregate, thus snapshot a snapshot state can be arranged into unavailable;Class As, snapshot c can be created after the completion of event C circulations, snapshot c snapshot state is arranged to available, while by snapshot a and snapshot B snapshot state is arranged to unavailable.If when flow of event circulates to event D from event C, exception occurs for event D, then will not create Build snapshot d.If event D does not associate with snapshot c snapshot state, then snapshot c snapshot state is maintained as can use.Example again Such as, the flow of event for data circulation pre-defines monovalent valuation event, billable events and provides charge authority event, and in advance It is defined on after monovalent valuation event and creates unit price valuation snapshot, create charge snapshot after billable events, providing charge authority Created after event and provide charge authority snapshot.When the flow of event of data circulation completes billable events, on the one hand, can be automatic Trigger and create charge snapshot, it is available to set the snapshot state of charge snapshot, and the snapshot state of setting unit price valuation snapshot is It is unavailable;On the other hand, the flow of event will be circulated from billable events to provide charge authority event.If now data are supplied Side's adjustment data unit price, namely the workflow task state occur it is abnormal, and charge snapshot with it is described abnormal the reason for (namely Monovalent valuation event, which changes, causes the workflow task abnormal state) relevant, the snapshot state of the charge snapshot Will by it is available be updated to it is unavailable.
Further, in step S1022, can be recalled by searching snapshot state, if the snapshot found State is unavailable, then ignores recent snapshot, advance to next snapshot and judged;When finding newest available snapshot When, the snapshot is cut, determines to recover the initiation event of the flow of event from the snapshot.The initiation event can be institute State in flow of event before the snapshot found and the event nearest apart from the snapshot found.
Further, in step S1023, event is recalled since the initiation event found.At this point it is possible to according to business Need, some or all of information adoption status machine mode of some the individual event point included based on the snapshot recovers thing Part, namely since the initiation event, continue the circulation of the workflow task state.
Summary describes, it can be seen that in data circulation, compared to existing simple event stream reset mode and biography The state machine reset mode of system, the advantage for recovering the workflow status task based on snapshot are as follows:It is possible, firstly, to simplify work Task status recovery process is flowed, and the workflow task state of directed cyclic graph can be handled;Secondly, can be according to snapshot state Great-jump-forward recovers event, without recovering whole event stream again, improves event and recovers efficiency;Can be that accident is created manually Snapshot is built, is flexibly applied to various real data circulation business.
Fig. 3 is a kind of structural representation of the recovery device of workflow task state of the embodiment of the present invention.Shown in Fig. 3 Recovery device 3 can be used for the technical scheme for implementing the restoration methods of workflow task state in above-mentioned embodiment illustrated in fig. 1.
Specifically, the recovery device 3 can include:Creation module 31 and backtracking module 32.
Wherein, the creation module 31 is suitable to create flow of event, the event during the circulation of workflow task state Stream includes multiple events and at least one snapshot, and each snapshot includes at least part information of the flow of event at single time point Set;The backtracking module 32, suitable for when the workflow task state occurs abnormal, available being shone into soon according to newest Row is recalled to the event in the flow of event.
Specifically, the creation module 31 can include:Record sub module 311, suitable in the workflow task state During circulation, the event of generation is recorded successively, the event is for the advance Definition of Division of workflow task state.
Further, the snapshot also includes following one or more:Creation time point and snapshot state.
Further, the snapshot state includes available and unavailable.
Further, the backtracking module 32 can include:State renewal submodule 321, search submodule 322 and backtracking Submodule 323.Wherein, state renewal submodule 321, suitable for when the workflow task state occurs abnormal, according to The reason for described abnormal, updates the snapshot state of each snapshot, when the snapshot with it is described abnormal the reason for associate when, will described in Snapshot state is updated to unavailable, and the snapshot state for otherwise keeping the snapshot is available;The lookup submodule 322, is suitable to It is available snapshot to search newest snapshot state, and determines the starting thing of backtracking in the flow of event according to impinging upon soon of finding Part;The backtracking submodule 323, suitable for proceeding by backtracking from the initiation event.
Further, the initiation event is to be found in the flow of event before the snapshot found and apart from described The nearest event of snapshot.
More contents of operation principle, working method on the recovery device 3, are referred to above-mentioned to shown in Fig. 1 Associated description in embodiment or Fig. 1 and embodiment illustrated in fig. 2, is repeated no more here.
Further, the embodiment of the invention also discloses a kind of storage medium, computer instruction, the meter are stored thereon with The step of above-mentioned embodiment illustrated in fig. 1 or Fig. 1 and embodiment illustrated in fig. 2 methods described are performed during calculation machine instruction operation.It is preferred that Ground, the storage medium can include computer-readable recording medium.Preferably, the storage medium can include ROM, RAM, Disk or CD etc..
Further, the embodiment of the invention also discloses a kind of computing device, including memory and processor, the storage The computer instruction that can be run on the processor is stored with device, the processor is held when running the computer instruction The step of above-mentioned embodiment illustrated in fig. 1 of row or Fig. 1 and embodiment illustrated in fig. 2 methods described.
Although present disclosure is as above, the present invention is not limited to this.Any those skilled in the art, this is not being departed from In the spirit and scope of invention, it can make various changes or modifications, therefore protection scope of the present invention should be with claim institute The scope of restriction is defined.

Claims (14)

  1. A kind of 1. restoration methods of workflow task state, it is characterised in that including:
    Flow of event is created during the circulation of workflow task state, and the flow of event includes multiple events and at least one fast According to each snapshot includes set of the flow of event at least part information at single time point;
    When the workflow task state occurs abnormal, the event in the flow of event is carried out according to newest available snapshot Backtracking.
  2. 2. restoration methods according to claim 1, it is characterised in that described to be created during the circulation of workflow task state The step of building flow of event includes:
    During workflow task state circulation, the event of generation is recorded successively, the event is to be directed to the work Flow the advance Definition of Division of task status.
  3. 3. restoration methods according to claim 1, it is characterised in that the snapshot is also comprising following one or more:Wound Build time point and snapshot state.
  4. 4. restoration methods according to claim 3, it is characterised in that the snapshot state includes:It can use and unavailable.
  5. 5. restoration methods according to claim 1, it is characterised in that described when exception occurs in the workflow task state When, the step of being recalled according to newest available snapshot to the event in the flow of event, includes:
    When the workflow task state occurs abnormal, the snapshot state of each snapshot is updated according to the reason for described abnormal, When the snapshot with it is described abnormal the reason for associate when, the snapshot state is updated to unavailable, otherwise keeps the snapshot Snapshot state be available;
    It is available snapshot to search newest snapshot state, and rising for backtracking is determined in the flow of event according to impinging upon soon for finding Beginning event;
    Backtracking is proceeded by from the initiation event.
  6. 6. restoration methods according to claim 5, it is characterised in that the initiation event is described in the flow of event Before the snapshot found and the event nearest apart from the snapshot found.
  7. A kind of 7. recovery device of workflow task state, it is characterised in that including:
    Creation module, suitable for creating flow of event during the circulation of workflow task state, the flow of event includes multiple events With at least one snapshot, each snapshot includes set of the flow of event at least part information at single time point;
    Backtracking module, suitable for when the workflow task state occurs abnormal, being carried out according to newest available snapshot to described Event in flow of event is recalled.
  8. 8. recovery device according to claim 7, it is characterised in that the creation module includes:
    Record sub module, suitable for during workflow task state circulation, recording the event of generation, the event successively It is to be directed to the advance Definition of Division of workflow task state.
  9. 9. recovery device according to claim 7, it is characterised in that the snapshot also includes following one or more:Wound Build time point and snapshot state.
  10. 10. recovery device according to claim 9, it is characterised in that the snapshot state includes available and unavailable.
  11. 11. recovery device according to claim 7, it is characterised in that the backtracking module includes:
    State updates submodule, suitable for when the workflow task state occurs abnormal, being updated according to the reason for described abnormal The snapshot state of each snapshot, when the snapshot with it is described abnormal the reason for associate when,
    The snapshot state is updated to unavailable, the snapshot state for otherwise keeping the snapshot is available;
    Submodule is searched, is available snapshot suitable for searching newest snapshot state, and the event is impinged upon soon according to what is found The initiation event of backtracking is determined in stream;
    Submodule is recalled, suitable for proceeding by backtracking from the initiation event.
  12. 12. recovery device according to claim 11, it is characterised in that the initiation event in the flow of event in institute State before the snapshot that finds and the event nearest apart from the snapshot found.
  13. 13. a kind of storage medium, is stored thereon with computer instruction, it is characterised in that is performed during the computer instruction operation The step of restoration methods of workflow task state described in any one of claim 1 to 6.
  14. 14. a kind of computing device, including memory and processor, it is stored with and can runs on the processor on the memory Computer instruction, it is characterised in that it is any in perform claim requirement 1 to 6 when the processor runs the computer instruction The step of restoration methods of workflow task state described in.
CN201710944114.5A 2017-09-30 2017-09-30 Method and device for recovering workflow task state, storage medium and computing equipment Active CN107678889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710944114.5A CN107678889B (en) 2017-09-30 2017-09-30 Method and device for recovering workflow task state, storage medium and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710944114.5A CN107678889B (en) 2017-09-30 2017-09-30 Method and device for recovering workflow task state, storage medium and computing equipment

Publications (2)

Publication Number Publication Date
CN107678889A true CN107678889A (en) 2018-02-09
CN107678889B CN107678889B (en) 2020-06-09

Family

ID=61140781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710944114.5A Active CN107678889B (en) 2017-09-30 2017-09-30 Method and device for recovering workflow task state, storage medium and computing equipment

Country Status (1)

Country Link
CN (1) CN107678889B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739819A (en) * 2019-01-15 2019-05-10 北京智融时代信息技术有限公司 Snapshot lossless compression method, device, equipment and the readable storage medium storing program for executing that can be recalled
CN114355968A (en) * 2021-11-26 2022-04-15 中国航空无线电电子研究所 Airborne equipment autonomous control method and device based on multi-dimensional matching

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101078999A (en) * 2006-05-26 2007-11-28 任永坚 Method and system for accomplishing data backup and recovery
CN101145165A (en) * 2007-10-30 2008-03-19 金蝶软件(中国)有限公司 Work stream data persistence processing method, device and work flow system
CN102096564A (en) * 2009-12-14 2011-06-15 北大方正集团有限公司 Job processing method for printer controller and printer controller
CN104008461A (en) * 2014-06-13 2014-08-27 国家电网公司 Workflow processing method and system
CN107203437A (en) * 2016-03-17 2017-09-26 华为技术有限公司 The methods, devices and systems for preventing internal storage data from losing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101078999A (en) * 2006-05-26 2007-11-28 任永坚 Method and system for accomplishing data backup and recovery
CN101145165A (en) * 2007-10-30 2008-03-19 金蝶软件(中国)有限公司 Work stream data persistence processing method, device and work flow system
CN102096564A (en) * 2009-12-14 2011-06-15 北大方正集团有限公司 Job processing method for printer controller and printer controller
CN104008461A (en) * 2014-06-13 2014-08-27 国家电网公司 Workflow processing method and system
CN107203437A (en) * 2016-03-17 2017-09-26 华为技术有限公司 The methods, devices and systems for preventing internal storage data from losing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739819A (en) * 2019-01-15 2019-05-10 北京智融时代信息技术有限公司 Snapshot lossless compression method, device, equipment and the readable storage medium storing program for executing that can be recalled
CN114355968A (en) * 2021-11-26 2022-04-15 中国航空无线电电子研究所 Airborne equipment autonomous control method and device based on multi-dimensional matching
CN114355968B (en) * 2021-11-26 2023-12-12 中国航空无线电电子研究所 Airborne equipment autonomous control method and device based on multidimensional matching

Also Published As

Publication number Publication date
CN107678889B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
EP2357857B1 (en) Method and apparatus for generating phone bill
JPH0824291B2 (en) Network management system
US20040153999A1 (en) System and method for managing operating systems
CN110263014A (en) Block chain storage system and method towards timing type data
CN110390524B (en) Method and device for processing job data in block chain, electronic equipment and storage medium
CN107678889A (en) The restoration methods and device of workflow task state, storage medium, computing device
JPH07212325A (en) Fault display system in centralized monitoring system
CN108830712A (en) Method, apparatus, equipment and the medium that block generates
CN113411373B (en) Transaction data storage method, tracking and tracing method and blockchain network
CN104536852B (en) Data recovery method and device
CN106528345A (en) Cloud platform-based node hard disk automated recovery method
CN102684928B (en) The method and apparatus of a kind of service backup and recovery
JP2000347919A (en) Automatic operation system for database on-line backup
JP4339220B2 (en) Information processing apparatus, information processing apparatus control method, and program
CN104090797B (en) A kind of web plate upgrade method and the network equipment
CN108668244A (en) Method for processing business, device and storage medium
CN111381984B (en) Method for automatically generating accounting document without billing code by SAP system interface
US7603376B1 (en) File and folder scanning method and apparatus
CN112711599B (en) Data increment updating method
JP3499775B2 (en) Backup information management method
CN110597669A (en) Bank historical data parameterized backup recovery method and device
CN104407934B (en) A kind of SAP data back up method
JP4154900B2 (en) Station data automatic recovery method and method in electronic switching system
US11909541B1 (en) Management method, management device, and recording medium
Bernhard Improving the economic logic underlying replacement age decisions for municipal garbage trucks: case study

Legal Events

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