Currently I am using the below code on camel 2.9.0.
<choice>
<when>
<simple>${in.body?.documentData?.isToBeProcessed} ==
'true' and ${in.body?.documentData?.status} == 'Deleted'</simple>
<setHeader headerName="NOTIFICATION_TYPE">
<constant>DOCUMENT_STATUS_DELETED</constant>
</setHeader>
<bean ref="documentNotificationBuilder"
method="addNotification" />
</when>
After migrating to 2.15.1 , the same expression is not working and it throws
java.lang.IllegalArgumentException: Property with key
[in.body?.documentData?.isToBeProcessed] not found in properties from text:
${in.body?.documentData?.isToBeProcessed} == 'true' .
I found a similar issue reported on thread
http://camel.465427.n5.nabble.com/Issue-with-camel-lt-el-gt-in-Camel-2-12-0-td5740188.html.
However when I tried the same like below , it still isn't working and fails
with Parse Exception.
<choice>
*<when>simple${in.body?.documentData?.isToBeProcessed} ==
'true'*
<setHeader headerName="NOTIFICATION_TYPE">
<constant>DOCUMENT_STATUS_SUSPEND_COVER</constant>
</setHeader>
<bean ref="documentNotificationBuilder"
method="addNotification" />
</when>
<otherwise />
</choice>
Appreciate any help on this
--
View this message in context:
http://camel.465427.n5.nabble.com/Issue-with-simple-after-migrating-from-2-9-0-to-2-15-1-tp5769278.html
Sent from the Camel - Users mailing list archive at Nabble.com.