Hi all,
ineed to configure the ReturnJmf Urlinto the "HP_Digital_Front_End_JDF_Control" module, but when i try to edit with switch script editor, it ask me for a password. I've analized the file, but it seems to be a zip archive,poassword protected.
I think could be this the correct way to change this URLinto *.mjm files: ReturnJMF="http://YOURHOSTNAME:9090/jmf" obtained from "HP_Digital_Front_End_JDF_Control" module for SWITCH.
Please help me.
Thank you,
F.
HP_Digital_Front_End_JDF_Control - sscript editing
Re: HP_Digital_Front_End_JDF_Control - sscript editing
Is there a specific reason you use MJM files? JDF is more modifiable from within scripts. That said, you need to send a JMF to your DFE, which includes the ReturnJMF URL.
I've been using this, modified, script from crossroads to create a JMF and send it to HP Production Center, I'm not 100% sure, but I bet submission to the DFE will be exactly the same.
I believe this was my first touch with Switch scripting, so the modifications can probably be done better at this time.
job.getVariableAsString("[Job.Name]")
I've been using this, modified, script from crossroads to create a JMF and send it to HP Production Center, I'm not 100% sure, but I bet submission to the DFE will be exactly the same.
I believe this was my first touch with Switch scripting, so the modifications can probably be done better at this time.
job.getVariableAsString("[Job.Name]")

Code: Select all
function jobArrived( s : Switch, job : Job )
{
/*
<?xml version="1.0" encoding="UTF-8"?>
<JMF xmlns="http://www.CIP4.org/JDFSchema_1_1" SenderID="Switch Send JMF" TimeStamp="2015-05-18T13:51:16" Version="1.4">
<Command ID="qid1431949876717" Type="SubmitQueueEntry">
<QueueSubmissionParams URL="http://appl01:8083/jdf/Switch/Switch.jdf" ReturnJMF="http://appl01:8083/jmf"/>
</Command>
</JMF>
*/
//Create JMF XML
jmfTempLoc = s.createPathWithName(job.getVariableAsString("[Job.NameProper]") + ".jmf");
var jmfDoc = new Document();
//Create map for various namespaces
var jdfMap = jmfDoc.createEmptyMap();
jdfMap.put("","http://www.CIP4.org/JDFSchema_1_1");
var jmfElem = jmfDoc.createElement("JMF", jdfMap);
jmfDoc.setDocumentElement(jmfElem);
jmfElem.addAttribute("xmlns", jdfMap, "http://www.CIP4.org/JDFSchema_1_1");
jmfElem.addAttribute("SenderID", jdfMap, "Switch Send JMF");
var time = new Date();
jmfElem.addAttribute("TimeStamp", jdfMap, time.toString());
jmfElem.addAttribute("Version", jdfMap, "1.4");
var queryElem = jmfDoc.createElement("Command");
var queryID = "qid" + time.getTime().toString();
queryElem.addAttribute("ID", jdfMap, queryID);
jmfElem.appendChild(queryElem);
queryElem.addAttribute("Type", jdfMap, "SubmitQueueEntry");
var statusQuParamsElem = jmfDoc.createElement("QueueSubmissionParams");
queryElem.appendChild(statusQuParamsElem);
statusQuParamsElem.addAttribute("URL", null,"http://appl01:8083/jdf/Switch/" + job.getVariableAsString("[Job.Name]"));
statusQuParamsElem.addAttribute("ReturnJMF", null, "http://appl01:8083/jmf");
jmfDoc.save(jmfTempLoc);
s.copy(job.getPath(), "\\\\appl01\\JDF\\JDFPickup\\Switch\\" + job.getVariableAsString("[Job.Name]"));
var jobJMF = s.createNewJob();
//Setup http method for sending JMF message and collecting response
var httpClient = new HTTP();
httpClient.url = "http://hpprocenter:8080/jmf/HPProCenter";
httpClient.setAttachedFile(jmfTempLoc);
var responsePath = jobJMF.createPathWithName(job.getVariableAsString("[Job.NameProper]") + ".xml");
httpClient.setLocalFilePath(responsePath);
httpClient.addHeader("Content-Type", "application/vnd.cip4-jmf+xml");
httpClient.addHeader("charset", "UTF-8");
httpClient.post();
while (!httpClient.waitForFinished( 1 )) {
//no need to sleep here, the 1 in the waitForFinished function sets the delay time (in seconds)
//You could send log updates here to show progress if needed or check against a timeout value.
}
if (httpClient.finishedStatus == HTTP.Ok){
s.log(1, "HTTP response was: " + httpClient.statusDescription + " with additional messages: " + httpClient.lastError);
jobJMF.sendToData(1, responsePath);
job.sendToData(1, job.getPath());
job.sendToData(1, jmfTempLoc);
}
else {
s.log(2, "Issue with JMF query. HTTP Status = " + httpClient.finishedStatus + " Last Error = " + httpClient.lastError );
jobJMF.sendToData(3, responsePath);
job.sendToData(3, job.getPath());
job.sendToData(3, jmfTempLoc);
}
// job.sendToSingle(jmfTempLoc);
// job.sendToSingle(job.getPath());
}
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter
Re: HP_Digital_Front_End_JDF_Control - sscript editing
Hi,
i prefere to use .mjm files because is more comfortable to copy and move to one dfe or towards another one. I use it into another flow, to choose INDIGO EPM or CMYK separation mode, an is also useful to have instantly the sumbitting status of the job, and a real time notification of the cid@ of the submitted jom in one single submission.
So i need to collect the dfe sumbissions answers to my customized workflow application, in order to monitorate the job status.
But, i don't know how customize that ReturnJmf Url into HP dfe JDF control module for switch flow.
There is nobody use that module?
F
i prefere to use .mjm files because is more comfortable to copy and move to one dfe or towards another one. I use it into another flow, to choose INDIGO EPM or CMYK separation mode, an is also useful to have instantly the sumbitting status of the job, and a real time notification of the cid@ of the submitted jom in one single submission.
So i need to collect the dfe sumbissions answers to my customized workflow application, in order to monitorate the job status.
But, i don't know how customize that ReturnJmf Url into HP dfe JDF control module for switch flow.
There is nobody use that module?
F
Re: HP_Digital_Front_End_JDF_Control - sscript editing
I just looked into the SDK documentation again, but I can't find any reference you can include returnJMF into a .mjm package. That sounds logical to me, since you can't include that with JDF, and the best I know about .mjm it is a jdf+pdf combined.
Can you tell me where you found this in the documentation, I guess I look over it, maybe then I'll get a idea to help.
Can you tell me where you found this in the documentation, I guess I look over it, maybe then I'll get a idea to help.
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter
Re: HP_Digital_Front_End_JDF_Control - sscript editing
Sorry for the delay in responding I was at DRUPA.
The latest beta of the JDF configurator allows you to set the ReturnJMF URL in the properties settings when output format is set to MIME. If you send me a PM I'll respond with an FTP to the Beta configurator.
Just to clarify:
a .mjm file includes a JMF SubmitQueueEntry, a JDF ticket and one or more asset files,
a .mjd file does not include the JMF SubmitQueueEntry, but this format is not currently supported by the configurator.
The latest beta of the JDF configurator allows you to set the ReturnJMF URL in the properties settings when output format is set to MIME. If you send me a PM I'll respond with an FTP to the Beta configurator.
Just to clarify:
a .mjm file includes a JMF SubmitQueueEntry, a JDF ticket and one or more asset files,
a .mjd file does not include the JMF SubmitQueueEntry, but this format is not currently supported by the configurator.
Re: HP_Digital_Front_End_JDF_Control - sscript editing
OK, i'm using .mjm files, and i need to customize the "ReturnJMF URL" in order to notify to my workflow management server, the status of the submitted mime ticket. So in a second time i can submit a SubmitQueueEntry to the dfe, in order to manage the previously sumbitted job.cstevens wrote:Sorry for the delay in responding I was at DRUPA.
The latest beta of the JDF configurator allows you to set the ReturnJMF URL in the properties settings when output format is set to MIME. If you send me a PM I'll respond with an FTP to the Beta configurator.
Just to clarify:
a .mjm file includes a JMF SubmitQueueEntry, a JDF ticket and one or more asset files,
a .mjd file does not include the JMF SubmitQueueEntry, but this format is not currently supported by the configurator.
I'm creating so the interface, to subsitute the SmartStream Pro interface via our custom external management web application, and integrate 100% the INDIGO area. Is our big project, and finally we are at leas at 70% overall status, but we need some extra detail.
I cannot write you PM because was disabled for me. But you can write me a mail to:
francesco.marra@pressup.it
Thank you in advance,
f.