Skip to main content

Interface IAssignmentProvider

Interface of a assignment provider, which provide storing assignments

Namespace: OptimaJet.Workflow.Core.Persistence

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface IAssignmentProvider

Methods

DeleteAssignmentAsync(Guid)

Deleting without saving in the database by assignmentId

Declaration
Task DeleteAssignmentAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
Returns
TypeDescription
Task

GetAssignmentsAsync(AssignmentFilter, List<(string parameterName, SortDirection sortDirection)>, Paging)

Get a list of assignments by AssignmentFilter with sorting and paging

Declaration
Task<List<Assignment>> GetAssignmentsAsync(AssignmentFilter filter, List<(string parameterName, SortDirection sortDirection)> orderParameters = null, Paging paging = null)
Parameters
TypeNameDescription
AssignmentFilterfilter<xref href="OptimaJet.Workflow.Core.Model.AssignmentFilter" data-throw-if-not-resolved="false"></xref>
List<(string parameterName, SortDirection sortDirection)>orderParametersList of order parameters
Pagingpaging<xref href="OptimaJet.Workflow.Core.Persistence.Paging" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
Task<List<Assignment>>List of <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref>

GetAssignmentCountAsync(AssignmentFilter)

Get count of assignments by AssignmentFilter

Declaration
Task<int> GetAssignmentCountAsync(AssignmentFilter filter)
Parameters
TypeNameDescription
AssignmentFilterfilter<xref href="OptimaJet.Workflow.Core.Model.AssignmentFilter" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
Task<int>count of assignments

CreateAssignmentAsync(Guid, AssignmentCreationForm)

Creating a new assignment from AssignmentCreationForm for specific process

Declaration
Task CreateAssignmentAsync(Guid processId, AssignmentCreationForm form)
Parameters
TypeNameDescription
GuidprocessIdProcess id
AssignmentCreationFormform<xref href="OptimaJet.Workflow.Core.Model.AssignmentCreationForm" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
Task

GetAssignmentAsync(Guid)

Get assignment by assignmentId

Declaration
Task<Assignment> GetAssignmentAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
Returns
TypeDescription
Task<Assignment>

UpdateAssignmentAsync(Assignment)

Updating assignment

Declaration
Task UpdateAssignmentAsync(Assignment assignment)
Parameters
TypeNameDescription
Assignmentassignment<xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref> for updating
Returns
TypeDescription
Task

Extension Methods