updating workflownodedetails constructor