For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.8

Google Cloud storage connector

Upload documents to and download documents from Google Cloud Storage in your BPMN process.

About this connector​

The Google Cloud Storage connector is an outbound connector that allows you to interact with Google Cloud Storage resources from your BPMN processes.

The connector currently supports uploading and downloading documents.

Prerequisites​

To begin using the Google Cloud Storage connector, ensure the following are set up:

The service account must be granted access to the bucket:

  • To upload and download objects, assign the Storage Object Admin role.
  • To download only, assign the Storage Object Viewer role.
tip

To keep your JSON key secure, avoid including it directly in the BPMN XML. Create a connector secret (for example, GOOGLE_SERVICE_ACCOUNT_KEY) and reference it as {{secrets.GOOGLE_SERVICE_ACCOUNT_KEY}}.

Create a connector task​

You can apply a connector to a task or event via the append menu. For example:

  • From the canvas: Select an element and click the Change element icon to change an existing element, or use the append feature to add a new element to the diagram.
  • From the properties panel: Navigate to the Template section and click Select.
  • From the side palette: Click the Create element icon.

change element

After you have applied a connector to your element, follow the configuration steps or see using connectors to learn more.

Configuration​

Authentication​

PropertyTypeRequiredDescriptionExample
JSON key of the service accountStringYesThe key of the service account in JSON format. See prerequisites.

Operations​

Select the desired operation from the Operation dropdown: Upload object or Download object.

Upload document​

Upload a document to a bucket.

Input parameters​

PropertyTypeRequiredDescriptionExample
GCP projectStringYesThe project where the bucket is located.my-project
Object Storage bucketStringYesThe bucket to upload to. A bucket acts as a directory that organizes a set of objects.invoices
DocumentStringYesA reference to the document to upload, as a FEEL expression.
Document file nameStringNoThe name of the object. By default, the file name from the document metadata is used unless you specify a custom name.invoice.pdf
note

If a document with the same name already exists in the bucket, it will be overwritten. If object versioning is enabled, previous versions can be restored.

Output​

The connector returns the bucket, the name of the uploaded object, and a download URL:

{
"bucket": "invoices",
"filename": "invoice.pdf",
"downloadUrl": "https://storage.cloud.google.com/invoices/invoice.pdf"
}

To keep only the download URL in a process variable, use a result expression such as:

= {"objectUrl": response.downloadUrl}

Download document​

Download a document from a bucket.

Input parameters​

PropertyTypeRequiredDescriptionExample
GCP projectStringYesThe project where the bucket is located.my-project
Object Storage bucketStringYesThe bucket to download from. A bucket acts as a directory that organizes a set of objects.invoices
File nameStringYesThe name of the document to download.invoice.pdf
Return document as referenceBooleanYesIf selected (default), a Camunda document is created and its reference is returned in document. If cleared, no document is created and the content is returned as a string in content.
note

If the specified file is not found, the operation will fail and return an error message.

Output​

With Return document as reference selected, the connector returns a reference to a document created in the Camunda document store in document:

{
"document": {
"camunda.document.type": "camunda",
"storeId": "in-memory",
"documentId": "8b54b413-b847-4650-b445-de963d5c506d",
"contentHash": "ed0f7ad835669698a108a32b2a99e89e4f5aea84127fde68df4248b11197b0e5",
"metadata": {
"contentType": "application/pdf",
"size": 2048,
"fileName": "invoice.pdf"
}
}
}

With Return document as reference cleared, the connector returns the content as a string in content:

{
"content": "Invoice 2025-0042"
}

For example, to keep only the document reference, use a result expression such as:

= {"invoice": response.document}

Troubleshooting​

If the connector task fails, check the following:

  • The JSON key of the service account is valid and complete.
  • The service account has access to the bucket (see prerequisites).
  • For downloads, the File name matches the name of an existing object in the bucket.

To handle connector errors in your process, see BPMN errors and failing jobs. To change the number of retries, see use an outbound connector.

Limitations​

For detailed information on quotas and limits, including file size constraints, refer to the official Google Cloud Storage quotas and limits.

Further resources​