タスクの作成

post
/tasks
新規タスクを作成し、タスクIDを返します。

次の表に、クライアント・リクエストをまとめます。

サポートされているメディア・タイプ
  • application/json
  • application/xml
本文パラメータ
本文パラメータは、title、startDate、dueDate, priority、taskDefinitionId、routingSlipです。routingSlipのパラメータは、routingType、resourcesです。resourcesのパラメータは、value、identityTypeです。
application/jsonの例

{
    "title":"This is a test  Task Using Rest API",
    "startDate":"2013-09-05 03:16:19",
    "dueDate":"2013-09-07 03:16:19",
    "priority":3,
    "taskDefinitionId":"default/EURent!1.0/HandoverCar",
    "routingSlip":{
        "routingType":"SIMPLE",
        "resources":[
            {
                "value":"jcooper",
                "identityType":"USER"
            },
            {
                "value":"jstein",
                "identityType":"USER"
            }
        ]
    }
}

次の表に、サーバー・レスポンスをまとめます。

サポートされているメディア・タイプ
  • application/json
  • application/xml

200 レスポンス

成功
本文
application/jsonの例

{
    "rel":"Task 200002 is created.",
    "href":"http://example.com/bpm/api/3.0/tasks/200002"
}