JC: removed if self.wf_state.present? in workflow which is not defined in execution.