add workflow state to nodes