FLIST To XML Transformation

by Congero Tech

FLIST or field list is an Oracle BRM data structure that is used for all internal and external communications. It is a field value data type. It supports C primary data types, a BRM internal object ID type and a sparse array type, which can be nested to any level.

Ex: FLIST text representation for a NAMEINFO array containing address information.

0 PIN_FLD_POID POID [0] 0.0.0.1 /plan -1 0

0 PIN_FLD_FLAGS INT [0] 0

0 PIN_FLD_NAMEINFO ARRAY [1] allocated 8, used 8

1 PIN_FLD_LAST_NAME STR [0] “Smith”

1 PIN_FLD_COUNTRY STR [0] “USA”

1 PIN_FLD_FIRST_NAME STR [0] “Joe”

1 PIN_FLD_ZIP STR [0] “10020”

1 PIN_FLD_STATE STR [0] “NY”

1 PIN_FLD_CITY STR [0] “New York”

1 PIN_FLD_ADDRESS STR [0] “100 Broadway”

Oracle BRM provides API functions to manipulate FLIST. At the simplest level, the FLIST above can be converted from a string to an in-memory object, which is then used as input/output to BRM op-codes.

This approach worked well in the old days where applications defined their own data structure and communication protocols. Nowadays when web services and XML are industry standard for integration, we usually end up with XML to FLIST and FLIST to XML translation.

Going from FLIST to XML is a simple task since there is an API function to do it. Going from XML to FLIST is more interesting because depending on the API language, there can be more than one XML mapping framework.

In our various projects, we’ve done the translation many different ways. One of our earlier approaches (if the API in use is Java) was to use JAXB, JiBX or one of many Java XML libraries to parse the XML into Java data objects. Then we used the data objects to build the FLIST. This approach has drawbacks, as it is not easy to adapt to the changing content of the XML data.

Later on when XSLT became the standard toolkit for XML transformation, we started using it to transform the XML into FLIST text format. From there, we just call BRM API to read it in. This approach is definitely more flexible, as the mapping between XML elements and FLIST fields is maintained externally and there are standard XSLT engines in most programming languages. We can even run standalone XSLT engines.

Transform Your Business Today

Please contact us today to learn how Congero Technology Group can help your business succeed.


Contact Us

Contact our experts today for a personalized consultation and discover how your company can benefit from these technological innovations. Do not wait to become a leader in your industry and ensure customer satisfaction while increasing your recurring revenues. The time for action is now!

Get in touch with us to initiate your business transformation!

You may also like…

0 Comments

know more

How can we help you?

We are here to help you elevate your business because it’s what we do best. Leave your name and business email, so we can connect and discuss how our experts can assist you.