Java Sample – DeployCube.java for Oracle Profitability and Cost Management Cloud

Prerequisites: json.jar

Prerequisites: See Oracle Profitability and Cost Management Cloud Common Helper Functions for Java

    public void deployCube() throws Exception {        
        JSONObject json = new JSONObject();
        json.put("isKeepData", true);
        json.put("isReplaceCube", false);
        json.put("isRunNow", true);
        json.put("comment", "Cube deployment");
        
        String urlString = "%s/epm/rest/%s/applications/%s/jobs/ledgerDeployCubeJob";
        executeJob(urlString, "POST", json.toString());        
    }