Changing wf API to use enums for status instead of String