on 10-14-2008 3:34 PM
I tried something like
String query_currently_running = "Select * from ci_infoobjects where si_instance = 1 and si_schedule_status = " + ScheduleStatus.RUNNING;
IInfoObjects results_currently_running = my_info_store.query(query_currently_running);
IInfoObject info_currently_running = (IInfoObject) results_currently_running.get(0);
ISchedulingInfo scheduling = info_currently_running.getSchedulingInfo();
scheduling.setFlags(ScheduleFlags.PAUSE);
but
(scheduling == null)
is always true.
What am i missing?
Does someone have a code snippet under BOEXIR2 for me?
I searched the tutorials and sample code, but did not find a solution...
I'd first recommend running Query Builder (found on the Admin Launchpad) with the InfoStore query you're running, to see if you're getting the document object that you're expecting. I'm assuming that you're not.
Also - there's a more fundamental issue with what you're trying to accomplish.
A Running document has been passed to the Job Server, and you've got no control over the Job Server Child Process, to Pause it.
You can Pause a Scheduled Job before it's sent to the Job Server, and that will stop it from going to the Job Server - i.e., before it goes into Running state.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.