Business Analytics Session Attributes
Business Analytics session attributes use the reserved variable name session. So you declare session attributes as session.attribute-name, just as you would with any variable.
The values for session attributes, however, can also be set in two ways:
Using the
x-p-sessionbinding Business AnalyticsHeader/Parameter in requests to the
Business Analytics Serverto save specific data from a mashable or mashup response as a sessionattribute.
You can send this as an HTTP header or as a parameter using Business Analytics Connect..You cannot set this headerinformation in <invoke> commands within a mashups script.
Within the <variable> statement in a mashup script thatalso declares the variable.
If this session attribute does not already exist, the<variable> statement creates a new session attribute. If you assign adefault value or construct the variable using literal XML, that value or nodeset is assigned to the Business Analyticssession attribute.
You can also use the <assign> command in a mashup script to update or assign values to Business Analytics session attributes. The output variable in <assign> simply uses the $session.attribute-name syntax.
Once Business Analytics session attributes exist, you can use them in mashup scripts just like any other variable, using the syntax $session.attribute-name.
Business Analytics session attributes can also hold sets of nodes, unlike user or global parameters. You can use XPath expressions after the attribute name to point to specific nodes within the session attribute.