Consider lastWorkflow for handling state updates (including toggleResource).