/// /// * <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 testSetPhase() { JDFPhaseTime p1 = myAuditPool.setPhase(EnumNodeStatus.Setup, null, null, null); Assert.IsNotNull(p1); Assert.AreEqual(1, myAuditPool.getChildElementVector(ElementName.PHASETIME, null, null, true, 0, true).Count); JDFPhaseTime p2 = myAuditPool.setPhase(EnumNodeStatus.Setup, "foobar", null, null); Assert.IsNotNull(p2); Assert.AreNotEqual(p1, p2); Assert.AreEqual(2, myAuditPool.getChildElementVector(ElementName.PHASETIME, null, null, true, 0, true).Count); p2 = myAuditPool.setPhase(EnumNodeStatus.Setup, "foobar", null, null); Assert.IsNotNull(p2); Assert.AreEqual(2, myAuditPool.getChildElementVector(ElementName.PHASETIME, null, null, true, 0, true).Count); p2 = myAuditPool.setPhase(EnumNodeStatus.Ready, "foobar", null, null); Assert.IsNotNull(p2); Assert.AreEqual(3, myAuditPool.getChildElementVector(ElementName.PHASETIME, null, null, true, 0, true).Count); p1 = myAuditPool.setPhase(EnumNodeStatus.InProgress, null, null, null); Assert.IsNotNull(p1); Assert.AreEqual(4, myAuditPool.getChildElementVector(ElementName.PHASETIME, null, null, true, 0, true).Count); p2 = myAuditPool.setPhase(EnumNodeStatus.InProgress, null, null, null); Assert.IsNotNull(p2); Assert.AreEqual(p1, p2); Assert.AreEqual(4, myAuditPool.getChildElementVector(ElementName.PHASETIME, null, null, true, 0, true).Count); VElement vEmpl = new VElement(); JDFEmployee emp = (JDFEmployee) new JDFDoc(ElementName.EMPLOYEE).getRoot(); emp.setPersonalID("p1"); vEmpl.Add(emp); p2 = myAuditPool.setPhase(EnumNodeStatus.InProgress, null, null, vEmpl); Assert.IsNotNull(p2); Assert.AreNotEqual(p1, p2); Assert.IsTrue(p2.getEmployee(0).isEqual(emp)); emp.setPersonalID("p2"); p2 = myAuditPool.setPhase(EnumNodeStatus.InProgress, null, null, vEmpl); Assert.IsNotNull(p2); Assert.AreNotEqual(p1, p2); Assert.AreEqual("p2", p2.getEmployee(0).getPersonalID()); }
public override void setUp() { d = creatXMDoc(); n = d.getJDFRoot(); xpMedia = (JDFExposedMedia)n.getMatchingResource("ExposedMedia", null, null, 0); JDFResourceLink rlxp = n.getLink(xpMedia, null); rlxp.setAmount(100, null); sc = new StatusCounter(n, null, null); deviceID = "Status-counter-TestDevice"; sc.setDeviceID(deviceID); resID = xpMedia.getID(); sc.setFirstRefID(resID); sc.addPhase(resID, 200, 0, true); employee = (JDFEmployee) new JDFDoc("Employee").getRoot(); employee.setPersonalID("P1"); base.setUp(); }