Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1435

API call job_chain.add_job() fails

    XMLWordPrintable

Details

    Description

      Current Situation
      We assume that we have job with script like

      <script  language="javax.script:ecmascript">
              <![CDATA[
      function spooler_process(){
      
      	var my_job_chain = spooler.create_job_chain();
              my_job_chain.set_name("test");
              my_job_chain.add_job( "/test/job1", "100",  "200", "999" );
              my_job_chain.add_end_state( "200" );
              my_job_chain.add_end_state( "999" );
      	return false;
      }
              ]]>
          </script>
      

      then the following error is raised

      [Z-JAVA-105  Java exception java.lang.RuntimeException: COM-80020009  Ausnahmefehler aufgetreten. [] [Z-JAVA-105  Java exception java.lang.NullPointerException: startNode, method=CallVoidMethodA [] (Calling Spooler.Job_chain.add_job)], method=spooler_process()Z [], in Remote_module_instance_server::step], method=call
      

      Desired Behavior
      The above api call works.

      Maintainer Notes

      • We recommend the use of the java:javascript scripting language instead of javax.script:javascript scripting language, as it provides better compatibility between Java versions.

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              oh Oliver Haufe
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: