Table of Contents

Class JobMatchExtensions

Namespace
JobFlow.Core.Rules.Dsl
Assembly
JobFlow.Core.dll

Adds a collection of additional NRule DSL methods specific to matching Jobs.

public static class JobMatchExtensions
Inheritance
JobMatchExtensions

Methods

IsStart(Matcher<JobModel>)

Match against the "start" Job. Equivalent to WithNames(GlobalJobNames.Start).

public static Matcher<JobModel> IsStart(this Matcher<JobModel> matcher)

Parameters

matcher Matcher<JobModel>

Returns

Matcher<JobModel>

WithNames(Matcher<JobModel>, params string[])

Match against any of the provided Job names.

public static Matcher<JobModel> WithNames(this Matcher<JobModel> matcher, params string[] names)

Parameters

matcher Matcher<JobModel>
names string[]

List of Job names.

Returns

Matcher<JobModel>

WithResponse(Matcher<JobModel>, Action<Matcher<WorkResponse>>)

public static Matcher<JobModel> WithResponse(this Matcher<JobModel> matcher, Action<Matcher<WorkResponse>> responseAction)

Parameters

matcher Matcher<JobModel>
responseAction Action<Matcher<WorkResponse>>

Returns

Matcher<JobModel>

WithResponse(Matcher<JobModel>, Expression<Func<WorkResponse>>, Action<Matcher<WorkResponse>>)

public static Matcher<JobModel> WithResponse(this Matcher<JobModel> matcher, Expression<Func<WorkResponse>> alias, Action<Matcher<WorkResponse>> responseAction)

Parameters

matcher Matcher<JobModel>
alias Expression<Func<WorkResponse>>
responseAction Action<Matcher<WorkResponse>>

Returns

Matcher<JobModel>

WithStatus(Matcher<JobModel>, JobStatus)

Match against Jobs with a particular JobStatus.

public static Matcher<JobModel> WithStatus(this Matcher<JobModel> matcher, JobStatus jobStatus)

Parameters

matcher Matcher<JobModel>
jobStatus JobStatus

JobStatus to match against.

Returns

Matcher<JobModel>