Examples of loadProcessInstance()


Examples of com.exedosoft.wf.WFEngine.loadProcessInstance()

   
    WFEngine  engine = WFEngineFactory.getWFEngine();
   
    ProcessInstance pi = null;
    try {
      pi = engine.loadProcessInstance(ptPI.getCorrInstance().getUid());
    } catch (WFException e2) {
      // TODO Auto-generated catch block
      e2.printStackTrace();
    }
   
View Full Code Here

Examples of com.exedosoft.wf.WFEngine.loadProcessInstance()

   
    WFEngine  engine = WFEngineFactory.getWFEngine();
   
    ProcessInstance pi = null;
    try {
      pi = engine.loadProcessInstance(ptPI.getCorrInstance().getUid());
    } catch (WFException e2) {
      // TODO Auto-generated catch block
      e2.printStackTrace();
    }
   
View Full Code Here

Examples of com.exedosoft.wf.WFEngine.loadProcessInstance()

        return NO_FORWARD;
      }
    } else {
      ProcessInstance pi = null;
      try {
        pi = wfi.loadProcessInstance(wfUid);
        NodeInstance ni = pi.getFirstActivityNode();
        ni.perform();
      } catch (WFException e) {
        e.printStackTrace();
        this.setEchoValue(e.getLocalizedMessage());
View Full Code Here

Examples of com.exedosoft.wf.WFEngine.loadProcessInstance()

    WFEngine wfi = WFEngineFactory.getWFEngine();
    if(wfUid != null){
   
      ProcessInstance pi = null;
      try {
        pi = wfi.loadProcessInstance(wfUid);
        pi.withDrawStartNode();
      } catch (WFException e) {
        e.printStackTrace();
        this.setEchoValue(e.getLocalizedMessage());
        return NO_FORWARD;
View Full Code Here

Examples of org.jbpm.JbpmContext.loadProcessInstance()

    processInstance = saveAndReload(processInstance);
    processInstance.signal();
    jbpmContext.save(processInstance);
   
    JbpmContext concurrentContext = jbpmConfiguration.createJbpmContext();
    ProcessInstance sameProcessInstanceInDifferentSession = concurrentContext.loadProcessInstance(processInstance.getId());
    sameProcessInstanceInDifferentSession.end();
    concurrentContext.save(sameProcessInstanceInDifferentSession);
    log.debug("closing concurrent context");
    concurrentContext.close();
   
View Full Code Here

Examples of org.jbpm.JbpmContext.loadProcessInstance()

        if (suspendProcess)
        {
            final JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance() ;
            final JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext() ;
           
            final ProcessInstance processInstance = jbpmContext.loadProcessInstance(processInstanceId) ;
            processInstance.suspend() ;
           
            jbpmContext.close() ;
        }
    }
View Full Code Here

Examples of org.jbpm.JbpmContext.loadProcessInstance()

        if (suspendProcess)
        {
            final JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance() ;
            final JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext() ;
           
            final ProcessInstance processInstance = jbpmContext.loadProcessInstance(processInstanceId) ;
            processInstance.resume() ;
           
            jbpmContext.close() ;
        }
    }
View Full Code Here

Examples of org.jbpm.JbpmContext.loadProcessInstance()

    @Test
    public void timeOut() throws Exception
    {
        JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
        JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
        ProcessInstance processInstance = jbpmContext.loadProcessInstance(processInstanceId);
       
        Token token = processInstance.getRootToken();
        processInstance.signal();
        assertEquals("wait1",token.getNode().getName());
        jbpmContext.close();
View Full Code Here

Examples of org.jbpm.JbpmContext.loadProcessInstance()

        while (true) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {}
            jbpmContext = jbpmConfiguration.createJbpmContext();
            processInstance = jbpmContext.loadProcessInstance(processInstanceId);
            token = processInstance.getRootToken();
            String currentNode = token.getNode().getName();
            System.out.println(seconds++ + " " + currentNode);
            jbpmContext.close();
            if (currentNode.equals("end")) break;
View Full Code Here

Examples of org.jbpm.JbpmContext.loadProcessInstance()

    @Test
    public void timeOut() throws Exception
    {
        JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
        JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
        ProcessInstance processInstance = jbpmContext.loadProcessInstance(processInstanceId);
       
        Token token = processInstance.getRootToken();
        assertEquals("start",token.getNode().getName());
        //Move the process to service1
        processInstance.signal();
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.