web stats
Mirth Community - View Single Post - Run Javascript in Channel Context Outside of Mirth
View Single Post
  #7  
Old 06-18-2019, 08:02 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,062
agermano is on a distinguished road
Default

Another thing you'll want to do is set the appropriate Rhino language version when you launch the shell. I'm assuming you found this already https://developer.mozilla.org/en-US/...ts/Rhino/Shell

For all mirth versions prior to 3.7 mirth runs with version 0 (I realize they don't list it as a valid option on that page, but it is.) They call this the "default" version. It's roughly equivalent to 160.

In 3.7 they let you specify the rhino version in the mirth.properties file. If you upgrade to 3.7 from a prior version it will keep the version of default. In a fresh install it will be set to ES6, which is actually Rhino version 200. The rhino that ships with 3.7 will launch the shell in version 180 if you don't specify.

Last edited by agermano; 06-18-2019 at 08:08 PM.
Reply With Quote