public interface CorrelationAwareProcessRuntime
| Modifier and Type | Method and Description |
|---|---|
org.kie.api.runtime.process.ProcessInstance |
createProcessInstance(String processId,
CorrelationKey correlationKey,
Map<String,Object> parameters)
Creates a new process instance (but does not yet start it).
|
org.kie.api.runtime.process.ProcessInstance |
getProcessInstance(CorrelationKey correlationKey)
Returns the process instance with the given correlationKey.
|
org.kie.api.runtime.process.ProcessInstance |
startProcess(String processId,
CorrelationKey correlationKey,
Map<String,Object> parameters)
Start a new process instance.
|
org.kie.api.runtime.process.ProcessInstance |
startProcessFromNodeIds(String processId,
CorrelationKey key,
Map<String,Object> params,
String... nodeIds)
Starts a process with the values supplied from the current nodes
|
org.kie.api.runtime.process.ProcessInstance startProcess(String processId, CorrelationKey correlationKey, Map<String,Object> parameters)
processId - the id of the process that should be startedcorrelationKey - custom correlation key that can be used to identify process instanceparameters - the process variables that should be set when starting the process instanceProcessInstance that represents the instance of the process that was startedorg.kie.api.runtime.process.ProcessInstance createProcessInstance(String processId, CorrelationKey correlationKey, Map<String,Object> parameters)
processId - the id of the process that should be startedcorrelationKey - custom correlation key that can be used to identify process instanceparameters - the process variables that should be set when creating the process instanceProcessInstance that represents the instance of the process that was created (but not yet started)org.kie.api.runtime.process.ProcessInstance startProcessFromNodeIds(String processId, CorrelationKey key, Map<String,Object> params, String... nodeIds)
processId - The process's identifiercorrelationKey - correlation key to be assigned to process instance - must be uniqueparams - process variablesnodeIds - list of unique node ids that would be triggered once the process is createdRuntimeException - in case of encountered errorsDeploymentNotFoundException - in case deployment with given deployment id does not existDeploymentNotActiveException - in case deployment with given deployment id is not activeorg.kie.api.runtime.process.ProcessInstance getProcessInstance(CorrelationKey correlationKey)
null.correlationKey - the custom correlation key assigned when process instance was creatednull if it cannot be foundCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.