camunda / camunda-8-js-sdk

The Camunda 8 JavaScript SDK for Node.js
https://camunda.github.io/camunda-8-js-sdk/
Apache License 2.0
18 stars 6 forks source link

Add Multitenancy for SignalBroadcast #47

Closed jwulf closed 6 months ago

jwulf commented 7 months ago

The Node.js client provides a BroadcastSignalCommand for broadcasting tenant-aware signals in Zeebe. These commands should support multi-tenancy by exposing an optional tenantId property/method.

The following error codes may be returned:

PERMISSION_DENIED (code: 7) when a user attempts to broadcast a signal of a tenant they are not authorized for, when multi-tenancy is enabled.

INVALID_ARGUMENT (code: 3) For a provided tenant id, when multi-tenancy is disabled For a missing tenant id, when multi-tenancy is enabled For an invalid tenant id (i.e. doesn't match the pre-defined format), when multi-tenancy is enabled.

Java client issue: https://github.com/camunda/zeebe/issues/13558

jwulf commented 6 months ago

This is implemented and passing tests. Will be merged with the deleteResource PR.