Apply DFDL Transformation Assertion
Apply DFDL Transformationassertion parses message/data using a saved-parser generated from a pre-compiled DFDL schema and produces an XML or JSON infoset as its output (Parsing) and also unparses XML or JSON infoset back to its original form (Unparsing).
For instructions on how to install this assertion, see Install the Apply DFDL Transformation Assertion. After it is installed, this assertion is available from both
Using the Assertion:
- Do one of the following:
- To add the assertion to the policy development window, see Add an Assertion. You can also right-click anywhere in the policy development window and then select Add 'All' Folder. This creates an assertion folder in the policy window.
- To change the configuration of an existing assertion, proceed to Step 2 below.
- When adding the assertion, theDFDL Transformation Propertiesdialog automatically appears; when modifying the assertion, right-click Apply DFDL Transformation in the policy window and selectDFDL Transformation Propertiesor double-click the assertion in the policy window. The assertion properties are displayed.
- Configure the properties as necessary to parse/unparse message/data into/from XML and JSON infoset with a saved DFDL parser:
- Select theDFDL Processorthat you need to use to parse or unparse from the drop-down menu.
- Choose if theOperationis to parse or unparse.Default:Parse
- Enter the context variable of theInput Message.Default:request
- Enter the context variable of theOutput Message.Default:response
- Select theContent Typeof the output variable from the drop-down menu. For Unparse operation, you can enter context variable in this field.
- ClickOKto save.
Defines the maximum number of DFDL schema data processors in the cache. If this number is reached, the least recently used data processor is removed from the cache.
Defines the time (in milliseconds) that the item in the cache is kept unused.
Apply DFDL Transformationassertion utilizes the daffodil library to read and parse message/data using a saved-parser generated from a pre-defined DFDL schema. The saved-parser does not contain any information about the original DFDL Schema and so validation is not supported. To validate the output against the original DFDL schema, see Validate XML Schema Assertion.