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<Boolean> |
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> |
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
ProcessInstanceAdminServicegetProcessNodes in interface ProcessInstanceAdminServiceprocessInstanceId - 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
ProcessInstanceAdminServicecancelNodeInstance in interface ProcessInstanceAdminServiceprocessInstanceId - 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
ProcessInstanceAdminServiceretriggerNodeInstance in interface ProcessInstanceAdminServiceprocessInstanceId - 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
ProcessInstanceAdminServiceupdateTimer in interface ProcessInstanceAdminServiceprocessInstanceId - 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
ProcessInstanceAdminServiceupdateTimerRelative in interface ProcessInstanceAdminServiceprocessInstanceId - 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
ProcessInstanceAdminServicegetTimerInstances in interface ProcessInstanceAdminServiceprocessInstanceId - 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
ProcessInstanceAdminServicetriggerNode in interface ProcessInstanceAdminServiceprocessInstanceId - 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
ProcessInstanceAdminServicegetActiveNodeInstances in interface ProcessInstanceAdminServiceprocessInstanceId - unique id of process instanceProcessInstanceNotFoundException - in case process instance id with given id was not foundpublic void acknowledgeError(String... errorId) throws ExecutionErrorNotFoundException
ProcessInstanceAdminServiceacknowledgeError in interface ProcessInstanceAdminServiceerrorId - 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
ProcessInstanceAdminServicegetError in interface ProcessInstanceAdminServiceerrorId - 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)
ProcessInstanceAdminServicegetErrors in interface ProcessInstanceAdminServiceincludeAcknowledged - 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)
ProcessInstanceAdminServicegetErrorsByProcessId in interface ProcessInstanceAdminServicedeploymentId - 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)
ProcessInstanceAdminServicegetErrorsByProcessInstanceId in interface ProcessInstanceAdminServiceprocessInstanceId - 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)
ProcessInstanceAdminServicegetErrorsByProcessInstanceId in interface ProcessInstanceAdminServiceprocessInstanceId - 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 paginationprotected void applyQueryContext(Map<String,Object> params, org.kie.api.runtime.query.QueryContext queryContext)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.