Package org.activiti.engine.impl

Examples of org.activiti.engine.impl.ProcessInstanceQueryImpl


    }
  }
 
  protected List<ProcessInstance> fetchProcessInstancesPage(CommandContext commandContext,
          ProcessDefinition processDefinition, int currentPageStartIndex) {
    return new ProcessInstanceQueryImpl(commandContext)
      .processDefinitionId(processDefinition.getId())
      .listPage(currentPageStartIndex, Context.getProcessEngineConfiguration().getBatchSizeProcessInstances());
  }
View Full Code Here


  }
  public ProcessDefinitionQueryImpl createProcessDefinitionQuery() {
    return new ProcessDefinitionQueryImpl();
  }
  public ProcessInstanceQueryImpl createProcessInstanceQuery() {
    return new ProcessInstanceQueryImpl();
  }
View Full Code Here

 
  protected List<ProcessInstance> fetchProcessInstancesPage(CommandContext commandContext,
          ProcessDefinition processDefinition, int currentPageStartIndex) {
   
      if (SuspensionState.ACTIVE.equals(getProcessDefinitionSuspensionState())){
          return new ProcessInstanceQueryImpl(commandContext)
            .processDefinitionId(processDefinition.getId())
            .suspended()
            .listPage(currentPageStartIndex, commandContext.getProcessEngineConfiguration().getBatchSizeProcessInstances());
      } else {
          return new ProcessInstanceQueryImpl(commandContext)
            .processDefinitionId(processDefinition.getId())
            .active()
            .listPage(currentPageStartIndex, commandContext.getProcessEngineConfiguration().getBatchSizeProcessInstances());
       }
  }
View Full Code Here

  }
  public ProcessDefinitionQueryImpl createProcessDefinitionQuery() {
    return new ProcessDefinitionQueryImpl();
  }
  public ProcessInstanceQueryImpl createProcessInstanceQuery() {
    return new ProcessInstanceQueryImpl();
  }
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.ProcessInstanceQueryImpl

Copyright © 2018 www.massapicom. 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.