An architectural approach for digital factories