PSWorkflowJobManager Class

Definition

Provides interface to upper layers of M3P for calling the Workflow core functionality. Throttles the number of jobs run simultaneously. Used to control the number of workflows that will execute simultaneously

public ref class PSWorkflowJobManager sealed : IDisposable
public sealed class PSWorkflowJobManager : IDisposable
type PSWorkflowJobManager = class
    interface IDisposable
Public NotInheritable Class PSWorkflowJobManager
Implements IDisposable
Inheritance
PSWorkflowJobManager
Implements

Constructors

PSWorkflowJobManager(PSWorkflowRuntime, Int32)

Construct a workflow manager

Methods

CreateJob(Guid, Activity, String, String, Dictionary<String,Object>)

Create a workflow job by providing the activity-tree representing the workflow.

CreateJob(Guid, Activity, String, String, Dictionary<String,Object>, Dictionary<String,Object>)

Create a workflow job by providing the activity-tree representing the workflow.

CreateJob(Guid, String, String, String, Dictionary<String,Object>)

Create a workflow job by providing the xaml representing the workflow.

CreateJob(Guid, String, String, String, Dictionary<String,Object>, Dictionary<String,Object>)

Create a workflow job by providing the xaml representing the workflow.

Dispose()

Disope implementation.

GetJob(Guid)

Returns the workflow job currently loaded in memory with provided id. This function DOES NOT try load the job from the store if not found in memory

GetJobs()

Loads and returns all workflow jobs.

LoadJob(PSWorkflowId)

LoadJob

RemoveJob(Guid)

Remove the workflow with provided job instance id.

ShutdownWorkflowManager(Int32)

ShutdownWorkflowManager is responsible suspending all the workflow and if suspend doesn't happen within timeout then calling the force suspend.

UnloadAllJobs()

UnloadAllJobs

UnloadJob(Guid)

Unload/Forget the workflow with provided job instance id. This method is used to dispose unloaded idle workflows.

Applies to