CN107678889B - Method and device for recovering workflow task state, storage medium and computing equipment - Google Patents

Method and device for recovering workflow task state, storage medium and computing equipment Download PDF

Info

Publication number
CN107678889B
CN107678889B CN201710944114.5A CN201710944114A CN107678889B CN 107678889 B CN107678889 B CN 107678889B CN 201710944114 A CN201710944114 A CN 201710944114A CN 107678889 B CN107678889 B CN 107678889B
Authority
CN
China
Prior art keywords
snapshot
event
state
workflow
task state
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.)
Active
Application number
CN201710944114.5A
Other languages
Chinese (zh)
Other versions
CN107678889A (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 Exchange Corp
Original Assignee
Shanghai Data Exchange 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 Shanghai Data Exchange Corp filed Critical Shanghai Data Exchange Corp
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

Images

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

A method and a device for recovering a workflow task state, a storage medium and a computing device are provided, wherein the recovery method comprises the following steps: creating an event stream during a workflow task state flow, the event stream comprising a plurality of events and at least one snapshot, each snapshot comprising a set of at least partial information of the event stream at a single point in time; and when the task state of the workflow is abnormal, backtracking the event in the event flow according to the latest available snapshot. By the technical scheme provided by the invention, the abnormal workflow task state can be efficiently recovered, so that the whole event flow is prevented from being backtracked again, and the event recovery efficiency is improved.

Description

Method and device for recovering workflow task state, storage medium and computing equipment
Technical Field
The invention relates to the field of data circulation, in particular to a method and a device for recovering a workflow task state, a storage medium and computing equipment.
Background
In the data circulation field, a data circulation system is closely related to the task state of a workflow, and due to the particularity of data assets (for example, the data assets have high requirement on confidentiality), a recovery mechanism of the task state of the workflow in the data circulation process is difficult to realize by adopting a third-party component. Generally, in the data circulation process, the workflow task state circulation often corresponds to the complete event flow circulation process. The number of events in the event stream is usually very large, the event state changes are complex, and the events may include a directed cyclic graph, further increasing the complexity of the event stream flow.
Once the task state of the workflow is abnormal, the existing scheme can adopt a recovery mode of a simple event stream, but the whole event stream needs to be traced again, so that the task state recovery efficiency of the workflow is low; a recovery mode of a conventional state machine may also be adopted, but the conventional state machine cannot recover an event of a directed cyclic graph, and in an extreme case, the task state of the working service flow may be recovered by backtracking the entire event flow, and the recovery efficiency is also very low. The existing recovery mode can reduce the data circulation efficiency.
Disclosure of Invention
The technical problem to be solved by the invention is how to efficiently recover the task state of the workflow, so as to avoid backtracking the whole event stream and improve the data circulation efficiency.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for recovering a task state of a workflow, where the method for recovering a task state of a workflow includes: creating an event stream during a workflow task state flow, the event stream comprising a plurality of events and at least one snapshot, each snapshot comprising a set of at least partial information of the event stream at a single point in time; and when the task state of the workflow is abnormal, backtracking the event in the event flow according to the latest available snapshot.
Optionally, the step of creating an event stream in the workflow task state flow process includes: and in the workflow task state circulation process, sequentially recording the events which occur, wherein the events are defined by pre-dividing the workflow task state.
Optionally, the snapshot further includes one or more of: a point in time is created, as well as a snapshot state.
Optionally, the snapshot state includes: available and unavailable.
Optionally, when the task state of the workflow is abnormal, the step of backtracking the event in the event stream according to the latest available snapshot includes: when the workflow task state is abnormal, updating the snapshot state of each snapshot according to the reason of the abnormality, when the snapshot is associated with the reason of the abnormality, updating the snapshot state to be unavailable, otherwise, keeping the snapshot state of the snapshot to be available; searching for an available snapshot in the latest snapshot state, and determining a backtracking initial event in the event stream according to the found snapshot; backtracking is performed from the start event.
Optionally, the starting event is an event in the event stream that precedes and is closest to the found snapshot.
To solve the foregoing technical problem, an embodiment of the present invention provides a device for recovering a task state of a workflow, including: the system comprises a creating module, a processing module and a processing module, wherein the creating module is suitable for creating an event stream in the process of workflow task state circulation, the event stream comprises a plurality of events and at least one snapshot, and each snapshot comprises a set of at least partial information of the event stream at a single time point; and the backtracking module is suitable for backtracking the event in the event stream according to the latest available snapshot when the task state of the workflow is abnormal.
Optionally, the creating module includes: and the recording submodule is suitable for sequentially recording the events in the workflow task state circulation process, wherein the events are defined by pre-dividing the workflow task state.
Optionally, the snapshot further includes one or more of: a point in time is created, as well as a snapshot state.
Optionally, the snapshot state includes available and unavailable.
Optionally, the backtracking module includes: the state updating submodule is suitable for updating the snapshot state of each snapshot according to the reason of the abnormality when the workflow task state is abnormal, and updating the snapshot state to be unavailable when the snapshot is associated with the reason of the abnormality, otherwise, keeping the snapshot state of the snapshot to be available; the searching submodule is suitable for searching the latest snapshot state as an available snapshot and determining a backtracking initial event in the event stream according to the found snapshot; and the backtracking submodule is suitable for backtracking from the starting event.
Optionally, the starting event is an event in the event stream that precedes and is closest to the found snapshot.
To solve the above technical problem, an embodiment of the present invention provides a storage medium having stored thereon computer instructions, which when executed perform the steps of the above recovery method.
In order to solve the above technical problem, an embodiment of the present invention provides a computing device, including a memory and a processor, where the memory stores computer instructions executable on the processor, and the processor executes the computer instructions to perform the steps of the recovery method.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the method comprises the steps that an event stream is created in the workflow task state flowing process, the event stream can comprise a plurality of events, and the events are obtained by defining flowing links of the workflow task state according to the division in advance; the event stream may also contain at least one snapshot, each snapshot may contain a set of at least partial information of the event stream at a single point in time, whereby it is known that a snapshot may record individual events and event information that completed a flow prior to the point in time at which the snapshot was created. When the workflow task state is abnormal, the corresponding event can be recovered by searching the event information of the latest available snapshot record. According to the technical scheme, the event can be switched in from the latest available snapshot for backtracking, so that the whole event stream can be prevented from being backtracked again, the complexity of the event recovery process is reduced, the abnormal event can be recovered efficiently, and the event recovery efficiency is improved.
Further, when the workflow task state is abnormal, the snapshot state of each snapshot is updated according to the reason of the abnormality so as to determine whether the snapshot can be used for recovering the event, and when the snapshot is associated with the reason of the abnormality, the snapshot may have invalid event information recorded by the snapshot due to the abnormal event state, so that the snapshot state can be updated to be unavailable. If the snapshot is not associated with the cause of the anomaly, a snapshot state of the snapshot may be maintained as available. After determining the snapshot state, a start event requiring backtracking may be determined by looking up the latest available snapshot and resuming the event from the start event. The starting event that needs to be traced back can be determined by the event information of the snapshot record. According to the technical scheme, the situation that the whole event stream is restored due to association of the snapshot and the abnormal reason can be avoided, and the event restoration efficiency can be improved.
Drawings
FIG. 1 is a flowchart illustrating a method for recovering a task state of a workflow according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of step S102 shown in FIG. 1;
fig. 3 is a schematic structural diagram of a device for recovering a task state of a workflow according to an embodiment of the present invention.
Detailed Description
As is understood by those skilled in the art, as the background art indicates, when the task state of the workflow is abnormal, if a recovery method of a simple event stream needs to backtrack the entire event stream again, if a recovery method of a conventional state machine is used, the event stream may be backtracked again due to the fact that the directed cyclic graph event cannot be recovered, and the event recovery efficiency is low.
The method comprises the steps that an event stream is created in the workflow task state flowing process, the event stream can comprise a plurality of events, and the events are obtained by defining flowing links of the workflow task state according to the division in advance; the event stream may also contain at least one snapshot, each snapshot may contain a set of at least partial information of the event stream at a single point in time, whereby it is known that a snapshot may record individual events and event information that completed a flow prior to the point in time at which the snapshot was created. When the workflow task state is abnormal, the corresponding event can be recovered by searching the event information of the latest available snapshot record. According to the technical scheme, the event can be switched in from the latest available snapshot for backtracking, on one hand, the event state of the directed cyclic graph can be recovered due to the event information recorded by the snapshot, on the other hand, the whole event stream can be prevented from being backtracked again, and the complexity of the event recovery process is reduced, so that the abnormal event can be recovered efficiently, and the event recovery efficiency is improved.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Fig. 1 is a flowchart illustrating a method for recovering a task state of a workflow according to an embodiment of the present invention. The change of the task state of the workflow and the circulation process often correspond to the execution process of one task. Creating an event stream in the workflow task state flowing process, wherein the event stream can comprise a plurality of events and at least one snapshot, and the events are defined by dividing a flowing link of the workflow task state in advance; each snapshot may contain a set of at least part of the information of the event stream at a single point in time, i.e. at some single point in time, some or all of the information in the event stream. When the workflow task state is abnormal in the process of flow transfer, events defined in advance for the workflow task state can be recovered through event information recorded by the latest available snapshot, and therefore the workflow task state is recovered.
Further, the method for recovering the task state of the workflow shown in fig. 1 may include the following steps:
step S101: creating an event stream during a workflow task state flow, the event stream comprising a plurality of events and at least one snapshot, each snapshot comprising a set of at least partial information of the event stream at a single point in time;
step S102: and when the task state of the workflow is abnormal, backtracking the event in the event flow according to the latest available snapshot.
Specifically, before the workflow task state is circulated, a plurality of events can be defined by circulating the workflow task state in advance, and each event represents a specific circulating link generated in the workflow task state circulating process. In step S101, an event stream is created during the process of transferring the task state of the workflow, where the event stream may include a plurality of events, and a complete event stream may be formed through the transfer of each event.
The event stream may also include a snapshot or snapshots. The snapshot is created in the workflow task state flow process. Before creating the snapshot, the number of snapshots to be created and which event or events in the workflow task state flow process the snapshot is created for can be predetermined. Generally, a snapshot can be created if one or more events complete a staged job. The creation process of the snapshot depends on the event (namely, the circulation link) state of the event flow and is completed in the circulation process of the event flow.
Generally, there are two ways to create a snapshot during the flow of the workflow task state or event stream. One is to create a snapshot according to a preset trigger condition, that is, in the workflow task state transfer process, if the preset trigger condition is met, the creation of the snapshot is automatically triggered; the other method is to manually create the snapshot, namely manually trigger and create the snapshot according to the requirement in the workflow task state circulation process. In practical application, in order to meet different application service requirements, in some specific scenarios, snapshots need to be temporarily added to record event information, and at this time, the snapshots can be created by manually creating the snapshots. For example, when an emergency occurs in the process of transferring the task state of the workflow, and the emergency does not belong to a predefined event, a snapshot can be manually created for the emergency to record the actual information of the emergency, so as to flexibly adapt to the actual service requirement.
As a non-limiting example, if the preset trigger condition includes the completion of a charging event, the completion of an online timed invoicing event, and the completion of a bill summarizing event, then in the workflow state flow process, the creation of a snapshot will be automatically triggered after respectively flowing to the charging event, the online timed invoicing event, and the bill summarizing event. If the online timed invoicing event is changed to an offline immediate invoicing event due to business needs, in this case, a snapshot can be manually triggered to be created for the offline immediate invoicing event.
Further, the purpose of creating a snapshot is to record the information collection of all or part of the events of the event stream at a single point in time. In particular, the set of information may include one or more of: event generation time, type, version, state machine, and cycle number of each state, business data, etc., the business data refers to additional data associated with the event. Some event flows may be associated with one or more service data, and thus, in the event flow process, it is often necessary to process or store the service data associated with the event at the same time. For example, the money calculation event may be completed and automatically flow to a deduction event. As another example, a billing event may be completed and automatically forwarded to an invoicing event. Those skilled in the art can change the embodiments according to actual needs, and detailed description is omitted here.
It is worth mentioning that, because the snapshot may include a state machine of a single event and the cycle number of each state, the snapshot may process a workflow task state flow process of a directed cyclic graph, and the entire event flow does not need to be restored, so that the event restoration efficiency may be improved.
Further, the snapshot also includes one or more of: a point in time is created, as well as a snapshot state. The creation time point refers to the time of creating the snapshot or generating the snapshot, and is used for recording the creation time of the snapshot. Therefore, a newly created snapshot (i.e., the creation time point is latest) can acquire the information sets of the event streams at a single time point included in the snapshots before the snapshot. A snapshot state may be set for the snapshot when the snapshot is created. Since the newly created snapshot may contain all information of the event in the event stream that has been streamed, the snapshot state of the newly created snapshot may be set to available. When the workflow task state is abnormal, backtracking events can be based on the latest available snapshot. Under certain conditions, the snapshot state may be updated, e.g., after a new snapshot is created, the snapshot state of an "old" snapshot before the new snapshot may be set to unavailable.
Further, the snapshot may further include event identifiers defined by all pre-divisions (for example, the snapshot may include event identifiers of completed circulation before the snapshot is created, and the event identifiers are ordered according to the order of completed events). By inquiring the content of the snapshot, the event identifier of the event which is completed at present can be obtained, and further the event identifier of the subsequent event which is to be continuously executed can be deduced according to the predefined event. The snapshots may also include a predefined number of snapshots and a number of the current snapshot so that looking up any snapshot may result in the predefined number of snapshots and a location of the current snapshot.
Further, in step S102, when the task state of the workflow is abnormal, snapshot state backtracking may be performed according to the latest available snapshot, so as to backtrack the event in the event stream. Event backtracking can be restored by adopting the existing state machine mode.
As a non-limiting example, referring to fig. 1 and fig. 2 together, step S102 in fig. 1 may specifically include the following steps:
step S1021: when the workflow task state is abnormal, updating the snapshot state of each snapshot according to the reason of the abnormality, when the snapshot is associated with the reason of the abnormality, updating the snapshot state to be unavailable, otherwise, keeping the snapshot state of the snapshot to be available;
step S1022: searching for an available snapshot in the latest snapshot state, and determining a backtracking initial event in the event stream according to the found snapshot;
step S1023: backtracking is performed from the start event.
Specifically, in step S1021, the snapshot states of the respective snapshots are updated in chronological order from the old snapshot to the new snapshot, based on the cause of the abnormality. If the snapshot is not associated with the cause of the anomaly, the snapshot state is maintained, i.e., the snapshot state of the snapshot is still available. And if the snapshot is associated with the reason of the abnormality, determining the number of the snapshots associated with the snapshot according to the reason of the abnormality, and sequentially updating the snapshots associated with the reason of the abnormality, namely updating the snapshot state to be unavailable, and when the snapshot state is unavailable, ignoring the snapshot when the workflow task state is restored. For example, the event stream defines an event a, an event B, an event C, and an event D in advance, and the creation time points for creating the snapshot are preset to create a snapshot a after the event a is completed, create a snapshot B after the event B is completed, create a snapshot C after the event C is completed, and create a snapshot D after the event D is completed, respectively. Assuming that in the event transfer process, the event transfer is completed to the event a, at this time, the snapshot a can be created, and meanwhile, the snapshot state of the snapshot a can be set to be available; in a similar manner, a snapshot B can be created and the snapshot state of the snapshot B can be set to be available, and at the time, the snapshot B contains the information sets of the event a and the event B, so that the snapshot state of the snapshot a can be set to be unavailable; similarly, after the event C flow is completed, snapshot C may be created, and the snapshot state of snapshot C is set to be available, while the snapshot states of snapshot a and snapshot b are set to be unavailable. If an exception occurs in event D when the event stream transitions from event C to event D, snapshot D will not be created. If event D is not associated with the snapshot state of snapshot c, then the snapshot state of snapshot c remains available. For another example, a unit price event, a charging event, and a charging ticket issuing event are predefined for an event stream of data circulation, and a unit price snapshot after the unit price event, a charging snapshot after the charging event, and a ticket issuing snapshot after the charging ticket issuing event are predefined. When the event stream of the data circulation completes the charging event, on one hand, the charging snapshot can be automatically triggered and created, the snapshot state of the charging snapshot is set to be available, and the snapshot state of the unit price pricing snapshot is set to be unavailable; in another aspect, the event stream will transition from a billed event stream to an issued billed credential event. If the data supplier adjusts the data unit price at this time, namely the workflow task state is abnormal, and the charging snapshot is related to the reason of the abnormality (namely the workflow task state is abnormal due to the change of the unit price event), the snapshot state of the charging snapshot is updated from available to unavailable.
Further, in step S1022, the backtracking may be performed by searching for a snapshot state, and if the found snapshot state is unavailable, the current snapshot is ignored, and the process proceeds to the next snapshot for determination; and when the latest available snapshot is found, switching in the snapshot, and determining the initial event for recovering the event stream from the snapshot. The start event may be an event in the event stream that precedes and is closest to the found snapshot.
Further, in step S1023, event backtracking is started from the found start event. At this time, according to the service requirement, the event may be recovered in a state machine manner based on a part or all of the information of a single event point included in the snapshot, that is, the workflow task state may be continuously circulated from the start event.
By combining the above descriptions, it can be seen that, in data circulation, compared with the existing simple event stream recovery mode and the conventional state machine recovery mode, the advantages of recovering the workflow state task based on the snapshot are as follows: firstly, the recovery process of the task state of the workflow can be simplified, and the task state of the workflow with a directed cyclic graph can be processed; secondly, the event can be recovered in a jumping manner according to the snapshot state without recovering the whole event stream again, so that the event recovery efficiency is improved; the snapshot can be manually created for the emergency, and the method is flexibly applied to various actual data flow services.
Fig. 3 is a schematic structural diagram of a device for recovering a task state of a workflow according to an embodiment of the present invention. The recovery apparatus 3 shown in fig. 3 may be used to implement the technical solution of the method for recovering the task state of the workflow in the embodiment shown in fig. 1.
Specifically, the recovery device 3 may include: a creation module 31 and a backtracking module 32.
Wherein the creating module 31 is adapted to create an event stream during a workflow task state flow, the event stream comprising a plurality of events and at least one snapshot, each snapshot comprising a set of at least partial information of the event stream at a single point in time; the backtracking module 32 is adapted to backtrack the event in the event stream according to the latest available snapshot when the task state of the workflow is abnormal.
Specifically, the creating module 31 may include: the recording sub-module 311 is adapted to sequentially record events occurring during the workflow task state circulation process, where the events are defined by dividing the workflow task state in advance.
Further, the snapshot further includes one or more of: a point in time is created, as well as a snapshot state.
Further, the snapshot state includes available and unavailable.
Further, the backtracking module 32 may include: a status update sub-module 321, a lookup sub-module 322, and a backtracking sub-module 323. The state updating submodule 321 is adapted to update, when the workflow task state is abnormal, the snapshot state of each snapshot according to the reason of the abnormality, and when the snapshot is associated with the reason of the abnormality, update the snapshot state to be unavailable, otherwise, keep the snapshot state of the snapshot to be available; the searching submodule 322 is adapted to search for an available snapshot in the latest snapshot state, and determine a backtracking start event in the event stream according to the found snapshot; the backtracking sub-module 323 is adapted to perform backtracking from the start event.
Further, the start event is an event in the event stream that precedes and is closest to the found snapshot.
For more details of the operation principle and the operation mode of the recovery apparatus 3, reference may be made to the above description of the embodiment shown in fig. 1 or the embodiments shown in fig. 1 and fig. 2, and details are not repeated here.
Further, the embodiment of the present invention also discloses a storage medium, on which computer instructions are stored, and when the computer instructions are executed, the steps of the method described in the embodiment shown in fig. 1 or the embodiments shown in fig. 1 and fig. 2 are executed. Preferably, the storage medium may include a computer-readable storage medium. Preferably, the storage medium may include ROM, RAM, magnetic or optical disks, or the like.
Further, the embodiment of the present invention also discloses a computing device, which includes a memory and a processor, where the memory stores computer instructions capable of being executed on the processor, and the processor executes the computer instructions to perform the steps of the method according to the embodiment shown in fig. 1 or the embodiments shown in fig. 1 and fig. 2.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A method for restoring a task state of a workflow, comprising:
creating an event stream during a workflow task state flow, the event stream comprising a plurality of events and at least one snapshot, each snapshot comprising a set of at least partial information of the event stream at a single point in time;
when the task state of the workflow is abnormal, backtracking the event in the event flow according to the latest available snapshot, wherein the backtracking comprises the following steps: when the workflow task state is abnormal, updating the snapshot state of each snapshot according to the reason of the abnormality, when the snapshot is associated with the reason of the abnormality, updating the snapshot state to be unavailable, otherwise, keeping the snapshot state of the snapshot to be available; searching for an available snapshot in the latest snapshot state, and determining a backtracking initial event in the event stream according to the found snapshot; backtracking is performed from the start event.
2. The recovery method according to claim 1, wherein the step of creating an event stream during workflow task state flow comprises:
and in the workflow task state circulation process, sequentially recording the events which occur, wherein the events are defined by pre-dividing the workflow task state.
3. The recovery method of claim 1, wherein the snapshot further comprises one or more of: a point in time is created, as well as a snapshot state.
4. The recovery method of claim 3, wherein the snapshot state comprises: available and unavailable.
5. The recovery method of claim 1, wherein the starting event is an event in the event stream that precedes and is closest to the found snapshot.
6. An apparatus for restoring a task state of a workflow, comprising:
the system comprises a creating module, a processing module and a processing module, wherein the creating module is suitable for creating an event stream in the process of workflow task state circulation, the event stream comprises a plurality of events and at least one snapshot, and each snapshot comprises a set of at least partial information of the event stream at a single time point;
the backtracking module is suitable for backtracking the event in the event stream according to the latest available snapshot when the task state of the workflow is abnormal; the backtracking module comprises: the state updating submodule is suitable for updating the snapshot state of each snapshot according to the reason of the abnormality when the workflow task state is abnormal, and updating the snapshot state to be unavailable when the snapshot is associated with the reason of the abnormality, otherwise, keeping the snapshot state of the snapshot to be available; the searching submodule is suitable for searching the latest snapshot state as an available snapshot and determining a backtracking initial event in the event stream according to the found snapshot; and the backtracking submodule is suitable for backtracking from the starting event.
7. The recovery apparatus according to claim 6, wherein the creating module comprises:
and the recording submodule is suitable for sequentially recording the events in the workflow task state circulation process, wherein the events are defined by pre-dividing the workflow task state.
8. The recovery apparatus of claim 6, wherein the snapshot further comprises one or more of: a point in time is created, as well as a snapshot state.
9. The recovery apparatus of claim 8 wherein the snapshot state comprises available and unavailable.
10. The recovery apparatus according to claim 6, wherein the start event is an event in the event stream that precedes and is closest to the found snapshot.
11. A storage medium having stored thereon computer instructions, wherein said computer instructions when executed perform the steps of the method for restoring a workflow task state of any of claims 1 to 5.
12. A computing device comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the method for restoring a workflow task state of any of claims 1 to 5.
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 CN107678889A (en) 2018-02-09
CN107678889B true 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)

Families Citing this family (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
CN114355968B (en) * 2021-11-26 2023-12-12 中国航空无线电电子研究所 Airborne equipment autonomous control method and device based on multidimensional 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

Also Published As

Publication number Publication date
CN107678889A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
US20110179058A1 (en) Enabling workflow awareness within a business process management (bpm) system
CN112000355B (en) Method and device for firmware upgrading and household appliance
CN108292213A (en) Update relies on service
CN103176892B (en) A kind of page monitoring method and system
CN108874558A (en) News subscribing method, electronic device and the readable storage medium storing program for executing of distributed transaction
CN107678889B (en) Method and device for recovering workflow task state, storage medium and computing equipment
CN109871290B (en) Call stack tracking method and device applied to Java and storage medium
JP2012069098A5 (en) Method for managing quality of service for network participants in a networked business process, and computer readable recording medium storing instructions that can cause a computer to perform operations for managing
JP2008210148A (en) Failure handling system and failure handling method
CN112685224A (en) Method, apparatus and computer program product for task management
CN112669110A (en) Server label management method and related equipment
CN104765652A (en) Data backup and data recovery method and device
CN107357831A (en) Configurable flow instance data distribution formula storage method and system
CN106201772A (en) The backup of a kind of operating system based on data center, restoration methods and device
CN112036141A (en) Calculation formula configuration method, data processing device and computer storage medium
CN111444309B (en) System for learning graph
CN101495978B (en) Reduction of message flow between bus-connected consumers and producers
EP3798931A1 (en) Machine learning training resource management
CN109389271B (en) Application performance management method and system
CN103164236B (en) The method and system of remote server online upgrading
CN113495723B (en) Method, device and storage medium for calling functional component
JP6673358B2 (en) System change support system, information processing apparatus, system change support method, and program
US20140250138A1 (en) Method and apparatus for optimizing log file filtering
CN114553859A (en) BMC configuration management method and device, electronic equipment and storage medium
CN111382983B (en) Workflow control method, workflow node and system

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