Passing a process variable to a service call (expression language syntax)

So I’m invoking a Spring bean in order to do user assignment.
The example from the documentation works fine like this:

${ldapService.findManagerForEmployee(emp)}

In my use case I want to pass one of the process variables to this service call. I have the username of the person who started the process as a process variable, and I want to also pass this to the method.
I have tried the following two methods and both throw an error about invalid syntax:

${userService.getCandidateUserByCommonUnitAndRole(execution.starter, “OVPAA”)}
${userService.getCandidateUserByCommonUnitAndRole(execution.getVariable(“starter”), “OVPAA”)}

Is it possible to pass a variable to a method call like this in the expression language and if so what is the correct syntax?

Hi @ianharrison,

Did you try to pass only starter instead of execution.starter or execution.getVariable(“starter”)?

Ye that worked, thanks Hassan.