...
Now let's talk about how you write such groovy script. You have access to various details about file and project properties. You can make decision based on available variables about file, then return appropriate Object Type Code, or you can return null in which case FlexDeploy will make determination based on default logic as documented in EBS Object Types Reference.
Match Script Variables
Variable Name | Example using /path1/path2/APXSOBLX_1.rtf |
---|---|
FILE_PATH | /path1/path2/APXSOBLX_1.rtf |
FILE_NAME | APXSOBLX_1 |
FILE_PATH_PREFIX | /path1/path2 |
FILE_EXTENSION | rtf |
PARENT_FOLDER | path2 |
FILE_CONTENT | <content of file as array of Strings> (one element per line) |
Project Properties - Code for each property can be used in script | |
PROJECT_ID | 122703 |
PROJECT_NAME | XXHR |
FOLDER_PATH | / FlexDeploy / EBS |
...
Also, return one of the following object type when you can derive type, otherwise return null and FlexDeploy will determine object type in the usual manner.]
EBS Object Type Codes
Code to be Returned | For Type |
---|---|
OAF_JAVA WORKFLOW_XML OAF_MDS CP_SQL JAVA_SP SQL XDF SQL_LDR JLT AOL FORM REPORT WORKFLOW_DEFINITION LIBRARY PUBLISHER PROG FONT SCRIPT PERL_MODULE MEDIA HTML OTHER WEB_ADI DATA_FIX SETUPS SCRIPT_EXECUTION __IGNORE__ | Oracle Application Framework (OAF) JAVA Workflow XMLs Oracle Application Framework (OAF) MDS Concurrent Program SQLs Java Stored Procedures DB Objects (SQLs) XML Definition Files (XDF) SQL*Loader Java Loader Text (JLT) Application Object Library (AOL) Forms Reports Workflow Definitions Libraries Publisher Files Program Files Font Files Scripts Perl Modules Media Files HTML (Web) Files Other Files Web ADI Data Fixes Functional Setups Script With Execution Ignore the file completely |
...