JavaScript Functions UserScript.js

Using Actions to Integrate Oracle BI EE with External Systems 5-31 Figure 5–4 Invoke a Browser Script Process Flow

5.6.8 Invoke a Server Script

This action type allows users to specify the filename of a custom script to execute on Microsoft Windows when the current agent completes. The custom script type can be either JavaScript or VBScript. For more information about configuring this capability, see Configuring and Managing Agents and Introducing Oracle BI Scheduler in Oracle Fusion Middleware System Administrator’s Guide for Oracle Business Intelligence Enterprise Edition. When setting up this action type, you can select options for whether results are passed to the script, as well as desired formats. You can also manually add additional parameters. Depending upon the type of content to be passed from either the conditional request or the delivery content, results may be passed in some of the following formats: ■ PDF ■ MHTML MIME HTML used in email ■ Plain Text ■ XML 5-32 Oracle Fusion Middleware Integrators Guide for Oracle Business Intelligence Enterprise Edition ■ CSV ■ Excel ■ Powerpoint

5.6.8.1 Prerequisites for This Action Type

In order for the user to create an Invoke Server Script action, you must confirm that the custom script file resides on the same server as the Oracle BI Delivers server the Scheduler. 5.6.8.2 What Happens When This Action Type is Invoked? Figure 5–5, Invoke a Server Script Process Flow illustrates the Invoke a Server Script action type’s process flow. Using Actions to Integrate Oracle BI EE with External Systems 5-33 Figure 5–5 Invoke a Server Script Process Flow

5.6.9 Invoke Agent

Agents can execute actions depending on whether a data condition is met. For detailed conceptual information about agents and procedures for creating agents and adding actions to them, see Delivering Content and Working with Actions in Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Enterprise Edition.

5.6.9.1 How Filters Work in Invoke Agent Actions

If you add an Invoke Agent action to an agent and the following conditions exist, then the child agent will be invoked once with filter values generated by the results of the parent agent.