Manage DFDL Processors

You can add, edit, or remove DFDL Processors using the
Manage DFDL Processors
option. You can upload your pre-complied DFDL processors to Gateway and configure properties such as External Variables or Tuning Parameters for a processor. You can select the configured processors in the
Apply DFDL Transformation
assertion.
Layer7 API Gateway
does not support schema authoring in Policy Manager.
Follow these steps:
  1. Open Policy Manager and click
    Tasks, Extensions and Add-Ons
    ,
    Manage DFDL Processors
    .
    The
    Manage DFDL Processors
    dialog opens listing all the existing processors.
  2. Click
    Add
    to add a new configuration.
    The
    DFDL Processor
    Properties
    dialog opens.
  3. Enter a
    Name
    to identify the processor configuration and verify the
    Enabled
    check-box.
    Only the processors that are marked
    Enabled
    are listed in the
    DFDL Transformation Properties
    dialog in the Apply DFDL Transformation assertion. For existing assertions that use these processors, if the
    Enabled
    checkbox is cleared or if the processor configuration is deleted, the assertion fails.
  4. Click
    File...
    to select a pre-compiled DFDL schema binary from the file system.
  5. Click
    Add/Edit
    in the
    Advanced Properties
    panel to configure external variables or tuning parameters for a processor. The tuning parameter names are automatically populated in the
    Name
    drop-down list with default values.
  6. Click
    OK
    and the properties are listed in the
    DFDL Processor Properties
    dialog.
  7. Click
    OK
    to validate the processor.
Create DFDL Parser
Define a DFDL parser before using the
Apply DFDL Transformation
assertion. To create a DFDL parser binary, obtain the daffodil library version 2.4.0 and use the
save parser subcommand
to create a parser binary.
For more information, see the documentation https://daffodil.apache.org/cli/.
Save Parser Subcommand
daffodil save-parser -s <schema> [-r [{namespace}]<root>] [-p <path>] [outfile]
Example
daffodil save-parser -s csv.dfdl.xsd csv_parser.xml