Bagikan melalui


WorkflowJobSourceAdapter Class

Definition

Adapter that allows workflow instances to be exposed as jobs in PowerShell. NOTE: This class has been unsealed to allow extensibility for Opalis. Further thought is needed around the best way to enable reuse of this class.

public ref class WorkflowJobSourceAdapter sealed : System::Management::Automation::JobSourceAdapter
public sealed class WorkflowJobSourceAdapter : System.Management.Automation.JobSourceAdapter
type WorkflowJobSourceAdapter = class
    inherit JobSourceAdapter
Public NotInheritable Class WorkflowJobSourceAdapter
Inherits JobSourceAdapter
Inheritance
WorkflowJobSourceAdapter

Properties

Name

Name for this store.

(Inherited from JobSourceAdapter)

Methods

GetInstance()

Gets the WorkflowJobSourceAdapter instance.

GetJobByInstanceId(Guid, Boolean)

Get list of jobs that has the specified id

GetJobBySessionId(Int32, Boolean)

Get job by session id.

GetJobManager()

GetJobManager

GetJobs()

Get the list of jobs that are currently available in the workflow instance table.

GetJobsByCommand(String, Boolean)

Get list of jobs that run the specified command

GetJobsByFilter(Dictionary<String,Object>, Boolean)

Get list of jobs based on the adapter specific filter parameters

GetJobsByName(String, Boolean)

Get list of jobs that matches the specified names

GetJobsByState(JobState, Boolean)

Get list of jobs that are in the specified state

GetPSWorkflowRuntime()

GetPSWorkflowRunTime

NewJob(JobDefinition)

Create a new job with the specified definition.

(Inherited from JobSourceAdapter)
NewJob(JobInvocationInfo)

Create a new job with the specified JobSpecification.

NewJob(String, String)

Creates a new job with the definition as specified by the provided definition name and path. If path is null then a default location will be used to find the job definition by name.

(Inherited from JobSourceAdapter)
PersistJob(Job2)

Saves the job to a persisted store.

(Inherited from JobSourceAdapter)
RemoveJob(Job2)

Remove a job from the store

RetrieveJobIdForReuse(Guid)

Get a token that allows for construction of a job with a previously assigned Id and InstanceId. This is only possible if this JobSourceAdapter is the creator of the original job. The original job must have been saved using "SaveJobIdForReconstruction"

(Inherited from JobSourceAdapter)
StoreJobIdForReuse(Job2, Boolean)

Saves the Id information for a job so that it can be constructed at a later time. This will only allow this job source adapter type to recreate the job.

(Inherited from JobSourceAdapter)

Applies to