Class DbFormState

java.lang.Object
io.camunda.zeebe.engine.state.deployment.DbFormState
All Implemented Interfaces:
FormState, MutableFormState

public class DbFormState extends Object implements MutableFormState
  • Constructor Details

  • Method Details

    • storeFormRecord

      public void storeFormRecord(FormRecord record)
      Description copied from interface: MutableFormState
      Put the given form in the state. Update the latest version of the form if it is newer.
      Specified by:
      storeFormRecord in interface MutableFormState
      Parameters:
      record - the record of the form
    • findLatestFormById

      public Optional<PersistedForm> findLatestFormById(org.agrona.DirectBuffer formId, String tenantId)
      Description copied from interface: FormState
      Query forms by the given form id and return the latest version of the form.
      Specified by:
      findLatestFormById in interface FormState
      Parameters:
      formId - the id of the form
      tenantId - the id of the tenant
      Returns:
      the latest version of the form, or Optional.empty() if no form is deployed with the given id
    • findFormByKey

      public Optional<PersistedForm> findFormByKey(long formKey, String tenantId)
      Description copied from interface: FormState
      Query forms by the given form key and return the form.
      Specified by:
      findFormByKey in interface FormState
      Parameters:
      formKey - the key of the form
      tenantId - the id of the tenant
      Returns:
      the form, or Optional.empty() if no form is deployed with the given key