ilog.rules.res.session

Interface IlrSessionRequest

    • Method Detail

      • setRulesetPath

        void setRulesetPath(IlrPath rulesetPath)
        Sets the ruleset path. The path can be in either of the following formats.
        • "/myruleapp/myruleset"
        • "/myruleapp/1.0/myruleset/1.0"
        Parameters:
        rulesetPath - The ruleset path.
      • getRulesetPath

        IlrPath getRulesetPath()
        Returns the ruleset path.
        Returns:
        The ruleset path.
      • setInputParameter

        void setInputParameter(java.lang.String name,
                               java.lang.Object value)
        Sets an input parameter. This shortcut method is equivalent to calling getInputParameters().put(name, value).

        Neither parameter can be set to null.

        Parameters:
        name - The name of the input parameter.
        value - The value of the input parameter.
      • getInputParameter

        java.lang.Object getInputParameter(java.lang.String name)
        Returns the value of an input parameter. This shortcut method is equivalent to calling getInputParameters().get(name)).
        Parameters:
        name - The parameter name. This value must not be null.
        Returns:
        The value of the parameter. If no parameter matching name has been set, null is returned.
      • removeInputParameter

        void removeInputParameter(java.lang.String name)
        Removes an input parameter from the parameters map. This shortcut method is equivalent to calling getInputParameters().remove(name).
        Parameters:
        name - The name of the parameter to remove. This value must not be null.
      • getInputParameters

        java.util.Map<java.lang.String,java.lang.Object> getInputParameters()
        Returns the input parameters.
        Returns:
        The input parameters.
      • setInputParameters

        void setInputParameters(java.util.Map<java.lang.String,java.lang.Object> inputParameters)
        Sets the input parameters.
        Parameters:
        inputParameters - A map containing <name,value> input parameters. This value must not be null.
      • getTraceFilter

        IlrTraceFilter getTraceFilter()
        Returns the trace filter. Use the trace filter to set the trace level.
        Returns:
        The trace filter.
      • setUserData

        void setUserData(java.io.Serializable userData)
        Set the user data that is passed to the interceptor and the XU.
        Parameters:
        userData - The user data.
      • getUserData

        java.io.Serializable getUserData()
        Return the user data.
        Returns:
        The user data.
      • isBOMAccess

        boolean isBOMAccess()
        Returns the BOM access flag.
        Returns:
        The BOM access flag.
      • setBOMAccess

        void setBOMAccess(boolean bomAccess)
        Sets the BOM access flag.
        Parameters:
        bomAccess - The BOM access flag.
      • getTaskName

        java.lang.String getTaskName()
        Returns the name of the task to be executed.
        Returns:
        The name of the task to be executed.
      • setTaskName

        void setTaskName(java.lang.String taskName)
        Sets the name of the task to be executed. If this value is not set, no task is executed.
        Parameters:
        taskName - The name of the task to be executed
      • isTraceEnabled

        boolean isTraceEnabled()
        Checks if XU traces are enabled.
        Returns:
        If XU traces are enabled, true is returned.
      • setTraceEnabled

        void setTraceEnabled(boolean traceEnabled)
        Enables or disables XU traces.
        Parameters:
        traceEnabled - Set to true to activate XU traces.
      • isInterceptorEnabled

        boolean isInterceptorEnabled()
        Checks if session or session factory interceptors are overridden.
        Returns:
        If session or session factory interceptors are overridden, true is returned.
      • setInterceptorEnabled

        void setInterceptorEnabled(boolean interceptorEnabled)
        Overrides any session or session factory interceptors.
        Parameters:
        interceptorEnabled - Set to true to override any session or session factory interceptors.
      • isForceUptodate

        boolean isForceUptodate()
        Tests if the ruleset has to be up-to-date before execution starts.
        Returns:
        If the ruleset has to be up-to-date before execution starts, true is returned.
      • setForceUptodate

        void setForceUptodate(boolean forceUptodate)
        Forces execution to wait until ruleset parsing has been completed. If the XU pool does not have an up-to-date version of the ruleset, execution takes place after ruleset parsing is completed.
        Parameters:
        forceUptodate - Set to true to ensure that the ruleset us up-to-date before execution starts.
      • getExecutionId

        java.lang.String getExecutionId()
        Returns the assigned execution ID.
        Returns:
        The assigned execution ID. If no execution ID has been set on this request, null is returned.
      • setExecutionId

        void setExecutionId(java.lang.String executionId)
        Sets the execution ID for this request. When set, rule sessions do not generate an ID, executionId is returned in the response. The uniqueness of executionId is up to you. It is mandatory if the Decision Warehouse is used.
        Parameters:
        executionId - The execution ID for this request.

© Copyright IBM Corp. 1987, 2021