Business Objects XI SDK Example, Part 1 Business Objects XI-SDK Beispiel, Teil 1
The following example walks through a simple use of the Java SDK for XI. Das folgende Beispiel geht durch eine einfache Nutzung des Java-SDK für die XI. It explains in a step-by-step manner how the Business Objects SDK can be used in conjunction with some complementary technologies - a python script. Er erklärt in einer Schritt-für-Schritt-Weise, wie die Business Objects SDK kann in Verbindung mit einigen ergänzenden Technologien - ein Python-Skript.
To illustrate SDK usage we will build a utility script that emails the contents of a Web Intelligence data source as a csv or tab delimited output. Um zu veranschaulichen, SDK Nutzung bauen wir eine Utility-Skript, dass E-Mails den Inhalt eines Web Intelligence-Datenquelle als csv-oder tabulatorgetrennte "ausgegeben.
Why base the output on the BO data source? Warum bei der Ausgabe auf die BO-Datenquelle?
Because of the nature of reports being intended for human readability, various elements are included in a report that would be undesirable for system to system communication. Aufgrund der Art der Berichte, die für den menschlichen Lesbarkeit, verschiedene Elemente sind in einem Bericht, wäre nicht wünschenswert für System zu System Kommunikation. For example, reports typically have logo files, report dates, etc. When converting a report to csv these "human intended" elements can cause problems. Zum Beispiel, Berichte haben in der Regel Logo-Dateien, Daten-Bericht, etc. Bei der Umwandlung eines Berichts in das CSV dieser "menschlichen, die" Elemente kann zu Problemen führen.
We want clean, tabular output. Wir wollen sauber, tabellarisch ausgegeben.
A quick way of learning a new API is to take supplied example code and modify. Eine schnelle Art und Weise des Lernens eine neue API ist die mitgelieferte Beispiel-Code und ändern.
So for this example, we will take the examples included with the Buiness Objects SDK as a starting point. Also, für dieses Beispiel, nehmen wir die Beispiele, die mit dem SDK Buiness Objekte als Ausgangspunkt.
The functionality will be exposed as a call to a java web application (WAR), and will thus be easily deployable. Die Funktionalität wird ausgesetzt, wie der Aufruf zu einer Java-Web-Anwendung (WAR), und werden somit leicht verlegefähige.
The primary components of the example this little system are: Die primären Komponenten von diesem kleinen Beispiel sind:
1. Web application (.war file) - contains SDK code Web-Anwendung (. WAR-Datei) - enthält SDK-Code
2. Python script (report-mailer.py) - talks to the web app Python-Skript (Bericht-mailer.py) - Gespräch mit dem Web-app
3. Configuration file - text file that stores configuration information, one file per report emailed Konfigurations-Datei - Text-Datei, die Informationen speichert Konfiguration, eine Datei pro Bericht per E-Mail
This example is intended for a non-packaged report with a single data source (query). Dieses Beispiel ist für eine nicht-verpackt Bericht mit einer einzigen Datenquelle (query). Based on the configured document identifier (docIdentifier in the config file), it will pull the data source from the latest instance and email the contents as requested in the configuration file. Auf der Grundlage der konfigurierten Dokument-ID (docIdentifier in der config-Datei), wird sie ziehen Sie die Datenquelle, aus der aktuellen Instanz und die E-Mail-Inhalte, wie in der Konfigurationsdatei.
With a little modification of the python script, we could supply output in a number of different formats. Mit einer kleinen Änderung der Python-Skript, wir liefern könnte Ausgabe in einer Reihe von verschiedenen Formaten. We could write to the local file system in an ftp accessible directory (available for "pull" by other systems). Wir könnten ein Schreiben an die lokale Datei in ein FTP-Verzeichnis zugänglich (für "ziehen" von anderen Systemen). We could "push" the data to another server via FTP, SFTP, SCP, etc. Wir könnten "Push"-Daten auf einen anderen Server per FTP, SFTP, SCP, etc.
The war is deployed into a java application server (eg Tomcat). Der Krieg ist zum Einsatz in einem Java-Application-Server (zB Tomcat). This can be the same server or a different one than the one running BO. Dies kann dem gleichen Server oder eine andere als die laufenden BO.
The example code supplied by Busness Objects is packaged with jars such that they can run standalone (from a BOXI server). Die Beispiel-Code von Business Objects wird mit Gläsern, so dass sie können Standalone (von BOXI Server).
Continued in Business Objects XI SDK Example , Part 2 Fortsetzung in Business Objects XI SDK Beispiel, 2. Teil
Spread the word Spread the word
Trackback uri TrackBack URI
http://www.boguru.com/business-objects-xi-sdk-example-1-part-1/trackback/ http://www.boguru.com/business-objects-xi-sdk-example-1-part-1/trackback/



















1 Comment on Business Objects XI SDK Example, Part 1 » 1 Kommentar auf Business Objects XI-SDK Beispiel, Teil 1 »
Business Objects XI SDK Example, Part 2 @ 1:25 pm (Pingback) Business Objects XI-SDK Beispiel, Teil 2 @ 1:25 pm (Pingback)
[…] 10, 2007Business Objects XI SDK Example, Part 2 Continued from Business Objects XI SDK Example, part 1 In this post, we'll go over how we can use a python script to process BO XI Java SDK CSV output. [...] 10, 2007Business Objects XI SDK Beispiel, Teil 2 Fortsetzung von Business Objects XI-SDK Beispiel, Teil 1 In diesem Beitrag werden wir gehen, wie können wir ein Python-Skript zu verarbeiten BO XI Java SDK CSV ausgegeben. […] [...]