public class ProcessInstanceAdminServiceImpl extends Object implements ProcessInstanceAdminService
| Constructor and Description |
|---|
ProcessInstanceAdminServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelNodeInstance(long processInstanceId,
long nodeInstanceId)
Cancels node instance with given id within given process instance.
|
Collection<NodeInstanceDesc> |
getActiveNodeInstances(long processInstanceId)
Returns all active node instances in given process instance;
|
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 |
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 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 foundCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.