Package de.scoopgmbh.copper.management.model

Examples of de.scoopgmbh.copper.management.model.WorkflowInfo


  @Override
  public List<WorkflowInfo> queryWorkflowInstances() {
    List<WorkflowInfo> rv = new ArrayList<WorkflowInfo>();
    for (Workflow<?> wf : workflowMap.values()) {
      WorkflowInfo wfi = convert2Wfi(wf);
      rv.add(wfi);
    }
    logger.info("queryWorkflowInstances returned "+rv.size()+" instance(s)");
    return rv;
  }
View Full Code Here


  }
 
  protected WorkflowInfo convert2Wfi(Workflow<?> wf) {
    if (wf == null)
      return null;
    WorkflowInfo wfi = new WorkflowInfo();
    wfi.setId(wf.getId());
    wfi.setPriority(wf.getPriority());
    wfi.setProcessorPoolId(wf.getProcessorPoolId());
    wfi.setState(wf.getProcessingState().name());
    wfi.setTimeout(null); // TODO
    return wfi;
 
View Full Code Here

     
      engine.run(descr);
     
      Thread.sleep(1000L);
     
      WorkflowInfo info = engine.queryWorkflowInstance(descr.getId());
     
      assertNull(info);
    }
    finally {
      context.close();
View Full Code Here

     
      engine.run(descr);
     
      Thread.sleep(1000L);
     
      WorkflowInfo info = engine.queryWorkflowInstance(descr.getId());
     
      assertNull(info);
    }
    finally {
      context.close();
View Full Code Here

  @Override
  public List<WorkflowInfo> queryWorkflowInstances() {
    List<WorkflowInfo> rv = new ArrayList<WorkflowInfo>();
    for (Workflow<?> wf : workflowMap.values()) {
      WorkflowInfo wfi = convert2Wfi(wf);
      rv.add(wfi);
    }
    return rv;
  }
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.management.model.WorkflowInfo

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.