Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class AssignmentApi

Inheritance

↳ object

    ↳ AssignmentApi

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Runtime

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public sealed class AssignmentApi

Constructors

AssignmentApi(WorkflowRuntime)

Declaration
public AssignmentApi(WorkflowRuntime runtimeOwner)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeOwner

Methods

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

Get a list of assignments by AssignmentFilter with sorting and paging

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

GetAssignmentStatuses()

Get a list of assignment statuses

Declaration
public List<string> GetAssignmentStatuses()
Returns
TypeDescription
List<string>List of assignment statuses

UpdateAssignmentAsync(Assignment)

Updating assignment with process resuming

Declaration
public Task<bool> 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<bool>Was resumed

CreateAssignmentAsync(Guid, AssignmentCreationForm)

Creating assignment from AssignmentCreationForm with process resuming

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

DeleteAssignmentAsync(Guid)

Deleting without saving in the database by assignmentId with process resuming

Declaration
public Task<bool> DeleteAssignmentAsync(Guid assignmentId)
Parameters
TypeNameDescription
GuidassignmentIdAssignment id
Returns
TypeDescription
Task<bool>Was resumed

DeleteAssignmentAsync(Guid, Guid)

Deleting without saving in the database with process resuming

Declaration
public Task<bool> DeleteAssignmentAsync(Guid processId, Guid assignmentId)
Parameters
TypeNameDescription
GuidprocessIdProcess id
GuidassignmentIdAssignment id
Returns
TypeDescription
Task<bool>Was resumed

Fields

OnUpdateAssignment

Declaration
public OnUpdateAssignmentDelegate OnUpdateAssignment
Returns
TypeDescription
OnUpdateAssignmentDelegate

OnPostUpdateAssignment

Declaration
public OnUpdateAssignmentDelegate OnPostUpdateAssignment
Returns
TypeDescription
OnUpdateAssignmentDelegate

Extension Methods