Skip to main content

FlowAssign Methods

An object defining methods for the FlowAssign class.

SetVariableUser(id, targetPosition)​

Assigns a user to the target position based on a variable user ID.

Parameters:​

id (required): int
The ID of the variable user to assign.

targetPosition (required): FlowPosition
The target position to assign the user to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetConstantVariable(targetVariable)​

Assigns a constant value to the target variable.

Parameters:​

targetVariable (required): Variable
The target variable to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetConstantProfession(targetProfession)​

Assigns a constant profession to the target profession.

Parameters:​

targetProfession (required): FlowProfession
The target profession to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetDepartmentFromPosition(sourcePosition, targetDepartment)​

Assigns a department to the target department based on a position.

Parameters:​

sourcePosition (required): FlowPosition
The source position to retrieve department data from.

targetDepartment (required): FlowDepartment
The target department to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetProfessionFromFlowInitiator(targetProfession)​

Assigns a profession to the target profession based on the flow initiator.

Parameters:​

targetProfession (required): FlowProfession
The target profession to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetPositionFromOther(sourcePosition, targetPosition)​

Sets the target position based on another source position.

Parameters:​

sourcePosition (required): FlowPosition
The source position to reference.

targetPosition (required): FlowPosition
The target position to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetDepartmentFromFlowInitiator(targetDepartment)​

Assigns a department to the target department based on the flow initiator.

Parameters:​

targetDepartment (required): FlowDepartment
The target department to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetVariableFromPosition(sourcePosition, targetVariable)​

Assigns a value to the target variable from a position.

Parameters:​

sourcePosition (required): FlowPosition
The source position to retrieve the value from.

targetVariable (required): Variable
The target variable to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetProfessionFromVariable(sourceVariable, targetProfession)​

Assigns a profession to the target profession based on a variable.

Parameters:​

sourceVariable (required): Variable
The source variable to retrieve the profession from.

targetProfession (required): FlowProfession
The target profession to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetManagerDepartmentFromDepartment(sourceDepartment, targetDepartment)​

Assigns a manager's department to the target department based on another department.

Parameters:​

sourceDepartment (required): FlowDepartment
The source department to retrieve manager data from.

targetDepartment (required): FlowDepartment
The target department to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetProfessionFromPosition(sourcePosition, targetProfession)​

Assigns a profession to the target profession based on a position.

Parameters:​

sourcePosition (required): FlowPosition
The source position to retrieve the profession from.

targetProfession (required): FlowProfession
The target profession to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetUserFromFlowInitiator(targetPosition)​

Assigns the user from the flow initiator to the target position.

Parameters:​

targetPosition (required): FlowPosition
The position to assign the user to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetVariableFromProjectName(targetVariable)​

Assigns a project name to the target variable.

Parameters:​

targetVariable (required): Variable
The target variable to be assigned with the project name.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetConstantDepartment(targetDepartment)​

Assigns a constant department to the target department.

Parameters:​

targetDepartment (required): FlowDepartment
The target department to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetDepartmentFromVariable(sourceVariable, targetDepartment)​

Assigns a department to the target department based on a variable.

Parameters:​

sourceVariable (required): Variable
The source variable to retrieve department data from.

targetDepartment (required): FlowDepartment
The target department to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetUserFromImpersonatingUser(targetPosition)​

Assigns the impersonating user to the target position.

Parameters:​

targetPosition (required): FlowPosition
The target position to assign the impersonating user to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


Assign()​

Assigns the target object based on the provided assignment configuration.

Returns:​

Type: Task
Task without value

This is a async method. Method should be waited. Be careful if call this method without waiting.

See Also​


SetConstantUser(targetPosition)​

Assigns a constant user to the target position.

Parameters:​

targetPosition (required): FlowPosition
The target position to assign the user to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetUserFromLogonUser(targetPosition)​

Assigns the current logged-on user to the target position.

Parameters:​

targetPosition (required): FlowPosition
The target position to assign the logged-on user to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetManagerUserAccordingToProfession(targetPosition, sourcePosition, flowAssign)​

Assigns the manager user to the target position according to the profession.

Parameters:​

targetPosition (required): FlowPosition
The target position to assign the manager user to.

sourcePosition (required): FlowPosition
The source position to reference.

flowAssign (required): FlowAssign
The flow assignment context for the operation.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetManagerUserFromUser(sourcePosition, targetPosition)​

Assigns the manager of the user from the source position to the target position.

Parameters:​

sourcePosition (required): FlowPosition
The source position to retrieve the user from.

targetPosition (required): FlowPosition
The target position to assign the manager to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetUserFromVariable(sourceVariable, targetPosition)​

Sets the target user from the provided variable.

Parameters:​

sourceVariable (required): Variable
The source variable to retrieve the user from.

targetPosition (required): FlowPosition
The target position to assign the user to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetVariableFromVariable(sourceVariable, targetVariable)​

Assigns a value to the target variable from another variable.

Parameters:​

sourceVariable (required): Variable
The source variable to retrieve the value from.

targetVariable (required): Variable
The target variable to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetDepartmentFromOther(sourceDepartment, targetDepartment)​

Assigns a department to the target department based on another department.

Parameters:​

sourceDepartment (required): FlowDepartment
The source department to retrieve data from.

targetDepartment (required): FlowDepartment
The target department to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetPositionFromVariable(sourceVariable, targetPosition)​

Sets the target position based on a variable.

Parameters:​

sourceVariable (required): Variable
The source variable to retrieve the position from.

targetPosition (required): FlowPosition
The target position to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


Initialize()​

Initializes the FlowAssign step with default settings.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetVariableProfession(sourceProfession, targetProfession)​

Assigns a variable profession from the source profession to the target profession.

Parameters:​

sourceProfession (required): FlowProfession
The source profession to retrieve the variable from.

targetProfession (required): FlowProfession
The target profession to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


DecrementVariable(targetVariable)​

Decrements the value of the target variable.

Parameters:​

targetVariable (required): Variable
The target variable to be decremented.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetVariableFromProfession(sourceProfession, targetVariable)​

Assigns a value to the target variable from a profession.

Parameters:​

sourceProfession (required): FlowProfession
The source profession to retrieve the value from.

targetVariable (required): Variable
The target variable to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetDepartmentManagerUserFromDepartment(sourceDepartment, targetPosition)​

Assigns the manager of the department to the target position.

Parameters:​

sourceDepartment (required): FlowDepartment
The source department to retrieve the manager from.

targetPosition (required): FlowPosition
The target position to assign the manager to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetUserFromFlowInitiatorManager(targetPosition)​

Assigns the manager of the flow initiator to the target position.

Parameters:​

targetPosition (required): FlowPosition
The position to assign the manager to.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


IncrementVariable(targetVariable)​

Increments the value of the target variable.

Parameters:​

targetVariable (required): Variable
The target variable to be incremented.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


GetTargetObject<T>()​

Retrieves the target object of the specified type for the current assignment.

Generics:​

Type: T
The type of the target object to retrieve.

Returns:​

Type: T
The target object of the specified type.

This is a sync method. Method runs synchronously.


SetConstantPosition(targetPosition)​

Assigns a constant position as the target for the flow.

Parameters:​

targetPosition (required): FlowPosition
The position to be set as the constant target.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetVariableFromDepartment(sourceDepartment, targetVariable)​

Assigns a value to the target variable from a department.

Parameters:​

sourceDepartment (required): FlowDepartment
The source department to retrieve the value from.

targetVariable (required): Variable
The target variable to be assigned.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.