Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Dynamic Job Scheduling in HANA SPS 7 rev 71, passing parameters to the job doesn't work

$
0
0

Hi,

 

I'm using the job scheduling provision provided in HANA SPS 7 rev 71. However, I'm not able to pass the parameters to the job successfully. I've followed the HANA dev guide for the steps to add parameters to a job.

 

I've adding job via syntax:

 

var myjob = new $.jobs.Job({uri:"<full job path>.xsjob"});

  id = myjob.schedules.add({ description: "adding job for id : "+id, xscron: "* * * * * * 59",

  parameter:

  { "id": "44",

   "value": "12",

   }

  });

 

I'm calling a function from the job and using the parameter variables as:

 

function testSchedule(input){

var id = input.id;

var value = input.value;


...

 

}

 

I'm getting the error of id and value being undefined.

 

Could anyone please guide me ASAP on this?

 

Thanks.


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>