Interface CommandWithTenantStep<T>

All Known Subinterfaces:
ActivateJobsCommandStep1.ActivateJobsCommandStep3, BroadcastSignalCommandStep1.BroadcastSignalCommandStep2, CommandWithOneOrMoreTenantsStep<T>, CorrelateMessageCommandStep1.CorrelateMessageCommandStep3, CreateProcessInstanceCommandStep1.CreateProcessInstanceCommandStep3, CreateProcessInstanceCommandStep1.CreateProcessInstanceWithResultCommandStep1, DeployResourceCommandStep1.DeployResourceCommandStep2, EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2, JobWorkerBuilderStep1.JobWorkerBuilderStep3, PublishMessageCommandStep1.PublishMessageCommandStep3, StreamJobsCommandStep1.StreamJobsCommandStep3
All Known Implementing Classes:
ActivateJobsCommandImpl, BroadcastSignalCommandImpl, CorrelateMessageCommandImpl, CreateProcessInstanceCommandImpl, CreateProcessInstanceWithResultCommandImpl, DeployResourceCommandImpl, EvaluateDecisionCommandImpl, JobWorkerBuilderImpl, PublishMessageCommandImpl, StreamJobsCommandImpl

public interface CommandWithTenantStep<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    This identifier is used for entities that are created before multi-tenancy is enabled in the Zeebe cluster.
  • Method Summary

    Modifier and Type
    Method
    Description
    tenantId(String tenantId)
    Specifies the tenant that will own any entities (e.g. process definition, process instances, etc.) resulting from this command, or that owns any entities (e.g. jobs) referred to from this command.
  • Field Details

    • DEFAULT_TENANT_IDENTIFIER

      static final String DEFAULT_TENANT_IDENTIFIER
      This identifier is used for entities that are created before multi-tenancy is enabled in the Zeebe cluster. After enabling multi-tenancy, these entities can still be interacted by using this identifier explicitly.
      See Also:
  • Method Details

    • tenantId

      T tenantId(String tenantId)
      Specifies the tenant that will own any entities (e.g. process definition, process instances, etc.) resulting from this command, or that owns any entities (e.g. jobs) referred to from this command.

      Multi-tenancy

      Multiple tenants can share a Zeebe cluster. Entities can be assigned to a specific tenant using an identifier. Only that tenant can access these entities.

      Any entities created before multi-tenancy has been enabled in the Zeebe cluster, are assigned to the DEFAULT_TENANT_IDENTIFIER.

      If no tenant is explicitly specified, then the command is rejected.

      Parameters:
      tenantId - the identifier of the tenant to specify for this command, e.g. "ACME"
      Returns:
      the builder for this command with the tenant specified
      Since:
      8.3