Skip to end of metadata
Go to start of metadata

Is it possible to use Ruby as a scripting language for the JobScheduler?

  • JRuby should be possible. We use the the Javax scripting framework to allow implementation of Third Party scripting engines.
  • Read more about this in our JobScheduler and Script Languages document.

Calling Ruby in a job script

The language identification would be javax.script:jruby like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<job  title="sample job">
    <params />
    <script  language="javax.script:jruby"> <![CDATA[
		// put you Ruby code here
    <run_time />

Calling the Ruby scripting engine programmatically

 ScriptEngine jruby = new ScriptEngineManager().getEngineByName("jruby");
Write a comment…