Interface IActorBuilder
OptimaJet.Workflow.Core.Model.Builder.IActorBuilder
Provides fluent configuration for an ActorDefinition in a ProcessDefinition.
Namespace: OptimaJet.Workflow.Core.Model.Builder
public interface IActorBuilder : IProcessDefinitionBuilderType Hierarchy
- IActorBuilder Current type
- Base interfaces
Methods
IActorBuilder Ref(out ActorDefinition actorDefinition) #Assigns the current ActorDefinition to
actorDefinition.Parameters
Name
Type
Description
Returns
Type
Description
IActorBuilderThe same IActorBuilder instance for method chaining.
IActorBuilder Name(string name) #Sets the actor name of the current ActorDefinition.
Parameters
Name
Type
Description
nameStringThe actor name.
Returns
Type
Description
IActorBuilderThe same IActorBuilder instance for method chaining.
IActorBuilder Rule(string rule) #Sets the ActorDefinition.Rule of the current ActorDefinition.
Parameters
Name
Type
Description
ruleStringThe name of the authorization rule that determines which workflow participant identities match the actor.
Returns
Type
Description
IActorBuilderThe 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
valueStringThe non-expression source for the authorization rule parameter.
Returns
Type
Description
IActorBuilderThe 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
expressionStringThe expression source evaluated to obtain the authorization rule parameter.
Returns
Type
Description
IActorBuilderThe 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
valueObjectThe value to serialize as the source for the authorization rule parameter.
Returns
Type
Description
IActorBuilderThe same IActorBuilder instance for method chaining.
IActorBuilder ClearValue() #Returns
Type
Description
IActorBuilderThe 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.