Daily report flow-weather record (Add-on)
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.
  • 12 Test Start
  • 9 x1. Retrieve Weather Data The system retrieves weather data and sets the result to Data Items.
  • 2 x2. Day of the week set The system determines the day of the week with the value of the Date-type Data Item and sets it in the String-type Data Item.
Variables (click to open)
  • = Sales Report = 2:
  • Report Date q_Report 3: processInstanceStartDatetime
  • Day of the Week q_Day 4: Automatically set at x2
  • Today’s Weather q_Today 5: Automatically set at x1.
  • Today’s High q_High_Today 6: Automatically set at x1
  • Sales Amount q_Amount 9:
  • Cost of Goods Purchased q_Cost 10:
  • = Correspondence = 11:
  • Reporter q_Reporter 12: ${processInstance.initQuserId}
  • Related Files q_Files 13:
  • Memo q_Memo 14:

Download

daily-report-flow-weather-record-add-on-20120317-220-en.qar

Only available for Professional or Enterprise edition.

Notes

  • You need to associate the Swimlane settings according to your organizational structure upon import
  • Unlike the Scenario article, this App uses the Service Task (Add-on) “OpenWeather: Weather Forecast, Get by Date”
  • You need to apply for the Open Weather service and obtain your API key (appid)
    • Open Weather
    • Set your API key to the [A: Set API Key] field in the Service Task x1. Retrieve Weather Data
    • Set the latitude and longitude of the point where you want to obtain weather information in [C: Set the date (local time), latitude, and longitude in 3 lines]
    • Modify [B1: Set Unit System] and [B2: Set Lang Code to translate description field] as needed

Arrangement Tips

  • You can record data other than the highest temperature (prepare Data Items of appropriate data-type to store them)
  • An App that uses Throwing Message Intermediate Event (HTTP) and Script Task as explained in the Scenario is also published

See also

%d bloggers like this: