Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

oracle.rules.sdk2.decisionpoint
Class DecisionPoint

java.lang.Object
  extended by oracle.rules.sdk2.decisionpoint.DecisionPoint

public class DecisionPoint
extends java.lang.Object

DecisionPoint is a helper class which manages the server-side portions of implementing Decision Points (calling OBR Decision Functions) from developers' Java code.


Nested Class Summary
static class DecisionPoint.NamedValue
          NamedValue is a helper class that conveys named values to and from Decision Points.
 
Method Summary
 java.util.Calendar getCurrentDate()
          Return the current date used by this decision point
 java.util.Calendar getEffectiveDate()
          Return the effective date used by this decision point
 DecisionPointInstance getInstance()
          Retrieve a DecisionPointInstance with this DecisionPoint as the template.
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
          Return all properties accessible by the DecisionPointInstance
 java.lang.Object getProperty(java.lang.String name)
          Return a single property value
 void release()
          Release this decision point indicating that it will not be used any further and any retained resources can be released.
 DecisionPoint setCurrentDate(java.util.Calendar currentDate)
          Set the current date to be used by this decision point
 DecisionPoint setEffectiveDate(java.util.Calendar effectiveDate)
          Set the effective date to be used by this decision point
 DecisionPoint setProperty(java.lang.String name, java.lang.Object value)
          Set a single property value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public DecisionPointInstance getInstance()
Retrieve a DecisionPointInstance with this DecisionPoint as the template.

Returns:
a new DecisionPointInstance

setCurrentDate

public DecisionPoint setCurrentDate(java.util.Calendar currentDate)
Set the current date to be used by this decision point

Parameters:
currentDate - set the current date of RuleSessions used by this decision point
Returns:
self

getCurrentDate

public java.util.Calendar getCurrentDate()
Return the current date used by this decision point

Returns:
the calendar representing the current date

setEffectiveDate

public DecisionPoint setEffectiveDate(java.util.Calendar effectiveDate)
Set the effective date to be used by this decision point

Parameters:
effectiveDate - set the effective date of RuleSessions used by this decision point
Returns:
self

getEffectiveDate

public java.util.Calendar getEffectiveDate()
Return the effective date used by this decision point

Returns:
the calendar representing the effective date

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Return all properties accessible by the DecisionPointInstance

Returns:
a map of all properties

getProperty

public java.lang.Object getProperty(java.lang.String name)
Return a single property value

Parameters:
name - name of the property value to retrieve
Returns:
the value of the property name

setProperty

public DecisionPoint setProperty(java.lang.String name,
                                 java.lang.Object value)
Set a single property value. These properties are local to the decision point and do not affect the JVM system properties.

Parameters:
name - the name of the property to set
value - the value of the property
Returns:
self

release

public void release()
Release this decision point indicating that it will not be used any further and any retained resources can be released.


Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.