Events
The steps performed by the EPM Integration Agent are as follows:
-
Process SQL defined by the EPM Integration Agent data source specified in the Oracle Fusion Cloud Enterprise Performance Management.
-
Prepare and transmit the SQL result set to the Cloud EPM from the defined data source.
These steps are referred to as the "Extract" and "Upload" steps. Scripting in the EPM Integration Agent supports four events related to these two process steps where you can define custom scripts. The events are as follows:
| Event | Script Name | Description |
|---|---|---|
|
|
|
Script executed before the agent extract processing. If you want to perform any processing prior to the SQL processing, that code should be included in this script. |
|
|
|
Script executed after the agent extract processing. After the extract a file is prepared, which includes the job id with the |
|
|
|
Script executed before the data file is uploaded to the Cloud EPM. The
file uploaded to the Cloud EPM is the
|
|
|
|
Script executed after the data file is uploaded to the Cloud EPM. |
Note:
For information on the EPM Integration AgentBefExport and AftExport events used during write-back executions, see EPM Integration Agent Write-Back Event Scripts.
Sample scripts are available in the agent/Sample/jython and
agent/Sample/groovy folders on the local machine where the
agent was installed. The system runs an instance of a script if it is placed in the
agent/MyData/scripts folder. For example, if you want to only
execute the BefExtract script, only save this script to the
agent/MyData/scripts folder.
You may also choose to create your own implementation of the Java class that implements the four custom methods described above. An example is provided in the Agent/Sample folder for reference, but consider the following if this approach is selected:
-
If you choose to implement your integration logic directly in Java, then you are not required to save any scripts to the
agent/MyData/scriptsfolder. The Java implementation always executes the four events, and if a script file is not present for any of those events, it just processes the Java logic define by the customer/partner. -
You can create a Java class file
CustomEvent.java, which should implement the interfaceEPMAgentInterface(for example,public class CustomEventimplementsEPMAgentInterface{),present in theagent-interface.jar. -
The
CustomEvent.classcan be packaged inside theagent-interface.jarasoracle.epm.aif.agent.agentinterface.CustomEvent.class. If you choose to package it in a separate jar other thanagent-interface.jar, then this jar must be included in theCUSTOM_CLASS_PATHagent startup parameter. -
If you choose to use a different class name from
oracle.epm.aif.agent.agentinterface.CustomEvent.class, then you must set the startup parameterCUSTOM_INTERFACE_CLASS_NAMEwith the fully qualified java class name. -
Note that the
agent-interface.jaris updated each time development provides a fix or a new version during the periodic Cloud EPM release cycle. The custom event class may be used for development and testing purposes, but for production deployment, it is recommended you maintain a separate jar so that customizations are not overwritten.