Business Objects XI SDK Example, Part 1 Business Objects XI SDK Esempio, parte 1
The following example walks through a simple use of the Java SDK for XI. Il seguente esempio passeggiate attraverso un semplice uso di Java SDK per 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. Si spiega in un passo-passo il modo come Business Objects SDK può essere utilizzato in congiunzione con alcune tecnologie complementari - uno script Python.
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. Per illustrare l'utilizzo SDK sarà costruire un programma di utilità di script e-mail che il contenuto di un Web Intelligence come una fonte di dati csv o delimitato da tabulazioni uscita.
Why base the output on the BO data source? Perché la produzione di base sulla fonte dei dati BO?
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. A causa della natura delle relazioni destinate al consumo umano leggibilità, vari elementi sono incluse in una relazione che sarebbe auspicabile per il sistema a sistema di comunicazione. For example, reports typically have logo files, report dates, etc. When converting a report to csv these "human intended" elements can cause problems. Ad esempio, i rapporti in genere sono file di logo, di segnalare le date, ecc Quando si converte una relazione al csv questi "umani destinati" elementi possono causare problemi.
We want clean, tabular output. Vogliamo pulire, tabella di output.
A quick way of learning a new API is to take supplied example code and modify. Un modo veloce di imparare una nuova API è fornita di prendere esempio e modificare il codice.
So for this example, we will take the examples included with the Buiness Objects SDK as a starting point. Così, per questo esempio, prenderemo gli esempi inclusi con il Buiness Objects SDK come un punto di partenza.
The functionality will be exposed as a call to a java web application (WAR), and will thus be easily deployable. La funzionalità sarà esposta come un invito ad una applicazione Java Web (WAR), e sarà quindi facilmente dispiegabili.
The primary components of the example this little system are: Le principali componenti di questo piccolo esempio, il sistema sono:
1. Web application (.war file) - contains SDK code Applicazione web (file. War) - SDK contiene codice
2. Python script (report-mailer.py) - talks to the web app Script Python (relazione-mailer.py) - parla di web app
3. Configuration file - text file that stores configuration information, one file per report emailed Il file di configurazione - file di testo che memorizza le informazioni di configurazione, un file per relazione via e-mail
This example is intended for a non-packaged report with a single data source (query). Questo esempio è stato progettato per essere un non-confezionati relazione con una sola fonte di dati (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. Sulla base del documento di identificazione configurato (docIdentifier nel file di configurazione), si farà la fonte dei dati di esempio, l'ultima e-mail e il contenuto, come richiesto nel file di configurazione.
With a little modification of the python script, we could supply output in a number of different formats. Con un po 'di modifica di script python, che potrebbero fornire l'output in un certo numero di formati diversi. We could write to the local file system in an ftp accessible directory (available for "pull" by other systems). Si potrebbe scrivere al file system locale in una directory accessibile ftp (disponibile per "tirare" da altri sistemi). We could "push" the data to another server via FTP, SFTP, SCP, etc. Si potrebbe "spingere" i dati a un altro server tramite FTP, SFTP, SCP, ecc
The war is deployed into a java application server (eg Tomcat). La guerra è implementato in un server delle applicazioni java (ad esempio Tomcat). This can be the same server or a different one than the one running BO. Questo può essere lo stesso server o uno diverso da quello in esecuzione BO.
The example code supplied by Busness Objects is packaged with jars such that they can run standalone (from a BOXI server). Il codice di esempio fornito da Business Objects è confezionato con vasi in modo da poter essere eseguito in modalità autonoma (da un BOXI server).
Continued in Business Objects XI SDK Example , Part 2 Continua in Business Objects XI SDK Esempio, parte 2
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 commento su Business Objects XI SDK Esempio, parte 1 »
Business Objects XI SDK Example, Part 2 @ 1:25 pm (Pingback) Business Objects XI SDK Esempio, parte 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 Esempio, parte 2 Continua da Business Objects XI SDK Esempio, parte 1 In questo post, andremo su come possiamo utilizzare uno script Python per il processo BO XI Java SDK L'output del CSV. […] [...]