public class ProcessInstanceIdContext extends Object implements org.kie.api.runtime.manager.Context<Long>
Context
interface.
It's main responsibility is to be the data holder between caller and runtime manager
to obtain proper instances of RuntimeEngine
.get()
to get empty context when starting process instancesget(Long)
to get context for specific process instanceConstructor and Description |
---|
ProcessInstanceIdContext(Long processInstanceId) |
Modifier and Type | Method and Description |
---|---|
static ProcessInstanceIdContext |
get()
Returns new instance of
ProcessInstanceIdContext without process instance id. |
static ProcessInstanceIdContext |
get(Long processInstanceId)
Returns new instance of
ProcessInstanceIdContext with id of already existing process instance |
Long |
getContextId() |
void |
setContextId(long id) |
public ProcessInstanceIdContext(Long processInstanceId)
public Long getContextId()
getContextId
in interface org.kie.api.runtime.manager.Context<Long>
public void setContextId(long id)
public static ProcessInstanceIdContext get()
ProcessInstanceIdContext
without process instance id.
Used for starting new instances of the process.public static ProcessInstanceIdContext get(Long processInstanceId)
ProcessInstanceIdContext
with id of already existing process instanceprocessInstanceId
- actual identifier of process instanceCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.