Posting this here until the docs can be updated.
I’m experimenting with the new support for defining transformations in the UI.
Once you create a transformation in the UI: Settings → Transformations take note of the UID. This ID will likely follow this format:
config:<transform type>:<name>:<language>
where <transform> is the name of the transform to use (e.g. map, js, jinja, etc.), <name> is your what you provided, and <language> is an optional two letter code for the spoken language (not programming language (e.g. en, de, etc.).
For example, I’ve a map transform I use to translate the three possible LWT messages to the online/offline status for the MQTT Thing. It’s ID is config:map:waveplus.
When using that transform in various places, you must use the full ID in place of what we used to be the filename. So for example, if you had MAP(waveplus.map) or if in the MQTT or HTTP add-ons MAP:waveplus.map you would use MAP(config:map:waveplus) or in the MQTT or HTTP add-ons MAP:config:map:waveplus.
It took me a bit to work that out.
Also, be aware that my understanding is the interface to SCRIPT has changed and now it uses the language as the ID. This means as long as one of the JS add-ons are installed, the original JS(myfile.js) will continue to work so users will not need to update their syntax to work with OH 4.