Is there a way to detect whether an invocation has been submitted or cancelled? Currently we are setting the metaData for some programmatically invoked ticket screen. But we need to clear the metaData after the user has submitted/cancelled.