If you don't want to sample a historical process time them then you don't need to put any data in an Empirical distrubition.
If you do want to do that then you need to create the Empirical Distribution in the Toolbox in order for the code you show to work.
As I said above, one method would be to create an array using
SELECT ARRAY_AGG(difference) FROM GlobalTable1 ORDER BY InputTimestamp
and then assign that array to a label (eg. 'ptimes') on the processing object. Don't forget a table query returns a table so the array will be in row 1, column 1 of the table.
Then you can consume that array using
current.ptimes.shift()
in the processing time expression.