Scenario 6: Refreshing the Application

Example 2-21 EPM Automate

For information on performing this task in EPM Automate, see the EPM Automate refreshcube command.

EPM Automate displays a code in the console to indicate the status of the operation. See Working with EPM Automate.

Example 2-22 Java

public void integrationScenarioRefreshTheApplication() throws Exception {
	uploadFile("accounts.zip");
	executeJob("IMPORT_METADATA", "accountMetadata", "{importZipFileName:accounts.zip}");
	executeJob("CUBE_REFRESH", null, null);
}

Common Functions: See Common Helper Functions for Java.

Dependent APIs: See Java Sample — ExecuteJob.java and Java Sample — UploadFile.java in Upload and Download Files.

Example 2-23 cURL

funcIntegrationScenarioRefreshTheApplication() {
	funcUploadFile "accounts.zip"
	funcExecuteJob "IMPORT_METADATA" "accountMetadata" "{importZipFileName:accounts.zip}"
	funcExecuteJob "CUBE_REFRESH" "cubeRefresh"
}

Example 2-24 Groovy

def integrationScenarioRefreshTheApplication() {
	uploadFile("accounts.zip");
	executeJob("IMPORT_METADATA", "accountMetadata", "importZipFileName:accounts.zip");
	executeJob("CUBE_REFRESH", "cubeRefresh", null);
}