Class AssignmentManager
class for working with tasks within one process
Inheritance
↳ object
↳ AssignmentManager
Implements
IAssignmentManager
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Model
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class AssignmentManager : IAssignmentManager
Methods
GetForExecutorAsync(string)
Get a list of assignments for a specific executor in the current process
Declarationpublic Task<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
Declarationpublic Task<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
Declarationpublic Task<Assignment> GetByIdAsync(Guid assignmentId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| 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
Declarationpublic Task DeleteHardAsync(Guid assignmentId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| Type | Description | 
|---|---|
| Task | 
DeleteSoftAsync(Guid)
Marking a assignment as deleted by assignmentId
Declarationpublic Task DeleteSoftAsync(Guid assignmentId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| Type | Description | 
|---|---|
| Task | 
CreateAsync(AssignmentCreationForm)
Creating a new assignment from AssignmentCreationForm in the current process
Declarationpublic Task CreateAsync(AssignmentCreationForm newAssignment)
| Type | Name | Description | 
|---|---|---|
| AssignmentCreationForm | newAssignment | <xref href="OptimaJet.Workflow.Core.Model.AssignmentCreationForm" data-throw-if-not-resolved="false"></xref> | 
| Type | Description | 
|---|---|
| Task | 
ChangeStatusAsync(Guid, string)
Changing the status of a specific assignment
Declarationpublic Task ChangeStatusAsync(Guid assignmentId, string status)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| string | status | Assignment status | 
| Type | Description | 
|---|---|
| Task | 
ChangeExecutorAsync(Guid, string)
Changing the executor identity of a specific assignment
Declarationpublic Task ChangeExecutorAsync(Guid assignmentId, string identityId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| string | identityId | executor identity | 
| Type | Description | 
|---|---|
| Task | 
ChangeAsync(Assignment)
Updating assignment
Declarationpublic Task ChangeAsync(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 | 
GetForExecutor(string)
Get a list of assignments for a specific executor in the current process
Declarationpublic List<Assignment> GetForExecutor(string identityId)
| Type | Name | Description | 
|---|---|---|
| string | identityId | executor identity | 
| Type | Description | 
|---|---|
| List<Assignment> | List of <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref> | 
GetList()
Get a list of assignments in the current process
Declarationpublic List<Assignment> GetList()
| Type | Description | 
|---|---|
| List<Assignment> | List of <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref> | 
GetById(Guid)
Get assignment by assignmentId
Declarationpublic Assignment GetById(Guid assignmentId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| Type | Description | 
|---|---|
| Assignment | <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref> | 
DeleteHard(Guid)
Deleting without saving in the database by assignmentId
Declarationpublic void DeleteHard(Guid assignmentId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
DeleteSoft(Guid)
Marking a assignment as deleted by assignmentId
Declarationpublic void DeleteSoft(Guid assignmentId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
Create(AssignmentCreationForm)
Creating a new assignment from AssignmentCreationForm in the current process
Declarationpublic void Create(AssignmentCreationForm newAssignment)
| Type | Name | Description | 
|---|---|---|
| AssignmentCreationForm | newAssignment | <xref href="OptimaJet.Workflow.Core.Model.AssignmentCreationForm" data-throw-if-not-resolved="false"></xref> | 
ChangeStatus(Guid, string)
Changing the status of a specific assignment
Declarationpublic void ChangeStatus(Guid assignmentId, string status)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| string | status | Assignment status | 
ChangeExecutor(Guid, string)
Changing the executor identity of a specific assignment
Declarationpublic void ChangeExecutor(Guid assignmentId, string identityId)
| Type | Name | Description | 
|---|---|---|
| Guid | assignmentId | Assignment id | 
| string | identityId | executor identity | 
Change(Assignment)
Updating assignment
Declarationpublic void Change(Assignment assignment)
| Type | Name | Description | 
|---|---|---|
| Assignment | assignment | <xref href="OptimaJet.Workflow.Core.Model.Assignment" data-throw-if-not-resolved="false"></xref> for updating |