4 Activate and Run the Recipe

After you've configured the connections, you can activate and run the recipe.

  1. In the project workspace, click Activate. In the Activate project panel, with the default project deployment selected, choose an appropriate tracing option, then click Activate.

    A message confirms that the integration has been activated. Refresh the page to view the updated status of the integration.

    Note:

    To avoid logging of sensitive information, leave the Include Payload box unchecked while activating the recipe.

  2. Run the recipe from an external application to create a folder.
    1. In the Integrations section of the project workspace, click Actions Actions icon on the Oracle REST Content Management Create Folder integration flow, then select Run.
    2. On the Configure and run page, click Endpoint metadata.
    3. In the panel that opens, copy the Endpoint URL value. This is the integration flow's endpoint URL.
    4. From the external application, send a GET request to the endpoint URL along with parameters such as folderName, parentId, and description. See Before You Install the Recipe.
    The recipe creates a folder in the parent folder in Oracle Content Management.
  3. Run the recipe from an external application to import a file into the parent folder.
    1. In the Integrations section of the project workspace, click Actions Actions icon on the Oracle REST Content Management Upload File integration flow, then select Run.
    2. On the Configure and run page, click Endpoint metadata.
    3. In the panel that opens, copy the Endpoint URL value. This is the integration flow's endpoint URL.
    4. From the external application, send a POST request to this endpoint URL along with the file details. Provide the text in the POST request’s Body field.

      Example request payload:

      {
        "contentype": "application/json",
        "filename": "<File name; For instance: Test.txt>",
        "FolderId": "<Parent ID from the earlier response>",
        "FileContent": "<Enter file content in Base64 decode format>"
      }
    The recipe creates the file with the file name and content you pass in the request body.
  4. Monitor the running of the integration flow in Oracle Integration.
    1. In the project workspace, click Observe. You'll see the integration flow being triggered and running successfully.
    2. To manage errors in your project, see Manage Errors in a Project.
  5. Log in to the Oracle Content Management and check for the new file and folder.