Daily report flow-weather record (Script Task)
Store Manager submits a daily report to the area manager to be checked at the [2. Report Check/Comment] Step. Automatically retrieves the day’s weather data via API and records it.
BPMN Nodes
  • 5 1. Submit Daily Report The store manager reports the sales of the day.
  • 1 1x. Rework The store manager corrects the report and resubmits.
  • 8 2. Report Check/Comment The area manager confirms and returns if any deficiencies.
  • 10 Test Start
  • 2 x1. Set Weather Data The system purses the JSON and sets the result to Data Items.
Variables (click to open)
  • JSON Response q_JSON 0: Automatically set at the Throing Message Intermediate Evennt (HTTP)
  • Error Response q_Error 1: Automatically set at the Throing Message Intermediate Evennt (HTTP)
  • = Sales Report = 2:
  • Report Date q_Report 3: processInstanceStartDatetime
  • Day of the week q_Day 4: Automatically set at x1
  • Today’s Weather q_Today 5: Automatically set at x1.
  • High temperature of Today q_High_Today 6: Automatically set at x1
  • Tomorrow’s Weather q_Tomorrow 7: Automatically set at x1.
  • High temperature of Tomorrow q_High_Tomorrow 8: Automatically set at x1
  • Sales Amount q_Amount 9:
  • Cost of Purchase q_Cost 10:
  • = Correspondence = 11:
  • Reporter q_Reporter 12: ${processInstance.initQuserId}
  • Related files q_Files 13:
  • Memo q_Memo 14:



Only available for Professional edition.


  • You need to associate the Swimlane settings according to your organizational structure upon import
  • You need to apply for the Open Weather service and obtain your API key (appid)
    • Open Weather
    • Set your API key to the Parameter Value of [appid] in the Send Parameter tab of the Throwing Message Intermediate Event (HTTP)
    • Set the latitude of the point where you want to obtain weather information to [lat], and longitude to [lon]
    • Likewise, modify [units] or add [lang] as you need
      • See the details of Open Weather API: Weather API for the details

Arrangement Tips

  • In the settings of this App, the request is sent to an API (One Call API) that is different from the scenario article
  • It is set not to acquire unnecessary data ([exclude])
  • An Add-on which the component of request sending and JSON parsing has been packaged is published

See also