Change the serialization of Workflow. Fix some bugs.
Change the serialization of Workflow. Fix some bugs.