Creates a new task.

Method

POST /task/create

Parameters

Request Body

A JSON object with the following properties:

Name Type Description
id String The id of the task.
name String The task name.
description String The task description.
assignee String The user to assign to this task.
owner String The owner of the task.
delegationState String The delegation state of the task. Corresponds to the DelegationState enum in the engine. Possible values are RESOLVED and PENDING.
due String The due date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
followUp String The follow-up date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
priority Number The priority of the task.
parentTaskId String The id of the parent task, if this task is a subtask.
caseInstanceId String The id of the case instance the task belongs to.
tenantId String The id of the tenant the task belongs to.

* For further information, please see the documentation.

Result

This method returns no content.

Response Codes

Code Media type Description
204 Request successful.
400 application/json Returned if a not valid delegationState is supplied. See the Introduction for the error response format.

Example

Request

POST /task/create

Request Body:

{
  "id": "aTaskId",
  "name": "My Task",
  "description": "This have to be done very urgent",
  "priority" : 30,
  "assignee" : "peter",
  "owner" : "mary",
  "delegationState" : "PENDING",
  "due" : "2014-08-30T10:00:00.000+0200",
  "followUp" : "2014-08-25T10:00:00.000+0200",
  "parentTaskId" : "aParentTaskId",
  "caseInstanceId" : "aCaseInstanceId",
  "tenantId" : null
}

Response

Status 204. No content.

目录: