Package org.kie.server.client.impl
Class TaskAssigningRuntimeClientImpl
- java.lang.Object
-
- org.kie.server.client.impl.AbstractKieServicesClientImpl
-
- org.kie.server.client.impl.TaskAssigningRuntimeClientImpl
-
- All Implemented Interfaces:
TaskAssigningRuntimeClient
public class TaskAssigningRuntimeClientImpl extends AbstractKieServicesClientImpl implements TaskAssigningRuntimeClient
-
-
Field Summary
-
Fields inherited from class org.kie.server.client.impl.AbstractKieServicesClientImpl
BYPASS_AUTH_USER, classLoader, config, loadBalancer, marshaller, owner
-
-
Constructor Summary
Constructors Constructor Description TaskAssigningRuntimeClientImpl(KieServicesConfiguration config)TaskAssigningRuntimeClientImpl(KieServicesConfiguration config, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.server.api.model.taskassigning.PlanningExecutionResultexecutePlanning(org.kie.server.api.model.taskassigning.PlanningItemList planningItemList, String userId)org.kie.server.api.model.taskassigning.TaskDataListfindTasks(Long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate, Integer page, Integer pageSize)Executes a parametrized query over the jBPM tasks.org.kie.server.api.model.taskassigning.TaskDataListfindTasks(Long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate, Integer page, Integer pageSize, org.kie.server.api.model.taskassigning.TaskInputVariablesReadMode inputVariablesReadMode)Executes a parametrized query over the jBPM tasks.KieServicesConfigurationgetConfig()-
Methods inherited from class org.kie.server.client.impl.AbstractKieServicesClientImpl
buildQueryString, checkResultType, close, createExceptionForUnexpectedResponseCode, deserialize, encode, executeJmsCommand, executeJmsCommand, executeJmsCommand, executeJmsCommand, getAdditionalParams, getConversationId, getHeaders, getLoadBalancer, getMediaType, getMessage, getPagingQueryString, getResponseHandler, getSortingQueryString, getUserAndAdditionalParam, getUserAndAdditionalParams, getUserAndPagingQueryString, getUserQueryStr, getUserQueryStr, initializeURI, invoke, makeBackwardCompatibleHttpPostRequestAndCreateServiceResponse, makeBackwardCompatibleHttpPostRequestAndCreateServiceResponse, makeBackwardCompatibleHttpPostRequestAndCreateServiceResponse, makeHttpDeleteRequestAndCreateCustomResponse, makeHttpDeleteRequestAndCreateServiceResponse, makeHttpGetRequestAndCreateCustomResponse, makeHttpGetRequestAndCreateCustomResponseWithHandleNotFound, makeHttpGetRequestAndCreateRawResponse, makeHttpGetRequestAndCreateRawResponse, makeHttpGetRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateCustomResponse, makeHttpPostRequestAndCreateCustomResponse, makeHttpPostRequestAndCreateCustomResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPostRequestAndCreateServiceResponse, makeHttpPutRequestAndCreateCustomResponse, makeHttpPutRequestAndCreateCustomResponse, makeHttpPutRequestAndCreateServiceResponse, makeHttpPutRequestAndCreateServiceResponse, newRequest, safeList, safeMap, sendTaskOperation, serialize, setOwner, setResponseHandler, shouldReturnWithNullResponse, throwExceptionOnFailure
-
-
-
-
Constructor Detail
-
TaskAssigningRuntimeClientImpl
public TaskAssigningRuntimeClientImpl(KieServicesConfiguration config)
-
TaskAssigningRuntimeClientImpl
public TaskAssigningRuntimeClientImpl(KieServicesConfiguration config, ClassLoader classLoader)
-
-
Method Detail
-
executePlanning
public org.kie.server.api.model.taskassigning.PlanningExecutionResult executePlanning(org.kie.server.api.model.taskassigning.PlanningItemList planningItemList, String userId)- Specified by:
executePlanningin interfaceTaskAssigningRuntimeClient
-
findTasks
public org.kie.server.api.model.taskassigning.TaskDataList findTasks(Long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate, Integer page, Integer pageSize, org.kie.server.api.model.taskassigning.TaskInputVariablesReadMode inputVariablesReadMode)
Description copied from interface:TaskAssigningRuntimeClientExecutes a parametrized query over the jBPM tasks. This method is intended for the tasks assigning integration implementation internal use. Third parties interested in consuming the information type returned by this method should use the simplified variant of this of this methodTaskAssigningRuntimeClient.findTasks(Long, List, LocalDateTime, Integer, Integer)or any other of the jBPM runtime client/queries methods, etc.- Specified by:
findTasksin interfaceTaskAssigningRuntimeClient- Parameters:
fromTaskId- filters the tasks with taskId >= fromTaskId. If null no filtering is applied.status- filters the tasks that are in one of the following status. If null or the empty list no filtering is applied.fromLastModificationDate- filters the tasks with lastModificationDate >= fromLastModificationDate. If null no filtering is applied.page- sets the starting page for the paged reading.pageSize- sets the pageSize for the paged reading.inputVariablesReadMode- establishes the tasks input variables reading mode.- Returns:
- a list of TaskData with the jBPM tasks that met the filtering conditions. The potential owners of the task are always loaded but there's no warranty that the potential owners of the last consumed task fits the page/pageSize configuration. The task inputs data is loaded accordingly with the selected taskInputVariablesReadMode.
- See Also:
TaskInputVariablesReadMode
-
findTasks
public org.kie.server.api.model.taskassigning.TaskDataList findTasks(Long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate, Integer page, Integer pageSize)
Description copied from interface:TaskAssigningRuntimeClientExecutes a parametrized query over the jBPM tasks. This method is intended for the tasks assigning integration implementation. Third parties that might use this method must be aware that no task inputs data is loaded. If this information is needed the standard jBPM runtime client/queries must be used instead.- Specified by:
findTasksin interfaceTaskAssigningRuntimeClient- Parameters:
fromTaskId- filters the tasks with taskId >= fromTaskId. If null no filtering is applied.status- filters the tasks that are in one of the following status. If null or the empty list no filtering is applied.fromLastModificationDate- filters the tasks with lastModificationDate >= fromLastModificationDate. If null no filtering is applied.page- sets the starting page for the paged reading.pageSize- sets the pageSize for the paged reading.- Returns:
- a list of TaskData with the jBPM tasks that met the filtering conditions. The potential owners of the task is always loaded but there's no warranty that the potential owners of the last consumed taks fits the page/pageSize configuration. NO task inputs data is loaded by this method.
- See Also:
TaskInputVariablesReadMode
-
getConfig
public KieServicesConfiguration getConfig()
-
-