Interface IAssignmentProvider
Interface of a assignment provider, which provide storing assignments
Namespace: OptimaJet.Workflow.Core.Persistence
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic interface IAssignmentProvider
Methods
DeleteAssignmentAsync(Guid)
Deleting without saving in the database by assignmentId
DeclarationTask DeleteAssignmentAsync(Guid assignmentId)
| Type | Name | Description |
|---|---|---|
| Guid | assignmentId | Assignment id |
| Type | Description |
|---|---|
| Task |
GetAssignmentsAsync(AssignmentFilter, List<(string parameterName, SortDirection sortDirection)>, Paging)
Get a list of assignments by AssignmentFilter with sorting and paging
DeclarationTask<List<Assignment>> GetAssignmentsAsync(AssignmentFilter filter, List<(string parameterName, SortDirection sortDirection)> orderParameters = null, Paging paging = null)
| Type | Name | Description |
|---|---|---|
| AssignmentFilter | filter | <xref href="OptimaJet.Workflow.Core.Model.AssignmentFilter" data-throw-if-not-resolved="false"></xref> |
| List<(string parameterName, SortDirection sortDirection)> | orderParameters | List of order parameters |
| Paging | paging | <xref href="OptimaJet.Workflow.Core.Persistence.Paging" data-throw-if-not-resolved="false"></xref> |
| Type | Description |
|---|---|
| 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
DeclarationTask<int> GetAssignmentCountAsync(AssignmentFilter filter)
| Type | Name | Description |
|---|---|---|
| AssignmentFilter | filter | <xref href="OptimaJet.Workflow.Core.Model.AssignmentFilter" data-throw-if-not-resolved="false"></xref> |
| Type | Description |
|---|---|
| Task<int> | count of assignments |
CreateAssignmentAsync(Guid, AssignmentCreationForm)
Creating a new assignment from AssignmentCreationForm for specific process
DeclarationTask CreateAssignmentAsync(Guid processId, AssignmentCreationForm form)
| Type | Name | Description |
|---|---|---|
| Guid | processId | Process id |
| AssignmentCreationForm | form | <xref href="OptimaJet.Workflow.Core.Model.AssignmentCreationForm" data-throw-if-not-resolved="false"></xref> |
| Type | Description |
|---|---|
| Task |
GetAssignmentAsync(Guid)
Get assignment by assignmentId
DeclarationTask<Assignment> GetAssignmentAsync(Guid assignmentId)
| Type | Name | Description |
|---|---|---|
| Guid | assignmentId | Assignment id |
| Type | Description |
|---|---|
| Task<Assignment> |
UpdateAssignmentAsync(Assignment)
Updating assignment
DeclarationTask UpdateAssignmentAsync(Assignment assignment)
| Type | Name | Description |
|---|---|---|
| Assignment | assignment | <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref> for updating |
| Type | Description |
|---|---|
| Task |