Tutorial: fdc3.raiseIntentForContext

fdc3.raiseIntentForContext

Finds and raises an intent against a target app based purely on context data. To resolve this into an IntentResolution, the function handleFiredIntentByContext is meant to be overridden in the Interop Broker.

Example

tickerElement.on('click', (element) => {
    const ticker = element.innerText;

    const context = { 
        type: 'fdc3.instrument', 
        id: { 
            ticker 
        }
    }

    const intentResolution = await fin.me.interop.raiseIntentForContext(context, 'ChartApp');

    // This returns an IntentResolution:
    // {
    //     source: 'ChartApp',
    //     version: '1.2'
    // }
})