Web services data format

Equipment and Services

Loading data from external services

  • Au final, la connexion avec ce système va ramener les informations suivantes :
Service Id
  • For example a number : 352300
Equipment localisation
  • This data is not used
Service description
  • This data is not used
Activity for this service
  • A string
  • A service belongs to one and only one activity
Equipment Id
  • For example a number : 412300
  • if a new service can be created and started, then a new equipment is created in AMPS.
  • Some data received here are copied in table PRO_Materiel
  • IMPORTANT : in connected mode, an equipment can be linked to a revision even BEFORE use starts a service. In this case, the equipment ALREADY exists in the DB whjen user starts service. Of course, in this case, equipment is not duplicated

 

How data are used for Equipment
  • Note : data are not treated the same if equipment is created on the fly, while starting a new service, and if an equipment has been assigned to a revision/procedure
  • TO CHECK
Assign revision to equipment in Back Office Copied in
Equipment Id PRO_Materiel.MaterielIdExt
  PRO_Materiel.Libelle
  PRO_Materiel.NumSerie

 

 

How data are used for Service
Data received from Web Service in FO Copied in
Service Id INT_Intervention.InterventionIDExt

Activities

Activity check

  • AMPS compare activites as they exist in external DB system with current organization activites
  • Only values in French are taken into account
  • This search is done in 2 phase :
    • an exact matchin phase
    • then a partial matching : spaces are replaced by '%'
  • To avoid any confusion, it is recommaned to use exaclly the same names in external system and in AMPS

Examples :

External name Name in AMPS Value kepts
POMPE A VIDE POMPE A VIDE
VIDE
POMPE A VIDE
POMPE A VIDE POMPE ALCATEL A VIDE

POMPE ALCATEL A VIDE because string was comapred to :

POMPE%A%VIDE%

POMPE A VIDE POMPE XX A GRAND VIDE FROID POMPE XX A GRAND VIDE FROID

 

Check user activities

  • AMPS check if user activities in compatible with the external activity.
  • NOTE : in this case, only the beginning of the string are compared. If external service belons to external activity "VIDE PRODUCTION" and if user belons to an activity called "VIDE", it matches.