File Write Adapter Using Substitution Variable Creator

File Write Adapter Using Substitution Variable Creator

In a previous post we looked at EXTOL EBI File Adapters. File Adapters can be used for the following actions:

  • Read
  • Write
  • Move
  • Copy

Below we review how to use the Substitution Variable Creator.

Step One: Create File Adapter - Write

We will create a write adapter with the prefix of "EDI_Data_"

EXTOL Business Integrator EBI File Adapter Write screenshot

Step Two: Create File Adapter - Substitution Variable Creator

Once we set-up the File Write Adapter we will use the Substitution Variable Creator to append the date and time.

EXTOL Business Integrator EBI File Adapter Write Substitution Variable Creator screenshot

Step Three: Create File Adapter - With Substitution Variables Applied

After using the Substitution Variable Creator, EBI will tranpose the datetime variables to the filename

EXTOL Business Integrator EBI File Adapter Write with datetime Variable screenshot

By: on
load('http://www.extol.com/extolnews.rss'); $feed = array(); foreach ($rss->getElementsByTagName('item') as $node) { $item = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue, ); array_push($feed, $item); } $limit = 4; echo ' A free web counter provided by GoStats.