public class RuntimeDataServiceImpl extends Object implements RuntimeDataService, DeploymentEventListener
RuntimeDataService.EntryType| Modifier and Type | Field and Description |
|---|---|
protected Set<ProcessDefinition> |
availableProcesses |
protected Set<String> |
deploymentIds |
protected TaskAuditService |
taskAuditService |
protected org.kie.api.task.TaskService |
taskService |
| Constructor and Description |
|---|
RuntimeDataServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected List<?> |
adoptList(List<?> source,
List<?> values) |
protected void |
applyDeploymentFilter(Map<String,Object> params) |
protected <T> Collection<T> |
applyPaginition(List<T> input,
org.kie.api.runtime.query.QueryContext queryContext) |
protected void |
applyQueryContext(Map<String,Object> params,
org.kie.api.runtime.query.QueryContext queryContext) |
protected void |
applyQueryFilter(Map<String,Object> params,
org.kie.internal.query.QueryFilter queryFilter) |
protected void |
applySorting(List<ProcessDefinition> input,
org.kie.api.runtime.query.QueryContext queryContext) |
List<org.kie.internal.task.api.AuditTask> |
getAllAdminAuditTask(String userId,
org.kie.internal.query.QueryFilter filter)
Get a list of tasks admin audit (user in businessAdministrators) logs for the user provides applying the query filter
listed statuses.
|
List<org.kie.internal.task.api.AuditTask> |
getAllAuditTask(String userId,
org.kie.internal.query.QueryFilter filter)
Get a list of tasks audit logs for the user provides applying the query filter
listed statuses.
|
List<org.kie.internal.task.api.AuditTask> |
getAllAuditTaskByStatus(String userId,
org.kie.internal.query.QueryFilter filter)
Get a list of all active tasks audit logs for the user provides applying the query filter
listed statuses.
|
List<org.kie.internal.task.api.AuditTask> |
getAllGroupAuditTask(String userId,
org.kie.internal.query.QueryFilter filter)
Get a list of group tasks (actualOwner == null) audit logs for the user provides applying the query filter
listed statuses.
|
NodeInstanceDesc |
getNodeInstanceForWorkItem(Long workItemId)
Returns active node instance descriptor for given work item id, if exists.
|
Collection<NodeInstanceDesc> |
getNodeInstancesByCorrelationKeyNodeType(org.kie.internal.process.CorrelationKey correlationKey,
List<Integer> states,
List<String> nodeTypes,
org.kie.api.runtime.query.QueryContext queryContext)
Returns trace of all nodes for a given node types and correlation key
|
Collection<NodeInstanceDesc> |
getNodeInstancesByNodeType(long processInstanceId,
List<String> nodeTypes,
org.kie.api.runtime.query.QueryContext queryContext)
Returns trace of all nodes for a given node types and process instance id
|
ProcessDefinition |
getProcessById(String processId)
Deprecated.
|
Collection<ProcessDefinition> |
getProcesses(org.kie.api.runtime.query.QueryContext queryContext)
Returns all process definitions available
|
Collection<ProcessDefinition> |
getProcessesByDeploymentId(String deploymentId,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process definitions for given deployment id
|
ProcessDefinition |
getProcessesByDeploymentIdProcessId(String deploymentId,
String processId)
Returns process definition for given deployment and process identifiers
|
Collection<ProcessDefinition> |
getProcessesByFilter(String filter,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process definitions that match the given filter
|
Collection<ProcessDefinition> |
getProcessesById(String processId)
Returns process definitions for given process id regardless of the deployment
|
Collection<String> |
getProcessIds(String deploymentId,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process definition identifiers for given deployment id
|
ProcessInstanceDesc |
getProcessInstanceByCorrelationKey(org.kie.internal.process.CorrelationKey correlationKey)
Returns active process instance description found for given correlation key if found otherwise null.
|
ProcessInstanceDesc |
getProcessInstanceById(long processId)
Returns process instance descriptions found for given processInstanceId if found otherwise null.
|
Collection<NodeInstanceDesc> |
getProcessInstanceFullHistory(long processId,
org.kie.api.runtime.query.QueryContext queryContext)
Returns complete trace of all executed (completed) and active nodes for given process instance id
|
Collection<NodeInstanceDesc> |
getProcessInstanceFullHistoryByType(long processId,
RuntimeDataService.EntryType type,
org.kie.api.runtime.query.QueryContext queryContext)
Returns complete trace of all events of given type (START, END, ABORTED, SKIPPED, OBSOLETE or ERROR) for given process instance.
|
protected Collection<NodeInstanceDesc> |
getProcessInstanceHistory(long processId,
boolean completed,
org.kie.api.runtime.query.QueryContext queryContext) |
Collection<NodeInstanceDesc> |
getProcessInstanceHistoryActive(long processId,
org.kie.api.runtime.query.QueryContext queryContext)
Returns trace of all active nodes for given process instance id
|
Collection<NodeInstanceDesc> |
getProcessInstanceHistoryCompleted(long processId,
org.kie.api.runtime.query.QueryContext queryContext)
Returns trace of all executed (completed) for given process instance id
|
Collection<ProcessInstanceDesc> |
getProcessInstances(List<Integer> states,
String initiator,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions found with given statuses and initiated by
initiator. |
Collection<ProcessInstanceDesc> |
getProcessInstances(org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByCorrelationKey(org.kie.internal.process.CorrelationKey correlationKey,
org.kie.api.runtime.query.QueryContext queryContext)
Returns process instances descriptions (regardless of their states) found for given correlation key if found otherwise empty list.
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByCorrelationKeyAndStatus(org.kie.internal.process.CorrelationKey correlationKey,
List<Integer> states,
org.kie.api.runtime.query.QueryContext queryContext)
Returns process instances descriptions filtered by their states found for given correlation key if found otherwise empty list.
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByDeploymentId(String deploymentId,
List<Integer> states,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions found for given deployment id and statuses.
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByParent(Long parentProcessInstanceId,
List<Integer> states,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByProcessDefinition(String processDefId,
List<Integer> states,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions found for given process definition id
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByProcessDefinition(String processDefId,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions found for given process definition id
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByProcessId(List<Integer> states,
String processId,
String initiator,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions found for given process id and statuses and initiated by
initiator |
Collection<ProcessInstanceDesc> |
getProcessInstancesByProcessName(List<Integer> states,
String processName,
String initiator,
org.kie.api.runtime.query.QueryContext queryContext) |
Collection<ProcessInstanceDesc> |
getProcessInstancesByVariable(String variableName,
List<Integer> states,
org.kie.api.runtime.query.QueryContext queryContext)
Returns process instance descriptions found for process instance that have defined given variable
|
Collection<ProcessInstanceDesc> |
getProcessInstancesByVariableAndValue(String variableName,
String variableValue,
List<Integer> states,
org.kie.api.runtime.query.QueryContext queryContext)
Returns process instance descriptions found for process instance that have defined given variable and its value matches given variableValue
|
Collection<ProcessInstanceDesc> |
getProcessInstancesWithSubprocessByProcessInstanceId(Long parentProcessInstanceId,
List<Integer> states,
org.kie.api.runtime.query.QueryContext queryContext)
Returns list of process instance descriptions
|
UserTaskInstanceDesc |
getTaskById(Long taskId)
Return a task by its taskId.
|
UserTaskInstanceDesc |
getTaskById(Long taskId,
boolean withSLA)
Return a task by its taskId with SLA data if the withSLA param is true.
|
UserTaskInstanceDesc |
getTaskByWorkItemId(Long workItemId)
Return a task by its workItemId.
|
List<org.kie.internal.task.api.model.TaskEvent> |
getTaskEvents(long taskId,
org.kie.internal.query.QueryFilter filter)
Gets a list of task events for given task
|
List<org.kie.api.task.model.TaskSummary> |
getTasksAssignedAsBusinessAdministrator(String userId,
org.kie.internal.query.QueryFilter filter)
Return a list of assigned tasks as a Business Administrator.
|
List<org.kie.api.task.model.TaskSummary> |
getTasksAssignedAsBusinessAdministratorByStatus(String userId,
List<org.kie.api.task.model.Status> statuses,
org.kie.internal.query.QueryFilter filter)
Return a list of assigned tasks as a Business Administrator for with one of the listed
statuses
|
List<org.kie.api.task.model.TaskSummary> |
getTasksAssignedAsPotentialOwner(String userId,
List<String> groupIds,
List<org.kie.api.task.model.Status> status,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user or groups are eligible for with one of the listed
statuses.
|
List<org.kie.api.task.model.TaskSummary> |
getTasksAssignedAsPotentialOwner(String userId,
List<String> groupIds,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user or groups are eligible for.
|
List<org.kie.api.task.model.TaskSummary> |
getTasksAssignedAsPotentialOwner(String userId,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user is eligible for.
|
List<org.kie.api.task.model.TaskSummary> |
getTasksAssignedAsPotentialOwnerByExpirationDateOptional(String userId,
List<org.kie.api.task.model.Status> status,
Date from,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user is eligible for with one of the listed
statuses and expiration date starting at
from. |
List<org.kie.api.task.model.TaskSummary> |
getTasksAssignedAsPotentialOwnerByStatus(String userId,
List<org.kie.api.task.model.Status> status,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user is eligible for with one of the listed
statuses.
|
List<Long> |
getTasksByProcessInstanceId(Long processInstanceId)
Get a list of tasks the Process Instance is waiting on.
|
List<org.kie.api.task.model.TaskSummary> |
getTasksByStatusByProcessInstanceId(Long processInstanceId,
List<org.kie.api.task.model.Status> status,
org.kie.internal.query.QueryFilter filter)
Get a list of tasks the Process Instance is waiting on with one of the
listed statuses.
|
List<org.kie.api.task.model.TaskSummary> |
getTasksByVariable(String userId,
String variableName,
List<org.kie.api.task.model.Status> statuses,
org.kie.api.runtime.query.QueryContext queryContext)
Gets a list of
TaskSummary instances for the given arguments |
List<org.kie.api.task.model.TaskSummary> |
getTasksByVariableAndValue(String userId,
String variableName,
String variableValue,
List<org.kie.api.task.model.Status> statuses,
org.kie.api.runtime.query.QueryContext queryContext)
Gets a list of
TaskSummary instances for the given arguments |
List<org.kie.api.task.model.TaskSummary> |
getTasksOwned(String userId,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user has claimed.
|
List<org.kie.api.task.model.TaskSummary> |
getTasksOwnedByExpirationDateOptional(String userId,
List<org.kie.api.task.model.Status> strStatuses,
Date from,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user has claimed with one of the listed
statuses and expiration date starting at
from. |
List<org.kie.api.task.model.TaskSummary> |
getTasksOwnedByStatus(String userId,
List<org.kie.api.task.model.Status> status,
org.kie.internal.query.QueryFilter filter)
Return a list of tasks the user has claimed with one of the listed
statuses.
|
org.kie.api.task.UserGroupCallback |
getUserGroupCallback() |
Collection<VariableDesc> |
getVariableHistory(long processInstanceId,
String variableId,
org.kie.api.runtime.query.QueryContext queryContext)
Returns collection of changes to given variable within scope of process instance
|
Collection<VariableDesc> |
getVariablesCurrentState(long processInstanceId)
Returns collections of all process variables current value for given process instance
|
protected List<?> |
mergeLists(List<?> source,
List<?> values) |
void |
onActivate(DeploymentEvent event) |
void |
onDeactivate(DeploymentEvent event) |
void |
onDeploy(DeploymentEvent event) |
void |
onUnDeploy(DeploymentEvent event) |
void |
setCommandService(TransactionalCommandService commandService) |
void |
setDeploymentRolesManager(DeploymentRolesManager deploymentRolesManager) |
void |
setIdentityProvider(org.kie.internal.identity.IdentityProvider identityProvider) |
void |
setTaskAuditService(TaskAuditService taskAuditService) |
void |
setTaskService(org.kie.api.task.TaskService taskService) |
void |
setUserGroupCallback(org.kie.api.task.UserGroupCallback userGroupCallback) |
org.kie.internal.task.query.TaskSummaryQueryBuilder |
taskSummaryQuery(String userId)
Query on
TaskSummary instaances. |
protected Set<ProcessDefinition> availableProcesses
protected org.kie.api.task.TaskService taskService
protected TaskAuditService taskAuditService
public void setCommandService(TransactionalCommandService commandService)
public void setIdentityProvider(org.kie.internal.identity.IdentityProvider identityProvider)
public void setUserGroupCallback(org.kie.api.task.UserGroupCallback userGroupCallback)
public org.kie.api.task.UserGroupCallback getUserGroupCallback()
public void setTaskService(org.kie.api.task.TaskService taskService)
public void setTaskAuditService(TaskAuditService taskAuditService)
public void setDeploymentRolesManager(DeploymentRolesManager deploymentRolesManager)
public void onDeploy(DeploymentEvent event)
onDeploy in interface DeploymentEventListenerpublic void onUnDeploy(DeploymentEvent event)
onUnDeploy in interface DeploymentEventListenerpublic void onActivate(DeploymentEvent event)
onActivate in interface DeploymentEventListenerpublic void onDeactivate(DeploymentEvent event)
onDeactivate in interface DeploymentEventListenerprotected void applyQueryContext(Map<String,Object> params, org.kie.api.runtime.query.QueryContext queryContext)
protected <T> Collection<T> applyPaginition(List<T> input, org.kie.api.runtime.query.QueryContext queryContext)
protected void applySorting(List<ProcessDefinition> input, org.kie.api.runtime.query.QueryContext queryContext)
public Collection<ProcessDefinition> getProcessesByDeploymentId(String deploymentId, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessesByDeploymentId in interface RuntimeDataServicedeploymentId - The deployment id of the runtime.queryContext - control parameters for the result e.g. sorting, pagingProcessDefinition instances representing processes that match
the given criteria (deploymentId)public ProcessDefinition getProcessesByDeploymentIdProcessId(String deploymentId, String processId)
RuntimeDataServicegetProcessesByDeploymentIdProcessId in interface RuntimeDataServicedeploymentId - The id of the deployment (runtime)processId - The id of the processProcessDefinition instance, representing the Process
that is present in the specified deployment with the specified (process) id.public Collection<ProcessDefinition> getProcessesByFilter(String filter, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessesByFilter in interface RuntimeDataServicefilter - A regular expression.queryContext - control parameters for the result e.g. sorting, pagingProcessDefinition instances whose name or id matches the given regular expression.@Deprecated public ProcessDefinition getProcessById(String processId)
RuntimeDataServicegetProcessesById(String processId) instead
getProcessById in interface RuntimeDataServiceprocessId - The id of the processProcessDefinition instance, representing the Process
with the specified (process) id.RuntimeDataService.getProcessesById(String)public Collection<ProcessDefinition> getProcessesById(String processId)
RuntimeDataServicegetProcessesById in interface RuntimeDataServiceprocessId - The id of the processProcessDefinition instance, representing the Process
with the specified (process) id.public Collection<ProcessDefinition> getProcesses(org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcesses in interface RuntimeDataServicequeryContext - control parameters for the result e.g. sorting, pagingProcessDefinition instances.public Collection<String> getProcessIds(String deploymentId, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessIds in interface RuntimeDataServicedeploymentId - The deployment id of the runtime.queryContext - control parameters for the result e.g. sorting, pagingpublic Collection<ProcessInstanceDesc> getProcessInstances(org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstances in interface RuntimeDataServicequeryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the available process instances.public Collection<ProcessInstanceDesc> getProcessInstances(List<Integer> states, String initiator, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServiceinitiator.getProcessInstances in interface RuntimeDataServicestates - A list of possible state (int) values that the ProcessInstance can have.initiator - The initiator of the ProcessInstance.queryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the process instances that match
the given criteria (states and initiator).public Collection<ProcessInstanceDesc> getProcessInstancesByDeploymentId(String deploymentId, List<Integer> states, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByDeploymentId in interface RuntimeDataServicedeploymentId - The deployment id of the runtime.states - A list of possible state (int) values that the ProcessInstance can have.queryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the process instances that match
the given criteria (deploymentId and states).public Collection<ProcessInstanceDesc> getProcessInstancesByProcessDefinition(String processDefId, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByProcessDefinition in interface RuntimeDataServiceprocessDefId - The id of the process (definition)queryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the process instances that match
the given criteria (deploymentId and states).public Collection<ProcessInstanceDesc> getProcessInstancesByProcessDefinition(String processDefId, List<Integer> states, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByProcessDefinition in interface RuntimeDataServiceprocessDefId - The id of the process (definition)states - A list of possible state (int) values that the ProcessInstance can have.queryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the process instances that match
the given criteria (deploymentId and states).public ProcessInstanceDesc getProcessInstanceById(long processId)
RuntimeDataServicegetProcessInstanceById in interface RuntimeDataServiceprocessId - The id of the process instance to be fetchedProcessInstanceDesc instance.public ProcessInstanceDesc getProcessInstanceByCorrelationKey(org.kie.internal.process.CorrelationKey correlationKey)
RuntimeDataServicegetProcessInstanceByCorrelationKey in interface RuntimeDataServicecorrelationKey - correlation key assigned to process instanceProcessInstanceDesc instance.public Collection<ProcessInstanceDesc> getProcessInstancesByCorrelationKey(org.kie.internal.process.CorrelationKey correlationKey, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByCorrelationKey in interface RuntimeDataServicecorrelationKey - correlation key assigned to process instanceProcessInstanceDesc instances representing the process instances that match
the given correlation keypublic Collection<ProcessInstanceDesc> getProcessInstancesByCorrelationKeyAndStatus(org.kie.internal.process.CorrelationKey correlationKey, List<Integer> states, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByCorrelationKeyAndStatus in interface RuntimeDataServicecorrelationKey - correlation key assigned to process instancestates - A list of possible state (int) values that the ProcessInstance can have.ProcessInstanceDesc instances representing the process instances that match
the given correlation keypublic Collection<ProcessInstanceDesc> getProcessInstancesByProcessId(List<Integer> states, String processId, String initiator, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServiceinitiatorgetProcessInstancesByProcessId in interface RuntimeDataServicestates - A list of possible state (int) values that the ProcessInstance can have.processId - The id of the Process (definition) used when starting the process instance.initiator - The initiator of the ProcessInstance.queryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the process instances that match
the given criteria (states, processId, and initiator).public Collection<ProcessInstanceDesc> getProcessInstancesByProcessName(List<Integer> states, String processName, String initiator, org.kie.api.runtime.query.QueryContext queryContext)
getProcessInstancesByProcessName in interface RuntimeDataServicestates - A list of possible state (int) values that the ProcessInstance can have.processName - The name (not id!) of the Process (definition) used when starting the process instance.initiator - The initiator of the ProcessInstance.queryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the process instances that match
the given criteria (states, processName and initiator).public Collection<ProcessInstanceDesc> getProcessInstancesByVariable(String variableName, List<Integer> states, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByVariable in interface RuntimeDataServicevariableName - name of the variable that process instance should havestates - A list of possible state (int) values that the ProcessInstance can have. If null will return only active instancesqueryContext - control parameters for the result e.g. sorting, pagingpublic Collection<ProcessInstanceDesc> getProcessInstancesByVariableAndValue(String variableName, String variableValue, List<Integer> states, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByVariableAndValue in interface RuntimeDataServicevariableName - name of the variable that process instance should havevariableValue - value of the variable to matchstates - A list of possible state (int) values that the ProcessInstance can have. If null will return only active instancesqueryContext - control parameters for the result e.g. sorting, pagingpublic Collection<ProcessInstanceDesc> getProcessInstancesByParent(Long parentProcessInstanceId, List<Integer> states, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesByParent in interface RuntimeDataServiceparentProcessInstanceId - id of the parent process instancestates - list of possible state (int) values that the ProcessInstance can have. If null will return only active instancesqueryContext - control parameters for the result e.g. sorting, pagingProcessInstanceDesc instances representing the available process instances.public Collection<ProcessInstanceDesc> getProcessInstancesWithSubprocessByProcessInstanceId(Long parentProcessInstanceId, List<Integer> states, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstancesWithSubprocessByProcessInstanceId in interface RuntimeDataServiceparentProcessInstanceId - id of the parent process instanceProcessInstanceDesc instances representing the full hierarchy of this processpublic Collection<NodeInstanceDesc> getProcessInstanceHistoryActive(long processId, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstanceHistoryActive in interface RuntimeDataServiceprocessId - unique identifier of process instancequeryContext - control parameters for the result e.g. sorting, pagingpublic Collection<NodeInstanceDesc> getProcessInstanceHistoryCompleted(long processId, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstanceHistoryCompleted in interface RuntimeDataServiceprocessId - unique identifier of process instancequeryContext - control parameters for the result e.g. sorting, pagingprotected Collection<NodeInstanceDesc> getProcessInstanceHistory(long processId, boolean completed, org.kie.api.runtime.query.QueryContext queryContext)
public Collection<NodeInstanceDesc> getProcessInstanceFullHistory(long processId, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstanceFullHistory in interface RuntimeDataServiceprocessId - The id of the process used to start the process instance.queryContext - control parameters for the result e.g. sorting, pagingNodeInstance information, in the form of a list of NodeInstanceDesc instances,
that comes from a process instance that matches the given criteria (deploymentId, processId).public Collection<NodeInstanceDesc> getProcessInstanceFullHistoryByType(long processId, RuntimeDataService.EntryType type, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetProcessInstanceFullHistoryByType in interface RuntimeDataServiceprocessId - The id of the process used to start the process instance.type - type of events that shall be returned (START, END, ABORTED, SKIPPED, OBSOLETE or ERROR) - to return all use RuntimeDataService.getProcessInstanceFullHistory(long, QueryContext)queryContext - control parameters for the result e.g. sorting, pagingpublic NodeInstanceDesc getNodeInstanceForWorkItem(Long workItemId)
RuntimeDataServicegetNodeInstanceForWorkItem in interface RuntimeDataServiceworkItemId - identifier of the work itempublic Collection<NodeInstanceDesc> getNodeInstancesByNodeType(long processInstanceId, List<String> nodeTypes, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetNodeInstancesByNodeType in interface RuntimeDataServiceprocessInstanceId - unique identifier of process instancenodeTypes - list of node types to filter nodes of process instancequeryContext - control parameters for the result e.g. sorting, pagingpublic Collection<NodeInstanceDesc> getNodeInstancesByCorrelationKeyNodeType(org.kie.internal.process.CorrelationKey correlationKey, List<Integer> states, List<String> nodeTypes, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetNodeInstancesByCorrelationKeyNodeType in interface RuntimeDataServicecorrelationKey - correlation keystates - list of statesnodeTypes - list of node types to filter nodes of process instancequeryContext - control parameters for the result e.g. sorting, pagingpublic Collection<VariableDesc> getVariablesCurrentState(long processInstanceId)
RuntimeDataServicegetVariablesCurrentState in interface RuntimeDataServiceprocessInstanceId - The process instance id.VariableDesc instances.public Collection<VariableDesc> getVariableHistory(long processInstanceId, String variableId, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServicegetVariableHistory in interface RuntimeDataServiceprocessInstanceId - The process instance id.variableId - The id of the variablequeryContext - control parameters for the result e.g. sorting, pagingVariableDesc instances.public UserTaskInstanceDesc getTaskByWorkItemId(Long workItemId)
RuntimeDataServicegetTaskByWorkItemId in interface RuntimeDataServiceUserTaskInstanceDesc taskpublic UserTaskInstanceDesc getTaskById(Long taskId)
RuntimeDataServicegetTaskById in interface RuntimeDataServiceUserTaskInstanceDesc taskpublic UserTaskInstanceDesc getTaskById(Long taskId, boolean withSLA)
RuntimeDataServicegetTaskById in interface RuntimeDataServiceUserTaskInstanceDesc taskpublic List<org.kie.api.task.model.TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksAssignedAsBusinessAdministrator in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksAssignedAsPotentialOwner(String userId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksAssignedAsPotentialOwner in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksAssignedAsPotentialOwner in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, List<org.kie.api.task.model.Status> status, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksAssignedAsPotentialOwner in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksAssignedAsPotentialOwnerByStatus(String userId, List<org.kie.api.task.model.Status> status, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksAssignedAsPotentialOwnerByStatus in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksAssignedAsPotentialOwnerByExpirationDateOptional(String userId, List<org.kie.api.task.model.Status> status, Date from, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicefrom. Tasks that do not have expiration date set
will also be included in the result set.getTasksAssignedAsPotentialOwnerByExpirationDateOptional in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksOwnedByExpirationDateOptional(String userId, List<org.kie.api.task.model.Status> strStatuses, Date from, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicefrom. Tasks that do not have expiration date set
will also be included in the result set.getTasksOwnedByExpirationDateOptional in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksOwned(String userId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksOwned in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksOwnedByStatus(String userId, List<org.kie.api.task.model.Status> status, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksOwnedByStatus in interface RuntimeDataServiceTaskSummary task summariespublic List<Long> getTasksByProcessInstanceId(Long processInstanceId)
RuntimeDataServicegetTasksByProcessInstanceId in interface RuntimeDataServicepublic List<org.kie.api.task.model.TaskSummary> getTasksByStatusByProcessInstanceId(Long processInstanceId, List<org.kie.api.task.model.Status> status, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksByStatusByProcessInstanceId in interface RuntimeDataServiceTaskSummary task summariespublic List<org.kie.api.task.model.TaskSummary> getTasksAssignedAsBusinessAdministratorByStatus(String userId, List<org.kie.api.task.model.Status> statuses, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTasksAssignedAsBusinessAdministratorByStatus in interface RuntimeDataServiceTaskSummary task summariespublic org.kie.internal.task.query.TaskSummaryQueryBuilder taskSummaryQuery(String userId)
RuntimeDataServiceTaskSummary instaances.taskSummaryQuery in interface RuntimeDataServiceuserId - The user associated with the tasks queried.TaskSummaryQueryBuilder used to create the query.public List<org.kie.api.task.model.TaskSummary> getTasksByVariable(String userId, String variableName, List<org.kie.api.task.model.Status> statuses, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServiceTaskSummary instances for the given argumentsgetTasksByVariable in interface RuntimeDataServiceuserId - The id of the user associated with the tasksvariableName - The name of the task variablestatuses - The list of Status's that the task can havequeryContext - The query context.List of TaskSummary instances.public List<org.kie.api.task.model.TaskSummary> getTasksByVariableAndValue(String userId, String variableName, String variableValue, List<org.kie.api.task.model.Status> statuses, org.kie.api.runtime.query.QueryContext queryContext)
RuntimeDataServiceTaskSummary instances for the given argumentsgetTasksByVariableAndValue in interface RuntimeDataServiceuserId - The id of the user associated with the tasksvariableName - The name of the task variablevariableValue - The value of the task variablestatuses - The list of Status's that the task can havequeryContext - The query context.List of TaskSummary instances.public List<org.kie.internal.task.api.AuditTask> getAllAuditTask(String userId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetAllAuditTask in interface RuntimeDataServiceAuditTask audit taskspublic List<org.kie.internal.task.api.AuditTask> getAllAuditTaskByStatus(String userId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetAllAuditTaskByStatus in interface RuntimeDataServiceAuditTask audit taskspublic List<org.kie.internal.task.api.AuditTask> getAllGroupAuditTask(String userId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetAllGroupAuditTask in interface RuntimeDataServiceAuditTask audit taskspublic List<org.kie.internal.task.api.AuditTask> getAllAdminAuditTask(String userId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetAllAdminAuditTask in interface RuntimeDataServiceAuditTask audit taskspublic List<org.kie.internal.task.api.model.TaskEvent> getTaskEvents(long taskId, org.kie.internal.query.QueryFilter filter)
RuntimeDataServicegetTaskEvents in interface RuntimeDataServiceTaskEvent task eventsprotected void applyQueryFilter(Map<String,Object> params, org.kie.internal.query.QueryFilter queryFilter)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.