public class RequestContextImpl extends ContextImpl implements org.kie.api.runtime.RequestContext
REGISTRY
Constructor and Description |
---|
RequestContextImpl() |
RequestContextImpl(long requestId,
org.kie.internal.command.ContextManager ctxManager,
ConversationContextManager cvnManager) |
Modifier and Type | Method and Description |
---|---|
Object |
get(String identifier) |
org.kie.api.runtime.Context |
getApplicationContext() |
org.kie.api.runtime.Context |
getConversationContext() |
ConversationContextManager |
getConversationManager() |
Exception |
getException() |
String |
getLastSet() |
Map<String,Object> |
getOutputs() |
Object |
getResult() |
void |
removeOutput(String identifier) |
void |
setApplicationContext(org.kie.api.runtime.Context appContext) |
void |
setConversationContext(org.kie.api.runtime.Context conversationContext) |
void |
setException(Exception exception) |
void |
setLastSetOrGet(String lastSet) |
void |
setOutput(String identifier,
Object value) |
void |
setResult(Object result) |
String |
toString() |
org.kie.api.runtime.RequestContext |
with(org.kie.api.KieBase kieBase) |
org.kie.api.runtime.RequestContext |
with(org.kie.api.runtime.KieSession kieSession) |
getContextManager, getName, has, lookup, register, remove, set
public RequestContextImpl()
public RequestContextImpl(long requestId, org.kie.internal.command.ContextManager ctxManager, ConversationContextManager cvnManager)
public org.kie.api.runtime.Context getApplicationContext()
getApplicationContext
in interface org.kie.api.runtime.RequestContext
public void setApplicationContext(org.kie.api.runtime.Context appContext)
public org.kie.api.runtime.Context getConversationContext()
getConversationContext
in interface org.kie.api.runtime.RequestContext
public void setConversationContext(org.kie.api.runtime.Context conversationContext)
public ConversationContextManager getConversationManager()
public Object get(String identifier)
get
in interface org.kie.api.runtime.Context
get
in class ContextImpl
public Object getResult()
getResult
in interface org.kie.api.runtime.RequestContext
public void setResult(Object result)
setResult
in interface org.kie.api.runtime.RequestContext
public org.kie.api.runtime.RequestContext with(org.kie.api.KieBase kieBase)
with
in interface org.kie.api.runtime.RequestContext
public org.kie.api.runtime.RequestContext with(org.kie.api.runtime.KieSession kieSession)
with
in interface org.kie.api.runtime.RequestContext
public String getLastSet()
public void setLastSetOrGet(String lastSet)
public Map<String,Object> getOutputs()
getOutputs
in interface org.kie.api.runtime.RequestContext
public void setOutput(String identifier, Object value)
setOutput
in interface org.kie.api.runtime.RequestContext
public void removeOutput(String identifier)
removeOutput
in interface org.kie.api.runtime.RequestContext
public Exception getException()
public void setException(Exception exception)
public String toString()
toString
in class ContextImpl
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.