/// /// * <param name="icsLevel"> </param> /// protected internal override JDFNodeInfo initNodeInfo() { JDFNodeInfo ni = base.initNodeInfo(); if (theParentNode == null) { JDFEmployee emp = ni.appendEmployee(); emp.setPersonalID("personalID1"); emp.setRoles(new VString("CSR", null)); if (returnURL != null) { ni.setTargetRoute(returnURL); } if (jmfICSLevel >= 1 && misICSLevel >= 2 || misURL != null) { JDFJMF jmf = ni.appendJMF(); jmf.setSenderID("MISGTSender"); JDFQuery q = jmf.appendQuery(EnumType.Status); q.setID(q.getID() + (System.DateTime.Now.Ticks - 621355968000000000) / 10000 % 100000); //ORIGINAL LINE: final JDFStatusQuParams statusQuParams = q.appendStatusQuParams(); JDFStatusQuParams statusQuParams = q.appendStatusQuParams(); statusQuParams.setJobID(theNode.getJobID(true)); statusQuParams.setJobPartID(theNode.getJobPartID(false)); statusQuParams.setJobDetails(EnumJobDetails.Brief); //ORIGINAL LINE: final JDFSubscription subscription = q.appendSubscription(); JDFSubscription subscription = q.appendSubscription(); subscription.setRepeatTime(600); subscription.setURL(misURL == null ? "http://MIS.printer.com/JMFSignal" : misURL); } } return(ni); }
public virtual void testContentData() { d = new JDFDoc("JDF"); n = d.getJDFRoot(); n.setType(EnumType.Approval); JDFRunList rl = (JDFRunList)n.addResource(ElementName.RUNLIST, EnumUsage.Input); pl = rl.appendPageList(); pl.makeRootResource("PageList", null, true); cl = pl.appendContentList(); cl.makeRootResource("ContentList", null, true); JDFContentData cd0 = cl.appendContentData(); cd0.setAttribute(AttributeName.CONTENTLISTINDEX, "1 2 3"); KElement book = cd0.appendElement("ContentMetaData"); book.setAttribute("ISBN", "0123456789"); JDFComment abstrakt = (JDFComment)book.appendElement("Comment"); abstrakt.setName("Abstract"); abstrakt.setText("Abstract of the book\nin english"); JDFEmployee editor = (JDFEmployee)book.appendElement(ElementName.EMPLOYEE); editor.appendPerson().setFamilyName("authorName"); editor.setRoles(new VString("Editor", null)); book.setAttribute("Title", "book thing"); int p = 1; for (int i = 1; i < 4; i++) { JDFContentData cd = cl.appendContentData(); cd.setAttribute("ID", "CD_" + i); KElement chap = cd.appendElement("ContentMetaData"); chap.setAttribute("Title", "Chapter " + i); JDFEmployee author = (JDFEmployee)chap.appendElement(ElementName.EMPLOYEE); author.appendPerson().setFamilyName("authorName" + i); author.setRoles(new VString("Author", null)); JDFPageData pd = pl.appendPageData(); JDFIntegerRangeList integerRangeList = new JDFIntegerRangeList(); integerRangeList.Append(p, p + i); p += i + 1; pd.setAttribute("PageIndex", integerRangeList.ToString()); JDFPageElement pe = pd.appendPageElement(); pe.setAttribute("ContentDataRefs", cd.getID()); } pl.setXMLComment("Note that multiple page elements may but need not be specified\nit is also possible to reference only on pageEleemnt that spans the entire book"); d.write2File(sm_dirTestDataTemp + "ContentMetaData.jdf", 2, false); }