|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.facade.impl.RuntimeReadOnlyAPIImpl
public class RuntimeReadOnlyAPIImpl
Field Summary | |
---|---|
protected static java.util.logging.Logger |
LOG
|
protected QueryAPI |
queryAPI
|
Constructor Summary | |
---|---|
RuntimeReadOnlyAPIImpl()
|
Method Summary | |
---|---|
protected org.ow2.bonita.runtime.XpdlInstance |
getInstance(java.lang.String instanceId)
|
protected org.ow2.bonita.services.record.TaskRecord |
getTask(java.lang.String taskId)
|
java.util.Collection<org.ow2.bonita.services.record.TaskRecord> |
getTaskList(org.ow2.bonita.util.Constants.TaskState taskState)
Obtain the user tasks with state either READY or EXECUTING or SUSPENDED for the given instance. |
java.util.Collection<org.ow2.bonita.services.record.TaskRecord> |
getTaskList(java.lang.String instanceId,
org.ow2.bonita.util.Constants.TaskState taskState)
Obtain the user tasks with state either READY or EXECUTING or SUSPENDED for the given instance. |
java.lang.Object |
getVariable(java.lang.String instanceId,
java.lang.String variableId)
Obtain a process variable for the given instance and variable . |
java.lang.Object |
getVariable(java.lang.String instanceId,
java.lang.String activityId,
java.lang.String variableId)
Obtain a variable for the given activity and instance. |
java.util.Map<java.lang.String,java.lang.Object> |
getVariableDefinitions(java.lang.String processId)
Obtain the variable definitions of the process for the given process. |
java.util.Map<java.lang.String,java.lang.Object> |
getVariableDefinitions(java.lang.String processId,
java.lang.String activityId)
Obtain variable definitions (including global process and local activity variables)for the given process and activity. |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables(java.lang.String instanceId)
Obtain the process variables for the given instance. |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables(java.lang.String instanceId,
java.lang.String activityId)
Obtain the activity variables (including global process and local activity variables) for the given instance and activity. |
protected org.ow2.bonita.definition.XpdlProcess |
getXpdlProcess(java.lang.String processId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger LOG
protected final QueryAPI queryAPI
Constructor Detail |
---|
public RuntimeReadOnlyAPIImpl()
Method Detail |
---|
public java.util.Collection<org.ow2.bonita.services.record.TaskRecord> getTaskList(java.lang.String instanceId, org.ow2.bonita.util.Constants.TaskState taskState) throws InstanceNotFoundException
RuntimeReadOnlyAPI
getTaskList
in interface RuntimeReadOnlyAPI
instanceId
- the instance id.taskState
- the state of the task.
InstanceNotFoundException
- if no instance record is found with the given instance id.public java.util.Collection<org.ow2.bonita.services.record.TaskRecord> getTaskList(org.ow2.bonita.util.Constants.TaskState taskState)
RuntimeReadOnlyAPI
getTaskList
in interface RuntimeReadOnlyAPI
taskState
- the state of the task.
protected org.ow2.bonita.services.record.TaskRecord getTask(java.lang.String taskId) throws TaskNotFoundException
TaskNotFoundException
public java.util.Map<java.lang.String,java.lang.Object> getVariables(java.lang.String instanceId, java.lang.String activityId) throws ActivityNotFoundException
RuntimeReadOnlyAPI
getVariables
in interface RuntimeReadOnlyAPI
instanceId
- the instance id.activityId
- the activity id.
ActivityNotFoundException
- if no activity record is found with the given activity id.public java.lang.Object getVariable(java.lang.String instanceId, java.lang.String activityId, java.lang.String variableId) throws InstanceNotFoundException, ActivityNotFoundException, VariableNotFoundException
RuntimeReadOnlyAPI
getVariable
in interface RuntimeReadOnlyAPI
instanceId
- the instance id.activityId
- the activity id.variableId
- the variable id.
InstanceNotFoundException
- if no instance record is found with the given instance id.
ActivityNotFoundException
- if no activity record is found with the given activity id.
VariableNotFoundException
- if no variable is found with the given id.public java.util.Map<java.lang.String,java.lang.Object> getVariables(java.lang.String instanceId) throws InstanceNotFoundException
RuntimeReadOnlyAPI
getVariables
in interface RuntimeReadOnlyAPI
instanceId
- the instance id.
InstanceNotFoundException
- if no instance record is found with the given instance id.public java.lang.Object getVariable(java.lang.String instanceId, java.lang.String variableId) throws InstanceNotFoundException, VariableNotFoundException
RuntimeReadOnlyAPI
getVariable
in interface RuntimeReadOnlyAPI
instanceId
- the instance id.variableId
- the variable id.
InstanceNotFoundException
- if no instance record is found with the given instance id.
VariableNotFoundException
- if no variable is found with the given id.public java.util.Map<java.lang.String,java.lang.Object> getVariableDefinitions(java.lang.String processId, java.lang.String activityId) throws ProcessNotFoundException, ActivityNotFoundException
RuntimeReadOnlyAPI
getVariableDefinitions
in interface RuntimeReadOnlyAPI
processId
- the process Id.activityId
- the activity id.
ProcessNotFoundException
- if no process record is found with the given process id.
ActivityNotFoundException
- if no activity record is found with the given activity id.public java.util.Map<java.lang.String,java.lang.Object> getVariableDefinitions(java.lang.String processId) throws ProcessNotFoundException
RuntimeReadOnlyAPI
getVariableDefinitions
in interface RuntimeReadOnlyAPI
processId
- the process Id.
ProcessNotFoundException
- if no process record is found with the given process id.protected org.ow2.bonita.definition.XpdlProcess getXpdlProcess(java.lang.String processId) throws ProcessNotFoundException
ProcessNotFoundException
protected org.ow2.bonita.runtime.XpdlInstance getInstance(java.lang.String instanceId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |