You are fully right and we are on it. I have started a discussion thread to improve this for the future. Improve the jsr223 doc and show users that there is more than rules dsl in the docs directly.