AnsweredAssumed Answered

question about rest service

Question asked by whdwsl on Mar 13, 2013
Latest reply on Mar 18, 2013 by jbarrez
hi , i have a question about the rest service : Get Process Instance Details, Request: GET /process-instance/{processInstanceId}

through this api, i can get one processinstance detail, but when i watch the tasks in this process instance, i found the assignee is null, but in db, there is a value and not null, when i check the source code ,i found the following:
if (historicTaskInstance.getOwner() != null) {
               taskJSON.put("owner", historicTaskInstance.getOwner());
            } else {
               taskJSON.putNull("owner");
            }
            if (historicTaskInstance.getOwner() != null) {
               taskJSON.put("assignee", historicTaskInstance.getAssignee());
            } else {
               taskJSON.putNull("assignee");
            }


why there must be a owner?  owner can only be setted via api, and i found little about the owner in guide. there must be sth i don`t know suck as what does owner mean?  which business situation  it is  used?  why is there a rule when i get the assignee value a owner must be setted; and when the owner should be setted , etc. i need help,    thanks a lot.

Outcomes