translate workflow states