public interface ProcessInstanceAdminService
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 |
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.
|
Collection<ProcessNode> getProcessNodes(long processInstanceId) throws ProcessInstanceNotFoundException
processInstanceId
- unique id of process instanceProcessInstanceNotFoundException
- in case process instance id with given id was not foundvoid cancelNodeInstance(long processInstanceId, long nodeInstanceId) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
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 foundvoid retriggerNodeInstance(long processInstanceId, long nodeInstanceId) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
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 foundCollection<NodeInstanceDesc> getActiveNodeInstances(long processInstanceId) throws ProcessInstanceNotFoundException
processInstanceId
- unique id of process instanceProcessInstanceNotFoundException
- in case process instance id with given id was not foundvoid updateTimer(long processInstanceId, long timerId, long delay, long period, int repeatLimit) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
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 foundvoid updateTimerRelative(long processInstanceId, long timerId, long delay, long period, int repeatLimit) throws NodeInstanceNotFoundException, ProcessInstanceNotFoundException
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 foundCollection<TimerInstance> getTimerInstances(long processInstanceId) throws ProcessInstanceNotFoundException
processInstanceId
- unique id of process instanceProcessInstanceNotFoundException
- in case process instance id with given id was not foundvoid triggerNode(long processInstanceId, long nodeId) throws NodeNotFoundException, ProcessInstanceNotFoundException
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 foundCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.