Package de.scoopgmbh.copper.monitoring.core.model

Examples of de.scoopgmbh.copper.monitoring.core.model.WorkflowClassMetaData


    versionMinor.set(workflowVersion.versionMinor.get());
    patchlevel.set(workflowVersion.patchlevel.get());
  }
 
  public WorkflowClassMetaData convert(){
    return new WorkflowClassMetaData(
        classname.get(),
        alias.get(),
        versionMajor.get(),
        versionMinor.get(),
        patchlevel.get(),
View Full Code Here


      counter++;
    }
   
    ArrayList<WorkflowSummary> result = new ArrayList<WorkflowSummary>();
    WorkflowSummary workflowSummery = new WorkflowSummary("",10,
        new WorkflowClassMetaData("WorkflowClass1","alias",0L,+(long)(Math.random()*100),0L,""),
        new WorkflowStateSummary(map));
    result.add(workflowSummery);
   
    return result;
  }
View Full Code Here

  }

  @Override
  public List<WorkflowClassMetaData> getWorkflowClassesList(final String engineId) throws RemoteException {
    ArrayList<WorkflowClassMetaData> result = new ArrayList<WorkflowClassMetaData>();
    result.add(new WorkflowClassMetaData("WorkflowClass1","alias",0L,+(long)(Math.random()*100),0L,""));
    result.add(new WorkflowClassMetaData("WorkflowClass2","alias",1L,+(long)(Math.random()*100),0L,""));
    result.add(new WorkflowClassMetaData("WorkflowClass2","alias",1L,+(long)(Math.random()*100),0L,""));
    result.add(new WorkflowClassMetaData("WorkflowClass2","alias",1L,+(long)(Math.random()*100),0L,""));
    result.add(new WorkflowClassMetaData("WorkflowClass2","alias",2L,+(long)(Math.random()*100),0L,""));
    result.add(new WorkflowClassMetaData("WorkflowClass2","alias",2L,+(long)(Math.random()*100),0L,""));
    result.add(new WorkflowClassMetaData("WorkflowClass2","alias",2L,+(long)(Math.random()*100),0L,""));
    result.add(new WorkflowClassMetaData("WorkflowClass3","alias",3L,+(long)(Math.random()*100),0L,""));
    return result;
  }
View Full Code Here

    return result;
  }

  @Override
  public WorkflowInstanceMetaData getWorkflowInstanceDetails(String workflowInstanceId, String engineid) {
    return new WorkflowInstanceMetaData(new WorkflowClassMetaData("WorkflowClass1","alias",0L,+(long)(Math.random()*100),0L,
        "package de.scoopgmbh.copper.monitoring.example.workflow;\r\n" +
        "\r\n" +
        "import java.math.BigDecimal;\r\n" +
        "import java.util.ArrayList;\r\n" +
        "import java.util.Date;\r\n" +
View Full Code Here

  public List<WorkflowClassMetaData> getWorkflowClassesList(final String engineId) throws RemoteException {
    WorkflowRepositoryMXBean workflowRepository = getWorkflowRepository(engineId);
    if (workflowRepository!=null){
      List<WorkflowClassMetaData> result = new ArrayList<WorkflowClassMetaData>();
      for (WorkflowClassInfo workflowClassInfo: workflowRepository.getWorkflows()){
        result.add(new WorkflowClassMetaData(
            workflowClassInfo.getClassname(),
            workflowClassInfo.getAlias(),
            workflowClassInfo.getMajorVersion(),
            workflowClassInfo.getMinorVersion(),
            workflowClassInfo.getPatchLevel(),
View Full Code Here

  @Override
  public WorkflowInstanceMetaData getWorkflowInstanceDetails(String workflowInstanceId, String engineId) throws RemoteException {
    List<WorkflowClassMetaData> classList = getWorkflowClassesList(engineId);
    String classname = dbStorage.selectWorkflowInstanceList(null, null, null, null, null, null, workflowInstanceId, 1).get(0).getClassname();
   
    WorkflowClassMetaData workflowClassMetaData= null;
    for (WorkflowClassMetaData workflowClassMetaDataI: classList){
      if (classname.equals(workflowClassMetaDataI.getClassname())){
        workflowClassMetaData=workflowClassMetaDataI;
      }
    }
View Full Code Here

      while (resultSet.next()) {
        String instanceClassname=resultSet.getString(1);
        WorkflowSummary summary = classNameToSummary.get(instanceClassname);
        if (summary==null){
          summary= new WorkflowSummary();
          summary.setClassDescription(new WorkflowClassMetaData(instanceClassname, "", 1L, 1L, 1L,""));
          summary.setStateSummary(new WorkflowStateSummary(new HashMap<WorkflowInstanceState, Integer>()));
          classNameToSummary.put(instanceClassname, summary);
          for (WorkflowInstanceState s : WorkflowInstanceState.values())
            summary.getStateSummary().getNumberOfWorkflowInstancesWithState().put(s,0);
        }
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.monitoring.core.model.WorkflowClassMetaData

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.