Package org.fireflow.engine.persistence

Examples of org.fireflow.engine.persistence.IPersistenceService.findProcessInstanceById()


            public Object doInWorkflowSession(RuntimeContext ctx)
                throws EngineException, KernelException {
              IPersistenceService persistenceService = ctx
                  .getPersistenceService();

              return persistenceService
                  .findProcessInstanceById(id);
            }
          });
    } catch (EngineException ex) {
      ex.printStackTrace();
View Full Code Here


        tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(0, tokensList.size());

        IProcessInstance processInstance = persistenceService.findProcessInstanceById(currentProcessInstance.getId());
        assertEquals(new Integer(IProcessInstance.COMPLETED),processInstance.getState());
    }
}
View Full Code Here

       
        tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(0, tokensList.size());

        IProcessInstance processInstance = persistenceService.findProcessInstanceById(currentProcessInstance.getId());
        assertNotNull(processInstance);
        assertEquals(IProcessInstance.COMPLETED,processInstance.getState().intValue());
    }

}
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.