Assembly: OptimaJet.Workflow.Core

Interface IActorBuilder

OptimaJet.Workflow.Core.Model.Builder.IActorBuilder

Provides fluent configuration for an ActorDefinition in a ProcessDefinition.

public interface IActorBuilder : IProcessDefinitionBuilder

Type Hierarchy

Methods

IActorBuilder Ref(out ActorDefinition actorDefinition) #
Assigns the current ActorDefinition to actorDefinition.

Parameters

Name
Type
Description
actorDefinition
ActorDefinition
Receives the ActorDefinition being configured.

Returns

Type
Description
IActorBuilder
The same IActorBuilder instance for method chaining.
IActorBuilder Name(string name) #
Sets the actor name of the current ActorDefinition.

Parameters

Name
Type
Description
name
String
The actor name.

Returns

Type
Description
IActorBuilder
The same IActorBuilder instance for method chaining.
IActorBuilder Rule(string rule) #
Sets the ActorDefinition.Rule of the current ActorDefinition.

Parameters

Name
Type
Description
rule
String
The name of the authorization rule that determines which workflow participant identities match the actor.

Returns

Type
Description
IActorBuilder
The same IActorBuilder instance for method chaining.
IActorBuilder Value(string value) #
Sets the current ActorDefinition.Value to value and sets ActorDefinition.IsValueExpression to false.

Parameters

Name
Type
Description
value
String
The non-expression source for the authorization rule parameter.

Returns

Type
Description
IActorBuilder
The same IActorBuilder instance for method chaining.
IActorBuilder Expression(string expression) #
Sets the current ActorDefinition.Value to expression source and sets ActorDefinition.IsValueExpression to true.

Parameters

Name
Type
Description
expression
String
The expression source evaluated to obtain the authorization rule parameter.

Returns

Type
Description
IActorBuilder
The same IActorBuilder instance for method chaining.
IActorBuilder Value(object value) #
Serializes value by using ParametersSerializer.Serialize(object), stores the result in ActorDefinition.Value, and sets ActorDefinition.IsValueExpression to false.

Parameters

Name
Type
Description
value
Object
The value to serialize as the source for the authorization rule parameter.

Returns

Type
Description
IActorBuilder
The same IActorBuilder instance for method chaining.
IActorBuilder ClearValue() #

Returns

Type
Description
IActorBuilder
The same IActorBuilder instance for method chaining.

Remarks

The configured ActorDefinition links RestrictionDefinition instances to the authorization rule named by ActorDefinition.Rule and can supply the rule parameter source through ActorDefinition.Value.