Hi,
After being able to send jmf request to the dfe and to receive response I would like to understand better how I can get really required information:
First I send a file to the dfe, then I would like to check whether it was printed properly in order to know when to process the flow.
My question:
There is the dfe (generally: HPPRO1-SM1) and the presses (we have two)
I can query the dfe or the presses.
1. What do I have to query in order to know whether a job was printed completely
2. There is not always an immediate response (busy) - what is the best approach to cop with it.
Thanks
Ariel
HP Indigo - talk to me
HP Indigo - talk to me
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".
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".
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
-
- Advanced member
- Posts: 230
- Joined: Thu Aug 07, 2014 10:04 am
HP Indigo - talk to me
do I query the dfe or the press directly? (/prodflow/jmf/dfe or /prodflow/jmf/)
Where should I look for jobs that are printed completely?
How are the job status related to the different queues?
Where should I look for jobs that are printed completely?
How are the job status related to the different queues?
HP Indigo - talk to me
ArielRauch wrote: do I query the dfe or the press directly? (/prodflow/jmf/dfe or /prodflow/jmf/)
That's really up to you. I do both. Sometimes I like the convenience of getting data from one source (also, its nice because if a press is down I still get a response). There's newer JMF software on the DFE so more calls are available but many don't work with my older press. Going through the DFE could possibly add a little bit of time to your call, so you need to balance those things.
ArielRauch wrote: Where should I look for jobs that are printed completely?
When the QueueEntry is completed I think:
Status="Completed" SubmissionTime="2008-08-20T16:12:15-07:00">
Some of the calls return JobProgress but for me, it's always 0. I don't know why...
ArielRauch wrote: How are the job status related to the different queues?
A queue is a selection of jobs for printing. When I do the calls now, it returns everything but I think there's a way to specify a segment of those (perhaps even a single job). The status is -- well, the status of the job (aborted, in progress, printing, completed)
That's really up to you. I do both. Sometimes I like the convenience of getting data from one source (also, its nice because if a press is down I still get a response). There's newer JMF software on the DFE so more calls are available but many don't work with my older press. Going through the DFE could possibly add a little bit of time to your call, so you need to balance those things.
ArielRauch wrote: Where should I look for jobs that are printed completely?
When the QueueEntry is completed I think:
Status="Completed" SubmissionTime="2008-08-20T16:12:15-07:00">
Some of the calls return JobProgress but for me, it's always 0. I don't know why...
ArielRauch wrote: How are the job status related to the different queues?
A queue is a selection of jobs for printing. When I do the calls now, it returns everything but I think there's a way to specify a segment of those (perhaps even a single job). The status is -- well, the status of the job (aborted, in progress, printing, completed)
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix