Decision architectures in automated manufacturing: a survey