|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutionService
manages runtime process executions.
Method Summary | |
---|---|
ProcessInstanceQuery |
createProcessInstanceQuery()
search for process instances with criteria. |
void |
createVariable(java.lang.String executionId,
java.lang.String name,
java.lang.Object value,
boolean historyEnabled)
creates a variable value in the referenced execution. optionally enables variable history tracking. |
void |
createVariables(java.lang.String executionId,
java.util.Map<java.lang.String,?> variables,
boolean historyEnabled)
creates variable values in the referenced execution. optionally enables variable history tracking. |
void |
deleteProcessInstance(java.lang.String processInstanceId)
delete a process instance. |
void |
deleteProcessInstanceCascade(java.lang.String processInstanceId)
delete a process instance, including the history information. |
void |
endProcessInstance(java.lang.String processInstanceId,
java.lang.String state)
end a process instance |
Execution |
findExecutionById(java.lang.String executionId)
the path of execution that is uniquely defined by the execution id. |
ProcessInstance |
findProcessInstanceById(java.lang.String processInstanceId)
the process instance that is uniquely defined by the process execution id. |
java.lang.Object |
getVariable(java.lang.String executionId,
java.lang.String variableName)
retrieves a variable |
java.util.Set<java.lang.String> |
getVariableNames(java.lang.String executionId)
all the variables visible in the given execution scope |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables(java.lang.String executionId,
java.util.Set<java.lang.String> variableNames)
retrieves a map of variables |
void |
setVariable(java.lang.String executionId,
java.lang.String name,
java.lang.Object value)
creates or overwrites a variable value in the referenced execution |
void |
setVariables(java.lang.String executionId,
java.util.Map<java.lang.String,?> variables)
creates or overwrites variable values in the referenced execution |
ProcessInstance |
signalExecutionById(java.lang.String executionId)
provides an external trigger to an execution. |
ProcessInstance |
signalExecutionById(java.lang.String executionId,
java.util.Map<java.lang.String,?> parameters)
provides a external trigger to an execution with parameters. |
ProcessInstance |
signalExecutionById(java.lang.String executionId,
java.lang.String signalName)
provides a named external trigger to an execution. |
ProcessInstance |
signalExecutionById(java.lang.String executionId,
java.lang.String signalName,
java.util.Map<java.lang.String,?> parameters)
provides a named external trigger to an execution with parameters. |
ProcessInstance |
startProcessInstanceById(java.lang.String processDefinitionId)
starts a new process instance for the ProcessDefinition with the given processDefinitionDbid. |
ProcessInstance |
startProcessInstanceById(java.lang.String processDefinitionId,
java.util.Map<java.lang.String,?> variables)
starts a new process instance for the ProcessDefinition with the given processDefinitionDbid. |
ProcessInstance |
startProcessInstanceById(java.lang.String processDefinitionId,
java.util.Map<java.lang.String,?> variables,
java.lang.String processInstanceKey)
starts a new process instance for the ProcessDefinition with the given processDefinitionDbid. |
ProcessInstance |
startProcessInstanceById(java.lang.String processDefinitionId,
java.lang.String processInstanceKey)
starts a new process instance for the ProcessDefinition with the given processDefinitionDbid. |
ProcessInstance |
startProcessInstanceByKey(java.lang.String processDefinitionKey)
starts a new process instance in the latest version of the given process definition. |
ProcessInstance |
startProcessInstanceByKey(java.lang.String processDefinitionKey,
java.util.Map<java.lang.String,?> variables)
starts a new process instance in the latest version of the given processDefinitionName. |
ProcessInstance |
startProcessInstanceByKey(java.lang.String processDefinitionKey,
java.util.Map<java.lang.String,?> variables,
java.lang.String processInstanceKey)
starts a new process instance in the latest version of the given processDefinitionName. |
ProcessInstance |
startProcessInstanceByKey(java.lang.String processDefinitionKey,
java.lang.String processInstanceKey)
starts a new process instance in the latest version of the given processDefinitionName. |
Method Detail |
---|
ProcessInstance startProcessInstanceById(java.lang.String processDefinitionId)
processDefinitionId
- the unique id
of the process definition.ProcessInstance startProcessInstanceById(java.lang.String processDefinitionId, java.lang.String processInstanceKey)
processDefinitionId
- the unique id
of the process definition.processInstanceKey
- is a user provided reference for the new process instance that must be unique over all
process definition versions with the same name.ProcessInstance startProcessInstanceById(java.lang.String processDefinitionId, java.util.Map<java.lang.String,?> variables)
processDefinitionId
- the unique id
of the process definition.variables
- are the initial values of the process variables that will be set before the execution starts.ProcessInstance startProcessInstanceById(java.lang.String processDefinitionId, java.util.Map<java.lang.String,?> variables, java.lang.String processInstanceKey)
processDefinitionId
- the unique id
of the process definition.variables
- are the initial values of the process variables that will be set before the execution starts.processInstanceKey
- is a user provided reference for the new process instance that must be unique over all
process versions with the same name.ProcessInstance startProcessInstanceByKey(java.lang.String processDefinitionKey)
processDefinitionKey
- is the key of the process definition for which the latest version will be taken.ProcessInstance startProcessInstanceByKey(java.lang.String processDefinitionKey, java.lang.String processInstanceKey)
processDefinitionKey
- is the key of the process definition
for which the latest version will be taken.processInstanceKey
- is a user provided reference for the new process instance
that must be unique over all process versions with the same name.ProcessInstance startProcessInstanceByKey(java.lang.String processDefinitionKey, java.util.Map<java.lang.String,?> variables)
processDefinitionKey
- is the key of the process definition
for which the latest version will be taken.variables
- are the initial values of the process variables that
will be set before the execution starts (read: before the initial
activity is executed).ProcessInstance startProcessInstanceByKey(java.lang.String processDefinitionKey, java.util.Map<java.lang.String,?> variables, java.lang.String processInstanceKey)
processDefinitionKey
- is the key of the process definition for which the latest version will be taken.variables
- are the initial values of the process variables that will be set before the execution starts.processInstanceKey
- is a user provided reference for the new execution that must be unique over all
process versions with the same name.Execution findExecutionById(java.lang.String executionId)
ProcessInstance findProcessInstanceById(java.lang.String processInstanceId)
ProcessInstance signalExecutionById(java.lang.String executionId)
ProcessInstance signalExecutionById(java.lang.String executionId, java.lang.String signalName)
ProcessInstance signalExecutionById(java.lang.String executionId, java.lang.String signalName, java.util.Map<java.lang.String,?> parameters)
ProcessInstance signalExecutionById(java.lang.String executionId, java.util.Map<java.lang.String,?> parameters)
ProcessInstanceQuery createProcessInstanceQuery()
HistoryService.createHistoryTaskQuery()
for
queries that include finished process instances.
void setVariable(java.lang.String executionId, java.lang.String name, java.lang.Object value)
void setVariables(java.lang.String executionId, java.util.Map<java.lang.String,?> variables)
void createVariable(java.lang.String executionId, java.lang.String name, java.lang.Object value, boolean historyEnabled)
void createVariables(java.lang.String executionId, java.util.Map<java.lang.String,?> variables, boolean historyEnabled)
java.lang.Object getVariable(java.lang.String executionId, java.lang.String variableName)
java.util.Set<java.lang.String> getVariableNames(java.lang.String executionId)
java.util.Map<java.lang.String,java.lang.Object> getVariables(java.lang.String executionId, java.util.Set<java.lang.String> variableNames)
void endProcessInstance(java.lang.String processInstanceId, java.lang.String state)
void deleteProcessInstance(java.lang.String processInstanceId)
JbpmException
- if the given processInstanceId doesn't existvoid deleteProcessInstanceCascade(java.lang.String processInstanceId)
JbpmException
- if the given processInstanceId doesn't exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |