forked from TeamIRI/workbench-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of old demos from Kepler based version of Workbench.
- Loading branch information
Showing
923 changed files
with
2,658,423 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>CoSort_BIRT_Report</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.sirius.nature.modelingproject</nature> | ||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12 |
9 changes: 9 additions & 0 deletions
9
CoSort_BIRT_Report/.svn/pristine/02/0256f843586604fb531899797ce91269fa01772c.svn-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
CoSort_BIRT_Report/.svn/pristine/1c/1c84132441894bde51796fa7f34255c452317a0e.svn-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<viewpoint:DAnalysis xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:fieldrules="http://fieldrules/1.0" xmlns:scl="http://www.iri.com/lang/Scl" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description" xmi:id="_d6NvgDxiEeaRycD7c90nJg" selectedViews="_d_3rkDxiEeaRycD7c90nJg" version="8.1.0"> | ||
<models xmi:type="scl:Model" href="Moving_Average.scl#/"/> | ||
<models xmi:type="fieldrules:FieldRuleLibrary" href="iriLibrary.fieldrules#/"/> | ||
<ownedViews xmi:type="viewpoint:DRepresentationContainer" xmi:id="_d_3rkDxiEeaRycD7c90nJg" initialized="true"> | ||
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/com.iri.model.flow.design/description/flow.odesign#//@ownedViewpoints[name='Flow']"/> | ||
</ownedViews> | ||
</viewpoint:DAnalysis> |
371 changes: 371 additions & 0 deletions
371
CoSort_BIRT_Report/.svn/pristine/4d/4d6a0e37178557a2e0a78b7a4fec6e1a95675d4d.svn-base
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
CoSort_BIRT_Report/.svn/pristine/4d/4da002a0f02edf9f8c14df2a7df68effe86e6f18.svn-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/INFILE=BOA.csv | ||
/FIELD=(DATE, TYPE=ISO_DATE, POSITION=1, SEPARATOR=",") | ||
/FIELD=(OPEN, TYPE=ASCII, POSITION=2, SEPARATOR=",") | ||
/FIELD=(HIGH, TYPE=ASCII, POSITION=3, SEPARATOR=",") | ||
/FIELD=(LOW, TYPE=ASCII, POSITION=4, SEPARATOR=",") | ||
/FIELD=(CLOSE, TYPE=ASCII, POSITION=5, SEPARATOR=",") | ||
/FIELD=(VOLUME, TYPE=ASCII, POSITION=6, SEPARATOR=",") | ||
|
||
/SORT | ||
/KEY=(CLOSE) | ||
|
||
/OUTFILE=stdout | ||
/FIELD=(DATE, TYPE=ISO_DATE, POSITION=1, SEPARATOR=",") | ||
/FIELD=(CLOSE, TYPE=ASCII, POSITION=2, SEPARATOR=",") | ||
/FIELD=(TWENTY_MA, TYPE=ASCII, POSITION=3, SEPARATOR=",", PRECISION=1) | ||
/FIELD=(FORTY_MA, TYPE=ASCII, POSITION=4, SEPARATOR=",", PRECISION=1) | ||
/AVERAGE TWENTY_MA FROM CLOSE RUNNING 20 | ||
/AVERAGE FORTY_MA FROM CLOSE RUNNING 40 | ||
|
||
/OUTFILE=BOA_out | ||
/FIELD=(DATE, TYPE=ISO_DATE, POSITION=1, SEPARATOR=",") | ||
/FIELD=(CLOSE, POSITION=2, SEPARATOR=",") | ||
/FIELD=(TWENTY_MA, POSITION=3, SEPARATOR=",", PRECISION=1) | ||
/FIELD=(FORTY_MA, POSITION=4, SEPARATOR=",", PRECISION=1) | ||
/AVERAGE TWENTY_MA FROM CLOSE RUNNING 20 | ||
/AVERAGE FORTY_MA FROM CLOSE RUNNING 40 |
233 changes: 233 additions & 0 deletions
233
CoSort_BIRT_Report/.svn/pristine/56/56bb3f79873cfbc5e7f54bbf45c8ffdecc809ebb.svn-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<!-- | ||
- Copyright (c) 2014, 2017. Innovative Routines International (IRI), Inc. --> | ||
|
||
<html lang="en-US"> | ||
<head> | ||
<meta http-equiv="Content-Type" content= | ||
"text/html; charset=us-ascii"> | ||
|
||
<title>CoSort/SortCL Data Preparation for the Eclipse Business | ||
Intelligence Reporting Tool (BIRT)</title> | ||
<style type="text/css"> | ||
|
||
h1 {font-family:Arial,Helvetica,sans-serif; color:#0F2B5B;font-size:12pt;text-align:left; font-weight:bold;} | ||
h2 {font-family:Arial,Helvetica,sans-serif; color:#0F2B5B;font-size:10pt;text-align:left; font-weight:bold;} | ||
h3 {font-family:Arial,Helvetica,sans-serif; color:#0F2B5B;font-size:10pt;text-align:left; font-weight:bold;font-style:oblique;} | ||
|
||
body {font-family:Arial,Helvetica,sans-serif; color:#000000;font-size:9pt;text-align:left; font-weight:normal;} | ||
|
||
</style> | ||
</head> | ||
|
||
<body> | ||
<h1>CoSort/SortCL Data Preparation for the Eclipse Business | ||
Intelligence Reporting Tool (BIRT)</h1> | ||
|
||
<p>This project uses a CoSort SortCL job as a Data Source in | ||
custom-created BIRT reports and chart. It demonstrates seamlessly | ||
integrated data preparation and advanced data presentation in | ||
Eclipse.</p> | ||
|
||
<p>SortCL prepares production data through fast data | ||
transformation, and passes the data and metadata via ODA for BIRT | ||
to present the data results faster, in graphical report formats. | ||
This is a highly efficient, repeatable integration that uniquely | ||
enables IT and BI teams to collaborate on data acquisition, | ||
transformation, and visualization.</p> | ||
|
||
<h2>Enable BIRT in the IRI Workbench</h2> | ||
|
||
<ol> | ||
<li style="margin-bottom: 10px;">Make sure BIRT is installed in | ||
the IRI Workbench plug-in for Eclipse. If BIRT is not | ||
installed: | ||
|
||
<ol> | ||
<li>From the Help menu, select <strong>Install New | ||
Software</strong>.</li> | ||
|
||
<li>In the <strong>Work with</strong> field, click | ||
<strong>Add</strong>.</li> | ||
|
||
<li>In the Add Repository dialog, enter<br> | ||
Name: <code>Kepler</code><br> | ||
Location: | ||
<code>http://download.eclipse.org/releases/kepler/</code></li> | ||
|
||
<li>Click <strong>OK</strong>.</li> | ||
|
||
<li>On the Available Software page, select <strong>Business | ||
Intelligence, Reporting and Charting</strong>. and click | ||
<strong>Next</strong>.</li> | ||
|
||
<li>On the Install Details page, click | ||
<strong>Next</strong>.</li> | ||
|
||
<li>Accept the terms of the license agreement and click | ||
<strong>Next</strong>. Restart the Workbench when | ||
ready.</li> | ||
</ol> | ||
</li> | ||
|
||
<li style="margin-bottom: 10px;">Open the Report Design | ||
perspective. | ||
|
||
<ol> | ||
<li>From the Window menu, select <strong>Open | ||
Perspective</strong> -> <strong>Other</strong> -> | ||
<strong>Report Design</strong>.</li> | ||
|
||
<li style="margin-bottom: 5px;">Click | ||
<strong>OK</strong>.</li> | ||
</ol>In this perspective, the Project Explorer is now the | ||
Navigator, but you can restore the: | ||
|
||
<ul> | ||
<li type="disc">Project Explorer from: | ||
<strong>Window</strong> -> <strong>Show View</strong> | ||
-> <strong>Other</strong> -> <strong>General</strong> | ||
-> <strong>Project Explorer</strong></li> | ||
|
||
<li type="disc">Data Source Explorer from: | ||
<strong>Window</strong> -> <strong>Show View</strong> | ||
-> <strong>Other</strong> -> <strong>Data | ||
Management</strong> -> <strong>Data Source | ||
Explorer</strong></li> | ||
|
||
<li type="disc">Remote Systems from: | ||
<strong>Window</strong> -> <strong>Show View</strong> | ||
-> <strong>Other</strong> -> <strong>Remote | ||
Systems</strong> -> <strong>Remote Systems</strong></li> | ||
</ul> | ||
</li> | ||
</ol> | ||
|
||
<h2>Prepare the Data</h2> | ||
|
||
<ol> | ||
<li style="margin-bottom: 10px;">Create or modify your CoSort | ||
SortCL data preparation job in the Workbench. Use a new job | ||
wizard from the CoSort menu to create the script, or write it | ||
directly in the syntax-aware editing window.</li> | ||
|
||
<li style="margin-bottom: 10px;">Specify all your source and | ||
target metadata and transformations in SortCL as usual. | ||
However, you must define your first target as | ||
<code>/OUTFILE=stdout</code> for BIRT to ingest this IRI Data | ||
Source at reporting time. You can still specify additional | ||
output files, tables, and/or procedures in subsequent target | ||
layouts.</li> | ||
|
||
<li style="margin-bottom: 10px;">Ensure all the /OUTFILE fields | ||
destined for BIRT also specify supporting fields. For example, | ||
any/SUMMARY fields have to be defined along with their /FIELD | ||
formats so the aggregate values are passed into BIRT.</li> | ||
</ol> | ||
|
||
<h2>Design and Run the Visualization</h2> | ||
|
||
<ol> | ||
<li style="margin-bottom: 10px;">From the top menu, click | ||
<strong>File</strong> -> <strong>New</strong> -> | ||
<strong>Report</strong>. Follow the wizard instructions to | ||
design the BIRT report. Be sure to save your new, or move your | ||
existing, template into the same folder with the SortCL script | ||
so the data (IRI Data Source) gets prepared and fed to BIRT via | ||
ODA at run time.</li> | ||
|
||
<li style="margin-bottom: 10px;">From the top menu, click | ||
<strong>Data</strong> -> <strong>New Data Source</strong> | ||
-> <strong>IRI Data Source</strong>. Click | ||
<strong>Next</strong>, and select the folder that contains your | ||
report template and SortCL job script. Click | ||
<strong>Finish</strong>.</li> | ||
|
||
<li style="margin-bottom: 10px;">Click <strong>Data</strong> | ||
-> <strong>New Data Set</strong> -> <strong>New Data | ||
Set</strong>. Select the <strong>IRI Data Source</strong> | ||
again, and click <strong>Next</strong>. At the top of the next | ||
dialog, select the SortCL (.scl) file defining the data | ||
preparation for your report. Add and arrange the available data | ||
fields as you want them displayed.</li> | ||
|
||
<li style="margin-bottom: 10px;">Use the palette to modify | ||
labels and fields, and their positions. You can specify | ||
additional calculations on the data as well, and customize the | ||
report or graph layout as needed.</li> | ||
|
||
<li style="margin-bottom: 10px;">At report creation time, | ||
SortCL and BIRT will run simultaneously to integrate the data | ||
and display the information you need.</li> | ||
</ol> | ||
<hr> | ||
|
||
<h3>Review</h3> | ||
|
||
<ol> | ||
<li style="margin-bottom: 10px;">Examine the SortCL Data | ||
Preparation job script.<br> | ||
Double-click <strong><em>Moving_Average.scl</em></strong> and | ||
examine the first /OUTFILE section. This is the vital part of | ||
creating a BIRT report using SortCL as a Data Source. You must | ||
use /OUTFILE=STDOUT to send data to ODA and BIRT, and the | ||
section must contain all the fields to be included in your | ||
report, and any supporting fields such as the /AVERAGE | ||
declarations in our example, which create the prior two fields. | ||
Any aggregate data you wish to feed BIRT must also contain | ||
SortCL field statements even if you do not wish to view them in | ||
the report, otherwise the information is not available to BIRT. | ||
Any other outfile sections, the infile section, etc. do not | ||
matter to BIRT. Note that you can take any existing SortCL | ||
script and add an outfile section with /OUTFILE=STDOUT as the | ||
first output file, and create a BIRT report from it.</li> | ||
</ol> | ||
|
||
<p><strong>NOTE</strong>: Running the reports below will | ||
automatically run the SortCL job above. To build new reports that | ||
will use more SortCL data, create the new SortCL jobs and refer | ||
to "ODA steps.txt".</p> | ||
|
||
<ol start="2"> | ||
<li style="margin-bottom: 10px;">Generate a basic BIRT | ||
report.<br> | ||
<em>Moving_Average_simple.rptdesign</em> is a basic table | ||
report listing the columns with headers. | ||
|
||
<ol> | ||
<li>Click the <strong>Preview</strong> tab below the report | ||
pane to see what the report will look like when you run it | ||
using the <strong>View Report Icon</strong> (Earth) icon in | ||
the Report Design perspective toolbar. Notice the headers | ||
in bold and underlined, and the dates are all bold. The | ||
font is not your typical Times New Roman.</li> | ||
|
||
<li>Click back on <strong>Layout</strong> to close the | ||
Preview, and select the <strong>Property Editor</strong> | ||
-> <strong>Report</strong> tab at the bottom.</li> | ||
|
||
<li>Click on the [DATE] detail in the report and see the | ||
options in the Property Editor. Every part part of a BIRT | ||
report can be customized. This template is pre-configured | ||
to use an ODA IRI Data Source, but you can create another | ||
report using that data.</li> | ||
</ol> | ||
</li> | ||
|
||
<li>Generate a BIRT graph.<br> | ||
Locate and open <em>Moving_Average_graph.rptdesign</em>. This | ||
is a graph created from <em>Moving_Average.scl</em>, which | ||
shows the closing price, 20-day moving average, and 40-day | ||
moving average for the Bank of America stock from January to | ||
September 2013. Either click <strong>Preview</strong> again, or | ||
on the toolbar use the <strong>View Report</strong> icon and | ||
click on it to run the report. If you hover the mouse above any | ||
point on one of the three lines in the graph you will notice a | ||
tooltip giving you the value at that location on the graph. | ||
This is a basic demonstration of chart interactivity. Other | ||
options (not demonstrated) are clicking on one part of a graph | ||
and having that load another graph/report for only the selected | ||
portion.</li> | ||
</ol> | ||
</body> | ||
</html> |
Oops, something went wrong.