BHoM / SAP_Toolkit

GNU Lesser General Public License v3.0
4 stars 2 forks source link

SAP_Toolkit: RunAnalysisCommand only works for .json output #48

Closed rboulton-BH closed 2 years ago

rboulton-BH commented 2 years ago

Description:

Because we have tried to set up the adapter to suit the json output from the endpoint "https://ace.argylesoftware.co.uk/buroh/v2/sap-fullworksheet-lig-in-text-out-noformat" we are trying to deserialise the json output directly. This means the output from other endpoints e.g. XML returned by "https://ace.argylesoftware.co.uk/buroh/v2/sap-calculateratings" are null.

We need to change the post-processing of the object returned from the endpoint depending on what is returned. Alternatively the deserialisation needs to be done using a separate method after the object is returned from the execute.

image

Steps to reproduce:

Run this script with the same input test xml file through the different endpoints https://burohappold.sharepoint.com/:u:/r/sites/Direction/designtechnology/RandDWishlist/00205_Environments%20%26%20MEP/SAP%20workflow/220428%20PostToArgyleEngine.gh?csf=1&web=1&e=O8pivL

Expected behaviour:

Test file(s):

https://burohappold.sharepoint.com/:f:/r/sites/Direction/designtechnology/RandDWishlist/00205_Environments%20%26%20MEP/SAP%20workflow/BRE%20SAP%20software%20test%20cases?csf=1&web=1&e=eZEIZa