Open ricardozanini opened 4 years ago
using the json you gave, you want to display something like: Your location is Ibirapuera ?
Exactly. I guess that “Ibirapuera/BR” would be better. :)
I figured out how to get the location from weather-api-gateway
by adding a location
string to Weather
so the returned json has condition
and location
as data, i couldn't find a way to add location
to the returned json from rain-forecast-process
tho, since it depends on RainForecastProcess.bpmn2
script? can you give me a little help to get it going?
Yes! Sure! You have to edit the BPMN process using an editor (I recommend the eclipse BPMN2 plugin). There’s a doc how to install it in the jBPM docs (sorry I’m on the cellphone). The return of the Camel call will be injected in the domain Model. Take a look at this:
Here’s where we treat the Weather service return.
BTW, how did you find this project?
Thanks for your contribution!!
We're displaying the location using latitude and longitude properties from the location in the UI. It's totally feasible to have a human readable location instead since the Weather API has this value: