K2 Workflow and Task - Get tasks

Use the K2 Workflow and Task -Get tasks action A tool for building the processes, logic, and direction within workflows. Actions are the steps the workflow performs to complete a process. to retrieve all the tasks associated with the user.

For more information about the K2 Workflow and Task connector, go to K2 Workflow and Task.

Configure the K2 Workflow and Task - Get tasks action

  1. Add the action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.

  2. Select a Connection. If you do not have a connection, see Add a connection.
  1. Select the State if you want to retrieve tasks associated with a specific state.

K2 Workflow and Task -Get tasks action fields and settings

Section

Field

Description

Variable types

(Unlabeled)

Connection Credentials and other settings that enables workflows to communicate with external systems, services, or applications. It's required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

The K2 Workflow and Task connection to use to retrieve all the tasks associated with the user.

To refresh the available connections, click .

(n/a)

(Unlabeled) State The state of the task. The following states are available:
  • All: Retrieve all states.
  • All excluding originator: Retrieve all tasks except tasks that was started by the originator.
  • Allocated: Retrieve tasks that were opened by you.
  • Allocated and shared: Retrieve tasks that were open by you or shared with you.
  • Sleeping: Retrieve tasks that are in a sleeping state.
Text, Decimal, Integer, Boolean, DateTime, Collection
Output Task Stores the result of the action as an object. The following values are returned:
  • Item count: (Integer) The number of records retrieved.
  • Tasks: (Collection) A collection containing the following variables:
    • Actions:
      • Batchable actions: (Collection) Actions that can be batched. You can complete multiple tasks at the same time using the batch action feature in the K2 Worklist. For more information about the batch action, see Using the K2 Worklist.
      • Non-batchable actions: (Collection) Actions that can not be batched.
      • System actions: (Collection) Actions such as Redirect, and Release.
    • Activity instance destination ID: (Integer) The unique ID for the participant associated with the activity instance associated with the task.
    • Activity instance ID: (Integer) The unique ID for the activity instance associated with the task.
    • Activity name: (Text) The name of the activity associated with the task.
    • Event description: (Text) The description for the specific event associated with the task.
    • Event name: (Text) The name of the event associated with the task.
    • Due date: (DateTime) The date and time when the task should be completed by.
    • Instruction: (Text) Instructions for the task recipients. This instruction shows on the recipient's task list.
    • Originator: (Object) An object containing the following variables:
      • Display name: (Text) The display name of the originator who started the workflow.
      • Email: (Text) The email address of the originator.
      • FQN: (Text) The fully qualified name of the originator.
      • Manager: (Text) The originator's manager.
      • User name: (Text) The user name of the originator.
    • Priority: (Integer) The priority level for the task. There are three priority levels:
      • High (0)

      • Medium (1)

      • Low (2)

      • The default priority is Medium.

    • Serial number: (Text) The unique identifier for the task.
    • Status: (Text) The status of the task for example Available.
    • Task start date: (DateTime) The date and time the task was started.
    • Task URL: (Text) The URL link to the task.
    • View flow URL: (Text) The URL link to the View Flow.
    • Workflow category: (Text) The location of the workflow in the folder structure.
    • Workflow display name: (Text) The display name for the workflow.
    • Workflow ID: (Integer) The unique identifier of the workflow.
    • Workflow instance folio: (Text) The folio used when an instance of the workflow was started, often used to identify different instances of the same workflow.
    • Workflow instance ID: (Integer) The unique identifier for the instance of the workflow.
    • Workflow name: (Text) The name of the workflow.
Object