Moving a file upon a successful completion of Agent
Create a simple report and build an agent on it.
Create a javascript and keep it in
C:\OBIEE\instances\instance1\bifoundation\OracleBISchedulerComponent\coreapplication_obisch1\scripts\common
Ex- EF.js
Go to the tab Actions of the Agent and select Invoke Server Script.
Edit Action as shown above.
Language - JavaScript
Script Path - C:\OBIEE\instances\instance1\bifoundation\OracleBISchedulerComponent\coreapplication_obisch1\scripts\common\EF.js
Define Parameters.
1> Row one
Name - 0
Prompt - parameter(0):
Value - C:\\OBIEE\\123.txt
2> Row two
Name - 1
Prompt - parameter(1):
Value - C:\\OBIEE\\instances\\
Note - In this example - I am moving the file 123.txt from C:\OBIEE to C:\OBIEE\instances
Save and execute the Agent.Search for the file -
Have a nice day !!!
Create a simple report and build an agent on it.
Create a javascript and keep it in
C:\OBIEE\instances\instance1\bifoundation\OracleBISchedulerComponent\coreapplication_obisch1\scripts\common
Ex- EF.js
Go to the tab Actions of the Agent and select Invoke Server Script.
Edit Action as shown above.
Language - JavaScript
Script Path - C:\OBIEE\instances\instance1\bifoundation\OracleBISchedulerComponent\coreapplication_obisch1\scripts\common\EF.js
Define Parameters.
1> Row one
Name - 0
Prompt - parameter(0):
Value - C:\\OBIEE\\123.txt
2> Row two
Name - 1
Prompt - parameter(1):
Value - C:\\OBIEE\\instances\\
Note - In this example - I am moving the file 123.txt from C:\OBIEE to C:\OBIEE\instances
Save and execute the Agent.Search for the file -
Have a nice day !!!
3 comments:
Thank you. Excellent illustration with simple script.
My pleasure.
Hi Nachiket,
Does this script works on Linux too?
I tried it but failed.
Post a Comment