Examples of orderByProcessInstanceId()


Examples of org.activiti.engine.runtime.ProcessInstanceQuery.orderByProcessInstanceId()

      if( "businessKey".equals(orderBy.getProperty()) )
        query.orderByProcessDefinitionKey();
      else if( "processDefinitionId".equals(orderBy.getProperty()) )
        query.orderByProcessDefinitionId();
      else if( "processInstanceId".equals(orderBy.getProperty()) )
        query.orderByProcessInstanceId();
    }
   
    return (ListPage<ProcessInstance>)query(query,page);
  }
 
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.orderByProcessInstanceId()

        when(engine.getRuntimeService()).thenReturn(runtimeService);
        when(runtimeService.createProcessInstanceQuery()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.variableValueEquals(CoreProcessVariables.POOL_BUSINESS_KEY, BUSINESS_KEY))
            .thenReturn(processInstanceQuery);
        when(processInstanceQuery.orderByProcessInstanceId()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.desc()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.list()).thenReturn(processes);

        return engine;
    }
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.orderByProcessInstanceId()

        when(engine.getRuntimeService()).thenReturn(runtimeService);
        when(runtimeService.createProcessInstanceQuery()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.variableValueEquals(CoreProcessVariables.POOL_BUSINESS_KEY, BUSINESS_KEY))
            .thenReturn(processInstanceQuery);
        when(processInstanceQuery.orderByProcessInstanceId()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.desc()).thenReturn(processInstanceQuery);
        when(processInstanceQuery.list()).thenReturn(processes);

        return engine;
    }
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.