Class RequestContextImpl

  • All Implemented Interfaces:
    org.kie.api.runtime.Context, org.kie.api.runtime.RequestContext, org.kie.internal.command.RegistryContext

    public class RequestContextImpl
    extends ContextImpl
    implements org.kie.api.runtime.RequestContext
    • Constructor Detail

      • RequestContextImpl

        public RequestContextImpl()
      • RequestContextImpl

        public RequestContextImpl​(long requestId,
                                  org.kie.internal.command.ContextManager ctxManager,
                                  ConversationContextManager cvnManager)
    • Method Detail

      • getApplicationContext

        public org.kie.api.runtime.Context getApplicationContext()
        Specified by:
        getApplicationContext in interface org.kie.api.runtime.RequestContext
      • setApplicationContext

        public void setApplicationContext​(org.kie.api.runtime.Context appContext)
      • getConversationContext

        public org.kie.api.runtime.Context getConversationContext()
        Specified by:
        getConversationContext in interface org.kie.api.runtime.RequestContext
      • setConversationContext

        public void setConversationContext​(org.kie.api.runtime.Context conversationContext)
      • get

        public Object get​(String identifier)
        Specified by:
        get in interface org.kie.api.runtime.Context
        Overrides:
        get in class ContextImpl
      • getResult

        public Object getResult()
        Specified by:
        getResult in interface org.kie.api.runtime.RequestContext
      • setResult

        public void setResult​(Object result)
        Specified by:
        setResult in interface org.kie.api.runtime.RequestContext
      • with

        public org.kie.api.runtime.RequestContext with​(org.kie.api.KieBase kieBase)
        Specified by:
        with in interface org.kie.api.runtime.RequestContext
      • with

        public org.kie.api.runtime.RequestContext with​(org.kie.api.runtime.KieSession kieSession)
        Specified by:
        with in interface org.kie.api.runtime.RequestContext
      • getLastSet

        public String getLastSet()
      • setLastSetOrGet

        public void setLastSetOrGet​(String lastSet)
      • getOutputs

        public Map<String,​Object> getOutputs()
        Specified by:
        getOutputs in interface org.kie.api.runtime.RequestContext
      • setOutput

        public void setOutput​(String identifier,
                              Object value)
        Specified by:
        setOutput in interface org.kie.api.runtime.RequestContext
      • removeOutput

        public void removeOutput​(String identifier)
        Specified by:
        removeOutput in interface org.kie.api.runtime.RequestContext
      • getException

        public Exception getException()
      • setException

        public void setException​(Exception exception)