Package org.jbpm.kie.services.impl
Class AdHocProcessServiceImpl
- java.lang.Object
-
- org.jbpm.kie.services.impl.AdHocProcessServiceImpl
-
- All Implemented Interfaces:
VariablesAware,AdHocProcessService
- Direct Known Subclasses:
AdHocProcessServiceCDIImpl
public class AdHocProcessServiceImpl extends Object implements AdHocProcessService, VariablesAware
-
-
Field Summary
Fields Modifier and Type Field Description protected RuntimeDataServicedataServiceprotected DeploymentServicedeploymentService
-
Constructor Summary
Constructors Constructor Description AdHocProcessServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisposeRuntimeEngine(org.kie.api.runtime.manager.RuntimeManager manager, org.kie.api.runtime.manager.RuntimeEngine engine)<T> Tprocess(T variables, ClassLoader cl)Generic processing method that might be simply returning same instance of variables if no processing is required.voidsetDataService(RuntimeDataService dataService)voidsetDeploymentService(DeploymentService deploymentService)LongstartProcess(String deploymentId, String processId, org.kie.internal.process.CorrelationKey correlationKey, Map<String,Object> params, Long parentProcessInstanceId)Starts a process with a map of variables.
-
-
-
Field Detail
-
deploymentService
protected DeploymentService deploymentService
-
dataService
protected RuntimeDataService dataService
-
-
Method Detail
-
setDeploymentService
public void setDeploymentService(DeploymentService deploymentService)
-
setDataService
public void setDataService(RuntimeDataService dataService)
-
startProcess
public Long startProcess(String deploymentId, String processId, org.kie.internal.process.CorrelationKey correlationKey, Map<String,Object> params, Long parentProcessInstanceId)
Description copied from interface:AdHocProcessServiceStarts a process with a map of variables.- Specified by:
startProcessin interfaceAdHocProcessService- Parameters:
deploymentId- deployment information for the process's kjarprocessId- The process's identifiercorrelationKey- correlation key to be assigned to process instance - must be uniqueparams- process variables- Returns:
- process instance identifier
-
process
public <T> T process(T variables, ClassLoader cl)Description copied from interface:VariablesAwareGeneric processing method that might be simply returning same instance of variables if no processing is required.- Specified by:
processin interfaceVariablesAware- Parameters:
variables- object that holds varialble(s)cl- classloader that shall be used to operate on the variables e.g. project class loader- Returns:
-
disposeRuntimeEngine
protected void disposeRuntimeEngine(org.kie.api.runtime.manager.RuntimeManager manager, org.kie.api.runtime.manager.RuntimeEngine engine)
-
-