Query workflow status from Task IP form?
Is it possible to query the workflow runtime to determine what state the state machine is in and what are the valid state transitions from inside an InfoPath Task form?
I’m trying to build a single IP Task form that will modify its UI to match the state of the underlying workflow without duplicating the state machine’s logic.

