Determining an Attribute's Value

Determine an attribute's value

Rather than set the value of an attribute, you can ask the Oracle Policy Automation Determinations Server to tell you the value of an attribute. This is known as an Attribute Outcome.  It is only useful to ask for the value of an Inferred Attribute or a Goal Attribute. The Determinations Server will not be able to tell you the value of a Base level attribute as it is expecting you to set that value in the Session Data.

You can ask for the following information from an Attribute Outcome:

    1. The value only.
    2. A Full Decision Report, telling you how the value was determined (if known), or what information is needed to determine the value (if unknown).
    3. A Base Level Decision Report, giving you the same information as the Full Decision Report, but only showing Base level attributes, excluding intermediate inferred attributes.
    4. Return a screen if the outcome is unknown; this will be the screen for the next question needed to resolve the attribute.

1  <list-entity entity="person">
2    <entity label="Bob Smith">
3      <attribute-outcome id="my-pets-have-fleas" outcome-style="value-only"/>
4      <attribute-outcome id="my-childs-pets-have-fleas"
5        outcome-style="decision-report" screen-if-unknown="true"/>
6  ...

 

In the example above, we are asking for two outcomes for the entity instance Bob Smith:

    1. The attribute my-pets-have-fleas; for this attribute we only want the value.
    2. The attribute my-childs-pets-have-fleas; for this attribute we want a Full Decision Report, and we also want a screen if the value is unknown.

 

See also:

Setting Session Data - Generic Data

Specifying Entity Sets and Entity Instances

Returning a Decision Report