Enabling and Configuring Hot Folders

Cloud hot folders are based on the Platform hot folders framework, and much of the configuration remains the same. The key difference is that an additional mapping configuration is required to tell cloud hot folders how to deliver the files from the shared pick-up location.

Prerequisites

  • You reviewed your file upload approach and validated that it can incorporate a Microsoft Azure Blob Storage file upload using either standard Microsoft Azure tools or third-party tools. For more details, see Microsoft Azure Blob Storage Connection Properties.

Procedure

The following steps are mandatory for using the hot folder feature.

  1. Check the configuration properties, overriding the defaults where appropriate, using the details in the Microsoft Azure blob storage connection properties (see Related Links).
    The default container created for upload within the Microsoft Azure Blob storage is called hybris and is located in the root folder for Blob Containers. In the Microsoft Azure Storage Explorer, ensure that the Active blobs (default) is set to hybris >master>hotfolder.
  2. Add the azurecloudhotfolder extension to your build manifest. This extension automatically enables all other dependent extensions.
  3. Add the following code to the Aspects section of your Build Manifest to ensure that hot folders are always running on one of the background processing nodes. In turn, this code ensures that remote files are pulled and correctly processed.
    {
        ...
        "aspects": [
                ...
            {
                "name": "backgroundProcessing",
                "properties": [
                    {
                        "key": "cluster.node.groups",
                        "value": "integration,yHotfolderCandidate,backgroundProcessing"
                    }
                ]
            }
        ],
        ...
    }
  4. Configure mapping channels if you need custom file type support. For more details, see the Related Links. .

    These subsequent steps may apply, depending on your hot folder requirements.

  5. Set the cluster node group property cluster.node.groups=integration,yHotfolderCandidate for the personas that should process hot folder files.
  6. Set the processing order for the files. For example, products before product media, customers before orders, or multiple files for the same integration processed by sequence order. This order is achieved by using the following property configurations:
    Property Description Default
    cloud.hotfolder.storage.file.sort.name.prefix.priority A comma-separated list of prefix names. Sorting is based on the order specified in the string. coredata,sampledata,product,url_media
    cloud.hotfolder-storage.file.sort.name.sequence A pattern used to extract the part of the file name representing a sequence ID. <^(?:\\D*)-(\\d+)\\.*>
  7. If URL media files are required, add and then configure the following two properties in the Build Manifest:
    Property Description Default Value
    cloud.hotfolder.default.images.media.folder.qualifier Media folder name used by file names with the prefix url_media azureimages
    cloud.hotfolder.default.images.root.url URL used by file names with the prefix of url_media <https://${azure.hotfolder.storage.account.name}.blob.core.windows.net/${azure.hotfolder.storage.account.name} /${tenantId} /image>