Skip to main content

Get list of task instances

GET 

/flow_instances/task_instances

Get list of task instances

Request

Query Parameters

    include string

    The attributes that will be returned together with the task instance

    Example: artifact,assignee.profile,process_instances.container_instances.flow_instances.owner.profile
    term string

    The term to the search

    filter object

    The task instance list can be filtered

    sort_by object

    The task instance list can be sorted

Header Parameters

    X-Domain stringrequired

    Every request should has X-Domain Header, in the UUIDv4 format. The X-Domain can be get from the Tenant Integrations page

    X-API-KEY stringrequired

    An X-API-KEY key is a token that a client provides with a X-API-SECRET when making API calls, used instead of the JWT

    X-API-SECRET stringrequired

    An X-API-SECRET key is a token that a client provides with a X-API-KEY when making API calls, used instead of the JWT

Responses

The request was successful

Schema

    data

    object[]

  • Array [

  • type string

    The type of the task instance

    id string

    The task instances id in the UUIDv4 format

    attributes

    object

    reference string

    The task reference in the UUIDv4 format

    name string

    Task instance name

    description string

    Task instance description

    assignee_id string

    Id of the user who selected as assignee

    assignee_type string

    Possible values: [users, external_users]

    The type of the user who selected as assignee

    assignee_types_allowed string[]
    active boolean

    The flag that show is it task instance in the active status

    reopenable boolean

    The flag that show is current user has permission to reopen this task instance

    rejectable boolean

    The flag that show is current user has permission to reject this task instance

    reassignable boolean

    The flag that show is current user has permission to reassign this task instance

    executable boolean

    The flag that show is current user has permission to execute this task instance

    completed boolean

    The flag that show is it task instance completed or not

    properties

    object

    buttons

    object

    forward

    object

    label string

    The text that will be shown on the task instance button. As example: the "Submit" text on the button that submit task instance

    backward

    object

    label string

    The text that will be shown on the task instance button. As example: the "Submit" text on the button that submit task instance

    webhook

    object

    In current moment relates only to the Export task instance type

    events string[]

    Type of the events that will trigger a webhook. In current moment available only task instance completed event available

    endpoint string

    Your unique URL where is a webhook listener

    transitions

    object

    finish boolean

    The flag that show is this task instance the last task in the workflow

    forward string

    Shows id of which task instance will be run after current completed. If the task instance is last in the workflow it will be empty

    initial boolean

    The flag that show is this task instance the first task in the workflow

    backward string

    Shows id of which task instance will be run if this task instance will be rejected. Relates only to the Form Approval task instance. If the task instance is first in the workflow it will be empty

    access_roles

    object

    read string[]

    Shows id of the roles which users can view current task instance

    write string[]

    Shows id of the roles which users can change current task instance

    assign string

    The id of the user who is a assignee of the current task instance

    execute string[]

    Shows id of the roles which users can complete/execute current task instance

    capabilities

    object

    wizard

    object

    Deprecated capability

    enabled boolean

    history

    object

    enabled boolean

    The flag shows that a history capability enabled for current task instance. Relates only to the Fill Form task type

    notices

    object[]

    Notice after the due dates reached

  • Array [

  • interval string

    Days after the due date

  • ]

  • comments

    object

    level

    object

    artifact

    object

    visibility string

    Possible values: [private, public]

    In the Trisk available two types of the comments, private and public.

    coworking

    object

    enabled boolean

    The flag shows that a co-working capability enabled for current task instance. Relates only to the Fill Form and Form Approval task instance types

    reminders

    object[]

    Reminder before the due dates reached

  • Array [

  • interval string

    Days in advance to the due date

  • ]

  • data_transfers

    object[]

    Deprecated capability

  • Array [

  • id string
  • ]

  • due_date_settings

    object

    days string

    Days to the due date

    type string

    Possible values: [absolute, relative, actual, immediately]

    Types of the due dates: absolute - due date calculated based on the start date of the workflow; relative - due date calculated based on the previous step; actual - due date specified manually as date/month; immediately - relates only to the Notification step. Will be sent when the previous task will be completed or when workflow started, if it is the first task in the flow

    month string

    The month when the due date reached if selected actual type of the due date

    due_dates_managing

    object

    enabled boolean

    The flag that show is due dates can be changed from the task instance, relates only to Document Management task type

    access_tokens

    object

    The guest users who used in the multiple workflow launch

    data_source string[]

    additional_data

    object

    The data used for a tutorials

    notifications_templates

    object

    assign_task string

    The id of the notification template that will be send when the task instance will be assigned to the user

    assign_task_batch string

    The id of the notification template that will be send when the multiple task instances will be assigned to the user

    access_tokens_instructions

    object[]

    The instructions how to launch related workflows

  • Array [

  • task_reference string

    instructions

    object[]

  • Array [

  • source_identity string
    identifier string
  • ]

  • artifact_name string
    container_name string
    field_references string[]
    field_identifier_reference string

    launched_task_instances

    object[]

  • Array [

  • container_instance_id string
    process_instance_id string
  • ]

  • ]

  • related_launch_instructions

    object[]

  • Array [

  • type string
    task_reference string

    instructions

    object[]

  • Array [

  • source_identity string
    identifier string
  • ]

  • artifact_name string
    container_name string
    field_references string[]
    field_identifier_reference string

    processed

    object[]

  • Array [

  • email string
    flow_instance_id string
    container_instance_id string
    process_instance_id string
    task_instance_id string
    identifier string
  • ]

  • ]

  • artifact

    object

    oneOf

    id string

    For the Fill Form task instance this is a id of the Form template, for the Form Approve task instance - id of the Fill Form task instance that will be approved

    type string

    For a Fill Form type of the artifact is a form

    parameters

    object

    version_id string

    The id of the Form version

    scope string

    Possible values: [past_due, this_week, on_schedule]

    The indication in the which scope will task instance due date reached

    has_pending_reopen_request boolean

    The flag that show is this task instance has not completed reopen requests

    due_date string

    The date and time when the task instance due date will be reached

    created_at string

    The date and time when the task instance was completed

    updated_at string

    The date and time when the task instance was changed

    completed_at string

    The date and time when the task instance was completed

    relationships

    object

    artifact

    object

    data

    object

    oneOf

    type string

    The instance of the form template

    id string

    The id of the form instance

    attributes

    object

    name string

    The form instance name

    owner_type string

    Possible values: [task_instance]

    The type of the owner for a form instance. Only task instance can be an owner

    owner_id string

    The id of the task instance

    created_at string

    The date and time when the form instance was created

    updated_at string

    The date and time when the form instance was last time updated

    assignee

    object

    data

    object

    type string

    An assignee is a user who responsible for a task execution

    id string

    The id of the user who is a assignee

    attributes

    object

    type string

    Possible values: [users, external_users]

    In the system we have a two types of the users, internal - users registered in the system and external_users - Trisk allows you to assign tasks to guest users who are not registered in the platform

    scope string

    Possible values: [tenant, client]

    In the system we have a two scope of the users, tenant users - This is your Company users; the originator of processes/workflows and the client users - this is the individual on the other side, the provider of information, the respondent

    email string

    The user email

    archived_at string

    The date and time when the user was archived

    relationships

    object

    profile

    object

    data

    object

    type string
    id string

    The id of the profile registered user

    attributes

    object

    first_name string

    The user first name

    last_name string

    The user last name

    avatar string

    The user avatar in the JPG, PNG, and max size of 5Mb

    phone_code string

    The international phone code

    phone_number string

    The phone number of the user

    position string

    This field is a string and can be used as a position of the user in the company or some other information

    created_at string

    The date and time of the user creation

    updated_at string

    The date and time when the info in the user profile was changed

    process_instances

    object

    data

    object

    type string
    id string

    The id of the process instance

    attributes

    object

    reference string

    The reference of the process instance

    name string

    The name of the process

    description string

    The description of the process

    properties

    object

    capabilities

    object[]

  • Array [

  • conditional_run

    object

    Its essence is that by filling in specific fields, the system launches separate, previously created, forms.

    seeds

    object

    artifact

    object

    The artifact is what the task executes, for different types of tasks, artifact structures different

    id string

    For the Fill Form task instance this is a id of the Form template, for the Form Approve task instance - id of the Fill Form task instance that will be approved

    type string

    For a Fill Form type of the artifact is a form

    parameters

    object

    version_id string

    The id of the Form version

    source

    object

    node string

    nested

    object

    node string

    nested

    object

    node string

    nested

    object

    node string

    nested

    object

    node string
    reference string
    reference string
    reference string
    reference string
    reference string

    target

    object

    task_reference string
    weight integer
    source_id string

    target

    object

    type string
    flow_id string
    version_id string
    container_reference string
    definition_reference string
  • ]

  • started boolean

    The flag that show that the process instance was started

    completed boolean

    The flag that show that the process instance was completed

    created_at string

    The date and time when the process instance was created

    updated_at string

    The date and time when the process instance was last time updated

    relationships

    object

    container_instances

    object

    data

    object

    type string
    id string

    The id of the container instance

    attributes

    object

    reference string

    The reference of the container instance

    name string

    The name of the container instance

    type string

    Possible values: [default, todo]

    The container instance has a two types, default and todo. The todo type used only for ToDo task instance type

    started boolean

    The flag that show that the container instance was started

    completed boolean

    The flag that show that the container instance was completed

    created_at string

    The date and time when the container instance was created

    updated_at string

    The date and time when the container instance was last time updated

    completed_at string

    The date and time when the container instance was completed

    relationships

    object

    flow_instances

    object

    data

    object

    type string
    id string

    The id of the workflow instance

    attributes

    object

    name string

    The name of the workflow instance

    identifier string

    The identifier is a simple string that helps to clarify what the workflow instance do

    display_name string

    This is an aggregated name with workflow name and identifier

    status integer

    Possible values: [0, 10, 20, 30, 40]

    The workflow instance has following statuses: 0 - th workflow instance is not started; 10 - the workflow was started and in the active status; 20 - the workflow instance was completed; 30 - the workflow instance was canceled; 40 - the workflow instance was terminated

    started boolean

    The flag that show that the workflow instance was started

    completed boolean

    The flag that show that the workflow instance was completed

    terminated boolean

    The flag that show that the workflow instance was terminated

    reference string

    The id of the workflow template

    version_reference string

    The id of the workflow template version

    version_index integer

    The workflow version index

    group string

    Possible values: [default, system, tutorial]

    The workflow instance has three groups: default - the regular workflow instance that is launched by a tenant user; system - the workflow instance that the system launched when the client user tries to launch workflow to the tenant users; tutorial - the workflow that is created by a Trisk for launch a tutorial for a user

    owner_type string

    Possible values: [clients, tenants]

    The workflow instance always has an owner, for default and system group it is a client, for tutorial - tenant

    owner_id string

    If the owner of the workflow instance is a client - client id, if the tenant - tenant id

    created_at string

    The date and time when the workflow instance was created

    updated_at string

    The date and time when the workflow instance was last time updated

    completed_at string

    The date and time when the workflow instance was completed

    concluded_at string

    The date and time when the workflow instance was terminated

    due_date string

    The date and time of the workflow instance due date

    relationships

    object

    owner

    object

    data

    object

    type string

    The type of the client

    id string

    The client id in the UUIDv4 format

    attributes

    object

    name string

    The client name

    is_simulation boolean

    The mode when the tenant can be as a client

    has_members boolean

    Indicate if the client has a members

    created_at string

    The date and time when the client was created

    updated_at string

    The date and time when the client was last time changed

    archive_at string

    The date and time when the client was archived

    remove_at string

    The date and time when the client will be fully removed from a system

  • ]

Loading...