An Automated Logistics Framework from the Plant Floor to the Enterprise