If someone are interested, it could be done via using Idea's Dynamic Properties
- https://confluence.jetbrains.com/display/GRVY/Dynamic+Methods+and+Properties
От: Иванов Григорий Олегович
Отправлено: 11 ноября 2020 г. 19:11:12
Кому: users@camel.apache.org
Тема: groovy scripts in IntelliJ IDEA
Hi,
I have a question about using an external groovy script in camel route -
https://camel.apache.org/components/latest/languages/groovy-language.html#_loading_script_from_external_resource
Say I want do something like
request.getHeader("foo").collectEntries { k, v ->
[k, v ?: "default"]
}
Now I have my IDE complains about the request object, it says "Cannot resolve
symbol request"
Is there a way to fix it except to suppress the warning?
Thanks