Class RestoreDecision
OptimaJet.Workflow.Core.Runtime.ProcessRestoring.RestoreDecision
Represents a decision that controls how a process is restored.
Namespace: OptimaJet.Workflow.Core.Runtime.ProcessRestoring
public class RestoreDecisionInheritance
- Object
Properties
Name
Type
Type #RestoreDecisionTypesGets 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 #ActivityDefinitionGets the activity used by RestoreDecision.RunFromNewActivity(ActivityDefinition) or RestoreDecision.ResumeFromNewActivity(ActivityDefinition) instead of the process's current activity.
Default #RestoreDecisionGets the default restore decision.
RunFromCurrentActivity #RestoreDecisionGets 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 #RestoreDecisionGets 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 #RestoreDecisionGets 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
nameStringThe parameter name.
valueObjectThe parameter value.
Returns
Type
Description
RestoreDecisionThe 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
nameStringThe parameter name.
valueObjectThe parameter value.
Returns
Type
Description
RestoreDecisionThe 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
activityDefinitionActivityDefinitionThe activity to execute instead of the process's current activity.
Returns
Type
Description
RestoreDecisionA restore decision with RestoreDecision.Type set to RestoreDecisionTypes.RunFromNewActivity.
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
activityDefinitionActivityDefinitionThe activity after which process execution should continue.
Returns
Type
Description
RestoreDecisionA restore decision with RestoreDecision.Type set to RestoreDecisionTypes.ResumeFromNewActivity.