Table of Contents

Class RightHandSideExtensions

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

Methods for use with the NRules Then() operator. Provide JobFlow actions to take on rule execution.

public static class RightHandSideExtensions
Inheritance
RightHandSideExtensions

Methods

AddJobToGroup(IJobFlowRightHandSideExpression, Expression<Func<JobGroupDefinition>>, Expression<Func<IContext, JobDefinition>>)

Add the JobDefinition returned from the specified method to the specified Job Group. See HaveJobGroup<T>(LeftHandExpression<T>, Expression<Func<JobGroupDefinition>>, string).

public static IJobFlowRightHandSideExpression AddJobToGroup(this IJobFlowRightHandSideExpression rightHandSide, Expression<Func<JobGroupDefinition>> groupAlias, Expression<Func<IContext, JobDefinition>> jobDefinitionFunc)

Parameters

rightHandSide IJobFlowRightHandSideExpression
groupAlias Expression<Func<JobGroupDefinition>>
jobDefinitionFunc Expression<Func<IContext, JobDefinition>>

Returns

IJobFlowRightHandSideExpression

AddJobToGroup(IJobFlowRightHandSideExpression, Expression<Func<JobGroupDefinition>>, string)

Add a new Job with the specified name to the specified Job Group. See HaveJobGroup<T>(LeftHandExpression<T>, Expression<Func<JobGroupDefinition>>, string).

public static IJobFlowRightHandSideExpression AddJobToGroup(this IJobFlowRightHandSideExpression rightHandSide, Expression<Func<JobGroupDefinition>> groupAlias, string name)

Parameters

rightHandSide IJobFlowRightHandSideExpression
groupAlias Expression<Func<JobGroupDefinition>>
name string

Returns

IJobFlowRightHandSideExpression

AddJobToGroup(IJobFlowRightHandSideExpression, Expression<Func<JobGroupDefinition>>, string, Expression<Func<JobDefinitionSettings>>)

Add a new Job with the specified name and settings to the specified Job Group. See HaveJobGroup<T>(LeftHandExpression<T>, Expression<Func<JobGroupDefinition>>, string).

public static IJobFlowRightHandSideExpression AddJobToGroup(this IJobFlowRightHandSideExpression rightHandSide, Expression<Func<JobGroupDefinition>> groupAlias, string name, Expression<Func<JobDefinitionSettings>> jobDefinitionSettings)

Parameters

rightHandSide IJobFlowRightHandSideExpression
groupAlias Expression<Func<JobGroupDefinition>>
name string
jobDefinitionSettings Expression<Func<JobDefinitionSettings>>

Returns

IJobFlowRightHandSideExpression

CreateGroup(IJobFlowRightHandSideExpression, string)

Create a new Job Group with the specified name.

public static IJobFlowRightHandSideExpression CreateGroup(this IJobFlowRightHandSideExpression rightHandSide, string name)

Parameters

rightHandSide IJobFlowRightHandSideExpression
name string

Returns

IJobFlowRightHandSideExpression

StartJob(IJobFlowRightHandSideExpression, Expression<Func<IJobFlowContext, JobDefinition>>)

Start a new Job defined by the supplied JobDefinition method.

public static IJobFlowRightHandSideExpression StartJob(this IJobFlowRightHandSideExpression rightHandSide, Expression<Func<IJobFlowContext, JobDefinition>> jobDefinitionFunc)

Parameters

rightHandSide IJobFlowRightHandSideExpression
jobDefinitionFunc Expression<Func<IJobFlowContext, JobDefinition>>

Returns

IJobFlowRightHandSideExpression

StartJob(IJobFlowRightHandSideExpression, string)

Start a new Job with the specified name.

public static IJobFlowRightHandSideExpression StartJob(this IJobFlowRightHandSideExpression rightHandSide, string name)

Parameters

rightHandSide IJobFlowRightHandSideExpression
name string

Returns

IJobFlowRightHandSideExpression

StartJob(IJobFlowRightHandSideExpression, string, Expression<Func<JobDefinitionSettings>>)

Start a new Job with the specified name and settings.

public static IJobFlowRightHandSideExpression StartJob(this IJobFlowRightHandSideExpression rightHandSide, string name, Expression<Func<JobDefinitionSettings>> jobDefinitionSettings)

Parameters

rightHandSide IJobFlowRightHandSideExpression
name string
jobDefinitionSettings Expression<Func<JobDefinitionSettings>>

Returns

IJobFlowRightHandSideExpression