Project

General

Profile

Actions

Bug #4197

closed

Waterflow TPC demo - tracking bug

Added by ben leinfelder over 15 years ago. Updated about 15 years ago.

Status:
Resolved
Priority:
Normal
Category:
reporting
Target version:
Start date:
06/29/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4197

Description

Will be using this as a demonstration of the TPC reporting system. Logging development here (might overlap with the trac system).


Related issues

Blocks Kepler - Bug #4228: Not all tokens seem to be written when running WF from commandlineResolvedDaniel Crawl07/08/2009

Actions
Blocked by Kepler - Bug #4164: Associated Data - wf_exec_id behaviorResolvedDerik Barseghian06/15/2009

Actions
Blocks Kepler - Bug #4217: Report Viewer - "nil" not rendering consistently/correctlyResolvedben leinfelder07/01/2009

Actions
Blocks Kepler - Bug #4193: ActorMetadata - clone() error when opening workflow from KARResolvedChad Berkley06/26/2009

Actions
Blocks Kepler - Bug #4278: Changes to a reopened KAR are not saved to the new KARResolvedAaron Aaron08/03/2009

Actions
Actions #1

Updated by ben leinfelder over 15 years ago

Opening from the exported KAR is causing some problems - that's in another bug.
There are two files for this TPC (in the kruger SVN repo):
tpc02-water-flow-base.xml
tpc02-water-flow-high.xml

Actions #2

Updated by ben leinfelder over 15 years ago

In the tpc02-water-flow-base.xml workflow I have the table rendering in reporting not using the R data2html method nor the browser-launch (i've left that part of the workflow intact for comparison as I hone the reporting-based version).
TODO (workflow-side): finesse the data going into the report - "month" is an integer (1=Jan, 2=Feb, etc...) and the "avg" has 8 decimal places. Also want to use capitalization for the column headers?
TODO (reporting-side): Shade the header row. Lighten the borders around the cells.

Actions #3

Updated by ben leinfelder over 15 years ago

-column headers are capitalized.
-header rows are shaded
-overflowing cell contents are truncated
TODO: remove browser call
TODO: add status
TODO: round to more reasonable significant digits

Actions #4

Updated by Derik Barseghian over 15 years ago

I'm getting a lot of error messages on the console when I open this workflow. It seems to run ok though. (This is while using our current version of hsqldb). Are others seeing these errors?

[run] ERROR (org.ecoinformatics.seek.dataquery.DBTablesGenerator:generateDBTextTable:481) The error in generateDBTable is 
[run] java.sql.SQLException: Table already exists: T1941157596 in statement [CREATE TEXT TABLE T1941157596]
[run] at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
[run] at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
[run] at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source)
Actions #5

Updated by Derik Barseghian over 15 years ago

On my Eclipse build, which is using hsqldb 1.8, I get the same, and some additional errors. Provenance gives an "ERROR: RecordingException: Unable to insert into data table: out of memory", the workflow seems to work (web page comes up), but in the wrapping up phase I get a bunch of ejava.lang.OutOfMemoryError: Java heap space errors. So, I wonder is the overhead of Eclipse or my locally different version of hsql to blame. Any other Eclipse user seeing this too?

Actions #6

Updated by ben leinfelder over 15 years ago

The EML actors throw those exceptions - that is expected.
As for the newer HSQLDB - I will take a look.

Actions #7

Updated by Derik Barseghian over 15 years ago

I'm not seeing the memory errors today when using Eclipse with the currently checked in hsql, nor in Eclipse with hsql 1.8. Either I was just low on memory yesterday, or maybe I failed to kill .kepler between my tests and that caused some issue. r19734 upgrades kepler to hsqldb 1.8.0.10. Let me know if you notice any issues with this.

Actions #8

Updated by ben leinfelder over 15 years ago

-hsqldb 1.8 looks good.
-removed the browser call
-added naive "status" example - needs to be meaningful
Jim will do the rounding of the Average column. Oh - and maybe make the month a
string instead of a number?

Actions #9

Updated by ben leinfelder over 15 years ago

tpc02-water-flow-high.xml:
using record-based data table rendering
-including status actor
"nil" values are showing as a large number - need a bug fix for that.
-river and month are both integers - not sure where those are being looked up, but the values need to be in the dataframe before the RecordToken is created and "reported on"

Actions #10

Updated by ben leinfelder over 15 years ago

Changes made by Jim:
-month and river are now strings (rather than factors (ie. ints).
-rounding done to 4 places.

Changes made by me:
-"nil" values will be preserved for IntToken
-DoubleToken "nil" values will show as "NaN"
-boolean "nil", unfortunately, will show as "false"

Actions #11

Updated by ben leinfelder over 15 years ago

For the tutorial:
-we will use the "base" workflow with production data. Most slides and hands-on activities will use this workflow.
-the "high" workflow will be switched to use DEV for it's data so that we can illustrate how adding new data tables to an existing datapackage will be picked up automatically the next time the scheduled workflow executes.

Actions #12

Updated by ben leinfelder over 15 years ago

"nil" DoubleTokens will remain "nil" (rather than NaN)

Actions #13

Updated by ben leinfelder over 15 years ago

when running from the command line the "Plot base flow" R actor is not fired and no tokens are being recorded (as you'd expect.
When run in the gui, however, everything is normal.

Actions #14

Updated by ben leinfelder over 15 years ago

when I add another port named "trigger" to the "Plot base flow" actor and connect a similar output port from the upstream actor that should already be triggering the downstream actor to fire I get expected firing results!

Actions #15

Updated by ben leinfelder over 15 years ago

we were/are having intermittent problems rendering images created in kepler on the report - this is deep in FOP/xmlgraphics library and does not happen on the mac.
Choosing to use mac for the training demo execution engine

Actions #16

Updated by ben leinfelder over 15 years ago

added workflow for the HIGH base flow that points to DEV server so that we can demo the dynamic data loading.

Actions #17

Updated by ben leinfelder over 15 years ago

added KAR for the base workflow that includes a report layout

Actions #18

Updated by ben leinfelder over 15 years ago

I've gotten this working in the trunk now - after merging and patching up some new errors.
Ran the base workflow kar from my command line which automatically uploaded it to my local metacat where i could see the generated report (pdf).
There are still some blocking bugs, however (added).

Actions #19

Updated by ben leinfelder about 15 years ago

now using OrderedRecordTokens and OrderedRecordAssembler to do things "correctly" (no ptolemy overrides)

Actions #20

Updated by ben leinfelder about 15 years ago

The bovine TB TPC is also a good candidate for "testing" these features out. Just ran the KAR for that from the command line and it looked good.

Actions #21

Updated by ben leinfelder about 15 years ago

The water flow workflow is also looking successful from the command line

Actions #22

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4197

Actions

Also available in: Atom PDF