I have a situation where an arraylist is being populated with one null value (I have no control over that). I need to check if the entry in the list is null and I cannot seem to make that work. How do I check the entry found in the list to see if it has value null? I thought the choice below was right but when I run a test I fall in the not null path. I know (from logging) that the value is showing null in the log.
<set-variable variableName="workOrderMap" value="#[deinstallMsg.workOrderMap[parentWorkOrderGroupId].nextWorkOrderTypes]" />
<foreach doc:name="For Each Child Work Order" collection="#[workOrderMap]" rootMessageVariableName="msg">
<set-variable variableName="childWorkOrderType" value="#[payload]" />
<choice doc:name="check for null">
<when expression="#[childWorkOrderType != null]">
<logger message="EDFEDFEDF found NOT null workordertype" level="INFO" doc:name="null check"/>
</when>
<otherwise>
<logger message="EDFEDFEDF workordertype: #[childWorkOrderType] IS NULL" level="INFO" doc:name="null check"/>
</otherwise>
</choice>
</foreach>