Declared return type Long is not compatible with evaluated type Integer for expression taskAssigneeId

1
0
-1

Hi experts,

I'm using this expression to calculta the "To:" field in an connector email:

return BonitaUsers.getUserProfessionalContactInfo(apiAccessor,taskAssigneeId).getEmail()

But, when using this expression:

return BonitaUsers.getUser(apiAccessor,taskAssigneeId).getFirstName()

In a Local variable, (which I will use later in the body of an email connector) I get the error:

  1. Declared return type class java.lang.Long is not compatible with evaluated type class java.lang.Integer for expression taskAssigneeId

Any ideas of how to solve this?

Regards,
Jose.

No answers yet.
Notifications