|
KIE Internal 6.0.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CorrelationAwareProcessRuntime
Classes that implement this interface will provide additional capabilities based on correlation. Most important to allow users to define custom correlation keys as an alternative to considered internal process instance id.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 instance
ProcessInstance
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 instance
ProcessInstance
that represents the instance of the process that was created (but not yet started)org.kie.api.runtime.process.ProcessInstance getProcessInstance(CorrelationKey correlationKey)
null
.
correlationKey
- the custom correlation key assigned when process instance was created
null
if it cannot be found
|
KIE Internal 6.0.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |