Validation issue in Rule -> Need some advice

Hi there,

while loading a rule file at openhab startup i get the following message, but i have no idea how find out how to solve this

2018-01-27 10:41:55.346 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'battery.rules', using it anyway:
There is no context to infer the closure's argument types from. Consider typing the arguments or put the closures into a typed context.

For whatever it is worth, I am getting a lot of similar and other errors each time I delete the cache and tmp folder (e.g., after upgrade); I wait a few minutes, restart OH2 once or twice and they all go away and OH2 starts clean

The same with me, but i like to understand …

I am no expert, but I would not be surprised if it is connected to OH2 loading rules, persistence etc not in a particular order; there are workarounds:
But I never bothered, as after the initial restart series after an upgrade, it typically behaves well and these errors rarely come back (until the next time I upgrade or delete cache and tmp folders manually)