Query a workflow

Queries a workflow execution for its current state.