1.21. Pre-Installed Beans
The following Beans come pre-installed:
PUUID
: UniqueId bean. This bean provides unique identifiers for the filteringExecutionContext
.PTIME
: Time bean. This bean provides time-based data for the filteringExecutionContext
.
These examples show you how to use these beans in a FreeMarker template:
- Unique ID of the ExecutionContext (message being filtered):
$PUUID.execContext
- Random Unique ID:
$PUUID.random
- Message Filtering start time (in milliseconds):
$PTIME.startMillis
- Message Filtering start time (in nanoseconds):
$PTIME.startNanos
- Message Filtering start time (Date):
$PTIME.startDate
- Time now (in milliseconds):
$PTIME.nowMillis
- Time now (in nanoseconds):
$PTIME.nowNanos
- Time now (Date):
$PTIME.nowDate