Unique ID Generation
Some applications may need the ability to create unique IDs for service orders and other elements. The package uniqueid in component FWX provides a unique ID generator.
ID format
The ID generator creates a string ID, using the following format:
prefixYYYY-MM-DD_hh:mm:ss.number Where:
-
prefix is a fixed string which can be configured.
-
YYYY-MM-YY are the year, month, and day when the ID was generated.
-
hh:mm:ss are the hour, minute, and second when the ID was generated.
-
number is a positive number which ensures uniqueness of the Id.
The prefix part of the generated IDs can be configured using a format string where:
-
%NAME is replaced by the generator name.
-
%NODE is replaced by the node name.
-
%MACHINE is replaced by the machine name.
The format %MACHINE.%NODE is used as the prefix part by default.