|
jBPM distribution 6.2.0.CR2 | |||||||||
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 ProcessService
deploymentId
- 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 ProcessService
deploymentId
- deployment information for the process's kjarprocessId
- The process's identifierparams
- process variables
public void abortProcessInstance(Long processInstanceId)
ProcessService
abortProcessInstance
in interface ProcessService
processInstanceId
- process instance's unique identifierpublic void abortProcessInstances(List<Long> processInstanceIds)
ProcessService
abortProcessInstances
in interface ProcessService
processInstanceIds
- list of process instance unique identifierspublic void signalProcessInstance(Long processInstanceId, String signalName, Object event)
ProcessService
signalProcessInstance
in interface ProcessService
processInstanceId
- the process instance's unique identifiersignalName
- the signal's id in the processevent
- the event object to be passed in with the eventpublic void signalProcessInstances(List<Long> processInstanceIds, String signalName, Object event)
ProcessService
signalProcessInstances
in interface ProcessService
processInstanceIds
- 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 ProcessService
processInstanceId
- The process instance's unique identifier
public void setProcessVariable(Long processInstanceId, String variableId, Object value)
ProcessService
setProcessVariable
in interface ProcessService
processInstanceId
- The process instance's unique identifier.public void setProcessVariables(Long processInstanceId, Map<String,Object> variables)
ProcessService
setProcessVariables
in interface ProcessService
processInstanceId
- 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 ProcessService
processInstanceId
- 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 ProcessService
processInstanceId
- The process instance's unique identifier.public Collection<String> getAvailableSignals(Long processInstanceId)
ProcessService
getAvailableSignals
in interface ProcessService
processInstanceId
- process instance id
public void completeWorkItem(Long id, Map<String,Object> results)
ProcessService
completeWorkItem
in interface ProcessService
id
- workItem idresults
- results of the workItempublic void abortWorkItem(Long id)
ProcessService
abortWorkItem
in interface ProcessService
id
- workItem idpublic WorkItem getWorkItem(Long id)
ProcessService
getWorkItem
in interface ProcessService
id
- workItem id
public List<WorkItem> getWorkItemByProcessInstance(Long processInstanceId)
ProcessService
getWorkItemByProcessInstance
in interface ProcessService
processInstanceId
- process instance id
public <T> T execute(String deploymentId, Command<T> command)
ProcessService
execute
in interface ProcessService
deploymentId
- 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 ProcessService
deploymentId
- 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 VariablesAware
variables
- 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.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |