Class TagUtil

java.lang.Object
io.camunda.client.impl.util.TagUtil

public class TagUtil extends Object
Utility class for validating tags used in Zeebe. Tags are used to categorize and label resources within the system.

NOTE: Whenever you adjust the tag format or max number, also consider updating the REST API documentation and the duplicated zeebe engine validation (see TagUtil.java)

  • Field Details

    • MAX_NUMBER_OF_TAGS

      public static final int MAX_NUMBER_OF_TAGS
      See Also:
    • MAX_TAG_LENGTH

      public static final int MAX_TAG_LENGTH
      See Also:
    • TAG_FORMAT_DESCRIPTION

      public static final String TAG_FORMAT_DESCRIPTION
  • Constructor Details

    • TagUtil

      public TagUtil()
  • Method Details

    • isValidTag

      public static boolean isValidTag(String tag)
      Validates that a tag follows the required format and constraints: - Must start with a letter (a-z, A-Z) - After the first character, may contain: alphanumerics, underscores, minuses, colons, periods - Must not be blank and must be 100 characters or less
    • ensureValidTags

      public static void ensureValidTags(String context, Set<String> tags)