Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class RestoreDecision

OptimaJet.Workflow.Core.Runtime.ProcessRestoring.RestoreDecision

Represents a decision that controls how a process is restored.

public class RestoreDecision

Inheritance

  • Object

Properties

Name
Type
Type #
RestoreDecisionTypes
Gets the restore decision type.
ProcessParameters #
IDictionary<String, Object>
Gets the process parameters that should be assigned during restore.
Persist #
List<String>
Gets the names of restore parameters marked for persistence.
Activity #
ActivityDefinition
Default #
RestoreDecision
Gets the default restore decision.
RunFromCurrentActivity #
RestoreDecision
Gets a decision that executes the process's current activity again during restore and then continues the process according to the normal activity execution flow.
ResumeFromCurrentActivity #
RestoreDecision
Gets a decision that does not execute the process's current activity again during restore and instead attempts to continue the process through that activity's automatic outgoing transitions.
Delete #
RestoreDecision
Gets a decision that deletes the process during restore.

Methods

public RestoreDecision AddPersistentParameter(string name, object value) #
Adds a process parameter that should be persisted.

Parameters

Name
Type
Description
name
String
The parameter name.
value
Object
The parameter value.

Returns

Type
Description
RestoreDecision
The current restore decision.
public RestoreDecision AddTemporaryParameter(string name, object value) #
Adds a process parameter that should not be marked for persistence.

Parameters

Name
Type
Description
name
String
The parameter name.
value
Object
The parameter value.

Returns

Type
Description
RestoreDecision
The current restore decision.
public static RestoreDecision RunFromNewActivity(ActivityDefinition activityDefinition) #
Creates a decision that executes the specified activity during restore and then continues the process according to the normal activity execution flow.

Parameters

Name
Type
Description
activityDefinition
ActivityDefinition
The activity to execute instead of the process's current activity.

Returns

Type
Description
RestoreDecision
public static RestoreDecision ResumeFromNewActivity(ActivityDefinition activityDefinition) #
Creates a decision that does not execute the specified activity during restore and instead attempts to continue the process through that activity's automatic outgoing transitions.

Parameters

Name
Type
Description
activityDefinition
ActivityDefinition
The activity after which process execution should continue.

Returns

Type
Description
RestoreDecision