Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Interface IProcessRestorer

OptimaJet.Workflow.Core.Runtime.ProcessRestoring.IProcessRestorer

Provides a customization point for process recovery after runtime restart.

public interface IProcessRestorer

Methods

bool NeedCustomRestore(string schemeCode, ProcessStatus status) #
Indicates whether a process instance should be handled by a custom restore decision during recovery.

Parameters

Name
Type
Description
schemeCode
String
The scheme code of the process being restored.
status
ProcessStatus
The status assigned to the process before restore begins (currently either ProcessStatus.Error or ProcessStatus.Terminated).

Returns

Type
Description
Boolean
true to apply custom restore logic using IProcessRestorer.GetCustomRestoreDecision(ProcessInstance); otherwise false to use the default recovery behavior.
RestoreDecision GetCustomRestoreDecision(ProcessInstance process) #
Gets the custom restore decision for a process selected for custom recovery.

Parameters

Name
Type
Description
process
ProcessInstance
The process instance to inspect before recovery continues.

Returns

Type
Description
RestoreDecision
A RestoreDecision specifying the next restore action. Return RestoreDecision.Default or null to keep default restore behavior.