cancel
Showing results for 
Search instead for 
Did you mean: 

cast on EL is possible?

luisalves00
Champ in-the-making
Champ in-the-making
activiti:assignee="${authRequest.colaborador.idColaborador}"

idColaborador is java Long

so I get java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

how to cast if possible?

my solution is to  cast on java:  variableMap.put("assignee", String.valueOf(pa.getColaborador().getIdColaborador()));
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Another trick that might work is simply to add "+ '' " to make it a String