You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Иванов Григорий Олегович <Iv...@esphere.ru> on 2020/12/02 09:54:32 UTC
Re: groovy scripts in IntelliJ IDEA
If someone are interested, it could be done via using Idea's Dynamic Properties - https://confluence.jetbrains.com/display/GRVY/Dynamic+Methods+and+Properties
________________________________
От: Иванов Григорий Олегович <Iv...@esphere.ru>
Отправлено: 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