Writing Datafunnel Plugins - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Writing Datafunnel Plugins

Description:

Writing Datafunnel Plug-ins. Alan Brown. Corda Senior Software Engineer. Session Outline ... Plots a point on US map representing the city the zip code belongs to ... – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 17
Provided by: cor69
Category:

less

Transcript and Presenter's Notes

Title: Writing Datafunnel Plugins


1
Writing Datafunnel Plug-ins
  • Alan Brown
  • Corda Senior Software Engineer

2
Session Outline
  • Why create a datafunnel plug-in?
  • What is a datafunnel plug-in?
  • DashboardPlugin API
  • RequestInfo object
  • Examples
  • Datafunnel Plug-in Weather from RSS
  • External Transform Regression Line
  • Q A

3
Datafunnel Plug-in
  • Why create a datafunnel plug-in?
  • Not all data is accessible from JDBC, ODBC or as
    an Excel, csv, tab-delimited file or HTML table
  • May have a proprietary data repository
  • Data may come from a business logic application
  • Data is available only as a web service

4
External Transform
  • Why create an external transform?
  • The transform is more complex than the built-in
    CenterView transforms
  • The transform requires input from multiple sets
    of data to operate
  • The transform requires additional data not
    available to CenterView

5
Datafunnel plug-in
  • What is a datafunnel plug-in?
  • One or more Java classes called from CenterView
    to load data into a Datafunnel.
  • Code is called to load the data.
  • Parameters are available that can be accessed to
    specify which data to load
  • Data returned as a two dimensional string array
    (Stringrowscolumns)

6
External Transform
  • What is an external transform?
  • One or more Java classes called from CenterView
    to modify data in an existing Datafunnel
  • Code is called to transform the data
  • Parameters are available that can be accessed if
    needed
  • Data returned as a two dimensional string array
    (Stringrowscolumns)

7
DashboardPlugin
  • The Interface
  • GetVersion(double version)
  • getDatafunnel(reqInfo, data)
  • data is null for df-external
  • The following are also available but usually only
    used for KPI plug-ins
  • getPCScript()
  • getITXML()
  • getHTML()
  • http//wiki.corda.com/confluence/display/CV31/Dash
    boardPlug-InMethods

8
RequestInfo
  • getEnvVar(name) get an Environment variable
    e.g. userName
  • getDate(format) return current date/time in
    specified format
  • getVar(name) return value of specified
    variable e.g. request.zipcode
  • getParameter(name) return value of datafunnel
    parameter
  • getData(datafunnelName) return the specified
    datafunnel in Stringrowscolumns format
  • consoleOut(message) output a message to the
    popup console
  • Others available, but are more for KPI plug-ins.
  • http//wiki.corda.com/confluence/display/CV31/Requ
    estInfoMethods

9
Examples
  • Datafunnel Plugin Pulling data for a Datafunnel
    from an RSS weather feed which is in XML, to be
    used in a dashboard.
  • External Transform Creating a linear regression
    line from a set of (x,y) pairs.

10
Weather Dashboard
  • Details of dashboard
  • Enter zip code
  • Plots a point on US map representing the city the
    zip code belongs to
  • Gives current weather information for that zip
    code
  • Datafunnel uses ltdf-externalgt

11
Weather Dashboard
  • Details of plugin
  • Zip code is obtained from request.zip
  • RSS feed is loaded from Yahoo, using the supplied
    zip code
  • XML data from RSS is parsed, and results stored
    in a 2-dimensional String array
  • Plugin returns the array to the datafunnel

12
Linear Regression Transform
  • Details of dashboard
  • Uses an inline datafunnel to supply data
  • Applies ltexternal-transformgt
  • Supplies parameters to control series names,
    option to include scatter points
  • One example transforms x-y data the other
    transforms name-x-y data.

13
Linear Regression Transform
  • Details of plugin
  • Data in Stringrowscols array
  • Iterate through data, then calculate
  • Slope
  • Intercept
  • Equation
  • Return data Stringrowscols array
  • Regression line is a 2-point series at end

14
Additional Resources
  • CD
  • Corda Connection Visual Evolution 2008
  • Go to portal.corda.com
  • Login
  • Resources
  • Visual Evolution 2008
  • Documentation
  • http//wiki.corda.com/confluence/display/CV31/Dash
    boardPlug-InAPI
  • Other VE Topics
  • Extending CenterView with Plug-ins
  • Plug-in Development Environment
  • Extending the Dashboard Interface with Plug-ins
  • Meet me in the Lounge

15
  • Q A

16
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com