Click or drag to resize

WorkflowHost Class

Provides a host for any number of instances of workflows, typically represented by XAML stored in the SOM database.
Inheritance Hierarchy
SystemObject
  Scanjour.Workflow4.HostAppPoolRecycleState
    Scanjour.Workflow4.HostWorkflowHost

Namespace: Scanjour.Workflow4.Host
Assembly: Scanjour.Workflow4.Host (in Scanjour.Workflow4.Host.dll) Version: 24.5.0.0 (24.5.0.0)
Syntax
public class WorkflowHost : AppPoolRecycleState

The WorkflowHost type exposes the following members.

Constructors
 NameDescription
Public methodWorkflowHost Creates a new instance of the WorkflowHost class.
Top
Properties
 NameDescription
Protected propertyAppPoolExtraRecycleDelay
(Inherited from AppPoolRecycleState)
Protected propertyMaxAppPoolOverlayTimeMilliSeconds
(Inherited from AppPoolRecycleState)
Public propertyWorkflowHostOwnerName Returns the owner of the workflow host.
Top
Methods
 NameDescription
Public methodStatic memberBypassCertificateError solution for exception System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
Public methodCancelTimer Cancel the timer, if any, for the given workflow.
Public methodStatic memberCopyWorkflowDependenciesToWebserviceFolder Copy assemblies from a package to the Web service folder if not up to date.
Public methodCreateWorkflow(Uri, WorkflowCreationData) Create a workflow from the given data. Creation will be done using the SOM session, which must be impersonated to the calling user.
Public methodCreateWorkflow(Uri, WorkflowCreationData, ActionWorkflowApplicationCompletedEventArgs, SecurityContext) Create a workflow from the given data. Creation will be done using the SOM session, which must be impersonated to the calling user.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetBookmarks Gets the bookmarks for specified workflow instance.
Public methodGetDefaultArguments Gets the default arguments.
Public methodGetDynamicContext Gets the dynamic context.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetInstanceInformationCacheGets the instance information cache.
(Overrides AppPoolRecycleStateGetInstanceInformationCache)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetWorkflowInformation Return all available information on a workflow instance.
Public methodGetWorkflowOutputs Get the output argument dictionary for a given completed workflow instance. Limitation: outputs can only be gotten for workflows that have been completed by this instance (i.e. in this process) of the workflow host. In all other cases, null will be returned.
Public methodGetWorkflowRowId Get workflow instance row id from instance id.
Public methodGetWorkflowStatus Get the current status of a workflow instance.
Public methodInitialize Initialize the workflow host. This includes setting up timers for pending timeouts in currently persisted workflows.
Public methodInitialize(String, String, String) Initialize the workflow host specifying default credentials for SOM sessions created for timers. This includes setting up timers for pending timeouts in currently persisted workflows.
Public methodInitialize(String, String, String, UInt32, UInt32, UInt32) Initialize the workflow host specifying default credentials for SOM sessions created for timers. This includes setting up timers for pending timeouts in currently persisted workflows.
Public methodStatic memberIsInitializedDetermines whether this instance is initialized.
Public methodStatic memberLoadWorkflowDefinition(Uri, WorkflowType) Get the definition for a workflow.
Public methodStatic memberLoadWorkflowDefinition(Uri, String, NullableDateTime) Get the definition for a workflow.
Public methodStatic memberLockWorkflowInstance Lock Workflow Instance
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRestartWorkflow Restart a workflow based on data in the wzp_workflow_instance table
Public methodResumeBookmark(Uri, Guid, String, Object) Initiates an operation to resume the specified bookmark, using the specified value. The bookmark to be resumed is previously created by an activity within the workflow instance.
Public methodResumeBookmark(Uri, Guid, String, Object, ActionWorkflowApplicationCompletedEventArgs) Initiates an operation to resume the specified bookmark, using the specified value. The bookmark to be resumed is previously created by an activity within the workflow instance.
Public methodResumeBookmarkOnBehalfOf Initiates an operation to resume the specified bookmark, using the specified value. The bookmark to be resumed is previously created by an activity within the workflow instance.
Protected methodSetupAssemblyRedirects Set up assembly redirects for assemblies that is *requested* without public key token
Public methodSetupEnvironment Register the URL to the Workflow4 webservice, if any. This information will be used to supply activities with the URL to the associated OData service.
Protected methodShutDownCalled when host is shutting down to clean up.
(Overrides AppPoolRecycleStateShutDown)
Protected methodStartUpCalled when hosts starts up.
Public methodStartWorkflow Start a workflow based on data in the wzp_workflow_instance table
Public methodStop
(Inherited from AppPoolRecycleState)
Public methodTakeOwnership Change workflow and open user tasks owner to current user
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberUpdateWorkflowStatus UPdate the workflow status in the workflow instance register.
Public methodStatic memberValidateCreationData Validate the workflow cretion data structure.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultMaxWatchDelay The Default maximum WatchDelay in minutes
Public fieldStatic memberDefaultMaxWatchInterval The default maximum watch interval in minutes
Public fieldStatic memberDefaultWatchDelay The Default WatchDelay in minutes
Public fieldStatic memberDefaultWatchInterval The Default WatchInterwal in minutes
Public fieldStatic memberHostVersion Gets the WorkflowHost version identification.
Public fieldStatic memberWorkflowHostInstanceGuidThe workflow host instance unique identifier
Top
Extension Methods
See Also