Passing a task parameter while using a direct task notification

Good day

Is it possible to pass a task parameter to a task if I am using a direct task notification to start the task?

If there is, would there be any real advantage in doing this instead of using a volatile global variable?

Kind regards

The direct to task notification CAN be a ‘number’ and thus work sort of like a 1 element queue. (Just like it can act like a counting semaphore or a bit field). What makes sense is very much a function of you application.