|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.facade.impl.RuntimeReadOnlyAPIImpl
org.ow2.bonita.facade.impl.RuntimeAPIImpl
public class RuntimeAPIImpl
Field Summary |
---|
Fields inherited from class org.ow2.bonita.facade.impl.RuntimeReadOnlyAPIImpl |
---|
LOG, queryAPI |
Constructor Summary | |
---|---|
RuntimeAPIImpl()
|
Method Summary | |
---|---|
void |
deleteAllInstances(java.lang.String processId)
This method is only dedicated for bonita unit tests! |
void |
deleteInstance(java.lang.String instanceId)
This method is only dedicated for bonita unit tests! |
void |
finishTask(java.lang.String taskId)
Finish the task. |
java.lang.String |
instantiateProcess(java.lang.String processId)
Create an instance of the specified process and return the instanceId |
java.lang.String |
instantiateProcess(java.lang.String processId,
java.util.Map<java.lang.String,java.lang.Object> variables)
create an instance of the specified process with the added variable map and start the execution. |
void |
resumeTask(java.lang.String taskId)
Resume the task if the task has SUSPENDED state. |
void |
setVariable(java.lang.String instanceId,
java.lang.String variableId,
java.lang.Object variableValue)
Search for variable with id variableId into instance with id instanceId and set the given value to the found variable. |
void |
setVariable(java.lang.String instanceId,
java.lang.String activityId,
java.lang.String variableId,
java.lang.Object variableValue)
Search for variable with id variableId into instance with id instanceId and within the activity with id activityId and set the given value to the found variable. |
void |
startTask(java.lang.String taskId)
start the task. |
void |
suspendTask(java.lang.String taskId)
Suspend the task if the task has EXECUTING state. |
Methods inherited from class org.ow2.bonita.facade.impl.RuntimeReadOnlyAPIImpl |
---|
getInstance, getTask, getTaskList, getTaskList, getVariable, getVariable, getVariableDefinitions, getVariableDefinitions, getVariables, getVariables, getXpdlProcess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ow2.bonita.facade.RuntimeReadOnlyAPI |
---|
getTaskList, getTaskList, getVariable, getVariable, getVariableDefinitions, getVariableDefinitions, getVariables, getVariables |
Constructor Detail |
---|
public RuntimeAPIImpl()
Method Detail |
---|
public java.lang.String instantiateProcess(java.lang.String processId) throws ProcessNotFoundException
instantiateProcess
in interface RuntimeAPI
processId
- the process id.
ProcessNotFoundException
- if the process has not been found.public java.lang.String instantiateProcess(java.lang.String processId, java.util.Map<java.lang.String,java.lang.Object> variables) throws ProcessNotFoundException
RuntimeAPI
instantiateProcess
in interface RuntimeAPI
processId
- the process id.variables
- variables added to the variables already set within the process definition.
ProcessNotFoundException
- if the process has not been found.public void deleteInstance(java.lang.String instanceId)
RuntimeAPI
deleteInstance
in interface RuntimeAPI
instanceId
- the instance id.public void deleteAllInstances(java.lang.String processId)
RuntimeAPI
deleteAllInstances
in interface RuntimeAPI
processId
- the process id.public void startTask(java.lang.String taskId) throws TaskNotFoundException, IllegalTaskStateException
RuntimeAPI
startTask
in interface RuntimeAPI
taskId
- the task id.
TaskNotFoundException
- if the task has not been found.
IllegalTaskStateException
- if the state of the task has not READY state.public void finishTask(java.lang.String taskId) throws TaskNotFoundException, IllegalTaskStateException
RuntimeAPI
finishTask
in interface RuntimeAPI
taskId
- the task id.
TaskNotFoundException
- if the task has not been found.
IllegalTaskStateException
- if the state of the task has not EXECUTING state.public void suspendTask(java.lang.String taskId) throws TaskNotFoundException, IllegalTaskStateException, UnAuthorizedUserException
RuntimeAPI
suspendTask
in interface RuntimeAPI
taskId
- the task id.
TaskNotFoundException
- if the task has not been found.
IllegalTaskStateException
- if the state of the task has not either READY or EXECUTING state.
UnAuthorizedUserException
public void resumeTask(java.lang.String taskId) throws TaskNotFoundException, IllegalTaskStateException, UnAuthorizedUserException
RuntimeAPI
resumeTask
in interface RuntimeAPI
taskId
- the task id.
TaskNotFoundException
- if the task has not been found.
IllegalTaskStateException
- if the state of the task has not SUSPENDED state.
UnAuthorizedUserException
- if the user is not the user assigned to the task.public void setVariable(java.lang.String instanceId, java.lang.String variableId, java.lang.Object variableValue) throws InstanceNotFoundException
RuntimeAPI
setVariable
in interface RuntimeAPI
instanceId
- the instance id.variableId
- the variable id.variableValue
- the variable value.
InstanceNotFoundException
- if the instance has not been found.public void setVariable(java.lang.String instanceId, java.lang.String activityId, java.lang.String variableId, java.lang.Object variableValue) throws InstanceNotFoundException, ActivityNotFoundException
RuntimeAPI
setVariable
in interface RuntimeAPI
instanceId
- the instance id.activityId
- the activity id.variableId
- the variable id.variableValue
- the variable value.
InstanceNotFoundException
- if the instance has not been found.
ActivityNotFoundException
- if the activity has not been found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |