Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

Eclipse has a plug-in based architecture which means that almost all of its functionality comes from the contributions of independent modules (plug-ins).  By selectively installing specific plug-ins, the Eclipse platform can be completely customized and have as much or as little functionality as desired.  Since the Pentaho Design Studio components are distributed as individual Eclipse plug-ins, there are two ways to get started depending on what kind of user you are.  If you're already an Eclipse user, and have version 3.1 or better installed you can simply download the Pentaho plug-ins and install them in your platform. If you are a Windows user and are new to Eclipse or just don't want to mix Pentaho plug-ins with your currently installed plug-ins, the Design Studio is for you. The Pentaho Design Studio bundles the Eclipse platform and Pentaho plug-ins together into a single distribution.

Installing the Full Design Studio

Java JRE

The Design Studio does not include a Java runtime environment (JRE). You will need a 1.5.0 level or higher Java runtime or Java development kit (also known as J2SE 5.0) installed on your machine in order to run the Design Studio. If you have the Pentaho BI Platform Pre-Configured Install (sometimes called the Pentaho Demo) installed on your machine then you already have a usable JRE.

To use the JRE that comes with the Pentaho Pre-Configured Install:
Add the "JRE/bin" directory to your path: pentaho-demo/jre/bin

You can also download a free JRE from Sun Microsystems. The Java™ 2 SDK, Standard Edition Version 1.5.0 can be found on the Sun Microsystems download site. Once you have a JRE installed make sure that the jre/bin directory is in your path.

Design Studio

A zip file containing the Pentaho Design Studio for the Windows platform is available from the Pentaho Clients download site. The full design studio download contains Eclipse 3.2 bundled with the all the Pentaho plug-ins needed to run both the action sequence editor as well as the Report Design Wizard. Download the pentaho-design-studio_X.X.X.X.zip, and unzip the file to your location of choice, it will create a directory named "pentaho-design-studio" and extract all its files there.  No other setup is required.  To run the platform, execute PentahoDesignStudio.exe.

Currently, there is not a complete Design Studio download available for the Mac or Linux platforms. If you're running on one of those platforms, and don't currently have Eclipse, you should download Eclipse manually, then download the  Pentaho plug-in.

Installing the Plug-ins

A zip file containing the Pentaho Action Sequence Editor plug-in for Eclipse 3.2 on all the platforms is available for download from the Pentaho Clients download site.Download the pentaho-action-sequence-plugin_X.X.X.X.zip and unzip the file into the top level of your Eclipse installation. The zip will extract the files into your Eclipse plugins directory. There will already be many plugins in that directory, both as JAR files and subdirectories. You'll also need the core,  org.pentaho.designstudio.editors.core_X.X.X.XX-0.zip and the reports wizard org.pentaho.designstudio.editors.reportwizard_X.X.X.XXX.0   There is no Eclipse Update Manager method to install this plug-in as yet.

Now restart Eclipse and you're ready to go. There should be a Pentaho icon on the toolbar and a menu item BI Platform.

Installing the PDF Browser Plug-in (For Linux Users)

If you have problems viewing PDF files from within the embedded browser used on the Test tab of the Action Sequence Editor, try installing the Adobe Reader® browser plug-in. After installing the reader, run the plug-in installer located inside the browser subdirectory of your reader installation.

Setting up Design Studio to use the samples

At this point, you have either installed the standalone Design Studio or installed the Design Studio plug-in into Eclipse. If you haven't already done so, you should also install and run the Pentaho BI Server and test the samples in samples/getting-started to insure your BI Server is functional. Also try one or two reports in samples/steel-wheels/reports within your environment and with your browser. 

Tech Tip

The Design Studio is file-system based.  All of the content that is being edited exists on or is available via the local machines file-system.  This could include shared folders, nfs mounts, etc.  This is why we recommend, for following this guide, having both the BI Server and Design Studio running on the same computer.

If you haven't done so already, start the Design Studio. If the welcome screen appears, close it by clicking on the X next to Welcome.

  • Select File->New->Project.
  • Select Simple from the New Project wizard
  • Press the Next> button.
  • Enter Pentaho Solutions as the project name. Although any name is fine, this document will refer to Pentaho Solutions
  • Uncheck the Use default check box
  • Browse to the pentaho-solutions directory. If you are using the PCI, this will be /pentaho-demo/pentaho-solutions.
  • Select Finish.

You are now have a Design Studio project that is set up to edit and test your samples solution.

Browsing the Solution Repository

You should now see your Pentaho Solutions project displayed in the tree on the left side of the Design Studio. If you expand the solution folder you'll see plenty of files. These are the files that make up your solution and are managed within the Design Studio. Let's take a look at one to get a feel of what the Design Studio can do for us. Go ahead and in the left hand tree, open the Pentaho Solutions/samples/getting-started folder. Double-click on the HelloWorld.xaction file and the Action Sequence editor will open in the edit pane.


 

Verify that you can test from within the Design Studio

The Test tab at the bottom of the Design Studio is used for generating and testing Action Sequences. At this point, don't worry about what an Action Sequence means, it will be explained later. Make sure you're looking at the HelloWorld.xaction from the last section then click the test tab. Now let's test out the action sequence.

Tech Tip

Currently, the Design Studio uses the Pentaho BI Server to execute Action Sequences. When pressing the Runbutton, the Design Studio submits an HTTP request to the server and displays the result in the built in browser. The built in browser is usually the default browser on your computer.

This is exactly the same as if you used your browser to navigate the PCI samples and clicked on that Action Sequence. It is why you are prompted to save changes to your Action Sequence when going to the test tab. And, it is why you see a URL next to the Run button.

  • Make sure that the Pentaho Server URL points to your running BI Server.
  • Press the Test Server button. If everything is set up properly, the Pentaho Demo home page should appear.
  • Now select the Run button to submit an HTTP request to the BI Server to execute the current action sequence. In the embedded browser window you should see "Hello World. Greetings from the Pentaho BI Platform."

Now let's change the message displayed by this action sequence and test our change to make sure that it works.

  • Select the Define Process tab.
  • Select Hello World in the Process Actions box.
  • Change the text %quote in the Message text box to something else like - I did it!.
  • Return to the Test tab. Select Yes to save if prompted to save.
  • If you are using the Pro Pentaho Server...
    • The default configuration of the Pro BI Server doesn't run action sequences from the file system, but instead runs them from the Pro BI Server repository. You will need to tell the server to refresh the database from the file-system.
    • Navigate to the Admin page of your Pentaho BI Server using your browser.
    • Select the Solution Repository icon.
    • Select Yes when prompted Are you sure you want to do this?
  • Select Run.

You should now see the new message - Hello World - I did it!.

Tech Tip

The original message reads %quote. This notation is used to internationalize action sequences. There are HelloWorld_xx.properties files in the same directory as the action sequence we're currently modifying. Each file has the strings used by this action sequence translated into the appropriate language. Within the Design Studio, you can double click the HelloWorld_en.properties file and find the string assigned to quote and change it to read I did it!. For any strings starting with %, the server will first look for a local properties file, walk the path back to the top of the solution tree looking for the correct .properties file, and finally, use the text it as is.

If you successfully changed and tested Hello World; congratulations, you are ready to move on. (smile)

I had issues (sad)

Sorry you are having trouble. The most likely problem is that the Design Studio and BI Server are not pointing to the same location for the solution.

TODO

  • Add additional troubleshooting steps
  • Write a set of the steps for each bullet item below
  • Use the browser to navigate the solution directly to see if it is a caching issue.
  • Verify that the folder path in the web.xml matches the solution directory and the Design Studio project directory
  • Open the Action Sequence in a text editor make sure change happened
  • Others?

----

  • No labels