Adding AriadNext to a Digital Journey

  1. Open the digital journey in FintechOS Studio.
  2. Make sure that the form you want to populate includes a button to call the AriadNext automation processor.
  3. Click the Advanced tab.
  4. Click the After Events subtab.
  5. Add the following code in the After Events window:
    Copy
    // For Ecosystem SysPack 2.5.0 and later, use:
    var dfpHelper = ebs.importClientScript('FTOS.ECOS.Utils');

    // Prior to Ecosystem SysPack 2.5.0, use:
    // var dfpHelper = ebs.importClientScript('FTOS.DFP');

    var p = {};
    p.flowSettingsName = formData.FlowSettings;
    p.processorSettingsType = 'AriadNext';
    p.processorSettingsName='AriadNext_Settings'; //the name of the processor settings that you created.  
    var recordId = formData.id;
    var rec2= ebs.getCurrentEntityId();
    ebs.callActionByName("FTOS_DFP_FlowProcessorSettingsByType", p, function(e)
        {
            var processorSettingsId = e.UIResult.Data.ProcessorSettingsId;
            dfpHelper.loadComponent("FTOS_DFP_AriadNext", processorSettingsId, ebs.getCurrentEntityId(), false);
        });
  6. Click the Save and Close button at the top right corner to save the digital journey.