public class AdHocProcessServiceImpl extends Object implements AdHocProcessService, VariablesAware
Modifier and Type | Field and Description |
---|---|
protected RuntimeDataService |
dataService |
protected DeploymentService |
deploymentService |
Constructor and Description |
---|
AdHocProcessServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
disposeRuntimeEngine(org.kie.api.runtime.manager.RuntimeManager manager,
org.kie.api.runtime.manager.RuntimeEngine engine) |
<T> T |
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) |
Long |
startProcess(String deploymentId,
String processId,
org.kie.internal.process.CorrelationKey correlationKey,
Map<String,Object> params,
Long parentProcessInstanceId)
Starts a process with a map of variables
|
protected DeploymentService deploymentService
protected RuntimeDataService dataService
public void setDeploymentService(DeploymentService deploymentService)
public void setDataService(RuntimeDataService dataService)
public Long startProcess(String deploymentId, String processId, org.kie.internal.process.CorrelationKey correlationKey, Map<String,Object> params, Long parentProcessInstanceId)
AdHocProcessService
startProcess
in interface AdHocProcessService
deploymentId
- deployment information for the process's kjarprocessId
- The process's identifiercorrelationKey
- correlation key to be assigned to process instance - must be uniqueparams
- process variablespublic <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 loaderprotected void disposeRuntimeEngine(org.kie.api.runtime.manager.RuntimeManager manager, org.kie.api.runtime.manager.RuntimeEngine engine)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.