Purpose:

Navigate your users back to where they left off in the host Encompass application, after they have canceled an interaction with your application's user-interface without having initiated a transaction request (or any other related task) that they were working on. This signals a cancelation outcome to the host Encompass application - how this is handled by the host upon user navigation can vary across applications.

Sample Usage:

import host from '@elliemae/em-ssf-guest'

...

async function cancelInteraction() {
  const transactionObject = await host.getObject('transaction')
  transactionObject.cancel()
}

cancelInteraction()
import host from '@elliemae/em-ssf-guest'

...

host.getObject('transaction')
  .then(
    (transactionObject) => {
      transactionObject.cancel()
    }
  )

Interface:

Input:

None

Returns:

None