0 Replies Latest reply on Feb 2, 2019 10:52 PM by Dwijitha

    Task Creation PIM BPM

    Dwijitha Guru

      Hello ,

      I am using below Xquery and trying to create a task based on query. But I see that Task is created but there are no values assigned to the tasks.

       

      <rest:RESTRequest xmlns:rest="http://schemas.activebpel.org/REST/2007/12/01/aeREST.xsd">

         <rest:method>POST</rest:method>

      <rest:pathInfo>rest/V1.0/manage/task</rest:pathInfo>

       

       

      <rest:headers>

      <rest:header name="Content-Type" value="application/json"/>

      <rest:header name="accept" value="application/json"/>

       

       

      </rest:headers>

       

       

      <rest:payload contentType="application/json">

      {{

       

       

        "entityIdentifier":"Article",

      "task":{{"name":"Tasks for Invalids",

      "taskType":"SingleTask",

      "dynamic":"true"

      }},

      "reportQuery":{{

          "identifier":"bySearch",

          "parameterList":[

          {{ "key":"query", "value":"ArticleLang.PName contains \"Invalid\""}},

        {{ "key":"catalog", "value":"MASTER"}}

       

       

          ]

        }}

      }}

      </rest:payload>

      <!-- <rest:ssl>false</rest:ssl> -->

      <rest:locales>

      <rest:locale country="US" lang="en">en_US</rest:locale>

      </rest:locales>

      </rest:RESTRequest>

       

      Could anyone help me understand what am I missing here.

      Thank you.