+ All Categories
Home > Documents > Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job...

Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job...

Date post: 15-Mar-2020
Category:
Upload: others
View: 5 times
Download: 0 times
Share this document with a friend
14
© 2014 PerkinElmer HUMAN HEALTH • ENVIRONMENTAL HEALTH Overview of TIBCO Spotfire® Automation Services Margot Goodwin September 15, 2016
Transcript
Page 1: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

© 2014 PerkinElmer

HUMAN HEALTH • ENVIRONMENTAL HEALTH

Overview of TIBCO Spotfire®

Automation Services

Margot Goodwin

September 15, 2016

Page 2: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

2

TIBCO Spotfire® Automation Services

• A job is a set of tasks, for example, opening an analysis, exporting a visualization and sending an email about it to your colleagues

• Automation Services can be extended with additional tasks with the use of scripting or custom code extension

• Workflows start by creating an editable XML job file, running it locally to test and then on the server.

• The job file can be executed automatically on a regular basis by using a job scheduler

Automation

Services is a tool

integrated into

the

TIBCO Spotfire®

platform that

makes it possible

to run automated

server jobs which

contain a set of

tasks

Page 3: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

3

Architecture in Spotfire 7.x and below

Page 4: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

4

Architecture in Spotfire 7.5 and above

Page 5: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

5

Out of the box

The overall workflow The list of available tasks

Page 6: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

6

Installation

There are two components that need to be installed:

a. Automation services server (The Automation services

version must match that of Spotfire server).

Once it’s installed, make sure the automation server URL is

working

Ex: http://localhost:85/SpotfireAutomation

b. Deploy the Job Builder.spk to Spotfire server

Page 7: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

7

To open the interface:

Spotfire>Tools>Automation Services Job Builder

Page 8: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

8

Steps to set up automation jobs

• Use the job builder to create an xml job file, test it locally and on the

server. The server URL must match the Automation Services Server

URL.

Page 9: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

9

Steps to set up automation jobs

• Test the xml job file again using cmd command line and the Client Job

sender, using syntax similar to the following command line:

C:\Users\Administrator\Desktop\TIBCO Spotfire Automation Services

Installer>Spotfire.Dxp.Automation.ClientJobSender.exe

http://localhost:85/SpotfireAutomation/JobExecutor.asmx

C:\Users\Administrator\Desktop\PKI_Auto_Demo.xml

• Save the script into a .bat file and schedule its execution using

Windows Task Scheduler.

Page 10: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

10

• Use Windows Task Scheduler

• Kick Off the job by a Web service call in .net

Good reference:

http://stackoverflow.com/questions/28543044/vs-newbie-how-to-use-this-wsdl-in-

c-sharp-code

Scheduling jobs

Page 11: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

11

Extensions to Automation Services

• Spotfire Automation Services basic sdk

◦ Spotfire SDK intro

http://stn.spotfire.com/stn/Extend/SDKOverview.aspx

• C# extensions

◦ Use Case: using automation services to cache the dxp report on Web

Player server

◦ Need to create AutomationServicesLoadWebPlayer.spk C# extension

by using Spotfire SDK toolkit and Visual Studio.

Page 12: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

12

USE CASE - Automated update of Spotfire DXP based on

access privileges

1. Requirements

• Create a parametrized information link that feeds data into a Spotfire template according to the end

user’s access privileges.

• Automate the process using automation services.

2. Implementation Details - Parametrized Information Link

The data stored in the database should not be accessible for all end users of the template. The criteria

to limit the data for them is stored in a specific column. By creating an information link with a parameter

in the WHERE clause, the data can be filtered as intended, by feeding the different values to the

parameter as needed.

A parameter can be added to the information link by editing the SQL in the information designer.

Wherever a parameter is needed, a question mark (?) has to be inserted followed with the name of the

parameter using the syntax: “?Param”.

Page 13: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

13

USE CASE - Automated update of Spotfire DXP based on

access privileges

3. Implementation Details – Automation Services Job XML

Automation services can be used to automate the process of loading the master template, replace a

data table with a parametrized information link, feed the parameter needed and save the resulting

filtered template back in the library with the data embedded. The process of building a job using this

interface, will generate an xml file when saving.

The job needs three steps for each template:

• Open Analysis from Library

• Supply the parameter for the information link using the configuration block in the Job Builder task

• Replace Data Table with Information Link

• Identify the data table to be replaced, then browse to the parametrized information link in the

Spotfire Library

• Save Analysis to Library

• It is critical to identify the desired path to save the analysis to the library as the permissions set in

these folders assist to restrict the access. Marking “embed data in analsysis” will improve

performance for the end users

Page 14: Overview of TIBCO Spotfire® Automation Services · TIBCO Spotfire® Automation Services •A job is a set of tasks, for example, opening an analysis, exporting a visualization and

Questions? Thank you for your time!

Senor Manager, Application Consulting

Margot Goodwin

[email protected]

203.747.6734


Recommended