Pass variable to formKey

Hello All,

I am stuck with below issue, could anyone please help? I am a beginner :slight_smile:

I have a start event like this -

startEvent id=“startevent1” name=“Start” flowable:initiator=“startUserId” flowable:formKey=“modifyRequest.js”

extensionElements>
flowable:formProperty id=“Requester” name=“Requester” type=“string” value="${startUserId}" />

Now in the modifyRequest.js, I want to retrieve the value of startUserId but above line does not help.
My basic intention is to get the userid of the user who logged in.

Thanks

Hey @cinil,

You can see some of the available Expression for Flowable.

In order to get the currently authenticated user you can use authenticatedUserId.

Cheers,
Filip