Set userid in task and/or process comments

Hi,

I use the createComment method to set a comment for the task and/or process. In my unit test the received userId is null.
Is it possible to set a current userId at the java api level?

this.processEngine.getTaskService().createComment(taskId, processInstanceId, message);

Thanks for your help.

Hi @BerndVarga,

I think you should use IdentyService to set proper value.
https://docs.camunda.org/manual/7.5/user-guide/process-engine/identity-service/

Cheers,
Askar.

Hi Askar,

thanks for your reply.

Now we have to think about our user concept.

Cheers,
Bernd