ArielRauch wrote: 1. What do I have to query in order to know whether a job was printed completely
You can query the status of a specific job or set of jobs like this
<?xml version="1.0" encoding="UTF-8"?>
<JMF xmlns="
http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" SenderID="MIS System" TimeStamp="2006-04-19T16:48:29-07:00" Version="1.2">
<Query ID="misb48e0ea2409e5090" Type="QueueStatus" xsi:type="QueryQueueStatus" />
</JMF>
An example response:
<?xml version="1.0" encoding="UTF-8"?>
<JMF xmlns="
http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" SenderID="dfe" TimeStamp="2008-08-26T15:57:09-07:00" Version="1.2">
<!--Generated by the CIP4 Java open source JDF Library version : CIP4 JDF Writer Java 1.3 BLD 25-->
<Response ID="RALCES_QMPWTX_10_20080826155229" ReturnCode="0" Type="QueueStatus" refID="ALCES_QMPWTX_10_20080826155229" xsi:type="ResponseQueueStatus">
<Queue DeviceID="dfe" QueueSize="5" Status="Running">
<QueueEntry DescriptiveName="OldsMobile.psm.PPMLJob Number 1" DeviceID="dfe" JobID="Default" Priority="50" QueueEntryID="0f62919520080813080642390" Status="Running" SubmissionTime="2008-08-13T08:06:42-07:00">
<JobPhase DescriptiveName="Printing" QueueEntryID="0f62919520080813080642390" Status="InProgress" StatusDetails="Loaded on press: jr-cygnus as job: 159" />
<Comment Name="JobSpec">4colors_template</Comment>
</QueueEntry>
<QueueEntry DescriptiveName="Screening.ps" DeviceID="dfe" JobID="Default" Priority="50" QueueEntryID="0f62919520080820161450281" Status="Running" SubmissionTime="2008-08-20T16:14:50-07:00">
<JobPhase DescriptiveName="Printing" QueueEntryID="0f62919520080820161450281" Status="InProgress" StatusDetails="Loaded on press: DFESIM05 as job: 1048671" />
<Comment Name="JobSpec">4colors_template</Comment>
</QueueEntry>
<QueueEntry DescriptiveName="Virtuos V5 Model Brochure #1" DeviceID="dfe" JobID="1 [ALCES_9E9BWD_0_20080818150716]" Priority="50" QueueEntryID="0f62919520080818151149609" Status="Running" SubmissionTime="2008-08-18T15:11:49-07:00">
<JobPhase DescriptiveName="Download" QueueEntryID="0f62919520080818151149609" Status="Aborted" StatusDetails="Cache Hit: 0 of 1" />
<Comment Name="JobSpec">4colors_template</Comment>
</QueueEntry>
<QueueEntry DescriptiveName="id-87_cps-1_.pdf" DeviceID="dfe" JobID="Default" Priority="50" QueueEntryID="0f62919520080813123725796" Status="Running" SubmissionTime="2008-08-13T12:37:25-07:00">
<JobPhase DescriptiveName="Printing" QueueEntryID="0f62919520080813123725796" Status="InProgress" StatusDetails="Loaded on press: DFESIM05 as job: 1048637" />
<Comment Name="JobSpec">4colors_template</Comment>
</QueueEntry>
<QueueEntry DescriptiveName="varnish.eps" DeviceID="dfe" JobID="Default" Priority="50" QueueEntryID="0f62919520080813093107968" Status="Running" SubmissionTime="2008-08-13T09:31:08-07:00">
<JobPhase DescriptiveName="Printing" QueueEntryID="0f62919520080813093107968" Status="InProgress" StatusDetails="" />
<Comment Name="JobSpec">4colors_template</Comment>
</QueueEntry>
<QueueEntry DescriptiveName="SuperJob" DeviceID="dfe" EndTime="2008-08-21T13:35:05-07:00" JobID="837 [ALCES_F15UHV_20_20080820160741]" Priority="100" QueueEntryID="0f62919520080820161215453" Status="Completed" SubmissionTime="2008-08-20T16:12:15-07:00">
<Comment Name="JobSpec">4colors_template</Comment>
</QueueEntry>
</Queue>
</Response>
</JMF>
You can read more about that in the JDF_IDP_SDK under the document idp_worker_dev_guide.pdf, section "The Application monitors the press jobs by querying their status".
ArielRauch wrote: 2. There is not always an immediate response (busy) - what is the best approach to cop with it.
You can subscribe instead of hitting it for an immediate answer. A subscription will return updates whenever some status is changed. I haven't used this yet but that's what it's there for. Look in the document I mentioned above under the section "The application monitors the press jobs by subscribing for notification".