You need to look at the posts about Jsr233 and related here in the forum. Scripting in those languages uses the same engine as the ngre in paper Ui and you can use any code editor you like as you write your rules in mainstream languages. Have a look here:
Or here for example:
The forum is your best friend to get information about this right now.
Best regards Johannes