Class ProcessInstanceIdContext
java.lang.Object
org.kie.internal.runtime.manager.context.ProcessInstanceIdContext
- All Implemented Interfaces:
org.kie.api.runtime.manager.Context<String>
public class ProcessInstanceIdContext
extends Object
implements org.kie.api.runtime.manager.Context<String>
Process instance id aware implementation of the
Used by strategy:
Context interface.
It's main responsibility is to be the data holder between caller and runtime manager
to obtain proper instances of RuntimeEngine.Used by strategy:
- PerProcessInstance
get()to get empty context when starting process instancesget(Long)to get context for specific process instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessInstanceIdContextget()Returns new instance ofProcessInstanceIdContextwithout process instance id.static ProcessInstanceIdContextReturns new instance ofProcessInstanceIdContextwith id of already existing process instancevoidsetContextId(String id)
-
Constructor Details
-
ProcessInstanceIdContext
-
-
Method Details
-
getContextId
- Specified by:
getContextIdin interfaceorg.kie.api.runtime.manager.Context<String>
-
setContextId
-
get
Returns new instance ofProcessInstanceIdContextwithout process instance id. Used for starting new instances of the process.- Returns:
-
get
Returns new instance ofProcessInstanceIdContextwith id of already existing process instance- Parameters:
processInstanceId- actual identifier of process instance- Returns:
-