Exemple #1
0
        ///
        ///	 * <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);
        }
Exemple #2
0
        public virtual void testGetLinkRootJMF()
        {
            JDFDoc d   = new JDFDoc("JMF");
            JDFJMF jmf = d.getJMFRoot();

            jmf.setSenderID("Elvis");
            JDFCommand c = jmf.appendCommand();

            c.setType("PipePull");
            JDFPipeParams pp = c.appendPipeParams();

            pp.setAttribute(AttributeName.PIPEID, "foo", null);
            JDFRunList      ruli = (JDFRunList)pp.appendResource(ElementName.RUNLIST);
            JDFResourceLink rl   = pp.appendResourceLink("RunListLink", true);

            rl.setrRef(ruli.getID());
            Assert.IsTrue(jmf.isValid(EnumValidationLevel.Complete), "valid param");
            Assert.AreEqual(rl.getTarget(), ruli);
        }
Exemple #3
0
        public virtual void testPerfectingJMF()
        {
            JDFElement.setLongID(false);
            JDFJMF jmfStatus = JDFJMF.createJMF(EnumFamily.Signal, EnumType.Status);

            jmfStatus.setSenderID("thePress");
            JDFSignal     sig = jmfStatus.getSignal(0);
            JDFDeviceInfo di  = sig.appendDeviceInfo();

            di.setDeviceStatus(EnumDeviceStatus.Running);

            JDFJobPhase jp = di.appendJobPhase();

            jp.setJobID("jobID");
            jp.setJobPartID("jobPartID");
            jp.setStatus(EnumNodeStatus.InProgress);

            JDFModuleStatus ms = jp.appendModuleStatus();

            ms.setModuleID("ID_Perfecting_1");
            ms.setModuleType("PerfectingModule");
            ms.setDeviceStatus(EnumDeviceStatus.Idle);

            ms = jp.appendModuleStatus();
            ms.setModuleType("PrintModule");
            ms.setDeviceStatus(EnumDeviceStatus.Running);
            ms.setModuleIndex(new JDFIntegerRangeList("0 1 3 4"));

            ms = jp.appendModuleStatus();
            ms.setModuleType("PrintModule");
            ms.setDeviceStatus(EnumDeviceStatus.Idle);
            ms.setModuleIndex(new JDFIntegerRangeList("2"));

            jmfStatus.getOwnerDocument_JDFElement().write2File(sm_dirTestDataTemp + "StatusPerfecting.jmf", 2, false);
            Assert.IsTrue(jmfStatus.isValid(EnumValidationLevel.Complete), "known defect - wait for autoclass fix");
        }