Package net.sourceforge.processdash.tool.export.mgr

Examples of net.sourceforge.processdash.tool.export.mgr.CompletionStatus$Event


      Event[] events = history.getLatestPage();

      System.out.println("Events In the latestPage are : ");
      for (int i = 0; i < events.length; i++)
      {
        Event anEvent = events[i];
        System.out.println("Event: " + anEvent.getClass().getName()
            + "  FullFormattedMessage: "
            + anEvent.getFullFormattedMessage());
      }
    } catch (Exception e)
    {
      System.out.println("Caught Exception : " + " Name : "
          + e.getClass().getName() + " Message : " + e.getMessage()
View Full Code Here


                {
                    ArrayOfEvent aoe = (ArrayOfEvent) value;
                    Event[] evts = aoe.getEvent();
                    for (int evtID = 0; evtID < evts.length; ++evtID)
                    {
                        Event anEvent = evts[evtID];
                        System.out.println("\n----------" + "\n Event ID: "
                                + anEvent.getKey() + "\n Event: "
                                + anEvent.getClass().getName()
                                + "\n FullFormattedMessage: "
                                + anEvent.getFullFormattedMessage()
                                + "\n VM Reference: "
                                + anEvent.getVm().getVm().get_value()
                                + "\n----------\n");
                    }
                } else if (value instanceof VmEvent)
                {
                    VmEvent anEvent = (VmEvent) value;
                    System.out.println("\n----------" + "\n Event ID: "
                            + anEvent.getKey() + "\n Event: "
                            + anEvent.getClass().getName()
                            + "\n FullFormattedMessage: "
                            + anEvent.getFullFormattedMessage()
                            + "\n VM Reference: "
                            + anEvent.getVm().getVm().get_value()
                            + "\n----------\n");
                }
                System.out.println("===============");
            }
        }
View Full Code Here

        evtMgr.createCollectorForEvents(eventFilter);
      Event[] events = ehc.getLatestPage();

      for (int i = 0; i < events.length; i++)
      {
        Event anEvent = events[i];
        System.out.println("Event: " +
            anEvent.getClass().getName());
      }
    }
    si.getServerConnection().logout();
  }
View Full Code Here

    ServiceInstance si = new ServiceInstance(
        new URL(args[0]), args[1], args[2], true);

    // get the latest event and print it out
    EventManager evtMgr = si.getEventManager();
    Event latestEvent = evtMgr.getLatestEvent();
    printEvent(latestEvent);

    // create a filter spec for querying events
    EventFilterSpec efs = new EventFilterSpec();
    // limit to only error and warning
View Full Code Here

    public static void exportData(String prefix) {
        exportDataForPrefix(prefix);
    }
    public static CompletionStatus exportDataForPrefix(String prefix) {
        CompletionStatus result = ExportManager.getInstance()
                .exportDataForPrefix(prefix);

        if (result != null && result.getException() != null)
            logger.log(Level.WARNING, "Error exporting data for '" + prefix
                    + "'", result.getException());

        return result;
    }
View Full Code Here

            exp.dumpDefects(ctx.getHierarchy(), filter, out);

            out.close();
            outWriter = null;
           
            completionStatus = new CompletionStatus(CompletionStatus.SUCCESS,
                    dest, null);
           
        } catch (Exception ioe) {
            completionStatus = new CompletionStatus(CompletionStatus.ERROR,
                    dest, ioe);
            System.out.println("IOException: " + ioe);
            tryCancel();
        }
View Full Code Here

    }

    public void run() {
        try {
            doExport();
            completionStatus = new CompletionStatus(CompletionStatus.SUCCESS,
                    dest.getTarget(), null);
        } catch (Exception ioe) {
            completionStatus = new CompletionStatus(CompletionStatus.ERROR,
                    dest.getTarget(), ioe);
            ioe.printStackTrace();
            tryCancel();
        }
       
View Full Code Here


    /** Export the data, and tell the user the results.
     */
    private void run() {
        CompletionStatus result = null;
        if (parameters.containsKey("all"))
            DashController.exportAllData();
        else
            result = DashController.exportDataForPrefix(getPrefix());

        if (result == null || CompletionStatus.SUCCESS.equals(result.getStatus())) {
            interpOut("<HTML><HEAD><TITLE>${ExportComplete}</TITLE></HEAD>\n"
                    + "<BODY><H1>${ExportComplete}</H1>\n");
            out.println(HTMLUtils.escapeEntities(resources.format(
                    "ExportDataComplete_FMT", new Date())));
            out.println("</BODY></HTML>");

        } else if (CompletionStatus.NO_WORK_NEEDED.equals(result.getStatus())) {
            interpOut("<HTML><HEAD><TITLE>${ExportNotNeeded.Title}</TITLE></HEAD>\n"
                    + "<BODY><H1>${ExportNotNeeded.Title}</H1>\n"
                    + "${ExportNotNeeded.Message}"
                    + "</BODY></HTML>");

        } else {
            interpOut("<HTML><HEAD><TITLE>${ExportError.Title}</TITLE></HEAD>\n"
                    + "<BODY><H1>${ExportError.Title}</H1>\n");

            if (result != null && result.getTarget() != null
                    && result.getException() instanceof IOException) {
                String target = result.getTarget().toString();
                String resKey = TeamServerSelector.isUrlFormat(target)
                        ? "ExportError.Server_IO_FMT": "ExportError.IO_FMT";
                out.println(HTMLUtils.escapeEntities(resources.format(
                        resKey, target)));
            } else {
                out.println(resources.getHTML("ExportError.Message"));
                if (result != null && result.getException() != null) {
                    out.print("<PRE>");
                    result.getException().printStackTrace(out);
                    out.print("</PRE>");
                }
            }

            out.println("</BODY></HTML>");
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.EVENT: {
            Event event = (Event) theEObject;
            T result = caseEvent(event);
            if (result == null)
                result = caseFlowNode(event);
            if (result == null)
                result = caseInteractionNode(event);
View Full Code Here

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
    TokenEntity tokenEntity = processInstanceImpl.getTokenMap().get(tokenId);
    processInstanceImpl.getContextInstance().setTransientVariableMap(transientVariables);
   
    if(nodeId==null){
      Event event=(Event)tokenEntity.getFlowNode();
      if(event instanceof BoundaryEvent){
        BoundaryEvent boundaryEvent=(BoundaryEvent)event;
        Activity activity =boundaryEvent.getAttachedToRef();
        boolean isCancelActivity=boundaryEvent.isCancelActivity();
        if(isCancelActivity){
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.tool.export.mgr.CompletionStatus$Event

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.