How to set startUserId when starting process instance via api

Hello,
startProcessInstanceByKey return ProcessInstance object with startUserId field.

How can I pass a value to startUserId field?

1 Like

Set the id of the user using

IdentityService#setAuthenticatedUserId

See https://flowable.com/open-source/docs/bpmn/ch07b-BPMN-Constructs/#start-events