Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

  • sw_data_externaldataupdateasync.generictype_ID_status : Statut de la ligne dans la FIFO

    • Datatype : EXTERNAL_DATA_UPDATE_ASYNC_STATUS

    • Valeurs possibles :

      • TO_BE_TREATED : A traiter

      • TREATED : Traité

      • ERROR : En erreur

      • IGNORED : Ignoré

  • sw_data_externaldataupdateasync.generictype_ID_action : Action à faire

    • Datatype : EXTERNAL_DATA_UPDATE_ASYNC_ACTION

    • Valeurs possibles :

      • INSERT : Ajout

      • UPDATE : Mise à jour

      • DELETE : Suppression

  • sw_data_externaldataupdateasync.origin : Origine de l’enregistrement

    • Valeurs possibles :

      • NOTIFICATION : Enregistrement créé automatiquement par une notification

      • WORKSQUOTE : Enregistrement créé manuellement pour une demande de devis travaux

      • EVENT MEASURECOUNTER : Enregistrement créé par l’automate d’événement de gestion des relevés de compteurs (Manage ExtDataUpdateAsync - MeasureCounter)

  • sw_data_externaldataupdateasync.entityBeforeValues et sw_data_externaldataupdateasync.entityAfterValues : Valeurs avant/après modification des champs suivis (au format json)

...

  • Gestion des équipements :

    • Versions : Divalto weavy 5.4 / Divalto infinity 10.6

    • Entité : Equipement

    • Origine : Notification (NOTIFICATION)

    • Code notification : ExtDataUpdateAsync_Equipment

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Equipment

    • Webservice infinity : integration_equipement

  • Création d’un devis travaux suite à intervention :

    • Versions : Divalto weavy 5.4 / Divalto infinity 10.6

    • Entité : Intervention

    • Origine : Manuelle (WORKSQUOTE)

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Intervention

    • Webservice infinity : integration_dtr

  • Création d’un devis travaux sur demande d’intervention :

    • Versions : Divalto weavy 5.4 / Divalto infinity 10.6

    • Entité : Demande d’intervention

    • Origine : Manuelle (WORKSQUOTE)

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Intervention

    • Webservice infinity : integration_dtr

  • Contrôle de réception bon de transfert :

    • Versions : Divalto weavy 5.5 / Divalto infinity 10.7

    • Entité : Entête de réception de bon de transfert

    • Origine : Notification (NOTIFICATION)

    • Code notification : ExtDataUpdateAsync_Productstocktransferreceivedheader

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Productstocktransferreceivedheader

    • Webservice infinity : integration_bontransfert

  • Avancement d’une intervention :

    • Versions : Divalto weavy 5.6 / Divalto infinity 10.8

    • Entité : Intervention / Planning

    • Origine : Notification (NOTIFICATION)

    • Code notification : ExtDataUpdateAsync_Intervention / ExtDataUpdateAsync_Planning

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Intervention / ManageExtDataUpdateAsyncOverload_Planning

    • Webservice infinity : integration_intervention

  • Gestion des adresses d’un tiers :

    • Versions : Divalto weavy 5.7 / Divalto infinity 10.9

    • Entité : Tiers / Adresse

    • Origine : Notification (NOTIFICATION)

    • Code notification : ExtDataUpdateAsync_Customeraddress

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Customeraddress

    • Webservice infinity : integration_adresse

    • Particularités Remarques :

      • Utilisation de la variable ExternalDataUpdateAsync.Customeraddress.SyncType pour connaitre le type de synchronisation à effectuer :

        • 0 : Toutes les adresses

        • 1 : Uniquement les sites (valeur par défaut)

  • Demande de réapprovisionnement :

    • Versions : Divalto weavy 5.7 / Divalto infinity 10.9

    • Entité : Entête de demande de réapprovisionnement

    • Origine : Notification (NOTIFICATION)

    • Code notification : ExtDataUpdateAsync_ProductstockReplenishmentrequestheader

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Productstockreplenishmentrequestheader

    • Webservice infinity : integration_piece

    • Particularités Remarques :

      • La demande de réapprovisionnement dans Divalto weavy va créer une commande de transfert dans Divalto infinity

  • Relevé de compteur d’un équipement :

    • Versions : Divalto weavy 5.7 / Divalto infinity 10.9

    • Entité : Mesure

    • Origine : Event (EVENT MEASURECOUNTER)

    • Code automate event : Manage ExtDataUpdateAsync - MeasureCounter

    • Fonction surchargée : ManageExtDataUpdateAsyncOverload_Measure

    • Webservice infinity : maj_cpt_equipement

    • Remarques :

      • On utilise un événement pour transmettre tous les derniers relevés de compteurs pour les équipements non exportés (sw_data_measure.srvExport=1) selon la fréquence paramétrée

Info

Il existe une fonction de script DIVINF_Func_GetInfinityWebServiceInfo qui retourne les informations nécessaires au lancement des webservices infinity.
Elle permet de retourner :

  • URL du webservice : Cette url est enregistrée dans la table sw_data_externalurl avec le code "WSDIVA". Elle est paramétrée lors du provisioning dans infinity (zoom des chemins). Elle est importée dans weavy par ControlCenter External URL vX.6 puis backend 20. Base Info - ExternalUrl.

  • Action du webservice : cette action est définie en dur avec WEB_SERVICE_INFINITY. S'il faut la modifier il faudra surcharger cette fonction.

Bloc de code
// DIVINF_Func_GetInfinityWebServiceInfo
// @description => Get infos for webservice infinity
// @returns     => 0 : error / 1 : ok
// @returned variables
// InfinityWebServiceUrl : Infinity server URL for the call of the WebService
// InfinityWebServiceAction : Infinity diva action to push in the web method
// InfinityWebServiceErrorMsg : Error message if returns is 0

InfinityWebServiceUrl     = VARGET_DBSQL( "select url from sw_data_externalurl where codeexternalurl='WSDIVA'" )
InfinityWebServiceAction  = "WEB_SERVICE_INFINITY"
InfinityWebServiceErrorMsg   = ""
ret = 1

IF (EQUALS( InfinityWebServiceUrl, "" )) THEN
  InfinityWebServiceErrorMsg = "Infinity server URL for the call of the WebService is not informed (Table=sw_data_externalurl, Code='WSDIVA')"
  ret = 0
ENDIF

VARSET_SHELL( "InfinityWebServiceUrl", InfinityWebServiceUrl, "InfinityWSinfo" )
VARSET_SHELL( "InfinityWebServiceAction", InfinityWebServiceAction, "InfinityWSinfo" )
VARSET_SHELL( "InfinityWebServiceErrorMsg", InfinityWebServiceErrorMsg, "InfinityWSinfo" )

RETURN( ret )

...