private void Options(GetListParameterBuilder options) { bool?locked = null; if (Locked.IsPresent) { locked = Locked.ToBool(); } bool?withRetriesLeft = null; if (WithRetriesLeft.IsPresent) { withRetriesLeft = WithRetriesLeft.ToBool(); } options.WithExternalTaskId(Id) .WithTopicName(TopicName) .WithWorkerId(WorkerId) .Locked(locked) .WithRetriesLeft(withRetriesLeft) .LockExpirationAfter(LockExpirationAfter) .LockExpirationBefore(LockExpirationBefore) .WithActivityId(ActivityId) .WithActivityIdIn(ActivityIdIn) .WithExecutionId(ExecutionId) .WithProcessInstanceId(ProcessInstanceId) .WithProcessDefinitionId(ProcessDefinitionId) .WithTenantId(TenantIdIn) .OnlyActive(OnlyActive) .OnlyPriorityHigherThanOrEquals(PriorityHigherThanOrEquals) .OnlyPriorityLowerThanOrEquals(PriorityLowerThanOrEquals) .OnlySuspended(OnlySuspended) .Sorting(Sorting) .FirstResultAtIndex(FirstResult) .MaxResultsToReturn(MaxResults) .DeserializeValues(DeserializeValues); }
private void Options(GetListOptionsBuilder options) { bool?locked = null; if (Locked.IsPresent) { locked = Locked.ToBool(); } bool?withRetriesLeft = null; if (WithRetriesLeft.IsPresent) { withRetriesLeft = WithRetriesLeft.ToBool(); } options .WithProcessInstanceId(ProcessInstanceId) .WithProcessInstanceBusinessKey(ProcessInstanceBusinessKey) .WithProcessInstanceBusinessKeyExpression(ProcessInstanceBusinessKeyExpression) .WithProcessInstanceBusinessKeyIn(ProcessInstanceBusinessKeyIn) .WithProcessDefinitionId(ProcessDefinitionId) .WithProcessDefinitionKey(ProcessDefinitionKey) .WithProcessDefinitionKeyIn(ProcessDefinitionKeyIn) .WithProcessDefinitionName(ProcessDefinitionName) .WithExecutionId(ExecutionId) .WithCaseInstanceId(CaseInstanceId) .WithCaseInstanceBusinessKey(CaseInstanceBusinessKey) .WithCaseDefinitionId(CaseDefinitionId) .WithCaseDefinitionKey(CaseDefinitionKey) .WithCaseDefinitionName(CaseDefinitionName) .WithCaseExecutionId(CaseExecutionId) .WithActivityInstanceIdIn(ActivityInstanceIdIn) .WithTenantId(TenantIdIn) .OnlyWithEmptyTenantId(OnlyWithEmptyTenantId) .WithAssignee(Assignee) .WithAssigneeExpression(AssigneeExpression) .WithOwner(Owner) .WithOwnerExpression(OwnerExpression) .WithCandidateGroup(CandidateGroup) .WithCandidateGroupExpression(CandidateGroupExpression) .WithHaveCandidateGroups(HaveCandidateGroups) .WithCandidateUser(CandidateUser) .WithCandidateUserExpression(CandidateUserExpression) .WithHaveCandidateUsers(HaveCandidateUsers) .IncludeAssignedTasks(IncludeAssignedTasks) .WithInvolvedUser(InvolvedUser) .WithInvolvedUserExpression(InvolvedUserExpression) .Assigned(Assigned) .WithTaskDefinitionKey(TaskDefinitionKey) .WithTaskDefinitionKeyIn(TaskDefinitionKeyIn) .WithName(Name) .WithNotName(NotName) .WithDescription(Description) .WithPriority(Priority) .WithMinPriority(MinPriority) .WithMaxPriority(MaxPriority) ; }