0
Beantwortet
Can/how can you pass a json object into a Warewolf Workflow Service?
Scenario: I want to sync a set of product records from a local inventory management system to a web store. The local inventory management system provides the data in one json format and I have to convert that data to the web store's json format by doing a data mapping. The json document of product records would be POST to the Warewolf Workflow Service. The service would then transform the data and perform a HTTP POST to the web store.
How could I accomplish that with the current Warewolf toolset (as of 2.6.2.0)?
Customer support service by UserEcho
Json data is handled in Warewolf as object variables, see: https://warewolf.io/knowledge-base/articles/the-warewolf-esb-syntax/#:~:text=up%20to%20%E2%80%9Cn%E2%80%9D-,Objects,-The%20notation%20for
Object variables can be set as inputs using the variable list, see: https://warewolf.io/knowledge-base/articles/the-variable-list/
Once they are inside your workflow they can be manipulated using the Assign Object, and Select and Apply tools, see: https://warewolf.io/knowledge-base/articles/tool-connectors/#:~:text=%C2%A0Data-,Assign%20Object,-Use%20the%20Assign
New json objects can be created using the Create Json tool, see: https://warewolf.io/knowledge-base/articles/tool-connectors/#:~:text=the%20Staff()%20recordset.-,Create%20Json,-Use%20the%20Create
Then you can use the Web Service tool to make a HTTP POST request with the json object in the body, see: https://warewolf.io/knowledge-base/articles/the-web-service-tool/