JDF Output File

274 views
Skip to first unread message

Kvasir

unread,
Mar 19, 2015, 12:15:26 PM3/19/15
to xmpie...@googlegroups.com
Hi All,

Is it possible to change the job name that is exported via JDF into FFCore?  Right now we have something like the following
  • <JDF JobID="Job-TEMPLATENAME-OrderNumber-JobNumber-RandomNumber" DescriptiveName="Job-TEMPLATENAME-OrderNumber-JobNumber-RandomNumber"
We want to eliminate the "Job-" portion and the "-RandomNumber" portion of this.  However, when looking in the JDF Trigger assembly I see the following
  • <JDF JobID="{$JDFJob_ID}" DescriptiveName="{$JDFJob_ID}"
The JDFJob_ID links back to this
  • <xsl:variable  name="JDFJob_ID" select="//JobID"/>
Where can one change what is held in this variable source "JobID"?  I've looked through the help docs and cannot find a reference to it, neither in the CIP4 JDFv1.5 manual.  Is it possible to change this?

Thanks

couch

unread,
Mar 19, 2015, 4:49:00 PM3/19/15
to xmpie...@googlegroups.com
There are three fields in the JDF associated with the way FFC names the output file:
<xsl:variable  name="JDFJob_ID" select="//JobID"/>
<xsl:variable  name="JobPartID" select="JDF_XSLHelper:CreateJDFJobID('JP',//Sqls/OrderProduct/Row/OrderProductID)"/>
<CustomerInfo Class="Parameter"   Status="Available" ID="CI1" CustomerJobName="{//Sqls/StoreName/Row/StoreName}" CustomerOrderID="{$JDFJob_ID}" >

You change the values by using Mesage Template SQL. EG:
<xsl:variable  name="JDFJob_ID" select="//Sqls/Order/Row/EncryptedOrderId"/>

Of course you need to make sure the fields you want are in the query - ie in the case above, you need to make sure EncryptedOrderId is a field in the Order query for the JDF message template id.

Kvasir

unread,
Mar 20, 2015, 8:41:26 AM3/20/15
to xmpie...@googlegroups.com
I'm looking for the source of that "JobID".  The entire Name that FFC is using comes from that.  Like I said, I'm looking to only remove the random number sequence at the end and the "Job-" prefix that gets adhered to each job.  Our Operators prefer that.  I've argued the use of FFC and queues... but you know how operators can be :P

I understand what you're getting at with using the SQL references, but wouldn't I lose the Job Number and Order number from the job name in that instance?  Or is it possible for me to amend that within the select statement that JobID currently resides in?

couch

unread,
Mar 22, 2015, 8:29:05 PM3/22/15
to xmpie...@googlegroups.com
So, replace it with something else.

old: <xsl:variable  name="JDFJob_ID" select="//JobID"/>
new: <xsl:variable  name="JDFJob_ID" select="//Sqls/StoreName/Row/StoreName"/>

If you don't want storename, put some other field in there.

If you want it empty, remove the select="" parameter: <xsl:variable  name="JDFJob_ID" />

Kvasir

unread,
Mar 23, 2015, 3:02:30 PM3/23/15
to xmpie...@googlegroups.com
I think we're heading in two different directions here.  I'm looking to modify the //JobID"/ portion of this and looking for the source of that.  I was able to remove the store name, but now I want to remove the prefix of 'Job-' and the Suffix of the "JP" number.

Kvasir

unread,
Mar 23, 2015, 3:21:29 PM3/23/15
to xmpie...@googlegroups.com
Or rather than my last reply, would the proper line be 

<xsl:variable  Name="JDFJob_ID" select="//Sqls/StoreName/Row/OutputFileName"/>



On Sunday, March 22, 2015 at 8:29:05 PM UTC-4, couch wrote:

couch

unread,
Mar 23, 2015, 5:09:25 PM3/23/15
to xmpie...@googlegroups.com
The JDF Jobid is set programatically. There is no way to change it. There is an way to use a different value as I have explained.

Kvasir

unread,
Mar 31, 2015, 3:42:22 PM3/31/15
to xmpie...@googlegroups.com
So if I wanted to get "Job Number-Order Number" or some order there-of... I could set it up to be the following?

<xsl:variable Name="JDFJob_ID" select="(//Sqls/OrderProduct/Row/OrderProductID,'-', //Sqls/OrderProduct/Row/OrderID"/>
Reply all
Reply to author
Forward
0 new messages