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
Syntaxpublic sealed class AssignmentApi
Constructors
AssignmentApi(WorkflowRuntime)
Declarationpublic AssignmentApi(WorkflowRuntime runtimeOwner)
Type | Name | Description |
---|---|---|
WorkflowRuntime | runtimeOwner |
Methods
GetAssignmentsAsync(AssignmentFilter, Paging, List<(string parameterName, SortDirection sortDirection)>)
Get a list of assignments by AssignmentFilter with sorting and paging
Declarationpublic Task<List<Assignment>> GetAssignmentsAsync(AssignmentFilter filter, Paging paging = null, List<(string parameterName, SortDirection sortDirection)> orderParameters = null)
Type | Name | Description |
---|---|---|
AssignmentFilter | filter | <xref href="OptimaJet.Workflow.Core.Model.AssignmentFilter" data-throw-if-not-resolved="false"></xref> |
Paging | paging | <xref href="OptimaJet.Workflow.Core.Persistence.Paging" data-throw-if-not-resolved="false"></xref> |
List<(string parameterName, SortDirection sortDirection)> | orderParameters | List of order parameters |
Type | Description |
---|---|
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
Declarationpublic List<string> GetAssignmentStatuses()
Type | Description |
---|---|
List<string> | List of assignment statuses |
UpdateAssignmentAsync(Assignment)
Updating assignment with process resuming
Declarationpublic Task<bool> 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<bool> | Was resumed |
CreateAssignmentAsync(Guid, AssignmentCreationForm)
Creating assignment from AssignmentCreationForm with process resuming
Declarationpublic Task<bool> CreateAssignmentAsync(Guid processId, AssignmentCreationForm assignmentCreationForm)
Type | Name | Description |
---|---|---|
Guid | processId | Process id |
AssignmentCreationForm | assignmentCreationForm | <xref href="OptimaJet.Workflow.Core.Model.AssignmentCreationForm" data-throw-if-not-resolved="false"></xref> |
Type | Description |
---|---|
Task<bool> | Was resumed |
DeleteAssignmentAsync(Guid)
Deleting without saving in the database by assignmentId with process resuming
Declarationpublic Task<bool> DeleteAssignmentAsync(Guid assignmentId)
Type | Name | Description |
---|---|---|
Guid | assignmentId | Assignment id |
Type | Description |
---|---|
Task<bool> | Was resumed |
DeleteAssignmentAsync(Guid, Guid)
Deleting without saving in the database with process resuming
Declarationpublic Task<bool> DeleteAssignmentAsync(Guid processId, Guid assignmentId)
Type | Name | Description |
---|---|---|
Guid | processId | Process id |
Guid | assignmentId | Assignment id |
Type | Description |
---|---|
Task<bool> | Was resumed |
Fields
OnUpdateAssignment
Declarationpublic OnUpdateAssignmentDelegate OnUpdateAssignment
Type | Description |
---|---|
OnUpdateAssignmentDelegate |
OnPostUpdateAssignment
Declarationpublic OnUpdateAssignmentDelegate OnPostUpdateAssignment
Type | Description |
---|---|
OnUpdateAssignmentDelegate |