Show / Hide Table of Contents

Interface IWorkflowUtil

Namespace: SuperOffice.CRM.Workflow
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public interface IWorkflowUtil

Methods

BlockListApprovedAsync(int[], int[], CancellationToken)

Declaration
Task<HashSet<int>> BlockListApprovedAsync(int[] selections, int[] personIds, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int[] selections
int[] personIds
CancellationToken cancellationToken
Returns
Type Description
Task<HashSet<int>>

CalculateTime(WorkflowTimeWaitIntervalType, int, DateTime)

Declaration
DateTime CalculateTime(WorkflowTimeWaitIntervalType intervalType, int intervalCount, DateTime defaultTime)
Parameters
Type Name Description
WorkflowTimeWaitIntervalType intervalType
int intervalCount
DateTime defaultTime
Returns
Type Description
DateTime

CleanRestrictions(ArchiveRestrictionInfo[])

Declaration
List<ArchiveRestrictionInfo> CleanRestrictions(ArchiveRestrictionInfo[] res)
Parameters
Type Name Description
ArchiveRestrictionInfo[] res
Returns
Type Description
List<ArchiveRestrictionInfo>

FilterOkAsync(int, int[], CancellationToken)

Declaration
Task<HashSet<int>> FilterOkAsync(int workflowId, int[] personIds, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
int[] personIds
CancellationToken cancellationToken
Returns
Type Description
Task<HashSet<int>>

GetCreatedByWorkflowNameAsync(int, CancellationToken)

Declaration
Task<string> GetCreatedByWorkflowNameAsync(int workflowId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
CancellationToken cancellationToken
Returns
Type Description
Task<string>

GetOptionStepIdsAsync(int, CancellationToken)

Declaration
IAsyncEnumerable<int> GetOptionStepIdsAsync(int optionId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int optionId
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<int>

GetRootStepIdsAsync(int, CancellationToken)

Declaration
Task<int[]> GetRootStepIdsAsync(int workflowId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
CancellationToken cancellationToken
Returns
Type Description
Task<int[]>

GetStepIdsAsync(int, WorkflowStepType, CancellationToken)

Declaration
Task<List<int>> GetStepIdsAsync(int workflowId, WorkflowStepType stepType, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
WorkflowStepType stepType
CancellationToken cancellationToken
Returns
Type Description
Task<List<int>>

GetValueFromCriteriaAsync(int, int, string, CancellationToken)

Declaration
Task<int> GetValueFromCriteriaAsync(int ownerTable, int ownerId, string colName, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int ownerTable
int ownerId
string colName
CancellationToken cancellationToken
Returns
Type Description
Task<int>

GetWorkflowIdFromStepIdAsync(int, CancellationToken)

Declaration
Task<int> GetWorkflowIdFromStepIdAsync(int stepId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int stepId
CancellationToken cancellationToken
Returns
Type Description
Task<int>

GoalReachedAsync(int, int, int, CancellationToken)

Declaration
Task<bool> GoalReachedAsync(int workflowId, int personId, int contactId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
int personId
int contactId
CancellationToken cancellationToken
Returns
Type Description
Task<bool>

GoalReachedAsync(int, int[], int[], CancellationToken)

Declaration
Task<HashSet<int>> GoalReachedAsync(int workflowId, int[] personIds, int[] contactIds, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
int[] personIds
int[] contactIds
CancellationToken cancellationToken
Returns
Type Description
Task<HashSet<int>>

HasEmarketingConsentAndSubscriptionAsync(int, int, CancellationToken)

Declaration
Task<(bool, string)> HasEmarketingConsentAndSubscriptionAsync(int personId, int shipmentTypeReservationId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int personId
int shipmentTypeReservationId
CancellationToken cancellationToken
Returns
Type Description
Task<(bool, string)>

IsAddressUsedByOtherParticipantAsync(int, int, string, CancellationToken)

Declaration
Task<bool> IsAddressUsedByOtherParticipantAsync(int flowId, int personId, string address, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int flowId
int personId
string address
CancellationToken cancellationToken
Returns
Type Description
Task<bool>

NextStepIdAsync(int, int, CancellationToken)

Declaration
Task<int> NextStepIdAsync(int workflowId, int stepId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
int stepId
CancellationToken cancellationToken
Returns
Type Description
Task<int>

TryAddPersonsToWorkFlowAsync(int, int[], CancellationToken)

Declaration
Task<bool[]> TryAddPersonsToWorkFlowAsync(int workflowId, int[] personIds, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int workflowId
int[] personIds
CancellationToken cancellationToken
Returns
Type Description
Task<bool[]>

TryAddToSelectionAsync(int, int, int, CancellationToken)

Declaration
Task TryAddToSelectionAsync(int selectionId, int personId, int contactId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int selectionId
int personId
int contactId
CancellationToken cancellationToken
Returns
Type Description
Task

VerifySmtpSetupAsync(int, CancellationToken)

Declaration
Task VerifySmtpSetupAsync(int shipmentId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int shipmentId
CancellationToken cancellationToken
Returns
Type Description
Task

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top