How to publish and deploy PMML models from Statistica to StreamBase services via TIBCO AMS?

How to publish and deploy PMML models from Statistica to StreamBase services via TIBCO AMS?

book

Article ID: KB0076083

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.4 and higher

Description

Statistica has a "Publish Models" node which publishes PMML models from Statistica workspaces to other TIBCO software services like Artifact Management Server (AMS). The node also pushes an approved model in AMS to an operator within a running StreamBase EventFlow model. StreamBase users can then manage and deploy the PMML models published from Statistica to StreamBase services via AMS.

Issue/Introduction

How to publish and deploy PMML models from Statistica to StreamBase services via TIBCO AMS?

Environment

Windows

Resolution

The Statistica "Publish Models" node can be found under "Publish" folder from workspace Node Browser list. 

User-added image

To publish the upstream PMML model to TIBCO Artifact Management Server (AMS) and deploy the approved model to a StreamBase operator service, in the "Publish Models" node parameter dialog, user needs to fill in below info:
  • The AMS Server URL, User Name and Password to access AMS Server
  • The AMS Project and Folder name where the pmml model would be published to
  • Tick both the options "Commit for Approval" and "Auto Approve". With the commit and approve options checked, the model published to AMS would be automatically committed and approved to be deployable to a StreamBase operator (Model would have "not checked out" status in AMS).
  • Tick "Push to StreamBase" option and fill in the StreamBase "Service Name" and "Operator", if user want to push the published model to StreamBase operator through the Statistica "Publish Models" node.
  • All the PMML models available in the workspace are listed under the "PMML models" section. Select those PMML models that user wants to publish and give a name to each model to be published to AMS. 
User-added image

Click OK and execute the "Publish Models" node. The status of the commit, approve and push to StreamBase activities can be found at the Reporting Document node.

User-added image

User can also go to the AMS server web client to check the published PMML models and view the notification messages for the status of publish and deploy model activities.

User-added image

Alternatively, if "Push to StreamBase" option is not ticked in Statistica "Publish Models" node, with "Commit for Approval" and "Auto Approve" options checked, the "PMML models" node would simply publish the models to AMS server without deploying to StreamBase. In this case, user can still go to AMS server web client, select the published PMML model, right click and choose "Deploy" option to further deploy the published PMML model to StreamBase operator from AMS. 

User-added image

NOTE:
Here is reference document guidance about TIBCO AMS.
Here is reference document guidance about TIBCO Streambase including samples on using TIBCO Streambase Adaptor for TIBCO Artifact Management Server (AMS).