Run the RegenerateCacheOrchestratorApplication Class

You've used Postman to get the session token from your org, configured your IDE for Java, loaded the orchestration classes into your IDE, and populated the cache. Now you're ready to configure and run the RegenerateCacheOrchestratorApplication class.

To run the RegenerateCacheOrchestratorApplication class in Visual Studio Code:

  1. In Visual Studio Code, click the Explorer icon and expand the CACHE_AND_POPULATE_ORCHESTRATORS pane.

  2. Locate and click the RegenerateCacheOrchestratorApplication.java file. The file opens in a tab.

  3. Edit these String values in the file:

    String ValueSet the value to
    accessTokenThe access_token value you saved in the Set Up Postman, Import the Files, and Get the Token task
    orgNamespacevlocity_cmt.
    instanceUrlYour org's hostname, for example https://demo.my.salesforce.com
  4. Make sure part of the file looks something like this, then save it:

  5. Right-click the RegenerateCacheOrchestratorApplication.java file and select Run Java.

  6. Watch the TERMINAL pane to see JSON responses for REST API calls appear.