Example #1
0
        private void iterateLast()
        {
            iterateRead(4);
            JDFPhaseTime pt = iterNode.getAuditPool().setPhase(EnumNodeStatus.InProgress, "Final Iteration Ongoing - final output", null, null);

            pt.setStart(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 4000000));
            pt.setEnd(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 4100000));
            pt.appendEmployee().setPersonalID("Employee 1");
            pt.appendDevice().setDeviceID("Device 1");
            iterNode.setStatus(EnumNodeStatus.Completed);
            iterDoc.write2File(getIteration(5), 2, false);
        }
Example #2
0
        private void iterateSecond()
        {
            iterateRead(1);
            JDFPhaseTime pt = iterNode.getAuditPool().setPhase(EnumNodeStatus.InProgress, "First Approval Ongoing", null, null);

            pt.setStart(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 1000000));
            pt.setEnd(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 1100000));
            pt.appendEmployee().setPersonalID("Employee 2");
            pt.appendDevice().setDeviceID("Approval Device 1");
            iterRuli.setResStatus(EnumResStatus.Rejected, false);
            iterNode.setStatus(EnumNodeStatus.Suspended);
            iterNode.setAttribute("StatusDetails", ITERATION_PAUSED);
            iterDoc.write2File(getIteration(2), 2, false);
        }
Example #3
0
        private void iterateForth()
        {
            iterateRead(3);
            JDFPhaseTime pt = iterNode.getAuditPool().setPhase(EnumNodeStatus.InProgress, "Second Approval Ongoing", null, null);

            pt.setStart(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 3000000));
            pt.setEnd(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 3100000));
            pt.appendEmployee().setPersonalID("Employee 3");
            pt.appendDevice().setDeviceID("Approval Device 1");
            iterRuli.setResStatus(EnumResStatus.Available, false);
            iterNode.setStatus(EnumNodeStatus.Suspended);
            iterNode.setAttribute("StatusDetails", ITERATION_PAUSED);
            iterAppSuccess.setResStatus(EnumResStatus.Available, true);
            iterDoc.write2File(getIteration(4), 2, false);
        }
Example #4
0
        private void iterateThird()
        {
            iterateRead(2);
            JDFPhaseTime pt = iterNode.getAuditPool().setPhase(EnumNodeStatus.InProgress, "Second Iteration Ongoing", null, null);

            pt.setStart(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 2000000));
            pt.setEnd(new JDFDate(JDFDate.ToMillisecs(DateTime.Now) + 2100000));
            pt.appendEmployee().setPersonalID("Employee 1");
            pt.appendDevice().setDeviceID("Device 2");
            iterRuli.setResStatus(EnumResStatus.Unavailable, false);
            JDFResourceAudit ra = iterNode.cloneResourceToModify(iterNode.getLink(iterRuli, null));

            iterRuli = (JDFRunList)ra.getNewLink().getTarget();
            iterRuli.setResStatus(EnumResStatus.Draft, false);
            iterRuli.setFileURL(StringUtil.uncToUrl("C:\\local\\MyUpdatedInOutput.pdf", false));

            iterNode.setStatus(EnumNodeStatus.Suspended);
            iterNode.setAttribute("StatusDetails", ITERATION_PAUSED);
            iterDoc.write2File(getIteration(3), 2, false);
        }