Class CorrelationKeyContext
java.lang.Object
org.kie.internal.runtime.manager.context.CorrelationKeyContext
- All Implemented Interfaces:
org.kie.api.runtime.manager.Context<CorrelationKey>
public class CorrelationKeyContext
extends Object
implements org.kie.api.runtime.manager.Context<CorrelationKey>
Context implementation to deliver capabilities to find proper
RuntimeEngine
instances based on correlation key instead of process instance id. Use by strategy:
- PerProcessInstance
get()to get empty context when starting process instancesget(CorrelationKey)to get context for specific process instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CorrelationKeyContextget()Returns new instance ofCorrelationKeyContextwithout correlation key.static CorrelationKeyContextget(CorrelationKey key) Returns new instance ofCorrelationKeyContextwith correlation key of already existing process instance
-
Constructor Details
-
CorrelationKeyContext
-
-
Method Details
-
getContextId
- Specified by:
getContextIdin interfaceorg.kie.api.runtime.manager.Context<CorrelationKey>
-
get
Returns new instance ofCorrelationKeyContextwithout correlation key. Used for starting new instances of the process.- Returns:
-
get
Returns new instance ofCorrelationKeyContextwith correlation key of already existing process instance- Parameters:
key- actual correlation key of process instance- Returns:
-