コード例 #1
0
        public async Task <IEnumerable <(global::Elsa.Models.WorkflowInstance, global::Elsa.Models.ActivityInstance)> > ListByBlockingActivityAsync(string activityType, string correlationId = null,
                                                                                                                                                    CancellationToken cancellationToken       = default)
        {
            var documents = await _workflowInstanceRepository
                            .GetListByBlockingActivityAsync(activityType, correlationId, WorkflowStatus.Executing, true, cancellationToken);

            var instances = Map(documents);

            return(instances.GetBlockingActivities(activityType));
        }