public class ProcessInstanceAdminServiceImpl extends Object implements ProcessInstanceAdminService
Constructor and Description |
---|
ProcessInstanceAdminServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeError(String... errorId)
Acknowledge given error that it was reviewed and understood
|
protected void |
applyQueryContext(Map<String,Object> params,
org.kie.api.runtime.query.QueryContext queryContext) |
void |
cancelNodeInstance(long processInstanceId,
long nodeInstanceId)
Cancels node instance with given id within given process instance.
|
protected List<Short> |
getAckMode(boolean includeAcknowledged) |
Collection<NodeInstanceDesc> |
getActiveNodeInstances(long processInstanceId)
Returns all active node instances in given process instance;
|
org.kie.internal.runtime.error.ExecutionError |
getError(String errorId)
Returns execution error identified by given error id
|
List<org.kie.internal.runtime.error.ExecutionError> |
getErrors(boolean includeAcknowledged,
org.kie.api.runtime.query.QueryContext queryContext)
Returns all execution errors regardless of their type
|
List<org.kie.internal.runtime.error.ExecutionError> |
getErrorsByDeploymentId(String containerId,
boolean includeAcknowledged,
org.kie.api.runtime.query.QueryContext queryContext)
Returns all execution errors for a given deployment regardless of their type
|
List<org.kie.internal.runtime.error.ExecutionError> |
getErrorsByProcessId(String deploymentId,
String processId,
boolean includeAcknowledged,
org.kie.api.runtime.query.QueryContext queryContext)
Returns execution errors for given process id and deployment id
|
List<org.kie.internal.runtime.error.ExecutionError> |
getErrorsByProcessInstanceId(long processInstanceId,
boolean includeAcknowledged,
org.kie.api.runtime.query.QueryContext queryContext)
Returns execution errors for given process instance id
|
List<org.kie.internal.runtime.error.ExecutionError> |
getErrorsByProcessInstanceId(long processInstanceId,
String nodeName,
boolean includeAcknowledged,
org.kie.api.runtime.query.QueryContext queryContext)
Returns execution errors for given process instance id and node
|
Collection<ProcessNode> |
getProcessNodes(long processInstanceId)
Returns all process nodes found in given process instance.
|
Collection<TimerInstance> |
getTimerInstances(long processInstanceId)
Returns active timers for given process instance.
|
void |
retriggerNodeInstance(long processInstanceId,
long nodeInstanceId)
Retriggers (which includes cancel) node instance given with node instance id within process instance.
|
void |
setCommandService(TransactionalCommandService commandService) |
void |
setIdentityProvider(org.kie.internal.identity.IdentityProvider identityProvider) |
void |
setProcessService(ProcessService processService) |
void |
setRuntimeDataService(RuntimeDataService runtimeDataService) |
void |
triggerNode(long processInstanceId,
long nodeId)
Triggers node to create new node instance with node id within process instance.
|
void |
updateTimer(long processInstanceId,
long timerId,
long delay,
long period,
int repeatLimit)
Updates active timer identified by timer id with delay that is given in seconds.
|
void |
updateTimerRelative(long processInstanceId,
long timerId,
long delay,
long period,
int repeatLimit)
Updates active timer identified by timer id with delay that is given in seconds and is relative to current time.
|
public void setProcessService(ProcessService processService)
public void setRuntimeDataService(RuntimeDataService runtimeDataService)
public void setIdentityProvider(org.kie.internal.identity.IdentityProvider identityProvider)
public void setCommandService(TransactionalCommandService commandService)
public Collection<ProcessNode> getProcessNodes(long processInstanceId) throws ProcessInstanceNotFoundException
ProcessInstanceAdminService
getProcessNodes
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instanceProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic void cancelNodeInstance(long processInstanceId, long nodeInstanceId) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
ProcessInstanceAdminService
cancelNodeInstance
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instancenodeInstanceId
- node instance id within given process instance to be canceledNodeInstanceNotFoundException
- in case node instance with given id is not activeProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic void retriggerNodeInstance(long processInstanceId, long nodeInstanceId) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
ProcessInstanceAdminService
retriggerNodeInstance
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instancenodeInstanceId
- node instance id within given process instance to be retriggeredNodeInstanceNotFoundException
- in case node instance with given id is not activeProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic void updateTimer(long processInstanceId, long timerId, long delay, long period, int repeatLimit) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
ProcessInstanceAdminService
updateTimer
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instancetimerId
- timer id that should be updateddelay
- absolute delay in secondsperiod
- in case of repeatable timer how often it should repeat in milliseconds - if not applicable should be set to -1repeatLimit
- in case of repeatable timer how many times it should trigger - if not applicable should be set to -1NodeInstanceNotFoundException
- in case node instance with given id is not activeProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic void updateTimerRelative(long processInstanceId, long timerId, long delay, long period, int repeatLimit) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
ProcessInstanceAdminService
updateTimerRelative
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instancetimerId
- timer id that should be updateddelay
- absolute delay in secondsperiod
- in case of repeatable timer how often it should repeat in milliseconds - if not applicable should be set to -1repeatLimit
- in case of repeatable timer how many times it should trigger - if not applicable should be set to -1NodeInstanceNotFoundException
- in case node instance with given id is not activeProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic Collection<TimerInstance> getTimerInstances(long processInstanceId) throws ProcessInstanceNotFoundException
ProcessInstanceAdminService
getTimerInstances
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instanceProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic void triggerNode(long processInstanceId, long nodeId) throws NodeNotFoundException, ProcessInstanceNotFoundException
ProcessInstanceAdminService
triggerNode
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instancenodeId
- node id to be triggered (new instance of that node to be created)NodeNotFoundException
- in case node with given id does not exist in process instanceProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic Collection<NodeInstanceDesc> getActiveNodeInstances(long processInstanceId) throws ProcessInstanceNotFoundException
ProcessInstanceAdminService
getActiveNodeInstances
in interface ProcessInstanceAdminService
processInstanceId
- unique id of process instanceProcessInstanceNotFoundException
- in case process instance id with given id was not foundpublic void acknowledgeError(String... errorId) throws ExecutionErrorNotFoundException
ProcessInstanceAdminService
acknowledgeError
in interface ProcessInstanceAdminService
errorId
- unique id of the errorExecutionErrorNotFoundException
- thrown when there is no unacknowledged error with that idpublic org.kie.internal.runtime.error.ExecutionError getError(String errorId) throws ExecutionErrorNotFoundException
ProcessInstanceAdminService
getError
in interface ProcessInstanceAdminService
errorId
- unique id of the errorExecutionErrorNotFoundException
- is thrown in case no error was found for given error idpublic List<org.kie.internal.runtime.error.ExecutionError> getErrors(boolean includeAcknowledged, org.kie.api.runtime.query.QueryContext queryContext)
ProcessInstanceAdminService
getErrors
in interface ProcessInstanceAdminService
includeAcknowledged
- indicates whether to include acknowledged errors or notqueryContext
- control parameters for paginationpublic List<org.kie.internal.runtime.error.ExecutionError> getErrorsByProcessId(String deploymentId, String processId, boolean includeAcknowledged, org.kie.api.runtime.query.QueryContext queryContext)
ProcessInstanceAdminService
getErrorsByProcessId
in interface ProcessInstanceAdminService
deploymentId
- deployment id that contains given processprocessId
- process id of the processincludeAcknowledged
- indicates whether to include acknowledged errors or notqueryContext
- control parameters for paginationpublic List<org.kie.internal.runtime.error.ExecutionError> getErrorsByProcessInstanceId(long processInstanceId, boolean includeAcknowledged, org.kie.api.runtime.query.QueryContext queryContext)
ProcessInstanceAdminService
getErrorsByProcessInstanceId
in interface ProcessInstanceAdminService
processInstanceId
- process instance id of the processincludeAcknowledged
- indicates whether to include acknowledged errors or notqueryContext
- control parameters for paginationpublic List<org.kie.internal.runtime.error.ExecutionError> getErrorsByProcessInstanceId(long processInstanceId, String nodeName, boolean includeAcknowledged, org.kie.api.runtime.query.QueryContext queryContext)
ProcessInstanceAdminService
getErrorsByProcessInstanceId
in interface ProcessInstanceAdminService
processInstanceId
- process instance id of the processnodeName
- name of the node that error should be found forincludeAcknowledged
- indicates whether to include acknowledged errors or notqueryContext
- control parameters for paginationpublic List<org.kie.internal.runtime.error.ExecutionError> getErrorsByDeploymentId(String containerId, boolean includeAcknowledged, org.kie.api.runtime.query.QueryContext queryContext)
ProcessInstanceAdminService
getErrorsByDeploymentId
in interface ProcessInstanceAdminService
containerId
- deployment id that contains the errorsincludeAcknowledged
- indicates whether to include acknowledged errors or notqueryContext
- control parameters for paginationprotected void applyQueryContext(Map<String,Object> params, org.kie.api.runtime.query.QueryContext queryContext)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.