Interface IAssignmentManager
interface for working with assignments (tasks) within one process
Namespace: OptimaJet.Workflow.Core.Model
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic interface IAssignmentManager
Methods
GetForExecutorAsync(string)
Get a list of assignments for a specific executor in the current process
DeclarationTask<List<Assignment>> GetForExecutorAsync(string identityId)
| Type | Name | Description |
|---|---|---|
| string | identityId | executor identity |
| Type | Description |
|---|---|
| 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
DeclarationTask<List<Assignment>> GetListAsync()
| Type | Description |
|---|---|
| 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
DeclarationTask<Assignment> GetByIdAsync(Guid assignmentId)
| Type | Name | Description |
|---|---|---|
| Guid | assignmentId |
| Type | Description |
|---|---|
| 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
DeclarationTask DeleteHardAsync(Guid assignmentId)
| Type | Name | Description |
|---|---|---|
| Guid | assignmentId |
| Type | Description |
|---|---|
| Task |
CreateAsync(AssignmentCreationForm)
Creating a new assignment from AssignmentCreationForm in the current process
DeclarationTask CreateAsync(AssignmentCreationForm newAssignment)
| Type | Name | Description |
|---|---|---|
| AssignmentCreationForm | newAssignment |
| Type | Description |
|---|---|
| Task |
ChangeStatusAsync(Guid, string)
Changing the status of a specific assignment
DeclarationTask ChangeStatusAsync(Guid assignmentId, string status)
| Type | Name | Description |
|---|---|---|
| Guid | assignmentId | |
| string | status |
| Type | Description |
|---|---|
| Task |
DeleteSoftAsync(Guid)
Marking a assignment as deleted by assignmentId
DeclarationTask DeleteSoftAsync(Guid assignmentId)
| Type | Name | Description |
|---|---|---|
| Guid | assignmentId |
| Type | Description |
|---|---|
| Task |
ChangeExecutorAsync(Guid, string)
Changing the executor identity of a specific assignment
DeclarationTask ChangeExecutorAsync(Guid assignmentId, string identityId)
| Type | Name | Description |
|---|---|---|
| Guid | assignmentId | |
| string | identityId |
| Type | Description |
|---|---|
| Task |
ChangeAsync(Assignment)
Updating assignment
DeclarationTask ChangeAsync(Assignment assignment)
| Type | Name | Description |
|---|---|---|
| Assignment | assignment |
| Type | Description |
|---|---|
| Task |