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 BPMN 2.0 Constructs · Flowable Open Source Documentation