psdi.app.rcnresult.asset

Class ReconAssetResult

  • java.lang.Object
    • Field Detail

      • TICKET_PRIORITY_DEFAULT

        public static int TICKET_PRIORITY_DEFAULT
      • TICKET_TYPE_SR

        public static java.lang.String TICKET_TYPE_SR
      • TICKET_TYPE_PROBLEM

        public static java.lang.String TICKET_TYPE_PROBLEM
      • TICKET_TYPE_INCIDENT

        public static java.lang.String TICKET_TYPE_INCIDENT
      • WO_TYPE_WORKORDER

        public static java.lang.String WO_TYPE_WORKORDER
      • WO_TYPE_RELEASE

        public static java.lang.String WO_TYPE_RELEASE
      • WO_TYPE_CHANGE

        public static java.lang.String WO_TYPE_CHANGE
      • ATT_RECON_ID

        public static java.lang.String ATT_RECON_ID
      • ATT_TICKETWO_SITEID

        public static java.lang.String ATT_TICKETWO_SITEID
      • ATT_TICKETWO_ORGID

        public static java.lang.String ATT_TICKETWO_ORGID
      • RECONTICKET_MSG_GROUP

        public static java.lang.String RECONTICKET_MSG_GROUP
      • RECONTICKET_MSG_KEY_SITEID_MISSING

        public static java.lang.String RECONTICKET_MSG_KEY_SITEID_MISSING
      • RECONTICKET_ESC_LOGGER

        protected MXLogger RECONTICKET_ESC_LOGGER
    • Constructor Detail

      • ReconAssetResult

        public ReconAssetResult(MboSet ms)
                         throws java.rmi.RemoteException
        Default Constructor.
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • buildTicketDescription

        protected java.lang.String buildTicketDescription()
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Build Ticket Description
        Parameters:
        None -
        Throws:
        MXException
        java.rmi.RemoteException
      • createTicket

        public void createTicket(MboRemote tkMbo)
                          throws MXException,
                                 java.rmi.RemoteException
        Sets assetnum, reportedpriority,reportedbyid, orgid and siteid values for the ticket mbo based on asset recon result.
        Specified by:
        createTicket in interface ReconAssetResultRemote
        Parameters:
        The - ticket mbo inserted for this asset.
        Throws:
        MXException
        java.rmi.RemoteException
      • createWO

        public void createWO(MboRemote workorderMbo)
                      throws MXException,
                             java.rmi.RemoteException
        Sets location, wopriority,orgid ,siteid and reportedbyid values for the workorder mbo based on asset.
        Specified by:
        createWO in interface ReconAssetResultRemote
        Parameters:
        The - workorder mbo inserted for this asset
        Throws:
        MXException
        java.rmi.RemoteException
      • applyTicketTemplate

        protected void applyTicketTemplate(MboRemote ticketMbo,
                                           java.lang.String tickettemplateid)
                                    throws MXException,
                                           java.rmi.RemoteException
        Apply ticket template
        Parameters:
        Ticket - mbo
        template - ID
        Throws:
        MXException
        java.rmi.RemoteException
      • createTicket

        protected MboRemote createTicket(java.lang.String ticketType,
                                         java.lang.String ticketTemplateID)
                                  throws MXException,
                                         java.rmi.RemoteException
        creates a Ticket from Asset Recon Result. User can create an action for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATESR/CREATEPROBLEM/CREATEINCIDENT This feature is added as part of 7115 fixpack.
        Parameters:
        Ticket - template ID - user select a template in Action application when create an action.
        Throws:
        MXException
        java.rmi.RemoteException
      • createServiceRequest

        public MboRemote createServiceRequest(java.lang.String ticketTemplateID)
                                       throws MXException,
                                              java.rmi.RemoteException
        creates a Ticket with Ticket Type = Service Request from Asset Recon Result. User can create an action type SR for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATESR This feature is added as part of 7115 fixpack.
        Specified by:
        createServiceRequest in interface ReconAssetResultRemote
        Parameters:
        Ticket - template ID - user select a template in Action application when create a SR action.
        Throws:
        MXException
        java.rmi.RemoteException
      • createProblem

        public MboRemote createProblem(java.lang.String ticketTemplateID)
                                throws MXException,
                                       java.rmi.RemoteException
        creates a Ticket with Ticket Type = Problem from Asset Recon Result. User can create an action type CREATEPROBLEM for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATEPROBLEM This feature is added as part of 7115 fixpack.
        Specified by:
        createProblem in interface ReconAssetResultRemote
        Parameters:
        Ticket - template ID - user select a template in Action application when create a CREATEPROBLEM action.
        Throws:
        MXException
        java.rmi.RemoteException
      • createIncident

        public MboRemote createIncident(java.lang.String ticketTemplateID)
                                 throws MXException,
                                        java.rmi.RemoteException
        creates a Ticket with Ticket Type = Incident from Asset Recon Result. User can create an action type CREATEINCIDENT for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATEINCIDENT This feature is added as part of 7115 fixpack.
        Specified by:
        createIncident in interface ReconAssetResultRemote
        Parameters:
        Ticket - template ID - user select a template in Action application when create a CREATEINCIDENT action.
        Throws:
        MXException
        java.rmi.RemoteException
      • createWO

        protected MboRemote createWO(java.lang.String WOType,
                                     java.lang.String jpnum)
                              throws MXException,
                                     java.rmi.RemoteException
        creates a WorkOrder from Asset Recon Result. User can create an action for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATEWO/CREATERELEASE/CREATECHANGE This feature is added as part of 7115 fixpack.
        Parameters:
        Ticket - template ID - user select a job plan in Action application when create an action.
        Throws:
        MXException
        java.rmi.RemoteException
      • createWorkorder

        public MboRemote createWorkorder(java.lang.String jobPlan)
                                  throws MXException,
                                         java.rmi.RemoteException
        creates a WorkOrder from Asset Recon Result. User can create an action for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATEWO This feature is added as part of 7115 fixpack.
        Specified by:
        createWorkorder in interface ReconAssetResultRemote
        Parameters:
        Job - Plan ID - user select a job plan in Action application when create an CREATEWO action.
        Throws:
        MXException
        java.rmi.RemoteException
      • createChange

        public MboRemote createChange(java.lang.String jobPlan)
                               throws MXException,
                                      java.rmi.RemoteException
        creates a WorkOrder from Asset Recon Result. User can create an action for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATEWOCHANGE This feature is added as part of 7115 fixpack.
        Specified by:
        createChange in interface ReconAssetResultRemote
        Parameters:
        Job - Plan ID - user select a job plan in Action application when create an CREATEWOCHANGE action.
        Throws:
        MXException
        java.rmi.RemoteException
      • createRelease

        public MboRemote createRelease(java.lang.String jobPlan)
                                throws MXException,
                                       java.rmi.RemoteException
        creates a WorkOrder from Asset Recon Result. User can create an action for asset recon result and use the action in escalation. This method is called from escalation with action type = application action and action name=CREATEWORELEASE This feature is added as part of 7115 fixpack.
        Specified by:
        createRelease in interface ReconAssetResultRemote
        Parameters:
        Job - Plan ID - user select a job plan in Action application when create an CREATEWORELEASE action.
        Throws:
        MXException
        java.rmi.RemoteException
      • setTicketDefaultSiteOrg

        protected void setTicketDefaultSiteOrg(MboRemote tkMbo)
                                        throws MXException,
                                               java.rmi.RemoteException
        If SiteID is null or empty, set SITEID and ORGID to default Insert Site ID from user profile. If OrgID is null or empty, lookup ORGID from current SiteID and set Ticket ORGID. For WO/CHANGE/RELEASE Site ID and ORG ID is required therefore display error msg or write to Log (if user-interactive=false) if No default site is setup for the user.
        Parameters:
        Ticket - or WO Mbo
        Throws:
        - - MXApplicationException("reconresults", "SiteIDIsRequired")
        MXException
        java.rmi.RemoteException
      • validateWOSiteID

        public void validateWOSiteID(MboRemote workOrderMbo)
                              throws MXException,
                                     java.rmi.RemoteException
        Validate required field SiteID for WorkOrder
        Specified by:
        validateWOSiteID in interface ReconAssetResultRemote
        Parameters:
        WO - Mbo
        Throws:
        - - MXApplicationException("reconresults", "SiteIDIsRequired")
        MXException
        java.rmi.RemoteException