It's possible that I'm misreading or misunderstanding this code, but it looks like the workflow's outputs have to come from its final analysis.  I'm fine with this for an initial implementation, but eventually we'll probably want to be able to save outputs from intermediate analyses as well.