While JAMS has extensive capabilities for automatically submitting Jobs, sometimes you need to submit a Job from your code, or from the REST API. Here is an example:
Submitting a Job |
Copy Code
|
---|---|
// // Get a connection to our JAMS Server // You will probably have to change the node name "localhost" // to the name of your JAMS Server // MVPSI.JAMS.Server server = MVPSI.JAMS.Server.GetServer("localhost"); // // Load the job that we want to submit // MVPSI.JAMS.Submit.Info si; // // Also, you can load a Job from a specific folder by replacing // "\\FolderName\\JobName" // MVPSI.JAMS.Submit.Load(out si, "BackupDB" , server); // // Finish the submit // si.Submit(); |