Turns out there’s a much easier way to accomplish this by using a simple scriptlet to conditionally inject a message into the Local GP Port. The scriptlet needs a single parameter to set that condition.
I’ve implemented a simple gig file to test this and I’ll write the steps up in a blog article.
Edit: here’s the link to the blog article