Class DbFormState
java.lang.Object
io.camunda.zeebe.engine.state.deployment.DbFormState
- All Implemented Interfaces:
FormState,MutableFormState
-
Constructor Summary
ConstructorsConstructorDescriptionDbFormState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionfindFormByKey(long formKey, String tenantId) Query forms by the given form key and return the form.findLatestFormById(org.agrona.DirectBuffer formId, String tenantId) Query forms by the given form id and return the latest version of the form.voidstoreFormRecord(FormRecord record) Put the given form in the state.
-
Constructor Details
-
DbFormState
-
-
Method Details
-
storeFormRecord
Description copied from interface:MutableFormStatePut the given form in the state. Update the latest version of the form if it is newer.- Specified by:
storeFormRecordin interfaceMutableFormState- Parameters:
record- the record of the form
-
findLatestFormById
Description copied from interface:FormStateQuery forms by the given form id and return the latest version of the form.- Specified by:
findLatestFormByIdin interfaceFormState- Parameters:
formId- the id of the formtenantId- 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
Description copied from interface:FormStateQuery forms by the given form key and return the form.- Specified by:
findFormByKeyin interfaceFormState- Parameters:
formKey- the key of the formtenantId- the id of the tenant- Returns:
- the form, or
Optional.empty()if no form is deployed with the given key
-