public class CorrelationKeyContext extends Object implements org.kie.api.runtime.manager.Context<CorrelationKey>
RuntimeEngine
instances based on correlation key instead of process instance id. Use by strategy:
get() to get empty context when starting process instancesget(CorrelationKey) to get context for specific process instance| Constructor and Description |
|---|
CorrelationKeyContext(CorrelationKey key) |
| Modifier and Type | Method and Description |
|---|---|
static CorrelationKeyContext |
get()
Returns new instance of
CorrelationKeyContext without correlation key. |
static CorrelationKeyContext |
get(CorrelationKey key)
Returns new instance of
CorrelationKeyContext with correlation key of already existing process instance |
CorrelationKey |
getContextId() |
public CorrelationKeyContext(CorrelationKey key)
public CorrelationKey getContextId()
getContextId in interface org.kie.api.runtime.manager.Context<CorrelationKey>public static CorrelationKeyContext get()
CorrelationKeyContext without correlation key.
Used for starting new instances of the process.public static CorrelationKeyContext get(CorrelationKey key)
CorrelationKeyContext with correlation key of already existing process instancekey - actual correlation key of process instanceCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.