Loading

QueryResource

The JDF manager can send a QueryResource to request the Media and UsageCounters resources.

  • The media catalogue and the supported usage counters are returned, when:

    ./ResourceQuParams/@Classes contains "Consumable" or no ResourceQuParams are specified.

  • Only the media catalogue is returned, when:

    ./ResourceQuParams/@ResourceName="Media"

  • Only the supported usage counters are returned, when:

    ./ResourceQuParams/@ResourceName="UsageCounter"

For each media in the media catalogue, a unique Media node is added to the ResourceInfo node. The ResourceInfo nodes are added to the Response node.

The UsageCounters are added to a ResourceInfo node. The ResourceInfo nodes are added to the Response node. The UsageCounters depend on the colour capabilities of the printer.

The supported UsageCounters depend on the Accounting License and on the number of ink/toner colours.

If the media catalogue is empty and/or there are no supported usage counters, error code 108 is returned.

Syntax

XPath: /JMF/Command[@Type=”QueryResource”]/ResourceQuParams

Example 1: request the media catalogue and the supported usage counters

<JMF xmlns="http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Query Type="Resource" xsi:type="QueryResource">

<ResourceQuParams Classes="Consumable"/>

</Query>

</JMF>

Example 2: Request the media catalogue only containing media that are assigned to a tray by using @Scope="Present" and ResourceName="Media"

<JMF xmlns="http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Query Type="Resource" xsi:type="QueryResource">

<ResourceQuParams Classes="Consumable" ResourceName="Media" Scope="Present"/>

</Query>

</JMF>

Download the examples

Click https://supportfiles.oce.com/trm/TRM-Examples-Mk6.2.zip to download these examples. You can edit and use these examples to create your messages.