Interface IProcessRestorer
OptimaJet.Workflow.Core.Runtime.ProcessRestoring.IProcessRestorer
Provides a customization point for process recovery after runtime restart.
Namespace: OptimaJet.Workflow.Core.Runtime.ProcessRestoring
public interface IProcessRestorerMethods
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
schemeCodeStringThe scheme code of the process being restored.
statusProcessStatusThe status assigned to the process before restore begins (currently either ProcessStatus.Error or ProcessStatus.Terminated).
Returns
Type
Description
Booleantrue 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
processProcessInstanceThe process instance to inspect before recovery continues.
Returns
Type
Description
RestoreDecisionA RestoreDecision specifying the next restore action. Return RestoreDecision.Default or null to keep default restore behavior.