Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Interface IAssignmentManager

interface for working with assignments (tasks) within one process

Namespace: OptimaJet.Workflow.Core.Model

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface IAssignmentManager

Methods

GetForExecutorAsync(string)

Get a list of assignments for a specific executor in the current process

Declaration
Task<List<Assignment>> GetForExecutorAsync(string identityId)
Parameters
TypeNameDescription
stringidentityIdexecutor identity
Returns
TypeDescription
Task<List<Assignment>>List of <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref>

GetListAsync()

Get a list of assignments in the current process

Declaration
Task<List<Assignment>> GetListAsync()
Returns
TypeDescription
Task<List<Assignment>>List of <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref>

GetByIdAsync(Guid)

Get assignment by assignmentId

Declaration
Task<Assignment> GetByIdAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentId
Returns
TypeDescription
Task<Assignment><xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref>

DeleteHardAsync(Guid)

Deleting without saving in the database by assignmentId

Declaration
Task DeleteHardAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentId
Returns
TypeDescription
Task

CreateAsync(AssignmentCreationForm)

Creating a new assignment from AssignmentCreationForm in the current process

Declaration
Task CreateAsync(AssignmentCreationForm newAssignment)
Parameters
TypeNameDescription
AssignmentCreationFormnewAssignment
Returns
TypeDescription
Task

ChangeStatusAsync(Guid, string)

Changing the status of a specific assignment

Declaration
Task ChangeStatusAsync(Guid assignmentId, string status)
Parameters
TypeNameDescription
GuidassignmentId
stringstatus
Returns
TypeDescription
Task

DeleteSoftAsync(Guid)

Marking a assignment as deleted by assignmentId

Declaration
Task DeleteSoftAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentId
Returns
TypeDescription
Task

ChangeExecutorAsync(Guid, string)

Changing the executor identity of a specific assignment

Declaration
Task ChangeExecutorAsync(Guid assignmentId, string identityId)
Parameters
TypeNameDescription
GuidassignmentId
stringidentityId
Returns
TypeDescription
Task

ChangeAsync(Assignment)

Updating assignment

Declaration
Task ChangeAsync(Assignment assignment)
Parameters
TypeNameDescription
Assignmentassignment
Returns
TypeDescription
Task

Extension Methods