Throws assignee is null when rest rest api for filterlist is called

Hi Team,

I am receiving an error when I use rest api for task filters (/filters).
I am receiving as assignee is null and throws process engine exception.

On analysis I found that this is due to the assignee expression present in task filters.i have given assignee expression as currentUser().
and even I am passing my credentials in headers.
I guess it is not picking the credentials sent in headers and so it is unable to evaluate currentUser() and throws process engine exception.

So I have changed the assignee expression to some user (hot coded) and then I tried it was working fine.

So what I need to do to enable/pass auth if I use currentUser() in my taskfilter.

1 Like

@manish_kumar in order to use camunda built-in expression currentUser() which returns the userId of the currently authenticated user.

You need to authenticate the logged in user via IdentityService.

identityService.setAuthenticatedUserId("user");

Hi @aravindhrs,

I am using camunda Rest API to get the data. To authenticate the logged user no pop is available to authenticate.

Even I passed authentication in Request Header to pick the values,But Still it is ignored

1 Like

I have got the solution. I need to enable http authentication in web.xml to populate Login screen. I did it and it works for me

1 Like