Professional Documents
Culture Documents
6
Users Manual
This document contains confidential information that is subject to U.S. and international
copyright laws and treaties. No part of this document may be reproduced in any form without
the written authorization of TIBCO Software Inc.
TIBCO and Spotfire are either registered trademarks or trademarks of TIBCO Software Inc.
and/or subsidiaries of TIBCO Software Inc. in the United States and/or other countries. All
other product and company names and marks mentioned in this document are the property of
their respective owners and are mentioned for identification purposes only. This software may
be available on multiple operating systems. However, not all operating system platforms for a
specific software version are released at the same time. Please see the readme.txt file for the
availability of this software version on a specific operating system platform.
1 Introduction
Welcome to TIBCO Spotfire Automation Services!
A job file is an XML file that you can create and edit in the
Automation Services Job Builder, which can be reached from the
Tools menu in Spotfire. In the job builder you can select tasks in the
order they should be performed and specify settings for each of the
tasks. The image below shows the job builders graphical user
interface, which is described further in How to Use the Job Builder
on page 7 and Job Builder Tasks on page 10.
Note: All users that execute automation services jobs on the server,
using the Job Builder or the Client Job Sender, must be part of
the group Automation Services Users.
Users running the Job Builder must also have the license Auto-
mation Services Job Builder Tool enabled.
This is set up in Administration Manager in Spotfire Analyst.
For more information, see the Administration Manager help.
2 Open the Tools menu and select Automation Services Job Builder.
In the job builder, you can create new job files or open and edit
already existing ones. Open the File menu in the job builder to open a
file or to save it. The job builder consists of two parts. The top part is
where you can add tasks and arrange them in the order in which they
should be executed. In the example above, seven tasks have been
added to the task list. The bottom part is where you can adjust the
settings for each of the tasks. In the example, Export Image has been
selected in the list, and in the bottom part of the job builder, the
settings applicable to Export Image are displayed.
Note: Any job containing tasks that interact with an analysis must
begin with the Open Analysis from Library task. In this task, you
must click the Load button to load the analysis. Otherwise, the job
will not work as intended.
3 Adjust the settings for the task in the bottom part of the job builder.
4 Repeat steps 2 and 3 until you are satisfied with the task list and
settings.
Option Description
Bookmark Specifies the bookmark to apply. All the
bookmarks in the analysis are listed in the
dropdown list.
If you want to make sure the data table is saved as a new data table
each time the job is executed, you can use the Insert Field option in
the Tools menu. Place the cursor at the desired location in the file
name part of the Library Path and select Insert Field to add an
Option Description
Data Table Select the data table you want to export from the
analysis file.
Library Path Specify the library path where the data table will
be saved.
Description Add a description for the data table.
Note: If the data table already has a description, it
will be displayed here.
Keywords Add keywords for the data table, separated by
semicolons.
Note: If the data table already has specified
keywords, they will be displayed here.
Option Description
Destination path Specifies the location and file name of the image
to export.
Browse... Opens a dialog where you can specify a file name
and a location for the image file.
Note: The file will be saved to the node executing
the job, even though the Save dialog will show
folders on your local computer. Therefore you
need to make sure the folder you select as
destination folder actually exists on that machine,
and that you have writing permissions on the
selected folder.
Visualization Specifies which visualization to export.
Note: The exported image will only include the
currently visible content.
General Tab
On the General tab you specify what parts of the analysis to export,
what to include and you can also define the preferred layout.
Option Description
Destination path Specifies the location (on the node running
Automation Services) and file name of the
exported PDF file.
... Opens a dialog where you can specify a file name
and a location for the PDF file.
Note: The file will be saved to the node executing
the job, even though the Save dialog will show
folders on your local computer. Therefore you
need to make sure the folder you select as
destination folder actually exists on that machine,
and that you have writing permissions on the
selected folder.
Advanced Tab
On the Advanced tab, you can change the graphics settings of the
items you have selected and you can also add headers or footers to the
resulting PDF.
Option Description
Graphics settings
Items to export Lists the parts of the analysis that will be included
in the export. The items in the list may refer to
pages, visualizations, or the Details-on-Demand
depending in the selection you have made under
Export what on the General tab.
Name Shows the names of the pages or visualizations to
export.
Bookmarks Tab
The Bookmarks tab is only used when you want to export different
views of the analysis which are defined by selected bookmarks. When
selecting this option each of the bookmarks will automatically be
applied in turn, and the resulting PDF will contain one version of the
analysis (or parts of it) for each bookmark. See Exporting Bookmarks
to PDF in the TIBCO Spotfire online help for more information about
the result from export based on bookmarks.
Option Description
Export selected views Select this check box to enable export to PDF
based on bookmarks based on bookmarks. Choose which parts of the
analysis to export on the General tab.
[List of available Select the bookmarks you want to export.
bookmarks]
Select All Click to select all the bookmarks in the list.
Deselect All Click to deselect all the bookmarks in the list.
Option Description
Path Specifies the location and file name of the file to
open.
Set to Current Sets the path to refer to the analysis that is
currently open in Spotfire.
Option Description
Data table to replace Specifies the data table that you want to replace
with an information link.
Information link Shows the path to the selected information link.
Note: The information link must have prompts in
order to be useful. If you want to use
parameterized information links instead, you can
specify that in a configuration block when you
open the analysis from the library. See Open
Analysis from Library on page 22. To learn
more about using information links, see TIBCO
Spotfire Users Manual.
Browse... Opens a dialog where you can browse to locate
the information link of interest.
Option Description
Column name Displays the name of the column for which you
are currently editing parameters.
Data type Allows you to set the data type of the column.
Expression Allows you to set the expression that decides how
the column value should be compared to the
values set in this dialog, and thus, how the data
will be filtered.
List of values Lists the values that you want to filter by. The
value you enter here will replace the %Value% in
the selected expression above.
Option Description
Save as Specifies the location and name of the file to save.
Embed data in Select this check box to embed the data in the
analysis analysis.
Remove any Select whether or not previously existing
previously existing bookmarks should be removed when the analysis
bookmarks is saved to the library. Note that if you select this
check box bookmarks that have been added by
other users will be removed.
Description Optionally, type a description of the analysis.
Keywords (separated Optionally, type one or more keywords specific to
by semicolons) the contents of the analysis.
Note: Make sure that the machine and user running the Automation
Services service has access to the SMTP server and that it is not
blocked by any antivirus software.
Option Description
To Type the email addresses to which the email
should be sent.
Note: You can enter many addresses in the field.
The separator to use depends on the regional
settings of your computer.
Select Click to open a dialog where you can select
recipients from your LDAP directory.
Note: This will only work if you have an LDAP
directory.
Subject Enter a subject for the email in this field.
Message Enter the body text of the email in this field.
Add library link Select this check box if you want to include a link
to the analysis in the library.
Optionally, enter a text for the link in the text field
such as: Click to open analysis from the library.
If you leave the field blank the link will be shown
as the actual path to the library.
Add Web Player link Select this check box if you want to include a link
to the analysis in the web player.
Optionally, enter a text for the link in the text
field. If you leave this field blank the link will be
shown as the actual path.
Attach analysis (with Select this check box if you want the analysis to
embedded data) be attached in the email.
Added visualization You can include images from visualizations in the
images email. The images will be shown in the message
body.
Note: The data will be embedded.
Add Open this menu to select which visualization
images to add.
Remove Removes the selected image from the list.
Option Description
X.509 Certificate Select a valid X.509 certificate. This is used to
subject protect the security of the passwords used to
connect to data sources. The valid certificates that
are installed locally on your computer are listed in
the drop-down list.
Note: The selected certificate must also be
installed on the node that runs the Automation
Services jobs.
Data source Specifies the selected data source.
Browse... Opens a dialog where you can select the data
source to which you want to connect.
Username Specifies the username to use when connecting to
the specified data source.
Password Specifies the password.
Option Description
X.509 Certificate Select a valid X.509 certificate. This is used to
subject protect the security of the passwords used to
connect to the external data sources. The valid
certificates that are installed locally on your
computer are listed in the drop-down list.
Note: The selected certificate must also be
installed on the node that runs the Automation
Services jobs.
Any new content will completely replace any older content of the
Text Area.
Option Description
Text area to update Defines which text area in the analysis to change
the content for.
New content Enter the new content for the text area in this
field.
Note: The new content will completely replace
any older content.
Typically, you would need to create and run two job files in order to
move library items from a test system to a production system.
The first job exports the library items of interest from the test system
to file. This is done with the job builder task Export Library Items. A
zip archive containing the exported library items will be created when
the job runs.
The second job imports the contents in the zip archive to the
production system. Usually, you also need to remap the connection
strings and/or passwords of the data sources during import. To
perform both the import and the remapping in this job, use the two job
builder tasks Import Library Items and Remap Data Sources.
Note: The Automation Services tasks that handle Library export and
import take longer to execute than other Automation Services tasks. It
is therefore important that you increase the timeout period of the
export and import tasks before you attempt to run them.
Note: To export a folder and its contents to file you must have
Browse + Access permissions for the folders you want to export. You
must also be a member of the Library Administrator group. See
TIBCO Spotfire Users Manual to learn more about the Library
Option Description
Export from library Specifies the location and name of the folder to
folder export from the library.
Browse... Opens the Browse Library dialog where you can
locate the library folder from which you want to
export items. Only available if you are connected
to the library.
Export to file Specifies a name for the file that will be created.
The file will be saved as a zip archive on the
server. See above for more information about
where the file will be saved.
Note: The format of the entire file name will be
fileName.part0.zip. However, you should always
specify the name without file name extensions
such as .part0 or .zip.
Note: To include all the exported items, several
zip archives may be created from one single
export. The middle part of the file name will
reflect this: fileName.part0.zip, file-
Name.part1.zip, fileName.part2.zip, and so on.
Export items of type Specify the type of items you want to export if
you want to limit the export to only a certain type.
Include permissions Select whether or not to include the selected
library folder permissions.
Note: To import any content into the library from file, you must have
Browse + Access + Modify permissions for the destination folder and
Option Description
Import from file Specifies the name of the file to import. The file
must be a zip archive containing appropriate
library content.
Note: The format of the entire file name is
fileName.part0.zip. However, you should always
specify the name without any file name
extensions such as .part0 or .zip.
Note: If the zip archive is located in a subfolder to
the Shared disk location folder you must provide
the subfolder name as well. Example:
subfolderName/fileName.
Import to library Specifies the location and the name of the folder
folder in the library to which you want to import the
library items.
Option Description
X.509 certificate Select a valid X.509 certificate. This is used to
subject protect the security of the passwords used to
connect to data sources when exporting and
importing them. The valid certificates that are
installed locally on your computer are listed in the
drop-down list.
Note: The selected certificate must also be
installed on the node that runs the Automation
Services jobs.
Data sources library Defines the location of the library folder
folder containing the data sources that need to be
repmapped.
Note: This is optional. However, if you do not
specify a library folder, you must include the
entire path for each data source you add.
Browse... Opens the Browse Library dialog where you can
select a library folder. Only available if you are
connected to the library.
Option Description
Name Enter a name for the new or edited data source.
In library folder Displays the location and name of the library
folder containing the data source.
this.
Note: You must have Java installed to perform this task.
Option Description
Original export file Specifies the original (input) export file.
Note: Use the path to the file on the node that will
run the task, not on your computer, if you have
the file there as well.
Remapped export Specifies the remapped (output) data export file.
file Note: Use the path to the file on the node that will
run the task, not on your computer.
Add... Opens a dialog where you can enter a new
remapping.
Edit... Opens a dialog where you can edit the selected
remapping.
Import... Opens a dialog where you can select a local
version of the original (input) export file and
import the existing catalogs or schemas from it.
2 Open the Tools menu and select Execute Locally for Testing.
Response: If the job does not include the task Send Email, continue to
step 6. If the job includes Send Email, continue to step 3.
3 In the dialog that appears, enter the name of your SMTP host, then
click OK.
4 In the dialog that appears, enter the sender address, then click OK.
6 Check that all the tasks were executed as expected, and then test the
job on the server.
To execute on server:
1 Open the job file you want to execute on the server.
Note: To executes jobs on the server, you must be part of the group
Automation Services Users.
3 When the job has finished, check that all the tasks were executed the
way you expected before you set it up in a task scheduler.
6 Scheduling an Automation
Services Job
When you create a job using the Job Builder, the job can either be
executed immediately, or set up to be executed periodically. The latter
method uses a tool called
Spotfire.Dxp.Automation.ClientJobSender.exe. This tool is found in
the downloaded Automation Services bundle, together with its
configuration file
Spotfire.Dxp.Automation.ClientJobSender.exe.config. Install these
two files onto any machine that can communicate via HTTP (or
HTTPS, if you have set this up) with the Spotfire Server. The
executable file and the config file must reside in the same directory.
Example:
C:> C:\Program Files\TIBCO Spotfire\Spotfire.Dxp.Automation.ClientJobSender.exe http://
spotfireserver[:port] C:\Temp\jobfile.xml
To run the jobs asynchronously, that is, without waiting for the result
of the job, add async at the end of the example above. This can be
useful if you want to run several jobs simultaneously.
Note: When running the jobs asynchronously with the Client Job
Sender the result of the jobs can be found in the log file
Spotfire.Dxp.Automation.ClientJobSender.exe.log located in the
directory where the Client Job Sender files are located and in the
Automation Services tab in Monitoring & Diagnostics on the Spotfire
server.
Setting Description
Spotfire.Server.Req Specify the maximum number of seconds for a
uestTimeoutSeconds
single request to the Spotfire Server. The default
value is 600.
Spotfire.MaxJobExec Specify the maximum number of seconds a job
utionTimeSeconds
can execute for before the application cancels the
job. If set to 0 or less, the application will not
cancel the job. The default value is -1.
Note: If the async flag is used on the command
line when running a job, this setting is ignored.
Note: The specified value in the Spotfire Server
setting max-job-execution-time will also affect
the cancellation of the job. The lowest specified
time will decide when the job is cancelled. See
the Spotfire Server and Environment Installation
and Administration manual.
Spotfire.Logging. Specify the logging level for the client job
Level
execution. the log file
Spotfire.Dxp.Automation.ClientJobSender.
exe.log is located in the directory where the
Client Job Sender files are located. The
default value is INFO.
Spotfire.AllowedCer
If SSL is enabled on the Spotfire Server,
tificateValidationE certificate errors can be suppressed by this client,
rrors by changing this setting. Set to None, to allow no
certificate errors. To allow specific errors, set the
value to any or all of these values, separated by
comma: RemoteCertificateChainErrors,
RemoteCertificateNameMismatch,
RemoteCertificateNotAvailable.
Spotfire.Authentica
Specify the username to login to Spotfire Server
tion.Basic.UserName with, when Spotfire Server is setup with
username and password authentication. This can
also be used when the server is configured with
NTLM or Kerberos if another user than the one
executing the process is to be used when
accessing Spotfire Server (domain must be
included in username).
Note: This user must be a member of the
group Automation Services Users.
Spotfire.Authentica
The password for the specified username.
tion.Basic.Password
Spotfire.Authentica Set to True if Spotfire Server requires a client
tion.ClientCertific
ate.Enabled certificate.
The status of running jobs and the history of run jobs can be found in
the Automation Services tab in Monitoring & Diagnostics on the
Spotfire server. For more information, see the TIBCO Spotfire Server
and Environment Installation and Administration Manual.