Adding a New External Action to an Analysis


Note: To add or use external actions, you need TIBCO Cloud™ Integration license (TCI). For more information, see Enabling External Actions with TIBCO Cloud™ Integration.

Actions that include sending data to external systems make use of integration and connection services in TCI. Services can be created for specific action needs. From Spotfire, the services are then accessed using TIBCO Cloud Mesh, a global repository of these kinds of services.

A service contains various parameters to configure. When adding an action that calls a service, these defined parameters will be provided automatically in a configuration flyout in Spotfire, where you map them to your data. For example, you can define what kind of data in the visualization to send to the external system.

A configured action is then activated using some type of trigger in the visualization, like a floating button, as shown below, or a right-click menu item.

When adding a new action, you add it to a visualization of your choice, and you can specify one or more triggers in that visualization. When you have added an action, it becomes available for selection in all visualizations in the analysis. That is, an action can be added to more than one visualization in an analysis, using the same type of trigger or a different one. You can also add more than one action to a single visualization.

To add a new external action:

  1. Right-click the visualization, and select Properties from the pop-up menu.

  2. Go to the Actions page.

  3. Click Add in the upper right corner.

  4. Response: A default trigger type, Floating button, is added to the Triggers in visualization list.

  5. If you want another trigger type, change to Right-click menu option or Title bar button in the Trigger type drop-down list.

  6. To select a service to use for the action, click New.

  7. Response: The TIBCO Cloud Login dialog is opened.

  8. Log in to TIBCO Cloud, and follow the steps.

  9. Response: Once logged in, the Select a service from TIBCO Cloud Mesh dialog is opened.

  10. Locate and select the service to use for the action.

  11. Response: The Configure action flyout is opened, listing the parameters that are defined for the service.

  12. Optionally, click the pen to rename the action, and type a description.

  13. Comment: A description of the action is recommended to inform people who run it about the purpose of the action.

  14. Click to select an icon that will represent the action.

  15. Expand the parameters, and configure the action, that is, map inputs to the contents of your analysis. For more details on the available options for the parameters, see Options for action parameters below.

  16. Comment: It is the configurator of the action who determines what data the action will send. The configurator might select a data table, or one or more columns, to send data from, add a document property (perhaps a property that people can change using controls in a text area), or even type a value directly. By specifying the type Prompt for input when running action, the person who runs the action will be asked to provide the input. Optionally, a description can be added to a parameter using prompt as input type. A question mark icon will then be shown next to that parameter in the prompt, and the description will be available in the tooltip.

  17. Click Next.

  18. Response: The Review action configuration flyout is opened. The flyout shows the configuration and affected data that potentially will be sent externally.

  19. Make sure the configuration is correct, and click Done.

  20. Response: You are now the signer of the action. The action is added to the Available actions in analysis list on the Actions page of the Visualization Properties, and it is possible to add and use the action in any visualization in the analysis by associating it with a trigger.

  21. Select the added action in the Action drop-down list to associate it with your trigger.

  22. Response: A trigger of the chosen type is now available in the visualization for running the associated action.

Options for action parameters

Which options you have when configuring an action parameter, depends on how the parameter has been defined in the service. All input types and options described below will therefore not be available for each parameter. Open the Type drop-down list to see which input types are available for a parameter.

Row limits for data view parameters

The person creating the service can specify row limits for data view parameters. This means that to run the action, the number of rows sent from that parameter must be within the limits. When row limits exist for a data view parameter, information about the limits will be shown in the Configure action flyout. The image below shows a data view parameter where only a maximum row limit has been specified, but you might also encounter services where the parameter expects a minimum number of rows, has both a minimum and a maximum number of rows defined, or expects an exact number of rows.

If you configure a data view parameter that requires a minimum or exact number of rows so that it also is limited by one or more markings, then any triggers that exist for the action will become grayed out until some items in the visualizations are marked.

A tooltip will let the person who wants to run the action know which markings must be used before it is possible to run the action, as you can see in the image below.

See also:

What are Actions?

Running an External Action

Manage Trust