Package org.apache.oodt.cas.workflow.instrepo

Examples of org.apache.oodt.cas.workflow.instrepo.LuceneWorkflowInstanceRepository


      cleaner.cleanRepository();
    } catch (Exception e) {
      fail(e.getMessage());
    }

    WorkflowInstanceRepository repo = new LuceneWorkflowInstanceRepository(
        instRepoPath, 20);
    try {
      assertEquals(10, repo.getNumWorkflowInstances());
      for (WorkflowInstance inst : (List<WorkflowInstance>) repo
          .getWorkflowInstances()) {
        if (!inst.getStatus().equals(WorkflowStatus.FINISHED)) {
          fail("Workflow Instance: [" + inst.getId()
              + "] does was not marked as finished by the cleaner: status: ["
              + inst.getStatus() + "]");
View Full Code Here


        FileUtils.deleteDirectory(new File(catalogPath));
      } catch (IOException e) {
        fail(e.getMessage());
      }
    }
    repo = new LuceneWorkflowInstanceRepository(catalogPath, stdPgSz);

    testWrkFlw.setName("test.getMetadataWorkflow");
    testWrkFlw.setId("test.id");
    List tasks = new Vector();
    List conds = new Vector();
View Full Code Here

  public InstanceRepoCleaner(String wmUrlStr) throws Exception {
    this.wm = new XmlRpcWorkflowManagerClient(new URL(wmUrlStr));
  }

  public void setInstanceRepo(String idxPath) {
    this.rep = new LuceneWorkflowInstanceRepository(idxPath, 1000);
  }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.workflow.instrepo.LuceneWorkflowInstanceRepository

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.