9 Replies Latest reply on May 8, 2013 9:15 AM by Sean Coetzee

    How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?

    Thomas Setiabudi Expert

      Hi,

       

      In our environment, we use JBPM5.3 as a service via JBPM-Console REST service.

       

      when we call this REST:

      /gwt-console-server/rs/tasks/{idRef}

       

      The resulting JSON is something like this:

      {
       "tasks":
        [
         {
          "id":6,
          "processInstanceId":"11",
          "processId":"com.sample.evaluation",
          "name":"Performance Evaluation",
          "assignee":"thomas",
          "isBlocking":true,
          "isSignalling":false,
          "outcomes":[],
          "currentState":"ASSIGNED",
          "participantUsers":[],
          "participantGroups":[],
          "url":"http://localhost:8080/gwt-console-server/rs/form/task/6/render",
          "priority":0
         },
         {
          "id":7,
          "processInstanceId":"11",
          "processId":"com.sample.evaluation",
          "name":"Performance Evaluation",
          "assignee":"thomas",
          "isBlocking":true,
          "isSignalling":false,
          "outcomes":[],
          "currentState":"ASSIGNED",
          "participantUsers":[],
          "participantGroups":[],
          "url":"http://localhost:8080/gwt-console-server/rs/form/task/6/render",
          "priority":0
         }
        ]
      }
      
      

       

      The outcomes field is always empty.. "outcomes":[]

       

      is there any way to fill value to this field?

       

      We have a requirement to add a custom field for every human task, and retrieve its value when we open personal task list.
      We thought that maybe we can fill in the custom field in the JSON "outcomes" field.

      is it possible? Or is there any other way? maybe like create a custom WorkItemHandler that extends the Human Task?

       

       

      Any help is appreciated.

       

       

      Regards,

      Thomas Setiabudi