openfin-fdc3
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

OpenFin FDC3

Overview

The OpenFin FDC3 Service provides an implementation of the FINOS FDC3 standards for OpenFin-based applications.

This project consist of 3 parts:

  1. The FDC3 Provider, handling contexts, intents, and the intent resolution UI
  2. The FDC3 Client, exposing APIs for applications to handle and raise intents with contexts
  3. The FDC3 Demo App, demonstrating the different features of OpenFin FDC3

Dependencies

  • OpenFin version for applications using the FDC3 Service >= 9.61.38.41
  • OpenFin version used by the FDC3 Provider = 16.83.53.26
  • RVM >= 4.7

Features

  • Raise an FDC3 intent
  • Resolve an FDC3 intent
  • Open an application with an intent and optional context
  • Attach listeners for intents and contexts
  • Context channel support, to filter context broadcasts

Getting Started

Integrating the FDC3 Service within an application is done by declaring the service in the application manifest, and importing the Client API.

Manifest Declaration

To ensure the service is running, you must declare it in your application config.

"services":
[
   {"name": "fdc3"}
]

During development, you can add a URL for specifying a custom location or a specific version:

"services":
[
   {
       "name": "fdc3",
       "manifestUrl": "https://custom-location/<version>/app.json"
   }
]

Refer to the Desktop Services documentation for details on managing service location/version within production environments.

Import the Client API

npm install openfin-fdc3

The client library is also available as a resource which can be included via <script> tag:

<script src="https://cdn.openfin.co/services/openfin/fdc3/<VERSION>/openfin-fdc3.js"></script> 

This will expose the global variable fdc3 with the API methods documented in the link below. Example:

const context = { /* ... */ };
await fdc3.broadcast(context);

The client module exports a set of functions, documented in the API docs.

Usage

An in-depth usage guide and additional documentation will be published in due course.

Running Locally

To preview the functionality of the service without integrating it into an existing application - or to start contributing to the service - the service can be run locally.

Setup

After checkout, install project dependencies using npm install.

Startup

Once dependencies are installed, start the "built-in" sample application with npm start. This uses webpack-dev-middleware to both build and host the application; a custom server script will start the OpenFin application once the server is up and running.

The startup script has optional arguments which can be used to tweak the behavior of the build and the test server. Use npm start -- -h for details on the available parameters and their effects.

Build Process

The service consists of several different components unified into a single project. The package.json defines the combined dependencies of all components. Any modules required for the pre-built client to work within an application are included in the "dependencies" section, and the remaining dependencies - used to build the client, and to both build & run the provider and demo application - are included under "devDependencies".

Similarly, there is a single webpack.config.js script that will build the above components.

Testing

To run the full test-suite for fdc3-service, run:

npm install
npm test

This will run unit tests followed by the integration tests. These steps can also be run individually via npm run test:unit and npm run test:int. When running the tests separately in this way, both test runners support some optional arguments. Append --help to either of the above npm run commands to see the available options.

Deployment

Staging and production builds are managed via the Jenkinsfile build script. This will build the project as usual (except with the --mode production argument) and then deploy the client and provider to their respective locations. The demo application exists only within this repository and is not deployed.

The service client is deployed as an NPM module, so that it can be included as a dependency in any application that wishes to integrate the service.

The service provider is a standard OpenFin application, only its lifecycle is controlled by the RVM (based upon the requirements of user-launched applications) rather than being launched by users. The provider is deployed to the OpenFin CDN; a zip file is also provided to assist with re-deploying the provider to an alternate location. Direct links to each build are listed in the release notes, available on the services versions page.

Known Issues

A list of known issues can be found on our versions page.

License

This project uses the Apache2 license.

However, if you run this code, it may call on the OpenFin RVM or OpenFin Runtime, which are covered by OpenFin's Developer, Community, and Enterprise licenses. You can learn more about OpenFin licensing at the links listed below or just email us at support@openfin.co with questions.

https://openfin.co/developer-agreement/
https://openfin.co/licensing/

Support

This is an open source project and all are encouraged to contribute. Please enter an issue in the repository for any questions or problems. Alternatively, please contact us at support@openfin.co.

Readme

Keywords

none

Package Sidebar

Install

npm i openfin-fdc3

Weekly Downloads

207

Version

0.2.3

License

ISC

Unpacked Size

191 kB

Total Files

15

Last publish

Collaborators

  • ameet-openfin
  • jmransegnola
  • marek_openfin
  • yoge-openfin
  • nil.ffej
  • gilesstevenson-openfin
  • eheyder
  • newaz.sharif
  • efraim-herstic
  • royhafin
  • openfincolinhu
  • openfin-johans
  • alan15008
  • openfin-ci-gh
  • hina-khalid
  • ife-dev1
  • mjosling
  • elliott.burr
  • vsaw3
  • gallak-openfin
  • galim.kaudinov
  • hzhi0209
  • andy.westacott
  • __tomasz__
  • cameronopenfin
  • jennrondeau
  • dhilan
  • benstubbington
  • davidcoxon-of
  • openfin-jeff
  • gouthamc
  • hannahmcmillen
  • xyopenfin
  • smocarski
  • eugeneross-openfin
  • imansuri
  • manamiueda
  • sakibahmad
  • shahossain
  • openfinbrandon
  • pierrebaize
  • noyangunday
  • michaelmcoates
  • johnmandia-openfin
  • rdepena
  • tgoc99
  • wenjunche
  • harsimran.openfin.singh
  • luiemilio
  • licui3936
  • connormccafferty
  • adam.saland
  • openfin-ci
  • chrishobsonexpero
  • richbrowne-openfin
  • azizyok
  • openfin-gavin
  • oblarg
  • dwaynekj
  • pjbroadbent