Complete task instance
POST/flow_instances/:flowInstanceId/relationships/container_instances/:containerInstanceId/relationships/process_instances/:processInstanceId/relationships/task_instances/:taskInstanceId/complete
Each task can be completed
Request
Path Parameters
The workflow instance id
The container instance id
The process instance id
The task instance id
Header Parameters
Every request should has X-Domain Header, in the UUIDv4 format. The X-Domain can be get from the Tenant Integrations page
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
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
- application/vnd.api+json
Body
Array [
]
Array [
]
Array [
]
Array [
Array [
]
Array [
]
]
Array [
Array [
]
Array [
]
]
- TaskInstance.Artifact.FillForm
- TaskInstance.Artifact.FormApprove
- TaskInstance.Artifact.SmartContract
Array [
]
Array [
]
- FormInstance.Full
- Blockchain.SmartContractInstance
Array [
Array [
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
]
Array [
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
]
]
Array [
]
- MOD1
- MOD2
Array [
Array [
]
]
Array [
]
data
object
attributes
object
properties
object
buttons
object
forward
object
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
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
Type of the events that will trigger a webhook. In current moment available only task instance completed event available
Your unique URL where is a webhook listener
transitions
object
The flag that show is this task instance the last task in the workflow
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
The flag that show is this task instance the first task in the workflow
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
Shows id of the roles which users can view current task instance
Shows id of the roles which users can change current task instance
The id of the user who is a assignee of the current task instance
Shows id of the roles which users can complete/execute current task instance
capabilities
object
wizard
object
Deprecated capability
history
object
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
Days after the due date
comments
object
level
object
artifact
object
Possible values: [private
, public
]
In the Trisk available two types of the comments, private and public.
coworking
object
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
Days in advance to the due date
data_transfers
object[]
Deprecated capability
due_date_settings
object
Days to the due date
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
The month when the due date reached if selected actual type of the due date
due_dates_managing
object
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
additional_data
object
The data used for a tutorials
notifications_templates
object
The id of the notification template that will be send when the task instance will be assigned to the user
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
instructions
object[]
launched_task_instances
object[]
related_launch_instructions
object[]
instructions
object[]
processed
object[]
artifact
object
oneOf
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
For a Fill Form type of the artifact is a form
parameters
object
The id of the Form version
The id of the Fill Form task
For a Form Approve type of the artifact is a task_approve
The id of the Smart Contract that saved in our system
Type of the artifact
parameters
object
The method of the Smart Contract that was selected on task creation step
inputs
object[]
Inputs of the selected method
Name of the input
The id of the selected target type
Possible values: [form
, data_dictionary
, smart_contract
]
The Smart Contract supported Fill Form, Data Dictionary, and other Smart contract as target type
If the selected Smart Contract as a target type, in the input_argument should be selected Parameter Argument from the selected Smart Contract
The reference of the task instance
outputs
object[]
Outputs of the Smart Contract
The method of the Smart Contract
The id of the selected target type
Possible values: [form
, data_dictionary
, smart_contract
]
The Smart Contract supported Fill Form, Data Dictionary, and other Smart contract as target type
If the selected Smart Contract as a target type, in the output_argument should be selected Parameter Argument from the selected Smart Contract
The reference of the task instance
relationships
object
artifact
object
data
object
oneOf
The instance of the form template
The id of the form instance
attributes
object
The form instance name
Possible values: [task_instance
]
The type of the owner for a form instance. Only task instance can be an owner
The id of the task instance
The date and time when the form instance was created
The date and time when the form instance was last time updated
relationships
object
section_instances
object
The instance of the section
data
object[]
The id of the section instance
attributes
object
The name of the section instance
The id of the section instance after which the current section instance is placed in the form. If the section instance is first in the form instance, the value will be null
The flag that indicate that the section instance will not or will be shown in the print
The reference of the section
The date and time when the form instance was created
The date and time when the form instance was last time updated
relationships
object
field_instances
object
The instance of the field
data
object[]
The id of the field instance
attributes
object
The title of the field instance
Possible values: [checkbox
, date
, file
, html
, label
, radio
, select
, service_file
, slider
, text
, textarea
]
The system supported a few types of the fields
The reference of the field
The id of the field instance after which the current filed instance is placed in the section instance. If the field instance is first in the section instance, the value will be null
The flag that indicate that the field instance will not or will be shown in the print
The flag that indicates that the filed instance will not or will be shown in the Fill Form
The date and time when the field instance was created
The date and time when the field instance was last time updated
relationships
object
parameter_instances
object
The parameter instance of the field instance, like description
data
object[]
The id of the filed instance parameter instance
attributes
object
The supported attributes of the parameters for filed instance relate to the field instance type. Can be: description, help_message, required, etc
The value related to the selected attribute
option_instances
object
The option instance of the field instance, like answers to the radio field
data
object[]
The id of the filed instance option instance
attributes
object
The reference of the filed attribute property
The label of the filed instance option
The weight used to sort the properties in the option instance
data_instances
object
The data that was filled to the field instance
data
object[]
Tbe if of the grouper instance
attributes
object
The value of the data instance
The value reference of the data instance
The weight used to sort the properties in the data instance
attachment_instances
object
The instance of the attached files to the field instance type file
data
object[]
The id of the data instance
attributes
object
The name of the attached instance
The URL where placed the attached instance
service_file_instances
object
The instance of the files attached to the field instance type service_file
data
object[]
The id of the attachment instance
attributes
object
The name of the service instance file
The URL where placed the service file instance
discussion_instances
object
The instance of the discussions that was left to the field instance
data
object[]
The id of the service instance file
attributes
object
The id of the author of the discussion instance
The type of the author of the discussion instance
The text of the discussion instance
The flag that show that discussion can be resolved or not
The flag that show that discussion resolved or not
The date and time when the discussion instance was created
The date and time when the discussion instance was last time updated
relationships
object
author
object
The user who leaves the discussion
data
object
Author it is a user who create entity
The id of the user who create entity
attributes
object
The type of the author of the discussion instance
The scope of the author of the discussion instance
The email of the author of the discussion instance
The date and time when the author of the discussion instance was archived
relationships
object
profile
object
data
object
The id of the profile registered user
attributes
object
The user first name
The user last name
The user avatar in the JPG, PNG, and max size of 5Mb
The international phone code
The phone number of the user
This field is a string and can be used as a position of the user in the company or some other information
The date and time of the user creation
The date and time when the info in the user profile was changed
comment_instances
object
The instance of the comments that was left to the field instance
data
object[]
The id of the discussion instance
attributes
object
The text of the comment instance
The flag that indicate that the comment is private or public
relationships
object
author
object
The user who leaves the comment
data
object
Author it is a user who create entity
The id of the user who create entity
attributes
object
The type of the author of the discussion instance
The scope of the author of the discussion instance
The email of the author of the discussion instance
The date and time when the author of the discussion instance was archived
relationships
object
profile
object
data
object
The id of the profile registered user
attributes
object
The user first name
The user last name
The user avatar in the JPG, PNG, and max size of 5Mb
The international phone code
The phone number of the user
This field is a string and can be used as a position of the user in the company or some other information
The date and time of the user creation
The date and time when the info in the user profile was changed
representation_instance
object
The description of the how the field will be represented in the Form Approval task instance
data
object[]
The id of the comment instance
attributes
object
The title representation for a field instance in the From Approve task instance
The description representation for a field instance in the From Approve task instance
The help message representation for a field instance in the From Approve task instance
grouper_instances
object
The instance of the table and active table
data
object[]
The id of the grouper instance
attributes
object
The name of the grouper instance
The type of the grouper instance: table or active_table
The reference of the grouper
The id of the field instance after which the current grouper instance is placed in the form. If the grouper instance is first in the section instance, the value will be null
The flag that indicate that the grouper instance will not or will be shown in the print
The date and time when the form instance was created
The date and time when the form instance was last time updated
relationships
object
type_parameter_instances
object
data
object[]
The id of the type parameter instance
attributes
object
Described which attribute is describes: row or column
The size of the row or column
The index number of the column or row
parameter_instances
object
data
object[]
The id of the filed instance parameter instance
attributes
object
The supported attributes of the parameters for filed instance relate to the field instance type. Can be: description, help_message, required, etc
The value related to the selected attribute
field_instances
object
data
object[]
The id of the field instance
attributes
object
The title of the field instance
Possible values: [checkbox
, date
, file
, html
, label
, radio
, select
, service_file
, slider
, text
, textarea
]
The system supported a few types of the fields
The reference of the field
The id of the field instance after which the current filed instance is placed in the section instance. If the field instance is first in the section instance, the value will be null
The flag that indicate that the field instance will not or will be shown in the print
The flag that indicates that the filed instance will not or will be shown in the Fill Form
The date and time when the field instance was created
The date and time when the field instance was last time updated
discussion_instances
object
data
object[]
The id of the service instance file
attributes
object
The id of the author of the discussion instance
The type of the author of the discussion instance
The text of the discussion instance
The flag that show that discussion can be resolved or not
The flag that show that discussion resolved or not
The date and time when the discussion instance was created
The date and time when the discussion instance was last time updated
relationships
object
author
object
The user who leaves the discussion
data
object
Author it is a user who create entity
The id of the user who create entity
attributes
object
The type of the author of the discussion instance
The scope of the author of the discussion instance
The email of the author of the discussion instance
The date and time when the author of the discussion instance was archived
relationships
object
profile
object
data
object
The id of the profile registered user
attributes
object
The user first name
The user last name
The user avatar in the JPG, PNG, and max size of 5Mb
The international phone code
The phone number of the user
This field is a string and can be used as a position of the user in the company or some other information
The date and time of the user creation
The date and time when the info in the user profile was changed
comment_instances
object
data
object[]
The id of the discussion instance
attributes
object
The text of the comment instance
The flag that indicate that the comment is private or public
relationships
object
author
object
The user who leaves the comment
data
object
Author it is a user who create entity
The id of the user who create entity
attributes
object
The type of the author of the discussion instance
The scope of the author of the discussion instance
The email of the author of the discussion instance
The date and time when the author of the discussion instance was archived
relationships
object
profile
object
data
object
The id of the profile registered user
attributes
object
The user first name
The user last name
The user avatar in the JPG, PNG, and max size of 5Mb
The international phone code
The phone number of the user
This field is a string and can be used as a position of the user in the company or some other information
The date and time of the user creation
The date and time when the info in the user profile was changed
representation_instance
object
data
object[]
The id of the comment instance
attributes
object
The title representation for a field instance in the From Approve task instance
The description representation for a field instance in the From Approve task instance
The help message representation for a field instance in the From Approve task instance
The id of the smart contract in the Trisk
attributes
object
Possible values: [pending
, in_progress
, failed
, resolved
]
The smart contract instance has a following statuses: pending - when the smart contract task instance was created; in_progress - when the smart contract task instance executing on the blockchain; failed - if the smart contract task instance failed in the blockchain execution; resolved - when the smart contract task instance successfully executed on the blockchain
The task instance id who launch the smart contract
Possible values: [task
]
The type of the owner
input
object[]
output
object
oneOf
Transaction hash
Smart contract address
Wallet address
Transaction hash
events
object[]
args
object[]
Event name
relationships
object
errors
object
data
object[]
The id of the blockchain smart contract instance error
attributes
object
The message of the blockchain smart contract instance error
The date and time when the blockchain smart contract instance error was created
forward_notifications
object
data
object
attributes
object
The reference of the task instance
relationships
object
assignee
object
data
object
The id of the user who is a assignee of the task instance
Responses
- 200
- 401
- 404
- 500
The "true" value of the acknowledge means that the request is correct and the "false" is incorrect
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The value of the acknowledge
{
"acknowledge": true
}
Unauthorized exception
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The response status code of the error
The title of the error
{
"status": 401,
"code": 0,
"title": "Unauthorized"
}
The response body of the Not Found Error
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The response status code of the error
The title of the error
{
"status": 404,
"code": 404,
"title": "Not Found"
}
That means something has gone wrong on the server, and the server returns more specific about what the exact problem is
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The type of the error
The status of the error
The title of the error
The request body
The internal trace
{
"id": {},
"type": "errors",
"links": [
"string"
],
"status": 0,
"code": 0,
"title": "string",
"detail": "string",
"source": {},
"meta": {}
}