Hi,
I have a simple requirement where in I need to convert this logic to feel expression to set a variable
if((execution.getVariable(“phnMobilePhnNum”) != null && execution.getVariable(“phnMobilePhnNum”).toString().trim().length() > 0))
{
execution.setVariable(“phnNumber“, phnMobilePhnNum);}
else if (execution.getVariable(“phnHomePhnNum”) != null && execution.getVariable(“phnHomePhnNum”).toString().trim().length() > 0)
{
execution.setVariable(“phnNumber“, phnHomePhnNum);}
In Zeebe, I am trying to set atleast the first part of phnMobilePhnNum as FEEL Expression but I see an error in deployment.
How can I set the variable using feel expression for a simple null and length check of >0 .

