Icon

05 Schedule on KNIME Community Hub - Solution

Annotations and comments
  • Activity II: Schedule the execution on KNIME Business Hub Login to KNIME Community Hub Upload this workflow to one of your team's space* Create a version of the workflow Schedule the execution every hour Check the pdf report created once the workflow is executed *To solve this exercise, you need a Team plan subscription on KNIME Community Hub
  • Learning objective: In this exercise you will practice the scheduling of a workflow on KNIME Community Hub. Note that you need a Team plan subscription. Workflow description: Read the transactions from the database and filter the ones from the last hour. The component creates a report about the transactions and saves it in a pdf file. Scheduling this workflow to run once every hour, you will get a new pdf report with the latest transactions.
  • Read transactions from database All the latest transactions of the stores are saved in the database.
  • Activity I: Filter transactions in the last hour Calculate the start time as current time minus 1 hour, using the Date&Time Shift node Transform the start and current in flow variable with the Table Row to Variable node Use the start and current time to filter the transactions with a Date&Time-based Row Filter node
  • Create a report with the latest transactions The component does not filter data. So make sure to pass in input only the data of the latest hour.
  • Create a unique filename for the pdf report In the form report_currenttime.pdf
  • Write report to file By default the report is saved in the same space of this workflow.
  • Transactions per store type
  • Calculate BasketSize for each order
  • Transactions per store
  • Revenues over time per store type
  • Total revenues over time
  • Top 5 stores
  • Title
  • count
  • first
  • last
  • Current Time
  • Create filename variable
  • daily transactions
  • Minus 1h
  • Transactions in the last hour
  • Write pdf report
  • report_currenttime

Nodes

Extensions

Links