OpenFin FDC3 API uses the new Services framework to expose its API to consuming applications. You can see the documentation for these APIs here: http://cdn.openfin.co/jsdocs/alpha/fin.desktop.Service.html.
This project consist of 2 parts:
- The FDC3 Provider, taking care of intents, context and resolving them (UI)
- The FDC3 Client, exposing API's for applications to handle/raise intents with contexts
- OpenFin version >= 8.56.30.42
- RVM >= 4.2.0.33
- Raise an FDC3 Intent
- Resolve an FDC3 Intent
- Open an application with an intent/context
- Attach listeners for Intents and Contexts
- To run the project locally the npm scripts require git bash.
- Windows support only.
- Node 8.11 LTS.
npm install
npm run build:demo
npm run start
Using the FDC3 service is done in two steps, add the service to application manifest and import the API:
To ensure the service is running, you must declare it in your application config.
"services": [
{
"name": "fdc3"
}
]
To use the API, you must first include it in your application.
npm install openfin-fdc3
This is a WIP living implementation of the FDC3 API.
All code lives under the src directory which can be broken down into 5 areas: client, demo, provider, test and ui.
- src
- client - the service client
- demo - the demo config/html (for testing the service itself)
- provider - the service provider
- test - all the tests
- ui - the intent/context resolution ui
We use a handful of NPM scripts to handle most of the typical tasks in a project like compile, stage, run, etc.
- build - run webpack and stage (production)
- build:demo - run webpack and stage (development)
- start - runs the server/apps, must run either build command prior
- test - runs all project tests
The project is built and staged to the ./build directory. This directory is exactly what would be deployed to the production CDN.
- build
- client.js - the compiled service client
- demo/ - the demo files
- provider.js - the compiled service provider
- ui - the compiled intent/context resolution UI
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 [email protected] with questions.
https://openfin.co/developer-agreement/ https://openfin.co/licensing/
This is an open source project and all are encouraged to contribute. Please enter an issue in the repo for any questions or problems. Alternatively, please contact us at [email protected]