Examples of lookupProcess()


Examples of de.danet.an.workflow.api.ProcessDirectory.lookupProcess()

        if (processCache == null) {
            try {
                WorkflowService wfs = WorkflowServiceConnection
                    .instance("workflowServiceConnection").getWorkflowService();
                ProcessDirectory pd = wfs.processDirectory();
                processCache = pd.lookupProcess(mgrName, processKey);
            } catch (InvalidKeyException e) {
                return null;
            }
        }
        return processCache;
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.lookupProcess()

  process.suspend();
  process.abort();
  Thread.sleep (2000);
  boolean procExists = true;
  try {
      procDir.lookupProcess("ut-process/jut5", processKey);
  } catch (Exception e) {
      procExists = false;
  }
  assertTrue(!procExists);
    }
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.lookupProcess()

                             "No process information available");
                    }
        ProcessDirectory procDir = wfs.processDirectory();
        try {
            pl.process
                = procDir.lookupProcess(mgrName, procKey);
            pl.procKey = pl.process.key();
        } catch (InvalidKeyException e) {
            session.invalidate();
            throw new ProcessingException
                (HttpServletResponse.SC_GONE,
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.lookupProcess()

       e.getMessage());
    }
    ProcessDirectory procDir = wfs.processDirectory();
    WfProcess proc = null;
    try {
        proc = procDir.lookupProcess(mgr.name(), pl.procKey);
    } catch (InvalidKeyException e) {
        throw new ProcessingException
      (HttpServletResponse.SC_GONE,
       "Process has been removed");
    }
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.lookupProcess()

        }
       
        ProcessDirectory pd = getWorkflowService().processDirectory();
       
        WfProcess proc
            = pd.lookupProcess(packageId + "/" + processId, processKey);
       
        return proc;
    }
   
    /**
 
View Full Code Here

Examples of org.mule.module.bpm.BPMS.lookupProcess()

        assertTrue(state.contains("waitForResponseB"));

        Thread.sleep(2000);

        // ServiceA is initially stopped, so we're still waiting for a response from ServiceA
        process = (ProcessInstance) bpms.lookupProcess(process.getId());
        assertEquals("waitForResponseA", bpms.getState(process));

        // Start ServiceA
        muleContext.getRegistry().lookupService("ServiceA").resume();
        Thread.sleep(2000);
View Full Code Here

Examples of org.mule.module.bpm.BPMS.lookupProcess()

        // Start ServiceA
        muleContext.getRegistry().lookupService("ServiceA").resume();
        Thread.sleep(2000);
                   
        // The process should have ended.
        process = (ProcessInstance) bpms.lookupProcess(process.getId());
        assertTrue("Process should have ended, but is in state " + bpms.getState(process),
                bpms.hasEnded(process));
    }
}
View Full Code Here

Examples of org.mule.module.bpm.BPMS.lookupProcess()

        assertTrue(state.contains("waitForResponseB"));

        Thread.sleep(2000);

        // ServiceA is initially stopped, so we're still waiting for a response from ServiceA
        process = (ProcessInstance) bpms.lookupProcess(process.getId());
        assertEquals("waitForResponseA", bpms.getState(process));

        // Start ServiceA
        muleContext.getRegistry().lookupService("ServiceA").resume();
        Thread.sleep(2000);
View Full Code Here

Examples of org.mule.module.bpm.BPMS.lookupProcess()

        // Start ServiceA
        muleContext.getRegistry().lookupService("ServiceA").resume();
        Thread.sleep(2000);
                   
        // The process should have ended.
        process = (ProcessInstance) bpms.lookupProcess(process.getId());
        assertTrue("Process should have ended, but is in state " + bpms.getState(process),
                bpms.hasEnded(process));
    }

}
View Full Code Here

Examples of org.mule.module.jbpm.Jbpm.lookupProcess()

        Object process = jbpm.startProcess("simple", null, null);
        assertNotNull(process);
        Object processId = jbpm.getId(process);
       
        // The process should be started and in a wait state.
        process = jbpm.lookupProcess(processId);
        assertNotNull(process);            
        assertEquals("dummyState", jbpm.getState(process));

        // Advance the process one step.
        process = jbpm.advanceProcess(processId);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.