It’s fairly involved; I did this with a function, but I see you’re on 10.2.400, so that’s unavailable.
But the process is the same for a BPM, as @NateS outlined.
As others have said in the past, perhaps you don’t need all the methods of the trace, but it is recommended to replicate what the trace does very closely.