Odometer
Odometer is a persistent number that increases, accessible as a declared constant, which is particularly useful in retrieving tokens. eFORMz contains three types of odometers:
<eFORMzConfiguration> <Constant Name="ODOMETER_NAME_A" InUI="true" Type="Odometer" Length="5" Persist="odometer_a.dat" /> <Constant Name="ODOMETER_NAME_B" InUI="true" Type="Odometer" Length="5" /> <Constant Name="ODOMETER_NAME_C" InUI="true" Type="uuid" /> </eFORMzConfiguration>
The Persist
type lasts between restarts of the service. There’s only one instance per file system. Normal (ODOMETER_NAME_B
) resets to start. The UUID
type is always unique.