Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
However, I want to keep the "deployement" process given in the job conductor. I also want to keep the "regenerate job on change" feature.
So, I want to do the same action as pushing "Run" button in Job Conductor, but launched from my external scheduler
routines.AdministratorWebService_PortType administratorWebService = new routines.AdministratorWebServiceServiceLocator().getAdministratorWebService();
routines.AdministratorWebServiceSoapBindingStub stub = (routines.AdministratorWebServiceSoapBindingStub) administratorWebService;
//stub.setSessionId (String sessionId);
//stub.setTaskId (int taskId);
//stub.setQueueIfNecessary (boolean queueIfNecessary);
//stub.setContextParams (String [][] contextParams);
//
//AxisProperties.setProperty("http.proxyHost", proxyHost);
//AxisProperties.setProperty("http.proxyPort", proxyPort);
//AxisProperties.setProperty("http.proxyUser", proxyUser);
//AxisProperties.setProperty("http.proxyPassword",proxyPassword);
String sessionId = context.FRWK_sessionId;
int taskId = Integer.parseInt(context.FRWK_taskId);
boolean queueIfNecessary = true;
String [][] contextParams = null;
administratorWebService.scheduleTaskForInstantRun(sessionId, taskId, queueIfNecessary, contextParams);