Skip to main content

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

Syntax
public class AssignmentManager : IAssignmentManager

Methods

GetForExecutorAsync(string)

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

Declaration
public 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
public 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
public Task<Assignment> GetByIdAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
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
public Task DeleteHardAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
Returns
TypeDescription
Task

DeleteSoftAsync(Guid)

Marking a assignment as deleted by assignmentId

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

CreateAsync(AssignmentCreationForm)

Creating a new assignment from AssignmentCreationForm in the current process

Declaration
public Task CreateAsync(AssignmentCreationForm newAssignment)
Parameters
TypeNameDescription
AssignmentCreationFormnewAssignment<xref href="OptimaJet.Workflow.Core.Model.AssignmentCreationForm" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
Task

ChangeStatusAsync(Guid, string)

Changing the status of a specific assignment

Declaration
public Task ChangeStatusAsync(Guid assignmentId, string status)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
stringstatusAssignment status
Returns
TypeDescription
Task

ChangeExecutorAsync(Guid, string)

Changing the executor identity of a specific assignment

Declaration
public Task ChangeExecutorAsync(Guid assignmentId, string identityId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
stringidentityIdexecutor identity
Returns
TypeDescription
Task

ChangeAsync(Assignment)

Updating assignment

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

GetForExecutor(string)

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

Declaration
public List<Assignment> GetForExecutor(string identityId)
Parameters
TypeNameDescription
stringidentityIdexecutor identity
Returns
TypeDescription
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

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

GetById(Guid)

Get assignment by assignmentId

Declaration
public Assignment GetById(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
Returns
TypeDescription
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

Declaration
public void DeleteHard(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id

DeleteSoft(Guid)

Marking a assignment as deleted by assignmentId

Declaration
public void DeleteSoft(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id

Create(AssignmentCreationForm)

Creating a new assignment from AssignmentCreationForm in the current process

Declaration
public void Create(AssignmentCreationForm newAssignment)
Parameters
TypeNameDescription
AssignmentCreationFormnewAssignment<xref href="OptimaJet.Workflow.Core.Model.AssignmentCreationForm" data-throw-if-not-resolved="false"></xref>

ChangeStatus(Guid, string)

Changing the status of a specific assignment

Declaration
public void ChangeStatus(Guid assignmentId, string status)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
stringstatusAssignment status

ChangeExecutor(Guid, string)

Changing the executor identity of a specific assignment

Declaration
public void ChangeExecutor(Guid assignmentId, string identityId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
stringidentityIdexecutor identity

Change(Assignment)

Updating assignment

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

Extension Methods