Scan Barcode action: dynamic data in Context

Here is an example where a user is dynamically controlling the context value by firing a separate event to pass a unique identifier into the onBarcodeDataReceived session event. I haven't worked with this at all, so I vouch for the efficacy of this solution, but at looks like it accomplishes what you are asking: