Icon

Postgres_Trigger_Builder_App

Postgres Trigger Builder App

Companion data app to the Postgres Trigger Builder component which guides the user through the process of building a postgres trigger and python function to call a workflow on their KNIME Server.

Annotations and comments
  • Data Connection Component view to gather the following attributes: DB Name DB URL DB Credentials
  • DB Table Selection Retrieves a list of tables for selection. The table selected in this step will be used as the destination for the Function and Trigger.
  • Build Function & Trigger Builds the query to be submitted to the DB. User selects an available workflow from the server and the various conditons (Trigger) for the function* to run. *see note
  • Note: Currently the API being call in the function is for execution of the specified workflow on trigger of the function. This is a deliberately naive implementation as it is left to the user to define the workflow being call and how it interacts with the postgres DB. Workflow is meant more to create a template to build off of and introduce the concept of triggers and workflows interacting. For example one could have the trigger automatically call the workflow upon insertion of new data to run predictions against the data. Though I'd advise against performing the same operation on the table you have the trigger set on to avoid infinite loop of triggers. DB Insert op > Workflow Called > Workflow Inserts new data > DB Insert op > etc.
  • Create/Replace function, Create/Replace trigger
  • List workflows in server directory
  • TRIGGER KEYWORD
  • TRIGGER ACTION
  • Trigger Name
  • Function Name
  • Option to specify directory to list files, default root '/'
  • Workflow Path
  • DB Credentials
  • DB URL
  • DB Name
  • Select Tables column
  • Fetch tables from using pg_catalog
  • Schema

Nodes

Extensions

Links