use of org.kie.server.api.model.instance.RequestInfoInstanceList in project droolsjbpm-integration by kiegroup.
the class ExecutorServiceBase method getRequestsByProcessInstance.
public RequestInfoInstanceList getRequestsByProcessInstance(Number processInstanceId, List<String> statuses, Integer page, Integer pageSize) {
List<STATUS> statusList = convertStatusList(statuses);
List<RequestInfo> requests = executorService.getRequestsByProcessInstance(processInstanceId.longValue(), statusList, buildQueryContext(page, pageSize));
RequestInfoInstanceList result = convertToRequestInfoList(requests, false, false);
return result;
}
use of org.kie.server.api.model.instance.RequestInfoInstanceList in project droolsjbpm-integration by kiegroup.
the class ExecutorServiceBase method getRequestsByBusinessKey.
public RequestInfoInstanceList getRequestsByBusinessKey(String businessKey, List<String> statuses, Integer page, Integer pageSize) {
List<STATUS> statusList = convertStatusList(statuses);
List<RequestInfo> requests = executorService.getRequestsByBusinessKey(businessKey, statusList, buildQueryContext(page, pageSize));
RequestInfoInstanceList result = convertToRequestInfoList(requests, false, false);
return result;
}
use of org.kie.server.api.model.instance.RequestInfoInstanceList in project droolsjbpm-integration by kiegroup.
the class ExecutorServiceBase method getRequestsByBusinessKey.
public RequestInfoInstanceList getRequestsByBusinessKey(String businessKey, Integer page, Integer pageSize) {
List<RequestInfo> requests = executorService.getRequestsByBusinessKey(businessKey, buildQueryContext(page, pageSize));
RequestInfoInstanceList result = convertToRequestInfoList(requests, false, false);
return result;
}
use of org.kie.server.api.model.instance.RequestInfoInstanceList in project droolsjbpm-integration by kiegroup.
the class ExecutorServiceBase method convertToRequestInfoList.
// utility methods for conversion
protected RequestInfoInstanceList convertToRequestInfoList(List<RequestInfo> requests, boolean withErrors, boolean withData) {
RequestInfoInstance[] requestInfos = new RequestInfoInstance[requests.size()];
int index = 0;
for (RequestInfo request : requests) {
requestInfos[index] = convertToRequestInfo(request, withErrors, withData);
index++;
}
return new RequestInfoInstanceList(requestInfos);
}
use of org.kie.server.api.model.instance.RequestInfoInstanceList in project droolsjbpm-integration by kiegroup.
the class ExecutorServiceBase method getRequestsByCommand.
public RequestInfoInstanceList getRequestsByCommand(String command, Integer page, Integer pageSize) {
List<RequestInfo> requests = executorService.getRequestsByCommand(command, buildQueryContext(page, pageSize));
RequestInfoInstanceList result = convertToRequestInfoList(requests, false, false);
return result;
}
Aggregations