|
jBPM distribution 6.2.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.kie.services.impl.ProcessServiceImpl
public class ProcessServiceImpl
| Constructor Summary | |
|---|---|
ProcessServiceImpl()
|
|
| Method Summary | ||
|---|---|---|
void |
abortProcessInstance(Long processInstanceId)
Aborts the specified process |
|
void |
abortProcessInstances(List<Long> processInstanceIds)
Aborts all specified processes |
|
void |
abortWorkItem(Long id)
Abort the specified workItem |
|
protected Collection<String> |
collectActiveSignals(Collection<NodeInstance> activeNodes)
|
|
void |
completeWorkItem(Long id,
Map<String,Object> results)
Completes the specified WorkItem with the given results |
|
protected void |
disposeRuntimeEngine(RuntimeManager manager,
RuntimeEngine engine)
|
|
|
execute(String deploymentId,
Command<T> command)
Executes provided command on the underlying command executor (usually KieSession) |
|
|
execute(String deploymentId,
Context<?> context,
Command<T> command)
Executes provided command on the underlying command executor (usually KieSession) |
|
Collection<String> |
getAvailableSignals(Long processInstanceId)
Returns all signals available in current state of given process instance |
|
ProcessInstance |
getProcessInstance(Long processInstanceId)
Returns process instance information. |
|
Object |
getProcessInstanceVariable(Long processInstanceId,
String variableName)
Gets a process instance's variable. |
|
Map<String,Object> |
getProcessInstanceVariables(Long processInstanceId)
Gets a process instance's variable values. |
|
WorkItem |
getWorkItem(Long id)
Returns the specified workItem |
|
List<WorkItem> |
getWorkItemByProcessInstance(Long processInstanceId)
Returns active work items by process instance id. |
|
|
process(T variables,
ClassLoader cl)
Generic processing method that might be simply returning same instance of variables if no processing is required. |
|
void |
setDataService(RuntimeDataService dataService)
|
|
void |
setDeploymentService(DeploymentService deploymentService)
|
|
void |
setProcessVariable(Long processInstanceId,
String variableId,
Object value)
Sets a process variable. |
|
void |
setProcessVariables(Long processInstanceId,
Map<String,Object> variables)
Sets process variables. |
|
void |
signalProcessInstance(Long processInstanceId,
String signalName,
Object event)
Signal an event to a single process instance |
|
void |
signalProcessInstances(List<Long> processInstanceIds,
String signalName,
Object event)
Signal an event to given list of process instances |
|
Long |
startProcess(String deploymentId,
String processId)
Starts a process with no variables |
|
Long |
startProcess(String deploymentId,
String processId,
Map<String,Object> params)
Starts a process with no variables |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessServiceImpl()
| Method Detail |
|---|
public void setDeploymentService(DeploymentService deploymentService)
public void setDataService(RuntimeDataService dataService)
public Long startProcess(String deploymentId,
String processId)
ProcessService
startProcess in interface ProcessServicedeploymentId - deployment information for the process's kjarprocessId - The process's identifier
public Long startProcess(String deploymentId,
String processId,
Map<String,Object> params)
ProcessService
startProcess in interface ProcessServicedeploymentId - deployment information for the process's kjarprocessId - The process's identifierparams - process variables
public void abortProcessInstance(Long processInstanceId)
ProcessService
abortProcessInstance in interface ProcessServiceprocessInstanceId - process instance's unique identifierpublic void abortProcessInstances(List<Long> processInstanceIds)
ProcessService
abortProcessInstances in interface ProcessServiceprocessInstanceIds - list of process instance unique identifiers
public void signalProcessInstance(Long processInstanceId,
String signalName,
Object event)
ProcessService
signalProcessInstance in interface ProcessServiceprocessInstanceId - the process instance's unique identifiersignalName - the signal's id in the processevent - the event object to be passed in with the event
public void signalProcessInstances(List<Long> processInstanceIds,
String signalName,
Object event)
ProcessService
signalProcessInstances in interface ProcessServiceprocessInstanceIds - list of process instance unique identifierssignalName - the signal's id in the processevent - the event object to be passed in with the eventpublic ProcessInstance getProcessInstance(Long processInstanceId)
ProcessService
getProcessInstance in interface ProcessServiceprocessInstanceId - The process instance's unique identifier
public void setProcessVariable(Long processInstanceId,
String variableId,
Object value)
ProcessService
setProcessVariable in interface ProcessServiceprocessInstanceId - The process instance's unique identifier.
public void setProcessVariables(Long processInstanceId,
Map<String,Object> variables)
ProcessService
setProcessVariables in interface ProcessServiceprocessInstanceId - The process instance's unique identifier.variables - map of process variables (key - variable name, value - variable value)
public Object getProcessInstanceVariable(Long processInstanceId,
String variableName)
ProcessService
getProcessInstanceVariable in interface ProcessServiceprocessInstanceId - the process instance's unique identifier.variableName - the variable name to get from the process.public Map<String,Object> getProcessInstanceVariables(Long processInstanceId)
ProcessService
getProcessInstanceVariables in interface ProcessServiceprocessInstanceId - The process instance's unique identifier.public Collection<String> getAvailableSignals(Long processInstanceId)
ProcessService
getAvailableSignals in interface ProcessServiceprocessInstanceId - process instance id
public void completeWorkItem(Long id,
Map<String,Object> results)
ProcessService
completeWorkItem in interface ProcessServiceid - workItem idresults - results of the workItempublic void abortWorkItem(Long id)
ProcessService
abortWorkItem in interface ProcessServiceid - workItem idpublic WorkItem getWorkItem(Long id)
ProcessService
getWorkItem in interface ProcessServiceid - workItem id
public List<WorkItem> getWorkItemByProcessInstance(Long processInstanceId)
ProcessService
getWorkItemByProcessInstance in interface ProcessServiceprocessInstanceId - process instance id
public <T> T execute(String deploymentId,
Command<T> command)
ProcessService
execute in interface ProcessServicedeploymentId - deployment information for the process's kjarcommand - actual command for execution
public <T> T execute(String deploymentId,
Context<?> context,
Command<T> command)
ProcessService
execute in interface ProcessServicedeploymentId - deployment information for the process's kjarcontext - context implementation to be used to get runtime enginecommand - actual command for execution
protected Collection<String> collectActiveSignals(Collection<NodeInstance> activeNodes)
public <T> T process(T variables,
ClassLoader cl)
VariablesAware
process in interface VariablesAwarevariables - object that holds varialble(s)cl - classloader that shall be used to operate on the variables e.g. project class loader
protected void disposeRuntimeEngine(RuntimeManager manager,
RuntimeEngine engine)
|
jBPM distribution 6.2.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||