cancel
Showing results for 
Search instead for 
Did you mean: 

Seeking for Code Snippet: Pause and Resume a Web Intelligence Document

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (1)

Answers (1)

ted_ueda
Employee
Employee
0 Kudos

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