Examples of findProcessInstanceById()


Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);

    TokenEntity token=processInstanceImpl.getTokenMap().get(tokenId);
   
   
   
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    String tokenId = taskInstanceQuery.getTokenId();

    String nodeId = taskInstanceQuery.getNodeId();

    this.processInstanceAbstract = processInstanceManager.findProcessInstanceById(processInstanceId);

    TokenEntity tokenEntity = this.processInstanceAbstract.getTokenMap().get(tokenId);

    this.executionContextAbstract = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(tokenEntity);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);

    TokenEntity token=processInstanceImpl.getTokenMap().get(tokenId);
   
   
   
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

      ProcessDefinitionManager processDefinitionManager = Context.getCommandContext().getProcessDefinitionManager();

      ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

      ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
      if(processInstanceImpl.hasEnded()){
        return false;
      }
      TokenEntity token = processInstanceImpl.getTokenMap().get(tokenId);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

      ProcessDefinitionManager processDefinitionManager = Context.getCommandContext().getProcessDefinitionManager();

      ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);


      ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
      if(processInstanceImpl.hasEnded()){
        return false;
      }

      TokenEntity token = processInstanceImpl.getTokenMap().get(tokenId);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

  public ProcessInstanceEntity getParentProcessInstance() {
    if (this.parentProcessInstance == null) {

      if (StringUtil.isNotEmpty(this.parentProcessInstanceId)) {
        ProcessInstanceManager processInstanceManager = Context.getCommandContext().getProcessInstanceManager();
        ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(this.parentProcessInstanceId, null);
        if (processInstanceImpl != null) {
          this.parentProcessInstance = processInstanceImpl;
        }
        return processInstanceImpl;
      } else {
View Full Code Here

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

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

        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

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

       
        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

Examples of org.jbpm.api.ExecutionService.findProcessInstanceById()

      long start = System.currentTimeMillis();
       if (internalId == null) {
         return false;
       }
       ExecutionService service = getProcessEngine(ctx).getExecutionService();
       org.jbpm.api.ProcessInstance processInstance = service.findProcessInstanceById(internalId);
      
      long duration = System.currentTimeMillis() - start;
    log.severe("isProcessRunning: " +  duration);
   
   
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.