Interface FormState
- All Known Subinterfaces:
MutableFormState
- All Known Implementing Classes:
DbFormState
public interface FormState
-
Method Summary
Modifier and TypeMethodDescriptionfindFormByKey
(long formKey) Query forms by the given form key and return the form.findLatestFormById
(org.agrona.DirectBuffer formId) Query forms by the given form id and return the latest version of the form.
-
Method Details
-
findLatestFormById
Query forms by the given form id and return the latest version of the form.- Parameters:
formId
- the id of the form- Returns:
- the latest version of the form, or
Optional.empty()
if no form is deployed with the given id
-
findFormByKey
Query forms by the given form key and return the form.- Parameters:
formKey
- the key of the form- Returns:
- the form, or
Optional.empty()
if no form is deployed with the given key
-