Configure the stateful variable port to track the version of each user's records.
On the
Ports
tab, create the variable port
var_Version
and configure the port expression
var_Version + 1
.
The following image shows the variable port
var_Version
and the port expression:
The initial state value of the port is 0. The first time that a record arrives from a specific user, the value in the port is 1. The second time that a record arrives from the same user, the value in the port becomes 2.