Table of Contents

Access tasks

Once you got the workflow, you can continue accessing tasks in it. The following examples show how to get them.

List all tasks of a Workflow

C#

using DocuWare.Platform.ServerClient;

namespace DocuWare.PlatformClientExamples
{
    static partial class Examples
    {
        public static WorkflowTasks GetTasks(Workflow workflow)
        {
            return workflow.GetWorkflowTasksFromTasksRelation();
        }

        public static WorkflowTasks GetTasks(Workflow workflow,int count,int start)
        {
            return workflow.PostToTasksRelationForWorkflowTasks(new TasksQuery()
            {
                Count = count,
                Start = start
            });
        }

    }
}

List all tasks of a Workflows asynchronously

C#

using System.Threading.Tasks;
using DocuWare.Platform.ServerClient;

static partial class ExamplesAsync
{
    public static async Task<WorkflowTasks> GetTasksAsync(Workflow workflow)
    {
        return await workflow.GetWorkflowTasksFromTasksRelationAsync().ConfigureAwait(false);
    }

    public static async Task<WorkflowTasks> GetTasksAsync(Workflow workflow, int count, int start)
    {
        return await workflow.PostToTasksRelationForWorkflowTasksAsync(new TasksQuery()
        {
            Count = count,
            Start = start
        }).ConfigureAwait(false);
    }
}