DefaultN4ToAutoDbFieldTransformer

Code Extension Type: CTL_FIELD_TRANSFORMER (on page 1)

Purpose: To convert N4 data to the equipment control system (such as TEAMS) format. You can use this code extension to:

This method returns true if a container does *not* match any of these “Special Equip Type” patterns. In this case, N4 populates the NEXT_QC_LOC_TYPE field in the WORK_INSTRUCTION_STATUS in the TEAMS interface database with AGV. It returns false otherwise, in which case N4 populates the NEXT_QC_LOC_TYPE field with TRUCK.

if (EciBizMetafield.ECI_QC_WQ_STATUS_CONFIGURATION.equals(inField)) {

            final ValueObject valueObject = (ValueObject) inValue;

            final Long wqGkey = (Long) valueObject.getFieldValue(MovesField.WQ_GKEY);

            final Long cvGkey = (Long) valueObject.getFieldValue(ArgoField.CV_GKEY);

            if (wqGkey != null) {

                final WorkQueue workQueue = WorkQueue.hydrate(wqGkey);

                final CarrierVisit carrierVisit = cvGkey == null ? null : CarrierVisit.hydrate(cvGkey);

                final IControlManager controlManager = (IControlManager) Roastery.getBean(IControlManager.BEAN_ID);

                if (controlManager.isWorkQueueConfigured(workQueue, carrierVisit)) {

                    return QC_WQ_STATUS_CONFIGURATION_CONFIGURED;

                }

            }

 

            return QC_WQ_STATUS_CONFIGURATION_UNCONFIGURED;

        }