The scripts in newer Oracle Data Modeler seems to have stopped working. Even though the Oracle Nashorn is selected as the Scripting engine, it's not working with the newer version of data modeler. Not sure what settings needs to be enabled for the scripting to work?
This is for version 21.4.1, the one which was release in December - 2021.