Package org.jbpm.api

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


        private byte[] fetchProcessResource(ProcessInstance pi, String resourceName) {
            ProcessEngine processEngine = getProcessEngine(ProcessToolContext.Util.getThreadProcessToolContext());
            RepositoryService service = processEngine.getRepositoryService();

            ExecutionService executionService = processEngine.getExecutionService();
            org.jbpm.api.ProcessInstance processInstanceById = executionService.findProcessInstanceById(pi.getInternalId());
            String processDefinitionId;
            if (processInstanceById == null) { //look in history service
                HistoryProcessInstanceQuery historyProcessInstanceQuery = processEngine.getHistoryService()
                        .createHistoryProcessInstanceQuery().processInstanceId(pi.getInternalId());
                HistoryProcessInstance historyProcessInstance = historyProcessInstanceQuery.uniqueResult();
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.