41
4
Performing 5250 Actions
Performing 5250 Actions Chapter 4
About Actions
An action is similar to a programming statement in that it takes input in the form
of parameters and performs specific tasks. Please see the chapters in the Composer
User’s Guide devoted to Actions.
Within the 5250 Component Editor, a set of instructions for processing XML
documents or communicating with non-XML data sources is created as part of an
Action Model. The Action Model performs all data mapping, data transformation,
data transfer between AS/400s and XML documents, and data transfer within
components and services.
An Action Model is made up of a list of actions. All actions within an Action
Model work together. As an example, one Action Model might read invoice data
from a disk, retrieve data from a AS/400 inventory transaction, map the result to a
temporary XML document, make a conversion, and map the converted data to an
output XML document.
The Action Model mentioned above would be composed of several actions. These
actions would:
Open an invoice document and perform a 5250 command to retrieve
inventory data from a AS/400 transaction.
Map the result to a temporary XML document
Convert a numeric code using a Code Table and map the result to an Output
XML document.