Flee
Flee copied to clipboard
[Question] ExpressionContext from inside custom function.
Hi,
I'm a relative novice when it comes to Flee. I started with the original CodePlex project, and then found yours, which is maintained.
I've created a helper function. Call it "lookupSeason(date)". The idea is - take a date, pass it to a function that queries a database and returns the proper season.
In my ideal world, I'd like the expression to read "lookupSeason(date)" - but what gets passed to the parser is "lookupSeason(date,customer)" - because different customers could define seasons differently.
The other option would be to somehow be able to access the ExpressionContext from inside the helper function.
Is there any way to do this?
Thanks!