1 Reply Latest reply on Jul 10, 2017 5:22 AM by Duncan Doyle

    query for user task with input variable values

    fgdfgdfgdfg fsdfsdf Newbie

      Hi i'm newbie in the JBPM world, i have installed jbpm 7.

       

      I have defined a process than ends with a user task with input variables, for example variable1 and variable2

       

       

      I start the process using the rest api and the user task is generated.

       

      I need to retrieve from an external application the tasks of a user with the current values of the input variables using the REST API.

       

      * I have found method for getting the task for a user, but the content of the variables is not showed.

       

         http://localhost:8080/kie-server/services/rest/server/queries/tasks/instances/pot-owners

       

      * I have found methods for filtering the task by a variable value, but still the variable values are not returned.

       

        http://localhost:8080/kie-server/services/rest/server/queries/tasks/instances/variables/variable1?varValue=value1

       

       

      And given a task instanceid retrieving the variables content.

       

      http://localhost:8080/kie-server/services/rest/server/containers/cds_1.0.1/tasks/1/contents/input

       

       

      is there any way of retriving the task of the user along with the values of the input variables using the REST API,  (in jbpm7)?

       

       

      I see there is a REST API, tested but it doesn't work :

       

      Rich query for task summaries and process variables.

       

       

      http://SERVER:PORT/business-central/rest/query/runtime/task

       

      http://SERVER:PORT/business-central/rest/query/runtime/process