Klevr Product Documentation logo

Outbound Blob Binary Stage

The Outbound Blob Binary stage allows binary messages, such as PDFs and images, to be exported to an Azure Storage blob service.

Stage Overview

The Outbound Blob Binary stage allows binary formatted messages (e.g. PDFs, images, etc.) to be exported from the Integration Hub service to an Azure Storage blob service.

Stage Definition File Location

All Outbound Blob Binary stages are defined by creating an appropriately formatted JSON definition file in the following location:

interfaces
{businessUnitCode}
{domainCode}
{integrationName}
out
blob-binary
{STAGE_NAME}.json

Stage JSON Definition File Format

The JSON definition file for an Outbound Blob Binary stage is as follows:

{
  "name": "stage-name",
  "displayName": "Brief Stage Title",
  "description": "Brief description of the stage.",
  "enabled": "$env:STATUS_<INTEGRATION_NAME>",
  "source": "source-event",
  "concurrency": 10,
  "externalStorageAccount": {
    "accountName": "$env:STORAGE_ACCOUNT_NAME",
    "accessKey": "$env:STORAGE_ACCOUNT_ACCESS_KEY",
    "blobPath": "/path/to/blob/"
  },
  "emitEvent": "previous-stage-name-1",
  "leaseLockName": "lock-name"
}
PropertySub-PropertyDescription
nameThe name of the stage.
displayNameOptional (but highly recommended). A short (3 or 4 word) "display name" for the stage, used as a "title" of the stage in the Integration Hub Portal service's self-documentation capability.
descriptionOptional (but highly recommended). A brief (10 to 15 word) description of the stage, used as a brief description of the stage's purpose in the Integration Hub Portal service's self-documentation capability. For a more detailed explanation (when needed), use the stage markdown feature.
enabled
Optional boolean flag (true or false). Default is true.

Generally set via a DevOps variable. Controls if the stage is deployed enabled or not.
source
The source event that the stage subscribes to. See Pub/Sub Model.

Alternatively, sources may be supplied, and an array of one or more source events can be subscribed to.
concurrencyOptional number of concurrent runs permitted for the stage. Default is 10.
externalStorageAccount
accountNameThe hostname of the Azure Storage service to send the payload to.
accessKeyAn access key for accessing the Azure Storage service.
blobPath
Path to the blob container within the storage account that the payload will be uploaded into.
emitEventWhen the upload to the Azure Storage service is successful, the stage will normally terminate. However, under certain circumstances, it may be desirable to continue workflow processing.

The optional emitEvent flag allows the payload of a previously run stage to be output as a message from this stage. The stage must have previously been executed in the run history of the overall Integration Hub integration, with the stage's exported payload details being present in the Cloud Event Attributes section.
leaseLockNameOptional. See Lease Locking.

Required Payload Format

This stage must be triggered with a payload in the following format:

{
  "filename": "filename.pdf",
  "base64": "base64pfd"
}

Last updated on