Click or drag to resize

InstanceLockChangeState Method

Changes the state.

Namespace: Scanjour.Workflow4.Host
Assembly: Scanjour.Workflow4.Host (in Scanjour.Workflow4.Host.dll) Version: 24.5.0.0 (24.5.0.0)
Syntax
public Task<bool> ChangeState(
	Guid instanceId,
	WorkflowStatus toStatus,
	string serverName,
	string message = null,
	WorkflowStatus? fromStatus = null,
	int maxRetry = 3
)

Parameters

instanceId  Guid
The instance identifier.
toStatus  WorkflowStatus
The requested status.
serverName  String
Name of the server.
message  String  (Optional)

[Missing <param name="message"/> documentation for "M:Scanjour.Workflow4.Host.InstanceLock.ChangeState(System.Guid,Scanjour.Workflow4.Host.WorkflowStatus,System.String,System.String,System.Nullable{Scanjour.Workflow4.Host.WorkflowStatus},System.Int32)"]

fromStatus  NullableWorkflowStatus  (Optional)
The required current status.
maxRetry  Int32  (Optional)
The maxRetry number of retries on fail.

Return Value

TaskBoolean
True if it was possible to change the state. An exception is only thrown if the batch update throws an unexpected exception
See Also